DiWidget

Constructors

this
this(DiWidget par)
this
this(DiContext ctx)

Members

Functions

actionOnEvent
bool actionOnEvent(DiInputEvent ev)

if do some action return true, false otherwise

createShape
DiShape createShape()

create shape object (default rect)

diw_attachCallback
void diw_attachCallback(DiWidget[] list)
Undocumented in source. Be warned that the author may not have intended to support it.
diw_detachCallback
void diw_detachCallback(DiWidget[] list)
Undocumented in source. Be warned that the author may not have intended to support it.
findChildByEvent
DiWidget findChildByEvent(DiInputEvent ev)
prepare
void prepare()

create childs widgets, set params, etc

processInput
void processInput(DiInputEvent ev)
relayout
void relayout()
render
void render()
selfDestroy
void selfDestroy()
Undocumented in source. Be warned that the author may not have intended to support it.
selfRender
void selfRender()

draw something on canvas or direct GL calls

selfUpdate
void selfUpdate()
setContext
void setContext(DiContext ctx)
setParent
void setParent(DiWidget par)
update
void update()
updateContextDeps
void updateContextDeps()

call when context is changed

Mixins

__anonymous
mixin DES
Undocumented in source.
__anonymous
mixin diw_TNodeHelper!(true, true)
Undocumented in source.
__anonymous
mixin ClassLogger
Undocumented in source.

Properties

active
bool active [@property getter]
active
bool active [@property setter]
canvas
DiCanvas canvas [@property getter]
context
DiContext context [@property getter]
enable
bool enable [@property getter]
enable
bool enable [@property setter]
focus
bool focus [@property getter]
focus
bool focus [@property setter]
pos
DiVec pos [@property getter]
DiVec pos [@property setter]

easy access to shape pos

shape
DiShape shape [@property getter]
shape
const(DiShape) shape [@property getter]
size
DiVec size [@property getter]
DiVec size [@property setter]

easy access to shape size

visible
bool visible [@property getter]
visible
bool visible [@property setter]
_active
bool _active;

Variables

_canvas
DiCanvas _canvas;
_context
DiContext _context;
_enable
bool _enable;
_focus
bool _focus;
_shape
DiShape _shape;
_visible
bool _visible;
current
DiWidget current;
layout
DiLayout layout;
name
dstring name;
Undocumented in source.
onChangeActive
Signal!DiWidget onChangeActive;
Undocumented in source.
onChangeEnable
Signal!DiWidget onChangeEnable;
Undocumented in source.
onChangeFocus
Signal!DiWidget onChangeFocus;
Undocumented in source.
onChangeVisible
Signal!DiWidget onChangeVisible;
Undocumented in source.

Inherited Members

From DiLayoutItem

shape
DiShape shape [@property getter]
shape
const(DiShape) shape [@property getter]
relayout
void relayout()
Undocumented in source.

Meta