DiImage

Undocumented in source.

Constructors

this
this(DiWidget par, irect r)
Undocumented in source.
this
this(DiWidget par, irect r, Image im)
Undocumented in source.
this
this(DiWidget par, irect r, ImageReadAccess ira)
Undocumented in source.

Members

Enums

AspectRatio
enum AspectRatio
Undocumented in source.
LineAlign
enum LineAlign
Undocumented in source.

Functions

image
void image(Image im)
Undocumented in source. Be warned that the author may not have intended to support it.
image
void image(ImageReadAccess ira)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

alignX
LineAlign alignX [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
alignX
LineAlign alignX [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
alignY
LineAlign alignY [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
alignY
LineAlign alignY [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
aspectRatio
AspectRatio aspectRatio [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
aspectRatio
AspectRatio aspectRatio [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

asprat
AspectRatio asprat;
Undocumented in source.
plane
DiDrawRect plane;
Undocumented in source.
px
LineAlign px;
py
LineAlign py;
Undocumented in source.
tc
imsize_t tc;
Undocumented in source.

Inherited Members

From DiWidget

act_area
DiArea act_area;
Undocumented in source.
setContext
void setContext(DiContext nctx)
Undocumented in source. Be warned that the author may not have intended to support it.
addChild
void addChild(DiWidget e)
Undocumented in source. Be warned that the author may not have intended to support it.
garbage
DiWidget[] garbage;
Undocumented in source.
removeChilds
auto removeChilds(DiWidget[] list)
Undocumented in source. Be warned that the author may not have intended to support it.
changeChildsList
EmptySignal changeChildsList;
Undocumented in source.
size_lim
size_lim_t!int size_lim;

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

forceReshape
void forceReshape(irect r)

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

processEventMask
ubyte processEventMask;

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

ctx
DiContext ctx;

контекст

parent
DiWidget parent;

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

childs
DiWidget[] childs;

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

cur
DiWidget cur;

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

inner_offset
ivec2 inner_offset;

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

inner_scale
vec2 inner_scale;
Undocumented in source.
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.
EventCode
enum EventCode
Undocumented in source.
find
DiWidget find(vec2 mpos, ubyte evcode)

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

is_visible
bool is_visible;
Undocumented in source.
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.
drawRect
irect drawRect [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
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.
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.
activeArea
const(DiArea) activeArea [@property getter]
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

lims
size_lim_t!int lims [@property getter]

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

reparent
void reparent(DiWidget npar)
Undocumented in source. Be warned that the author may not have intended to support it.
reshape
ReshapeSignal reshape;
Undocumented in source.
layout
DiLayout layout;
Undocumented in source.
relayout
EmptySignal relayout;
Undocumented in source.
activate
EmptySignal activate;
Undocumented in source.
release
EmptySignal release;
Undocumented in source.
update
EmptySignal update;
Undocumented in source.
idle
EmptySignal idle;
Undocumented in source.
draw
SignalBoxNoArgs draw;
Undocumented in source.
keyboard
CondDiKeyboardSignal keyboard;
Undocumented in source.
mouse
CondDiMouseSignal mouse;
Undocumented in source.
joystick
CondDiJoySignal joystick;
Undocumented in source.
evtext
CondDiTextSignal evtext;
Undocumented in source.
onDestruct
EmptySignal onDestruct;
Undocumented in source.
destruct
void destruct()
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.

Meta