WidgetStyle

A style data of widget.

Constructors

this
this()

Members

Functions

calc
void calc(WidgetStyleCalcContext ctx)

Calculates the all styles.

inheritColorSet
ColorSet inheritColorSet(ColorSet src, uint status)

Make src inherit the colorset.

isPointInside
bool isPointInside(vec2 pt)

Checks if pt is inside of border.

isWidgetInside
bool isWidgetInside(WidgetStyle target)

Checks if target is outside of border.

shift
void shift(vec2 size)

Moves x and y scalars.

Mixins

__anonymous
mixin AttributesUtilities
Undocumented in source.

Properties

clientLeftTop
clientLeftTop [@property getter]

Left top position + margins + border + paddings.

translate
translate [@property getter]

Left top position.

Variables

box
BoxStyle box;

Box style.

colorsets
ColorSet[WidgetState] colorsets;

Colorset data. Please inherit the parent's before using.

floating
bool floating;

Whether the widget is floating. When true, spaces for the widget won't be reserved.

x
Scalar x;
y
Scalar y;

Left top position. This shouldn't be specified.,

Mixed In Members

From mixin AttributesUtilities

isAuto
isAuto [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
isRelative
bool isRelative [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
isAbsolute
isAbsolute [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
isCalced
isCalced [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta