- checkNeedLayout
bool checkNeedLayout(bool recursively)
Checks if the widget needs re-layout.
- 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.
- findChildAt
Widget findChildAt(vec2 pt)
Undocumented in source. Be warned that the author may not have intended to support it.
- handleChangeStatus
void handleChangeStatus(WidgetState s, bool )
- 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)
- calcedChildren
Widget[] calcedChildren [@property getter]
Child widgets that have no uncalculated style properties.
- childLayoutables
Layoutable[] childLayoutables [@property getter]
Child widgets that are casted to Layoutable.
- childPlacerOwners
PlacerOwner[] childPlacerOwners [@property getter]
Child widgets that are casted to PlacerOwner.
- children
Widget[] children [@property getter]
- colorset
colorset [@property getter]
- layoutObject
inout(Layout) layoutObject [@property getter]
- needLayout
bool needLayout [@property getter]
Checks if the widget needs re-layout.
- needRedraw
bool needRedraw [@property getter]
Checks if the widget needs redrawing.
- status
inout(WidgetStatus) status [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- style
inout(WidgetStyle) style [@property getter]
- wantedSize
vec2 wantedSize [@property getter]
- _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.