- text
dstring text;
Undocumented in source.
- source
string source;
Undocumented in source.
- position
Coordinate position;
DO NOT MODIFY IT EXTERNALLY! Contains the position of the element.
- output
BitmapDrawer output;
Contains the output of the drawing functions
- elementContainer
ElementContainer elementContainer;
Points to the container for two-way communication
- customStyle
StyleSheet customStyle;
Undocumented in source.
- state
bool state;
Undocumented in source.
- inputHandler
InputHandler inputHandler;
Common input handler, must be set upon program initialization
- popUpHandler
PopUpHandler popUpHandler;
- styleSheet
StyleSheet styleSheet;
Basic stylesheet, all elements default to this if no alternative found
- onDraw
void delegate() onDraw;
Called when drawing is finished
- onMouseLClickRel
void delegate(Event ev) onMouseLClickRel;
Called on left mouseclick released
- onMouseRClickRel
void delegate(Event ev) onMouseRClickRel;
Called on right mouseclick released
- onMouseMClickRel
void delegate(Event ev) onMouseMClickRel;
Called on middle mouseclick released
- onMouseHover
void delegate(Event ev) onMouseHover;
Called if mouse is on object
- onMouseMove
void delegate(Event ev) onMouseMove;
Called if mouse is moved on object
- onMouseLClickPre
void delegate(Event ev) onMouseLClickPre;
Called on left mouseclick pressed
- onMouseRClickPre
void delegate(Event ev) onMouseRClickPre;
Called on right mouseclick pressed
- onMouseMClickPre
void delegate(Event ev) onMouseMClickPre;
Called on middle mouseclick pressed
- onClick
void onClick(int offsetX, int offsetY, int state, ubyte button)
Undocumented in source. Be warned that the author may not have intended to support it.
- onDrag
void onDrag(int x, int y, int relX, int relY, ubyte button)
Undocumented in source. Be warned that the author may not have intended to support it.
- onScroll
void onScroll(int x, int y, int wX, int wY)
Undocumented in source. Be warned that the author may not have intended to support it.
- getX
int getX [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- getY
int getY [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- getPosition
Coordinate getPosition [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- draw
void draw()
Updates the output. Every subclass must override it.
- getText
dstring getText()
Undocumented in source. Be warned that the author may not have intended to support it.
- setText
void setText(dstring s)
Undocumented in source. Be warned that the author may not have intended to support it.
- getAvailableStyleSheet
StyleSheet getAvailableStyleSheet()
Undocumented in source. Be warned that the author may not have intended to support it.
- setCustomStyle
void setCustomStyle(StyleSheet s)
Undocumented in source. Be warned that the author may not have intended to support it.
- setState
void setState(bool b)
Enables (b = true) or disables (b = false) the element. All element is enabled by default.
- getState
bool getState()
Gets the state of the element.
- getSource
string getSource [@property getter]
Returns the source string.