The dialogs can be forced into console mode.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | tinyfd_allowCursesDialogs
Curses dialogs are difficult to use, on windows they are only ascii and uses the unix backslash |
| public static final String | tinyfd_assumeGraphicDisplay
0 (default) or 1. |
| public static final String | tinyfd_forceConsole
0 (default) or 1. |
| public static final String | tinyfd_needs
Contains info about requirements. |
| public static final String | tinyfd_response
If you pass "tinyfd_query" as |
| public static final String | tinyfd_silent
1 (default) or 0 : on unix, hide errors and warnings from called dialogs |
| public static final String | tinyfd_verbose
0 (default) or 1 : on unix, prints the command line calls |
| public static final String | tinyfd_version
Contains tinyfd current version number. |
| public static final String | tinyfd_winUtf8
On windows, set to 1 if you want to use UTF-8. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| public static native long | ntinyfd_colorChooser(long aTitle, long aDefaultHexRGB, long aDefaultRGB, long aoResultRGB)
Unsafe version of: | ||||||||
| public static native long | |||||||||
| public static native int | |||||||||
| public static native long | |||||||||
| public static native int | ntinyfd_messageBox(long aTitle, long aMessage, long aDialogType, long aIconType, int aDefaultButton)
Unsafe version of: | ||||||||
| public static native int | |||||||||
| public static native long | ntinyfd_openFileDialog(long aTitle, long aDefaultPathAndFile, int
the number of patterns in aNumOfFilterPatterns, long aFilterPatterns, long aSingleFilterDescription, int aAllowMultipleSelects)aFilterPatternsUnsafe version of: | ||||||||
| public static native long | ntinyfd_saveFileDialog(long aTitle, long aDefaultPathAndFile, int
the number of patterns in aNumOfFilterPatterns, long aFilterPatterns, long aSingleFilterDescription)aFilterPatternsUnsafe version of: | ||||||||
| public static native long | |||||||||
| public static native int | |||||||||
| public static native void | |||||||||
| public static String | Returns: the selected hexcolor as a string "#FF0000" orNULL on cancelthe dialog title or aTitle, ByteBuffer NULLNULL or "#FF0000"{ 0 , 255 , 255 }. Used only if aDefaultRGB, ByteBuffer aDefaultHexRGB is NULL.returns the selected color. aoResultRGB)aDefaultRGB and aoResultRGB can be the same array.Displays a color chooser dialog. | ||||||||
| public static String | Returns: the selected hexcolor as a string "#FF0000" orNULL on cancelthe dialog title or aTitle, CharSequence NULLNULL or "#FF0000"{ 0 , 255 , 255 }. Used only if aDefaultRGB, ByteBuffer aDefaultHexRGB is NULL.returns the selected color. aoResultRGB)aDefaultRGB and aoResultRGB can be the same array.Displays a color chooser dialog. | ||||||||
| public static String | |||||||||
| public static String | |||||||||
| public static int | |||||||||
| public static int | |||||||||
| public static String | Returns: the input value orNULL on cancelthe dialog title or aTitle, ByteBuffer NULLthe message or aMessage, ByteBuffer NULL. May NOT contain \n and \t characters on Windows.if aDefaultInput)NULL it's a password boxDisplays an input dialog. | ||||||||
| public static String | Returns: the input value orNULL on cancelthe dialog title or aTitle, CharSequence NULLthe message or aMessage, CharSequence NULL. May NOT contain \n and \t characters on Windows.if aDefaultInput)NULL it's a password boxDisplays an input dialog. | ||||||||
| public static boolean | Returns: 0 for cancel/no, 1 for ok/yes, 2 for no in yesnocancelthe dialog title or aTitle, ByteBuffer NULLthe message or aMessage, ByteBuffer NULL. It may contain \n and \t characters.the dialog type. One of: aDialogType, ByteBuffer
the icon type. One of: aIconType, boolean
0 for cancel/no, 1 for ok/yes aDefaultButton)Displays a message dialog. | ||||||||
| public static boolean | Returns: 0 for cancel/no, 1 for ok/yes, 2 for no in yesnocancelthe dialog title or aTitle, CharSequence NULLthe message or aMessage, CharSequence NULL. It may contain \n and \t characters.the dialog type. One of: aDialogType, CharSequence
the icon type. One of: aIconType, boolean
0 for cancel/no, 1 for ok/yes aDefaultButton)Displays a message dialog. | ||||||||
| public static int | tinyfd_notifyPopup(ByteBuffer
the dialog title or aTitle, ByteBuffer NULLthe message or aMessage, ByteBuffer NULL. It may contain \n and \t characters.the icon type. One of: aIconType)
Displays a notification popup. | ||||||||
| public static int | tinyfd_notifyPopup(CharSequence
the dialog title or aTitle, CharSequence NULLthe message or aMessage, CharSequence NULL. It may contain \n and \t characters.the icon type. One of: aIconType)
Displays a notification popup. | ||||||||
| public static String | Returns: the file(s) selected orNULL on cancel. In case of multiple files, the separator is '|'.the dialog title or aTitle, ByteBuffer NULLthe default path and/or file or aDefaultPathAndFile, PointerBuffer NULLan array of file type patterns ( aFilterPatterns, ByteBuffer NULL or {"*.jpg","*.png"}NULL or "image files"if true, multiple selections are allowed aAllowMultipleSelects)Displays a file open dialog. | ||||||||
| public static String | Returns: the file(s) selected orNULL on cancel. In case of multiple files, the separator is '|'.the dialog title or aTitle, CharSequence NULLthe default path and/or file or aDefaultPathAndFile, PointerBuffer NULLan array of file type patterns ( aFilterPatterns, CharSequence NULL or {"*.jpg","*.png"}NULL or "image files"if true, multiple selections are allowed aAllowMultipleSelects)Displays a file open dialog. | ||||||||
| public static String | Returns: the selected file path orNULL on cancelthe dialog title or aTitle, ByteBuffer NULLthe default path and/or file or aDefaultPathAndFile, PointerBuffer NULLan array of file type patterns ( aFilterPatterns, ByteBuffer NULL or {"*.jpg","*.png"}NULL or "image files"Displays a file save dialog. | ||||||||
| public static String | Returns: the selected file path orNULL on cancelthe dialog title or aTitle, CharSequence NULLthe default path and/or file or aDefaultPathAndFile, PointerBuffer NULLan array of file type patterns ( aFilterPatterns, CharSequence NULL or {"*.jpg","*.png"}NULL or "image files"Displays a file save dialog. | ||||||||
| public static String | tinyfd_selectFolderDialog(ByteBuffer
the dialog title or aTitle, ByteBuffer NULLthe default path or aDefaultPath)NULLDisplays a folder selection dialog. | ||||||||
| public static String | tinyfd_selectFolderDialog(CharSequence
the dialog title or aTitle, CharSequence NULLthe default path or aDefaultPath)NULLDisplays a folder selection dialog. | ||||||||
| public static int | |||||||||
| public static int |
| tinyfd_allowCursesDialogs | back to summary |
|---|---|
| public static final String tinyfd_allowCursesDialogs Curses dialogs are difficult to use, on windows they are only ascii and uses the unix backslash | |
| tinyfd_assumeGraphicDisplay | back to summary |
|---|---|
| public static final String tinyfd_assumeGraphicDisplay 0 (default) or 1. Some systems don't set the environment variable | |
| tinyfd_forceConsole | back to summary |
|---|---|
| public static final String tinyfd_forceConsole 0 (default) or 1. For unix & windows: 0 (graphic mode) or 1 (console mode). 0: try to use a graphic solution, if it fails then it uses console mode. 1: forces all dialogs into console mode even when an X server is present, it can use the package dialog or dialog.exe. On windows it only make sense for console applications | |
| tinyfd_needs | back to summary |
|---|---|
| public static final String tinyfd_needs Contains info about requirements. | |
| tinyfd_response | back to summary |
|---|---|
| public static final String tinyfd_response If you pass "tinyfd_query" as Possible values for
For the console mode:
| |
| tinyfd_silent | back to summary |
|---|---|
| public static final String tinyfd_silent 1 (default) or 0 : on unix, hide errors and warnings from called dialogs | |
| tinyfd_verbose | back to summary |
|---|---|
| public static final String tinyfd_verbose 0 (default) or 1 : on unix, prints the command line calls | |
| tinyfd_version | back to summary |
|---|---|
| public static final String tinyfd_version Contains tinyfd current version number. | |
| tinyfd_winUtf8 | back to summary |
|---|---|
| public static final String tinyfd_winUtf8 On windows, set to 1 if you want to use UTF-8. LWJGL note: this is automatically set to 1. | |
| TinyFileDialogs | back to summary |
|---|---|
| protected TinyFileDialogs() | |
| ntinyfd_colorChooser | back to summary |
|---|---|
| public static native long ntinyfd_colorChooser(long aTitle, long aDefaultHexRGB, long aDefaultRGB, long aoResultRGB) Unsafe version of: | |
| ntinyfd_getGlobalChar | back to summary |
|---|---|
| public static native long ntinyfd_getGlobalChar(long aCharVariableName) Unsafe version of: | |
| ntinyfd_getGlobalInt | back to summary |
|---|---|
| public static native int ntinyfd_getGlobalInt(long aIntVariableName) Unsafe version of: | |
| ntinyfd_inputBox | back to summary |
|---|---|
| public static native long ntinyfd_inputBox(long aTitle, long aMessage, long aDefaultInput) Unsafe version of: | |
| ntinyfd_messageBox | back to summary |
|---|---|
| public static native int ntinyfd_messageBox(long aTitle, long aMessage, long aDialogType, long aIconType, int aDefaultButton) Unsafe version of: | |
| ntinyfd_notifyPopup | back to summary |
|---|---|
| public static native int ntinyfd_notifyPopup(long aTitle, long aMessage, long aIconType) Unsafe version of: | |
| ntinyfd_openFileDialog | back to summary |
|---|---|
| public static native long ntinyfd_openFileDialog(long aTitle, long aDefaultPathAndFile, int aNumOfFilterPatterns, long aFilterPatterns, long aSingleFilterDescription, int aAllowMultipleSelects) Unsafe version of:
| |
| ntinyfd_saveFileDialog | back to summary |
|---|---|
| public static native long ntinyfd_saveFileDialog(long aTitle, long aDefaultPathAndFile, int aNumOfFilterPatterns, long aFilterPatterns, long aSingleFilterDescription) Unsafe version of:
| |
| ntinyfd_selectFolderDialog | back to summary |
|---|---|
| public static native long ntinyfd_selectFolderDialog(long aTitle, long aDefaultPath) Unsafe version of: | |
| ntinyfd_setGlobalInt | back to summary |
|---|---|
| public static native int ntinyfd_setGlobalInt(long aIntVariableName, int aValue) Unsafe version of: | |
| tinyfd_beep | back to summary |
|---|---|
| public static native void tinyfd_beep() | |
| tinyfd_colorChooser | back to summary |
|---|---|
| public static String tinyfd_colorChooser(ByteBuffer aTitle, ByteBuffer aDefaultHexRGB, ByteBuffer aDefaultRGB, ByteBuffer aoResultRGB) Displays a color chooser dialog.
| |
| tinyfd_colorChooser | back to summary |
|---|---|
| public static String tinyfd_colorChooser(CharSequence aTitle, CharSequence aDefaultHexRGB, ByteBuffer aDefaultRGB, ByteBuffer aoResultRGB) Displays a color chooser dialog.
| |
| tinyfd_getGlobalChar | back to summary | |||
|---|---|---|---|---|
public static String tinyfd_getGlobalChar(ByteBuffer aCharVariableName)
| ||||
| tinyfd_getGlobalChar | back to summary | |||
|---|---|---|---|---|
public static String tinyfd_getGlobalChar(CharSequence aCharVariableName)
| ||||
| tinyfd_getGlobalInt | back to summary | ||||||
|---|---|---|---|---|---|---|---|
public static int tinyfd_getGlobalInt(ByteBuffer aIntVariableName)
| |||||||
| tinyfd_getGlobalInt | back to summary | ||||||
|---|---|---|---|---|---|---|---|
public static int tinyfd_getGlobalInt(CharSequence aIntVariableName)
| |||||||
| tinyfd_inputBox | back to summary |
|---|---|
| public static String tinyfd_inputBox(ByteBuffer aTitle, ByteBuffer aMessage, ByteBuffer aDefaultInput) Displays an input dialog.
| |
| tinyfd_inputBox | back to summary |
|---|---|
| public static String tinyfd_inputBox(CharSequence aTitle, CharSequence aMessage, CharSequence aDefaultInput) Displays an input dialog.
| |
| tinyfd_messageBox | back to summary | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| public static boolean tinyfd_messageBox(ByteBuffer aTitle, ByteBuffer aMessage, ByteBuffer aDialogType, ByteBuffer aIconType, boolean aDefaultButton) Displays a message dialog.
| |||||||||
| tinyfd_messageBox | back to summary | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| public static boolean tinyfd_messageBox(CharSequence aTitle, CharSequence aMessage, CharSequence aDialogType, CharSequence aIconType, boolean aDefaultButton) Displays a message dialog.
| |||||||||
| tinyfd_notifyPopup | back to summary | |||
|---|---|---|---|---|
| public static int tinyfd_notifyPopup(ByteBuffer aTitle, ByteBuffer aMessage, ByteBuffer aIconType) Displays a notification popup.
| ||||
| tinyfd_notifyPopup | back to summary | |||
|---|---|---|---|---|
| public static int tinyfd_notifyPopup(CharSequence aTitle, CharSequence aMessage, CharSequence aIconType) Displays a notification popup.
| ||||
| tinyfd_openFileDialog | back to summary |
|---|---|
| public static String tinyfd_openFileDialog(ByteBuffer aTitle, ByteBuffer aDefaultPathAndFile, PointerBuffer aFilterPatterns, ByteBuffer aSingleFilterDescription, boolean aAllowMultipleSelects) Displays a file open dialog.
| |
| tinyfd_openFileDialog | back to summary |
|---|---|
| public static String tinyfd_openFileDialog(CharSequence aTitle, CharSequence aDefaultPathAndFile, PointerBuffer aFilterPatterns, CharSequence aSingleFilterDescription, boolean aAllowMultipleSelects) Displays a file open dialog.
| |
| tinyfd_saveFileDialog | back to summary |
|---|---|
| public static String tinyfd_saveFileDialog(ByteBuffer aTitle, ByteBuffer aDefaultPathAndFile, PointerBuffer aFilterPatterns, ByteBuffer aSingleFilterDescription) Displays a file save dialog.
| |
| tinyfd_saveFileDialog | back to summary |
|---|---|
| public static String tinyfd_saveFileDialog(CharSequence aTitle, CharSequence aDefaultPathAndFile, PointerBuffer aFilterPatterns, CharSequence aSingleFilterDescription) Displays a file save dialog.
| |
| tinyfd_selectFolderDialog | back to summary |
|---|---|
| public static String tinyfd_selectFolderDialog(ByteBuffer aTitle, ByteBuffer aDefaultPath) Displays a folder selection dialog.
| |
| tinyfd_selectFolderDialog | back to summary |
|---|---|
| public static String tinyfd_selectFolderDialog(CharSequence aTitle, CharSequence aDefaultPath) Displays a folder selection dialog.
| |
| tinyfd_setGlobalInt | back to summary | ||||||
|---|---|---|---|---|---|---|---|
public static int tinyfd_setGlobalInt(ByteBuffer aIntVariableName, int aValue)
| |||||||
| tinyfd_setGlobalInt | back to summary | ||||||
|---|---|---|---|---|---|---|---|
public static int tinyfd_setGlobalInt(CharSequence aIntVariableName, int aValue)
| |||||||