GuiContext

Undocumented in source.
class GuiContext {}

Constructors

this
this(IGuiRenderer guiRenderer, TimerManager timerMan, TemplateManager templateMan, GuiSkin skin)
Undocumented in source.

Members

Aliases

BehaviorCreator
alias BehaviorCreator = IWidgetBehavior delegate()
Undocumented in source.
LayoutCreator
alias LayoutCreator = ILayout delegate()
Undocumented in source.
WidgetCreator
alias WidgetCreator = Widget delegate()
Undocumented in source.

Functions

addRoot
void addRoot(Widget root)
Undocumented in source. Be warned that the author may not have intended to support it.
createWidget
Widget createWidget(string type, Widget parent)
Undocumented in source. Be warned that the author may not have intended to support it.
getWidgetById
Widget getWidgetById(string id)

Returns widget found by given id.

update
void update(double deltaTime)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

clipboardString
string clipboardString [@property setter]

Used to set current clipboard string

clipboardString
string clipboardString [@property getter]

Used to get current clipboard string

eventDispatcher
EventDispatcher eventDispatcher [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
getClipboardStringCallback
dstring delegate() getClipboardStringCallback [@property setter]

Will be used by window to provide clipboard functionality.

guiRenderer
IGuiRenderer guiRenderer [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
overlay
Widget overlay [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
roots
auto roots [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
setClipboardStringCallback
void delegate(dstring) setClipboardStringCallback [@property setter]

Will be used by window to provide clipboard functionality.

size
ivec2 size [@property setter]

Sets new size for all root widgets.

templateManager
TemplateManager templateManager [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
timerManager
TimerManager timerManager [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
tooltipManager
TooltipManager tooltipManager [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
widgetManager
WidgetManager widgetManager [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_eventDispatcher
EventDispatcher _eventDispatcher;
Undocumented in source.
_getClipboardStringCallback
dstring delegate() _getClipboardStringCallback;

This will be called when widget requests clipboard string.

_guiRenderer
IGuiRenderer _guiRenderer;

Gui renderer used for drawing all children widgets.

_overlay
Widget _overlay;
Undocumented in source.
_roots
Widget[] _roots;
Undocumented in source.
_setClipboardStringCallback
void delegate(dstring newClipboardString) _setClipboardStringCallback;

This will be called when widget sets clipboard string.

_templateManager
TemplateManager _templateManager;
Undocumented in source.
_timerManager
TimerManager _timerManager;

Used for timers.

_tooltipManager
TooltipManager _tooltipManager;
Undocumented in source.
_wman
WidgetManager _wman;
Undocumented in source.
behaviorFactories
BehaviorCreator[][string] behaviorFactories;
Undocumented in source.
layoutFactories
LayoutCreator[string] layoutFactories;
Undocumented in source.
modifiers
uint modifiers;
Undocumented in source.
widgetFactories
WidgetCreator[string] widgetFactories;
Undocumented in source.

Meta