WidgetStyle

A style data of widget.

Constructors

this
this()

Members

Functions

calc
void calc(WidgetStyleCalcContext ctx)

Calculates the all styles.

getColorSet
ColorSet getColorSet(uint status)

Calculates colorset from status.

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.

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