- checkNeedLayout
bool checkNeedLayout(bool recursively)
Checks if the widget needs re-layout.
- disableState
void disableState(WidgetState state)
- draw
void draw(Window win)
Draws the widget.
Be called only by Window.
- draw
void draw(Window win, ColorSet parent)
- drawBox
void drawBox(Window win)
Undocumented in source. Be warned that the author may not have intended to support it.
- drawChildren
void drawChildren(Window win)
Undocumented in source. Be warned that the author may not have intended to support it.
- enableState
void enableState(WidgetState state)
- findChildAt
Widget findChildAt(vec2 pt)
Undocumented in source. Be warned that the author may not have intended to support it.
- handlePopup
void handlePopup(bool , WindowContext )
- infectWindowContext
void infectWindowContext()
Undocumented in source. Be warned that the author may not have intended to support it.
- layout
void layout(vec2i size)
Re-layouts the widget.
Be called only by Window.
- layout
vec2 layout(vec2 pos, vec2 size)
- requestLayout
void requestLayout()
- requestRedraw
void requestRedraw()
- setLayout
void setLayout(Args args)
- shift
void shift(vec2 size)
- _hovered
Widget _hovered;
Undocumented in source.
- setHovered
void setHovered(Widget child, vec2 pos)
Undocumented in source. Be warned that the author may not have intended to support it.
- cursor
const(Cursor) cursor [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- isTracked
isTracked [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- trackable
bool trackable [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- track
void track()
Undocumented in source. Be warned that the author may not have intended to support it.
- refuseTrack
void refuseTrack()
Undocumented in source. Be warned that the author may not have intended to support it.
- handleMouseEnter
bool handleMouseEnter(bool entered, vec2 pos)
Undocumented in source. Be warned that the author may not have intended to support it.
- handleMouseMove
bool handleMouseMove(vec2 pos)
Undocumented in source. Be warned that the author may not have intended to support it.
- handleMouseButton
bool handleMouseButton(MouseButton btn, bool status, vec2 pos)
Undocumented in source. Be warned that the author may not have intended to support it.
- handleMouseScroll
bool handleMouseScroll(vec2 amount, vec2 pos)
Undocumented in source. Be warned that the author may not have intended to support it.
- handleTracked
void handleTracked(bool a)
Undocumented in source. Be warned that the author may not have intended to support it.
- _focusChain
Widget _focusChain;
Undocumented in source.
- focusChain
focusChain [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- setFocusChain
void setFocusChain(Widget w)
Undocumented in source. Be warned that the author may not have intended to support it.
- pullFocusChain
bool pullFocusChain()
Undocumented in source. Be warned that the author may not have intended to support it.
- isFocused
isFocused [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- focusable
bool focusable [@property getter]
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.
- dropFocus
void dropFocus()
Undocumented in source. Be warned that the author may not have intended to support it.
- handleKey
bool handleKey(Key key, KeyState status)
Undocumented in source. Be warned that the author may not have intended to support it.
- handleTextInput
bool handleTextInput(dchar c)
Undocumented in source. Be warned that the author may not have intended to support it.
- handleFocused
void handleFocused(bool a)
Undocumented in source. Be warned that the author may not have intended to support it.
An empty widget.