#include <CUILabel.h>
Inheritance diagram for CUILabel:
Public Member Functions | |
CUILabel (const CUIRect &aRectangle, const char *aTitle) | |
Creates CUILabel object. | |
virtual void | Draw () |
Draws this widget on the virtual screen. | |
virtual bool | HandlePenEvent (MInputReader::TTouchEventData &aData) |
Reacts on touch screen event. | |
virtual bool | HandleKeyEvent (MInputReader::TKeyEventData &aData) |
Reacts on keyboard or remote control input event. | |
virtual bool | SetEnabled (bool aEnabled) |
Changes widget's enabled state. Keyboard and touchscreen events are not sent to disabled widgets. | |
virtual bool | SetActive (bool aActive) |
Changes the iActive property of this widget. | |
virtual CDesktop::TColor | GetColor () |
Returns the color to draw this label with. | |
Public Attributes | |
CDesktop::TColor | iColor |
The label is always disabled
|
Creates CUILabel object.
|
|
Draws this widget on the virtual screen. The library does not provide any clipping mechanism, so the widget is completely responsible for drawing in its iRectangle. If the widget should be drawn fully or partially transparently over its iParent, it should call iParent->RestoreBackground() for every transparent region Implements MUIWidget. Reimplemented in CUIBitmap. |
|
Reacts on keyboard or remote control input event. It is permitted to re-draw this or other widgets as a response on this event. In this case the CUIEventLoop flushes the virtual screen automatically to ensure that it is displayed. In some cases it's necessary to completely re-draw the whole screen. If it's needed, the handling code should set CUIEventLoop::GetEventLoop().iForceFullRedraw to true.
Implements MUIWidget. |
|
Reacts on touch screen event. Returns true if the event was consumed. It is permitted to re-draw this or other widgets as a response on this event. In this case the CUIEventLoop flushes the virtual screen automatically to ensure that it is displayed. In some cases it's necessary to completely re-draw the whole screen. If it's needed, the handling code should set CUIEventLoop::GetEventLoop().iForceFullRedraw to true. Note that because of nature of the touchscreen, the widget could receive PenUp event (aData.iPressure == 0) with the aData.iX and aData.iY pointing outside of iRectangle of this widget. In this case the widget should not react for such an event or perform necessary cleanup if it has reacted on PenDown event (aData.iPressure != 0 ).
Implements MUIWidget. |
|
Changes the iActive property of this widget. Returns true if the state was changed Active widgets may Draw themselves with differently and they receive keyboard and remote control events. Only one visible widget could be active at a time. Reimplemented from MUIWidget. |
|
Changes widget's enabled state. Keyboard and touchscreen events are not sent to disabled widgets. Returns true is the state was changed Reimplemented from MUIWidget. |
|
Color to draw this label with. If zero, GetColorScheme()->ButtonFontColor() is used |