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

previousFocusable
Focusable previousFocusable;

Node that was focused before the popup was opened. Using restorePreviousFocus, it can be given focus again, closing the popup. This is the default behavior for the escape key while a popup is open.

toTakeFocus
bool toTakeFocus;

If true, the frame will claim focus on the next *resize*. This is used to give the popup focus when it is spawned, respecting currently active FocusIO.

lastFocusBox
Optional!Rectangle lastFocusBox()
Undocumented in source. Be warned that the author may not have intended to support it.
orderedFocusAction
inout(OrderedFocusAction) orderedFocusAction()
Undocumented in source. Be warned that the author may not have intended to support it.
positionalFocusAction
inout(PositionalFocusAction) positionalFocusAction()
Undocumented in source. Be warned that the author may not have intended to support it.
anchor
deprecated inout(Vector2) anchor()
anchor
Rectangle anchor(Rectangle value)

Set a new rectangular anchor.

getAnchor
Rectangle getAnchor()
getAnchor
Rectangle getAnchor(Rectangle )
Undocumented in source. Be warned that the author may not have intended to support it.
drawAnchored
void drawAnchored(Node parent)
anchoredStartCorner
Vector2 anchoredStartCorner()

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

resizeImpl
void resizeImpl(Vector2 space)
Undocumented in source. Be warned that the author may not have intended to support it.
toRemove
alias toRemove = typeof(super).toRemove
Undocumented in source.
toRemove
bool toRemove()

PopupFrame will automatically be marked for removal if not focused.

drawImpl
void drawImpl(Rectangle outer, Rectangle inner)
Undocumented in source. Be warned that the author may not have intended to support it.
actionImpl
bool actionImpl(IO io, int number, InputActionID actionID, bool isActive)
Undocumented in source.
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.
opEquals
alias opEquals = typeof(super).opEquals
Undocumented in source.
opEquals
bool opEquals(Object other)
Undocumented in source. Be warned that the author may not have intended to support it.
emitEvent
void emitEvent(InputEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
typeText
void typeText(char[] text)
Undocumented in source. Be warned that the author may not have intended to support it.
readText
char[] readText(char[] buffer, int offset)
Undocumented in source. Be warned that the author may not have intended to support it.
currentFocus
inout(Focusable) currentFocus()
Undocumented in source. Be warned that the author may not have intended to support it.
currentFocus
Focusable currentFocus(Focusable newValue)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta