TextWidget

A widget of text.

Constructors

this
this()

Members

Functions

draw
void draw(Window win, ColorSet parent)
drawText
void drawText(Window win)
Undocumented in source. Be warned that the author may not have intended to support it.
loadText
void loadText(dstring v, FontFace f)

Changes text.

Properties

focusable
bool focusable [@property getter]
font
FontFace font [@property getter]

Font.

text
dstring text [@property getter]

Text.

textOriginRate
ref textOriginRate [@property getter]

Rate of text origin.

trackable
bool trackable [@property getter]
wantedSize
vec2 wantedSize [@property getter]

Variables

_font
FontFace _font;
Undocumented in source.
_text
dstring _text;
Undocumented in source.
_textElm
TextElement _textElm;
Undocumented in source.
textPosRate
vec2 textPosRate;

Rate of text position.

Inherited Members

From Widget

_status
uint _status;
Undocumented in source.
status
status [@property getter]

Current status.

_context
WindowContext _context;
Undocumented in source.
_style
WidgetStyle _style;
Undocumented in source.
style
WidgetStyle style [@property getter]

Style of the widget.

_colorset
ColorSet _colorset;
Undocumented in source.
colorset
colorset [@property getter]

Current colorset.

_layout
Layout _layout;
Undocumented in source.
_box
BoxElement _box;
Undocumented in source.
_needLayout
bool _needLayout;
Undocumented in source.
findChildAt
Widget findChildAt(vec2 pt)
Undocumented in source. Be warned that the author may not have intended to support it.
__anonymous
mixin Mouse
Undocumented in source.
__anonymous
mixin Keyboard
Undocumented in source.
handlePopup
void handlePopup(bool , WindowContext )
wantedSize
vec2 wantedSize [@property getter]
children
Widget[] children [@property getter]

Child widgets.

calcedChildren
Widget[] calcedChildren [@property getter]

Child widgets that have no uncalculated style properties.

childLayoutables
Layoutable[] childLayoutables [@property getter]

Child widgets that are converted to Layoutables.

infectWindowContext
void infectWindowContext()
Undocumented in source. Be warned that the author may not have intended to support it.
enableState
void enableState(WidgetState state)

Enables the state.

disableState
void disableState(WidgetState state)

Disables the state.

setLayout
void setLayout(Args args)

Changes Layout object.

needLayout
bool needLayout [@property getter]

Checks if the widget needs re-layout.

requestLayout
void requestLayout()

Set needLayout true.

layout
void layout(vec2i size)

Re-layouts the widget. Be called only by Window.

layout
vec2 layout(vec2 pos, vec2 size)

Re-layouts the widget.

shiftChildren
void shiftChildren(vec2 size)

Moves all children.

needRedraw
bool needRedraw [@property getter]

Checks if the widget needs redrawing.

requestRedraw
void requestRedraw()

Sets needRedraw true.

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.
draw
void draw(Window win)

Draws the widget. Be called only by Window.

draw
void draw(Window win, ColorSet parent)

Draws the widget.

Meta