DiWidget

Undocumented in source.

Constructors

this
this(DiWidget par)
Undocumented in source.
this
this(DiContext context)
Undocumented in source.

Members

Enums

EventCode
enum EventCode
Undocumented in source.

Functions

addChild
void addChild(DiWidget e)
Undocumented in source. Be warned that the author may not have intended to support it.
destruct
void destruct()
Undocumented in source. Be warned that the author may not have intended to support it.
find
DiWidget find(vec2 mpos, ubyte evcode)

поиск дочернего элемента по локальному положению мыши и коду события

forceReshape
void forceReshape(irect r)

принудительное изменение размера bbox, вне зависимости от фиксированности

removeChilds
auto removeChilds(DiWidget[] list)
Undocumented in source. Be warned that the author may not have intended to support it.
reparent
void reparent(DiWidget npar)
Undocumented in source. Be warned that the author may not have intended to support it.
setContext
void setContext(DiContext nctx)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

activeArea
const(DiArea) activeArea [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
drawRect
irect drawRect [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
focus
bool focus [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
focus
bool focus [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
isDestructed
bool isDestructed [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
lims
size_lim_t!int lims [@property getter]

возвращает копию пределов размера прямоугольника

offset
vec2 offset [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
offset
vec2 offset [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
rect
irect rect [@property getter]

возвращает копию прямоугольника

rect
irect rect [@property setter]

вызывает сигнал reshape

scale
vec2 scale [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
scale
vec2 scale [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
visible
bool visible [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
visible
bool visible [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

garbage
DiWidget[] garbage;
Undocumented in source.

Variables

act_area
DiArea act_area;
Undocumented in source.
activate
EmptySignal activate;
Undocumented in source.
changeChildsList
EmptySignal changeChildsList;
Undocumented in source.
childs
DiWidget[] childs;

список дочерних элементов

ctx
DiContext ctx;

контекст

cur
DiWidget cur;

текущий дочерний элемент

draw
SignalBoxNoArgs draw;
Undocumented in source.
evtext
CondDiTextSignal evtext;
Undocumented in source.
idle
EmptySignal idle;
Undocumented in source.
inner_offset
ivec2 inner_offset;

внутреннее смещение области для дочерних элементов

inner_scale
vec2 inner_scale;
Undocumented in source.
is_visible
bool is_visible;
Undocumented in source.
joystick
CondDiJoySignal joystick;
Undocumented in source.
keyboard
CondDiKeyboardSignal keyboard;
Undocumented in source.
layout
DiLayout layout;
Undocumented in source.
mouse
CondDiMouseSignal mouse;
Undocumented in source.
onDestruct
EmptySignal onDestruct;
Undocumented in source.
parent
DiWidget parent;

родительский элемент

processEventMask
ubyte processEventMask;

обрабатывает ли элемент события

relayout
EmptySignal relayout;
Undocumented in source.
release
EmptySignal release;
Undocumented in source.
reshape
ReshapeSignal reshape;
Undocumented in source.
size_lim
size_lim_t!int size_lim;

пределы для размера bbox

update
EmptySignal update;
Undocumented in source.

Meta