#include <ctrl_generic.hpp>
Inheritance diagram for CtrlGeneric:
Public Member Functions | |
virtual void | handleEvent (EvtGeneric &rEvent) |
Handle an event on the control. | |
virtual bool | mouseOver (int x, int y) const |
Check whether coordinates are inside the control. | |
virtual void | draw (OSGraphics &rImage, int xDest, int yDest) |
Draw the control on the given graphics. | |
virtual void | setLayout (GenericLayout *pLayout, const Position &rPosition) |
Set the position and the associated layout of the control. | |
virtual const Position * | getPosition () const |
Get the position of the control in the layout, if any. | |
virtual UString | getTooltipText () const |
Get the text of the tooltip. | |
virtual void | onResize () |
virtual const UString & | getHelpText () const |
Get the help text. | |
virtual bool | isFocusable () const |
Return true if the control can gain the focus. | |
virtual bool | isVisible () const |
Return true if the control is visible. | |
virtual string | getType () const |
Get the type of control (custom RTTI). | |
Protected Member Functions | |
virtual void | notifyLayout (int witdh=-1, int height=-1, int xOffSet=0, int yOffSet=0) const |
void | notifyLayoutMaxSize (const OSGraphics *pImg1=NULL, const OSGraphics *pImg2=NULL) |
virtual void | captureMouse () const |
Ask the layout to capture the mouse. | |
virtual void | releaseMouse () const |
Ask the layout to release the mouse. | |
virtual void | notifyTooltipChange () const |
Notify the window the tooltip has changed. | |
virtual TopWindow * | getWindow () const |
Get the associated window, if any. | |
virtual void | onPositionChange () |
virtual void | onVarBoolUpdate (VarBool &rVar) |
Overload this method to get notified of bool variable changes. |
Definition at line 44 of file ctrl_generic.hpp.
|
Tell the layout when the image has changed, with the size of the rectangle to repaint and its offset. Use the default values to repaint the whole window Definition at line 72 of file ctrl_generic.cpp. References GenericLayout::onControlUpdate(). Referenced by CtrlTree::handleEvent(), CtrlList::handleEvent(), notifyLayoutMaxSize(), CtrlTree::onResize(), and CtrlList::onResize(). |
|
Same as notifyLayout(), but takes optional images as parameters. The maximum size(s) of the images will be used for repainting. Definition at line 83 of file ctrl_generic.cpp. References OSGraphics::getHeight(), OSGraphics::getWidth(), and notifyLayout(). |
|
Overload this method if you want to do something special when the Position object is set Definition at line 115 of file ctrl_generic.hpp. Referenced by setLayout(). |
|
Overload this method if you want to do something special when the layout is resized Reimplemented in CtrlList, CtrlTree, and CtrlVideo. Definition at line 71 of file ctrl_generic.hpp. |