DiWidget

Constructors

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

Members

Functions

actionOnEvent
bool actionOnEvent(in DiInputEvent ev)

if do some action return true, false otherwise

createShape
DiShape createShape()

create shape object (default rect)

findChildByEvent
DiWidget findChildByEvent(in DiInputEvent ev)
prepare
void prepare()

create childs widgets, set params, etc

processInput
void processInput(in DiInputEvent ev)
relayout
void relayout()
render
void render()
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

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]

Variables

_active
bool _active;
_canvas
DiCanvas _canvas;
_context
DiContext _context;
_enable
bool _enable;
_focus
bool _focus;
_shape
DiShape _shape;
_visible
bool _visible;
current
DiWidget current;
layout
DiLayout layout;

Inherited Members

From DiLayoutItem

shape
DiShape shape [@property getter]
shape
const(DiShape) shape [@property getter]

Meta