Guiliani  Version 2.4 revision 5970 (build 3)
CGUIBehaviour Class Reference

CGUIBehaviour base class. More...

#include <GUIBehaviour.h>

Inheritance diagram for CGUIBehaviour:

Public Member Functions

virtual eC_Bool DoUserEvent (CGUIEvent *const pEvent)
 
virtual void OnCreate ()
 
virtual void OnDelete ()
 
virtual void OnHide ()
 
virtual void OnShow ()
 
Mouse Events
virtual eC_Bool DoClick (const eC_Value &vAbsX=eC_FromInt(-1), const eC_Value &vAbsY=eC_FromInt(-1))
 
virtual eC_Bool DoLongClick (const eC_Value &vAbsX=eC_FromInt(-1), const eC_Value &vAbsY=eC_FromInt(-1))
 
virtual eC_Bool DoDoubleClick (const eC_Value &vAbsX=eC_FromInt(-1), const eC_Value &vAbsY=eC_FromInt(-1))
 
virtual eC_Bool DoButtonDown (const eC_Value &vAbsX=eC_FromInt(-1), const eC_Value &vAbsY=eC_FromInt(-1))
 
virtual eC_Bool DoButtonUp (const eC_Value &vAbsX=eC_FromInt(-1), const eC_Value &vAbsY=eC_FromInt(-1))
 
virtual eC_Bool DoDrag (const eC_Value &vDeltaX=eC_FromInt(-1), const eC_Value &vDeltaY=eC_FromInt(-1), const eC_Value &vAbsX=eC_FromInt(-1), const eC_Value &vAbsY=eC_FromInt(-1))
 
virtual eC_Bool DoDragEnd (const eC_Value &vAbsX=eC_FromInt(-1), const eC_Value &vAbsY=eC_FromInt(-1))
 
virtual eC_Bool DoMouseEnter (const eC_Value &vAbsX=eC_FromInt(-1), const eC_Value &vAbsY=eC_FromInt(-1))
 
virtual eC_Bool DoMouseLeave (const eC_Value &vAbsX=eC_FromInt(-1), const eC_Value &vAbsY=eC_FromInt(-1))
 
virtual eC_Bool DoMouseMove (const eC_Value &vAbsX=eC_FromInt(-1), const eC_Value &vAbsY=eC_FromInt(-1))
 
Focus Events
virtual eC_Bool FocusPrevious (CGUIObject *const pRefObj=NULL, const eC_Bool &bSubTreeOfRefObjDone=false)
 
virtual eC_Bool FocusNext (CGUIObject *const pRefObj=NULL, const eC_Bool &bSubTreeOfRefObjDone=false)
 
virtual void GetFocus ()
 
virtual void LoseFocus ()
 
Keyboard Events
virtual eC_Bool Decrease ()
 
virtual eC_Bool Increase ()
 
virtual eC_Bool DoKeyDown (const GUIKeyIdentifier_t &eKeyIdentifier, const eC_UInt &uiModifiers)
 
virtual eC_Bool DoKeyUp (const GUIKeyIdentifier_t &eKeyIdentifier, const eC_UInt &uiModifiers)
 
virtual eC_Bool DoChar (const eC_UInt &uiKey, const GUIKeyIdentifier_t &eKeyIdentifier, const eC_UInt &uiModifiers)
 
Scroll Events
virtual eC_Bool DoScrollUp (const eC_Value &vAbsX, const eC_Value &vAbsY)
 
virtual eC_Bool DoScrollDown (const eC_Value &vAbsX, const eC_Value &vAbsY)
 
virtual eC_Bool DoScrollLeft (const eC_Value &vAbsX, const eC_Value &vAbsY)
 
virtual eC_Bool DoScrollRight (const eC_Value &vAbsX, const eC_Value &vAbsY)
 
- Public Member Functions inherited from CGUIStreamableObject
const eC_String & GetXMLTag () const
 
virtual void ReadFromStream ()
 
void SetXMLTag (const eC_String &kXMLTag)
 
virtual void WriteToStream (const eC_Bool bWriteClassID=false)
 

Static Public Attributes

static const eC_Char XMLTAG_BEHAVIOURCLASSID [] = "BehaviourClassID"
 XML tag to be used when writing a behaviour class ID into a stream.
 
- Static Public Attributes inherited from CGUIStreamableObject
static const eC_Char XMLTAG_CLASSVERSION [] = "ClassVersion"
 

Additional Inherited Members

- Protected Member Functions inherited from CGUIStreamableObject
eC_UInt ReadStreamingHeader (const eC_UInt &uiClassVersion, const eC_UInt &uiClassMinVersion=0) const
 
void WriteStreamingFooter (const eC_Bool &bWriteClassID) const
 
void WriteStreamingHeader (const eC_Bool &bWriteClassID, const eC_Char *const pkClassIDTag, const eC_Int &iClassID, const eC_UInt &uiClassVersion) const
 

Detailed Description

CGUIBehaviour base class.

The methods of CGUIBehaviour define Guiliani's standard event handling slots. These slots will be called by CGUIEventHandler automatically in response to specific user actions. (see Mappings from events to event handling slots for the detailed information of events to handling methods).

Also, please refer to Exemplary sequence of events for further information.

Thus, if a control needs special handling for the associated events it can reimplement the corresponding slots with the desired functionality. When inheriting customized controls from Guiliani's standard set of widgets, it is advisable to call the base-class implementation of the overwritten method. Failure to do so may break the base classes default behaviour.

Member Function Documentation

◆ Decrease()

eC_Bool CGUIBehaviour::Decrease ( )
virtual

Called when the object receives a standard GK_PAGEDOWN event. For a simple object there is nothing to do but to indicate that the event has not been handled. For a standardized event handling mechanism, this method must exist.

Returns
True If the event has been handled.
false Else.

Reimplemented in CGUIProgressBar, CGUICarousel, CGUIAbstractBar, CGUICompositeBehaviour, CGUIRadialProgressBar, and CGUICmdBehaviour.

◆ DoButtonDown()

eC_Bool CGUIBehaviour::DoButtonDown ( const eC_Value &  vAbsX = eC_FromInt(-1),
const eC_Value &  vAbsY = eC_FromInt(-1) 
)
virtual

Called when the mouse button or finger is pressed down over an object.

Note
DoButtonDown() should work on the absolute positions of this object, that were set at the time of the passed redraw, as the user expects to click on what he sees and not to click on the object in a newer and probably intermediate state that he currently does not see in this state. Thus, to calculate the relative position (where the object was pressed relative to the origin of this object) from the vAbsY argument you must do it like this: vMyRelYPos = vAbsY - GetAbsYPos().
Parameters
vAbsXX-position in screen coordinates where the click occurred
vAbsYY-position in screen coordinates where the click occurred
Returns
True The event has been handled.
False The event has not been handled. In this base implementation always returns False.

Reimplemented in CGUIListBox, CGUIBaseInputField, CGUIMultiLineEdit, CGUITouchScrollView, CGUIEdit, CGUIImageStack, CGUIWheel, CGUIPrimitiveButton, CGUIScrollBar, CGUIBaseButton, CGUIBaseSlider, CGUIBaseMessageBox, CGUIChart, CGUISegmentBar, CGUIPageContainer, CGUIWheelContainer, CGUICompositeBehaviour, CGUIRadialSlider, CGUIRangeSlider, CGUISplitContainer, CGUICalendar, CGUICircularSlider, CGUIAutoRepeatBehaviour, CGUICmdBehaviour, and CGUIHeaderItem.

◆ DoButtonUp()

eC_Bool CGUIBehaviour::DoButtonUp ( const eC_Value &  vAbsX = eC_FromInt(-1),
const eC_Value &  vAbsY = eC_FromInt(-1) 
)
virtual

Called when the mouse button or finger is released. The object under the mouse at the time of releasing will receive this event.

Note
DoButtonUp() should work on the absolute positions of this object, that were set at the time of the passed redraw, as the user expects to click on what he sees and not to click on an object in a newer and probably intermediate state that he currently does not see in this state. Thus, to calculate the relative position (where the button was released relative to the origin of this object) from the vAbsY argument you must do it like this: vMyRelYPos = vAbsY - GetAbsYPos().
Parameters
vAbsXX-position in screen coordinates where the mouse was released.
vAbsYY-position in screen coordinates where the mouse was released.
Returns
True The event has been handled.
False The event has not been handled. In this base implementation always returns False.

Reimplemented in CGUIPrimitiveButton, CGUIBaseButton, CGUICompositeBehaviour, CGUISplitContainer, CGUIAutoRepeatBehaviour, CGUICmdBehaviour, and CGUIKeyboardBehaviour.

◆ DoChar()

eC_Bool CGUIBehaviour::DoChar ( const eC_UInt &  uiKey,
const GUIKeyIdentifier_t eKeyIdentifier,
const eC_UInt &  uiModifiers 
)
virtual

Called in reaction to a ET_CHAR event, which means in general that a character key was pressed. In this slot you will get the character with the Guiliani key identifier and modifiers. In most cases the Guiliani key identifier will be GK_NONE. But there are some special cases (e.g. Smartphones) for which it makes sense to send a Guiliani-Key identifier (GK_INTERMIT) even if a character key was pressed.

Parameters
uiKeyCharacter of the pressed key.
eKeyIdentifierThe Guiliani key identifier.
uiModifiersThe key modifiers bitfield.
Returns
True If the event has been handled.
false Else.

Reimplemented in CGUIComboBox, CGUIEdit, CGUICompositeBehaviour, and CGUICmdBehaviour.

◆ DoClick()

eC_Bool CGUIBehaviour::DoClick ( const eC_Value &  vAbsX = eC_FromInt(-1),
const eC_Value &  vAbsY = eC_FromInt(-1) 
)
virtual

Called when the object receives a click event. A click can e.g., be the result of a mouse click, a finger press/release sequence on touchscreens, or be triggered by a GK_ACTION keyboard event.

Note
DoClick() should work on the absolute positions of this object, that were set at the time of the passed redraw, as the user expects to click on what he sees and not to click on an object in a newer and probably intermediate state that he currently does not see. Thus, to calculate the relative position (where the mouse button was pressed and released at the same position for in a certain time span, relative to the origin of this object) from the vAbsY argument you must do it like this: vMyRelYPos = vAbsY - GetAbsYPos().
Parameters
vAbsXX-position in screen coordinates where the click occurred
vAbsYY-position in screen coordinates where the click occurred
Returns
True The event has been handled.
False The event has not been handled. In this base implementation it always returns False.

Reimplemented in CGUIComboBox, CGUITableView, CGUIListBox, CGUITouchScrollView, CGUIMenuBar, CGUIWheel, CGUIMenuItem, CGUIPrimitiveButton, CGUIBaseButton, CGUISegmentBar, CGUIChart, CGUIBaseSlider, CGUIBaseCheckBox, CGUIPageContainer, CGUIBaseRadioButton, CGUIRadialSlider, CGUIRangeSlider, CGUICalendar, CGUIBaseMessageBox, CGUIRadioButtonGroup, CGUICompositeBehaviour, CGUICircularSlider, CGUIMenu, CGUIScrollBar, CGUIAutoRepeatBehaviour, CGUIObjectVisualsBehaviour, CGUIObjectStateBehaviour, CGUITabSwitchBehaviour, CGUITabItemBehaviour, CGUICmdBehaviour, CGUIExpandingCompositeBehaviour, and CGUIKeyboardBehaviour.

◆ DoDoubleClick()

eC_Bool CGUIBehaviour::DoDoubleClick ( const eC_Value &  vAbsX = eC_FromInt(-1),
const eC_Value &  vAbsY = eC_FromInt(-1) 
)
virtual

Called when an object is clicked twice within a given time span.

See also
CGUIEventHandler::SetDoubleClickTime()
Note
DoDoubleClick() should work on the absolute positions of this object, that were set at the time of the passed redraw, as the user expects to click on what he sees and not to click on the object in a newer and probably intermediate state that he currently does not see in this state. Thus, to calculate the relative position (where the two clicks were done relative to the origin of this object) from the vAbsY argument you must do it like this: vMyRelYPos = vAbsY - GetAbsYPos().
Parameters
vAbsXX-position in screen coordinates where the click occurred
vAbsYY-position in screen coordinates where the click occurred
Returns
True The event has been handled.
False The event has not been handled. In this base implementation it always returns False.

Reimplemented in CGUITableView, CGUIMultiLineEdit, CGUIGraph, CGUIPlot, CGUIEdit, CGUICompositeBehaviour, CGUISplitContainer, and CGUICmdBehaviour.

◆ DoDrag()

eC_Bool CGUIBehaviour::DoDrag ( const eC_Value &  vDeltaX = eC_FromInt(-1),
const eC_Value &  vDeltaY = eC_FromInt(-1),
const eC_Value &  vAbsX = eC_FromInt(-1),
const eC_Value &  vAbsY = eC_FromInt(-1) 
)
virtual

Called when the object receives a Drag event. Drags are typically created if the mouse is being used while a mouse-button is being pressed, or if the user moves his finger over a touchscreen.

Parameters
vDeltaXrelative movement in x-direction since the last call of DoDrag/ButtonDown
vDeltaYrelative movement in y-direction since the last call of DoDrag/ButtonDown
vAbsXcurrent X-position in screen coordinates of the mouse
vAbsYcurrent Y-position in screen coordinates of the mouse
Returns
True If the event has been handled.
false Else.

Reimplemented in CGUIListBox, CGUIMultiLineEdit, CGUIGraph, CGUIEdit, CGUIPlot, CGUITouchScrollView, CGUICarousel, CGUIImageStack, CGUIPrimitiveButton, CGUIWheel, CGUIBaseSlider, CGUIBaseMessageBox, CGUICenterFocusContainer, CGUIChart, CGUISegmentBar, CGUICompositeBehaviour, CGUIPageContainer, CGUIWheelContainer, CGUIRadialSlider, CGUIRangeSlider, CGUICalendar, CGUISplitContainer, CGUIKnob, CGUICircularSlider, CGUICmdBehaviour, and CGUIHeaderItem.

◆ DoDragEnd()

eC_Bool CGUIBehaviour::DoDragEnd ( const eC_Value &  vAbsX = eC_FromInt(-1),
const eC_Value &  vAbsY = eC_FromInt(-1) 
)
virtual

Called on the dragged object (=the object on which the initial ButtonDown-event occurred) when the mouse button is released after a drag event.

Parameters
vAbsXcurrent X-position in screen coordinates of the mouse
vAbsYcurrent Y-position in screen coordinates of the mouse
Returns
True If the event has been handled.
false Else.

Reimplemented in CGUIListBox, CGUITouchScrollView, CGUICarousel, CGUIScrollBar, CGUIPrimitiveButton, CGUIWheel, CGUICenterFocusContainer, CGUIBaseSlider, CGUIChart, CGUICompositeBehaviour, CGUIPageContainer, CGUIWheelContainer, CGUIRadialSlider, CGUIRangeSlider, CGUICalendar, CGUISplitContainer, CGUIAutoRepeatBehaviour, CGUICircularSlider, CGUIKnob, CGUICmdBehaviour, and CGUIHeaderItem.

◆ DoKeyDown()

eC_Bool CGUIBehaviour::DoKeyDown ( const GUIKeyIdentifier_t eKeyIdentifier,
const eC_UInt &  uiModifiers 
)
virtual

Called in reaction to a ET_KEYDOWN event, which means in general that a non-character key was pressed. For that reason you will only get the Guiliani-Key identifier (possibly with modifiers) in this slot and not the character of the pressed key.

Parameters
eKeyIdentifierThe Guiliani key identifier.
uiModifiersThe key modifiers bitfield.
Returns
True If the event has been handled.
false Else.

Reimplemented in CGUITableView, CGUIListBox, CGUIComboBox, CGUIBaseInputField, CGUIHotkeysBehaviour, CGUICarousel, CGUIImageStack, CGUIEdit, CGUICompositeBehaviour, CGUICmdBehaviour, and CGUIMenuBase.

◆ DoKeyUp()

eC_Bool CGUIBehaviour::DoKeyUp ( const GUIKeyIdentifier_t eKeyIdentifier,
const eC_UInt &  uiModifiers 
)
virtual

Called in reaction to a ET_KEYUP event, which means in general that a non-character key was released. For that reason you will only get the Guiliani key identifier (possibly with modifiers) in this slot and not the character of the released key.

Parameters
eKeyIdentifierThe Guiliani key identifier.
uiModifiersThe key modifiers bitfield.
Returns
True If the event has been handled.
false Else.

Reimplemented in CGUIBaseInputField, CGUIHotkeysBehaviour, CGUICompositeBehaviour, and CGUICmdBehaviour.

◆ DoLongClick()

eC_Bool CGUIBehaviour::DoLongClick ( const eC_Value &  vAbsX = eC_FromInt(-1),
const eC_Value &  vAbsY = eC_FromInt(-1) 
)
virtual

Called when an object is pressed for a longer period of time.

See also
CGUIEventHandler::SetLongClickTime()
Note
DoLongClick() should work on the absolute positions of this object, that were set at the time of the passed redraw, as the user expects to click on what he sees and not to click on an object in a newer and probably intermediate state that he currently does not see. Thus, to calculate the relative position (where the mouse button was pressed and held down at the same position for a certain amount of time, relative to the origin of this object) from the vAbsY argument you must do it like this: vMyRelYPos = vAbsY - GetAbsYPos().
Parameters
vAbsXX-position in screen coordinates where the click occurred
vAbsYY-position in screen coordinates where the click occurred
Returns
True The event has been handled.
False The event has not been handled. In this base implementation it always returns False.

Reimplemented in CGUITableView, CGUICompositeBehaviour, CGUIAutoRepeatBehaviour, and CGUICmdBehaviour.

◆ DoMouseEnter()

eC_Bool CGUIBehaviour::DoMouseEnter ( const eC_Value &  vAbsX = eC_FromInt(-1),
const eC_Value &  vAbsY = eC_FromInt(-1) 
)
virtual

Called when the mouse enters the area which is covered by an object. If several objects cover the same region, the topmost one receives the event. Objects will not receive DoMouseEnter events if they are not highlightable.

See also
CGUIObject::IsHighlightable()
Parameters
vAbsXX-position in screen coordinates where the mouse entered the object
vAbsYY-position in screen coordinates where the mouse entered the object
Returns
True If the event has been handled.
false Else.

Reimplemented in CGUIListBox, CGUIMenuBar, CGUIPrimitiveButton, CGUICompositeBehaviour, CGUIMenu, CGUISplitContainer, and CGUICmdBehaviour.

◆ DoMouseLeave()

eC_Bool CGUIBehaviour::DoMouseLeave ( const eC_Value &  vAbsX = eC_FromInt(-1),
const eC_Value &  vAbsY = eC_FromInt(-1) 
)
virtual

Called when the mouse leaves the area which is covered by an object. Objects will not receive DoMouseLeave events if they are not highlightable.

See also
CGUIObject::IsHighlightable()
Parameters
vAbsXX-position of the mouse in screen coordinates after it left the object
vAbsYY-position of the mouse in screen coordinates after it left the object
Returns
True If the event has been handled.
false Else.

Reimplemented in CGUIPrimitiveButton, CGUICompositeBehaviour, CGUICmdBehaviour, and CGUISplitContainer.

◆ DoMouseMove()

eC_Bool CGUIBehaviour::DoMouseMove ( const eC_Value &  vAbsX = eC_FromInt(-1),
const eC_Value &  vAbsY = eC_FromInt(-1) 
)
virtual

Called when the mouse is moved within the area covered by an object. If several objects cover the same region, the topmost one receives the event. Objects will not receive DoMouseEnter events if they are not highlightable.

See also
CGUIObject::IsHighlightable()
Parameters
vAbsXX-position of the mouse in screen coordinates
vAbsYY-position of the mouse in screen coordinates
Returns
True If the event has been handled.
false Else.

Reimplemented in CGUIPrimitiveButton, CGUICompositeBehaviour, and CGUISplitContainer.

◆ DoScrollDown()

eC_Bool CGUIBehaviour::DoScrollDown ( const eC_Value &  vAbsX,
const eC_Value &  vAbsY 
)
virtual

Called when the mouse wheel was scrolled in downward direction.

Parameters
vAbsXX-position of the mouse in screen coordinates
vAbsYY-position of the mouse in screen coordinates
Returns
True If the event has been handled.
false Else.

Reimplemented in CGUIScrollView, CGUICompositeBehaviour, and CGUICmdBehaviour.

◆ DoScrollLeft()

eC_Bool CGUIBehaviour::DoScrollLeft ( const eC_Value &  vAbsX,
const eC_Value &  vAbsY 
)
virtual

Called when the mouse wheel was scrolled in upward direction while the scroll direction modifier was pressed.

Parameters
vAbsXX-position of the mouse in screen coordinates
vAbsYY-position of the mouse in screen coordinates
See also
CGUIEventHandler::SetScrollModifiers()
Returns
True If the event has been handled.
false Else.

Reimplemented in CGUIScrollView, CGUICompositeBehaviour, and CGUICmdBehaviour.

◆ DoScrollRight()

eC_Bool CGUIBehaviour::DoScrollRight ( const eC_Value &  vAbsX,
const eC_Value &  vAbsY 
)
virtual

Called when the mouse wheel was scrolled in downward direction while the scroll direction modifier was pressed.

Parameters
vAbsXX-position of the mouse in screen coordinates
vAbsYY-position of the mouse in screen coordinates
See also
CGUIEventHandler::SetScrollModifiers()
Returns
True If the event has been handled.
false Else.

Reimplemented in CGUIScrollView, CGUICompositeBehaviour, and CGUICmdBehaviour.

◆ DoScrollUp()

eC_Bool CGUIBehaviour::DoScrollUp ( const eC_Value &  vAbsX,
const eC_Value &  vAbsY 
)
virtual

Called when the mouse wheel was scrolled in upward direction.

Parameters
vAbsXX-position of the mouse in screen coordinates
vAbsYY-position of the mouse in screen coordinates
Returns
True If the event has been handled.
false Else.

Reimplemented in CGUIScrollView, CGUICompositeBehaviour, and CGUICmdBehaviour.

◆ DoUserEvent()

eC_Bool CGUIBehaviour::DoUserEvent ( CGUIEvent *const  pEvent)
virtual

Slot for handling of arbitrary user events. Override this slot to catch any incoming event before it is dealt with by standard handlers.

Be aware that DoUserEvent() will be called on the currently focused object for all incoming events! This means for instance that your focused object (and its parents) will also receive events of type ET_LBUTTONDOWN when the user is clicking somewhere else on the screen.

Note
If DoUserEvent returns true, this will prevent any further handling of this event. i.e. If your implementation returns true for ET_MOUSEMOVE events received by this object, this will prevent any calls to the framework's standard DoMouseMove(), DoMouseEnter(), DoMouseLeave() slots.
Parameters
pEventThe event to be processed.
Returns
True If the event has been handled.
false Else.

Reimplemented in CGUIComboBox, CGUIMenuBar, CGUIMultiLineEdit, and CGUICompositeBehaviour.

◆ FocusNext()

eC_Bool CGUIBehaviour::FocusNext ( CGUIObject *const  pRefObj = NULL,
const eC_Bool &  bSubTreeOfRefObjDone = false 
)
virtual

Called when the object is requested to focus the "next" object. Called when the object receives a standard GK_DOWN event or by request from Source-Code. For a simple object there is nothing to do but to indicate that the event has not been handled. For a standardized event handling mechanism, this method must exist.

Parameters
pRefObjusually is a child of this object which indicates the current position in the child list.
bSubTreeOfRefObjDoneindicates if the subtree that is under pRefObj has already been asked to take focus, or if not.
Returns
True If the event has been handled.
false Else.

Reimplemented in CGUIObject, CGUICompositeObject, CGUICompositeBehaviour, and CGUICmdBehaviour.

◆ FocusPrevious()

eC_Bool CGUIBehaviour::FocusPrevious ( CGUIObject *const  pRefObj = NULL,
const eC_Bool &  bSubTreeOfRefObjDone = false 
)
virtual

Called when the object is requested to focus the "previous" object. Typically, this happens in reaction to a standard GK_UP event or by request from Source-Code. For a simple object there is nothing to do but to indicate that the event has not been handled. For a standardized event handling mechanism, this method must exist.

Parameters
pRefObjusually is a child of this object which indicates the current position in the child list.
bSubTreeOfRefObjDoneindicates if the subtree that is under pRefObj has already been asked to take focus, or if not.
Returns
True If the event has been handled.
false Else.

Reimplemented in CGUIObject, CGUICompositeObject, CGUICompositeBehaviour, and CGUICmdBehaviour.

◆ GetFocus()

void CGUIBehaviour::GetFocus ( )
virtual

Called when the object, or one of its children, received the focus. If this control is a composite object then the following applies: Whether this control or a child control got the focus can be determined by checking if this control is the currently focused object in the event handler.

See also
LoseFocus, CGUIEventHandler::GetFocussedObject()

Reimplemented in CGUIListBox, CGUIBaseInputField, CGUIMultiLineEdit, CGUIMenuBar, CGUIEdit, CGUIPrimitiveButton, CGUIScrollView, CGUICompositeBehaviour, CGUICmdBehaviour, CGUICenterFocusContainer, and CGUIMenu.

◆ Increase()

eC_Bool CGUIBehaviour::Increase ( )
virtual

Called when the object receives a standard GK_PAGEUP event. For a simple object there is nothing to do but to indicate that the event has not been handled. For a standardized event handling mechanism, this method must exist.

Returns
True If the event has been handled.
false Else.

Reimplemented in CGUIProgressBar, CGUICarousel, CGUIAbstractBar, CGUICompositeBehaviour, CGUIRadialProgressBar, and CGUICmdBehaviour.

◆ LoseFocus()

void CGUIBehaviour::LoseFocus ( )
virtual

Called when an object has lost the focus. In this method the focused object is already set to the object that newly received the focus.

See also
GetFocus

Reimplemented in CGUIComboBox, CGUIMultiLineEdit, CGUIBaseInputField, CGUIEdit, CGUIPrimitiveButton, CGUICompositeBehaviour, CGUICmdBehaviour, and CGUIMenu.

◆ OnCreate()

void CGUIBehaviour::OnCreate ( )
virtual

Slot for handling creation of object. Will be called after the object was created and all attributes have been set.

Reimplemented in CGUICmdBehaviour.

◆ OnDelete()

void CGUIBehaviour::OnDelete ( )
virtual

Slot for handling deletion of object. Will be called within the destructor, so do not throw any exceptions.

Reimplemented in CGUICmdBehaviour.

◆ OnHide()

void CGUIBehaviour::OnHide ( )
virtual

Slot for handling change to invisible.

Reimplemented in CGUICmdBehaviour.

◆ OnShow()

void CGUIBehaviour::OnShow ( )
virtual

Slot for handling change to visible.

Reimplemented in CGUICmdBehaviour.


The documentation for this class was generated from the following files: