FileInput

A file picker node.

Note, this node is hidden by default, use show to show. Styles:

  • selectedStyle = Style for the currently selected suggestion.

Constructors

this
this(Theme theme, string name, void delegate() @(trusted) submitted, void delegate() @(trusted) cancelled)

Create a file picker.

this
this(string name, void delegate() @(trusted) submitted, void delegate() @(trusted) cancelled)
Undocumented in source.

Members

Classes

FilenameInput
class FilenameInput
Undocumented in source.

Functions

cancel
void cancel()

Cancel picking files, triggering cancelled event.

clearSuggestions
void clearSuggestions()

Clear suggestions

drawImpl
void drawImpl(Rectangle outer, Rectangle inner)
Undocumented in source. Be warned that the author may not have intended to support it.
focus
void focus()
Undocumented in source. Be warned that the author may not have intended to support it.
isFocused
bool isFocused()
Undocumented in source. Be warned that the author may not have intended to support it.
keyboardImpl
bool keyboardImpl()
Undocumented in source. Be warned that the author may not have intended to support it.
mouseImpl
void mouseImpl()
Undocumented in source. Be warned that the author may not have intended to support it.
resizeImpl
void resizeImpl(Vector2 space)
Undocumented in source. Be warned that the author may not have intended to support it.
text
inout(string) text()
Undocumented in source. Be warned that the author may not have intended to support it.
updateSuggestions
void updateSuggestions()

Refresh the suggestion list.

value
inout(string) value()
Undocumented in source. Be warned that the author may not have intended to support it.
value
string value(string newValue)
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin defineStyles!("unselectedStyle", q{ Style.init }, "selectedStyle", q{ unselectedStyle }, "suggestionHoverStyle", q{ selectedStyle })
Undocumented in source.
__anonymous
mixin enableInputActions
Undocumented in source.

Variables

cancelled
void delegate() cancelled;

Callback to run when input was cancelled.

submitted
void delegate() submitted;

Callback to run when input was submitted.

suggestionLimit
size_t suggestionLimit;

Max amount of suggestions that can be provided.

Mixed In Members

From mixin defineStyles!("unselectedStyle", q{ Style.init }, "selectedStyle", q{ unselectedStyle }, "suggestionHoverStyle", q{ selectedStyle })

reloadStylesImpl
void reloadStylesImpl()
Undocumented in source. Be warned that the author may not have intended to support it.
loadDefaultStyles
void loadDefaultStyles()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta