FileInput

A file picker node.

Note, this node is hidden by default, use show or spawnPopup to display.

Constructors

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

Create a file picker.

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(Text!Label) 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(char[]) value()
Undocumented in source. Be warned that the author may not have intended to support it.
value
char[] value(char[] newValue)
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__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.

Inherited Members

From PopupFrame

__anonymous
mixin makeHoverable
Undocumented in source.
__anonymous
mixin enableInputActions
Undocumented in source.
anchor
Vector2 anchor;

Position the frame is "anchored" to. A corner of the frame will be chosen to match this position.

childPopup
PopupFrame childPopup;

A child popup will keep this focus alive while focused. Typically, child popups are spawned as a result of actions within the popup itself, for example in context menus, an action can spawn a submenu. Use spawnChildPopup to spawn child popups.

previousFocus
FluidFocusable previousFocus;

Node that had focus before popupFrame took over. When the popup is closed using a keyboard shortcut, this node will take focus again.

drawAnchored
void drawAnchored()

Draw the popup using the assigned anchor position.

anchoredStartCorner
Vector2 anchoredStartCorner()

Get start (top-left) corner of the popup if drawAnchored is to be used.

drawImpl
void drawImpl(Rectangle outer, Rectangle inner)
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.
focusImpl
bool focusImpl()
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.
restorePreviousFocus
void restorePreviousFocus()

Give focus to whatever node had focus before this one.

isFocused
alias isFocused = typeof(super).isFocused
Undocumented in source.
isFocused
bool isFocused [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta