#include <GUICmdBehaviour.h>
Protected Member Functions | |
CGUICmdBehaviour () | |
virtual | ~CGUICmdBehaviour () |
virtual eC_Bool | Decrease () |
virtual eC_Bool | DoButtonDown (const eC_Value &vAbsX, const eC_Value &vAbsY) |
virtual eC_Bool | DoButtonUp (const eC_Value &vAbsX, const eC_Value &vAbsY) |
virtual eC_Bool | DoChar (const eC_UInt &uiKey, const GUIKeyIdentifier_t &eKeyID, const eC_UInt &uiModifiers) |
virtual eC_Bool | DoClick (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 | DoDrag (const eC_Value &vDeltaX, const eC_Value &vDeltaY, const eC_Value &vAbsX, const eC_Value &vAbsY) |
virtual eC_Bool | DoDragEnd (const eC_Value &vAbsX, const eC_Value &vAbsY) |
virtual eC_Bool | DoKeyDown (const GUIKeyIdentifier_t &eKeyID, const eC_UInt &uiModifiers) |
virtual eC_Bool | DoKeyUp (const GUIKeyIdentifier_t &eKeyID, const eC_UInt &uiModifiers) |
virtual eC_Bool | DoLongClick (const eC_Value &vAbsX=eC_FromInt(-1), const eC_Value &vAbsY=eC_FromInt(-1)) |
virtual eC_Bool | DoMouseEnter (const eC_Value &vAbsX, const eC_Value &vAbsY) |
virtual eC_Bool | DoMouseLeave (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) |
virtual eC_Bool | DoScrollUp (const eC_Value &vAbsX, const eC_Value &vAbsY) |
virtual void | ExecuteCommand (const BehaviourType_t &eFromBehaviour)=0 |
Executes the command for the given behaviour, if it is equal to the stored one. More... | |
virtual eC_Bool | FocusNext (CGUIObject *const pRefObj=NULL, const eC_Bool &bSubTreeOfRefObjDone=false) |
virtual eC_Bool | FocusPrevious (CGUIObject *const pRefObj=NULL, const eC_Bool &bSubTreeOfRefObjDone=false) |
virtual void | GetFocus () |
virtual eC_Bool | Increase () |
virtual void | LoseFocus () |
virtual void | OnCreate () |
virtual void | OnDelete () |
virtual void | OnHide () |
virtual void | OnShow () |
![]() | |
CGUIBehaviourDecorator (CGUIObject *const pkObject=NULL) | |
CGUIBehaviourDecorator (const CGUIBehaviourDecorator &kSource) | |
virtual void | AssociatedObjectChanges (CGUIObject *const pkNewAssociatedObject) |
CGUIObject * | GetAssociatedObject () const |
![]() | |
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 |
Additional Inherited Members | |
![]() | |
virtual | ~CGUIBehaviourDecorator () |
virtual CGUIBehaviourDecorator * | Clone () const |
virtual eC_Bool | IsCompositeBehaviour () const |
![]() | |
virtual eC_Bool | DoUserEvent (CGUIEvent *const pEvent) |
virtual void | OnCreate () |
virtual void | OnDelete () |
virtual void | OnHide () |
virtual void | OnShow () |
virtual eC_Bool | DoMouseMove (const eC_Value &vAbsX=eC_FromInt(-1), const eC_Value &vAbsY=eC_FromInt(-1)) |
![]() | |
const eC_String & | GetXMLTag () const |
virtual void | ReadFromStream () |
void | SetXMLTag (const eC_String &kXMLTag) |
virtual void | WriteToStream (const eC_Bool bWriteClassID=false) |
![]() | |
static const eC_Char | XMLTAG_BEHAVIOURCLASSID [] |
XML tag to be used when writing a behaviour class ID into a stream. | |
![]() | |
static const eC_Char | XMLTAG_CLASSVERSION [] |
Base class which Associates a command with one event slot. The event will be forwarded to the associated object.
|
inlineprotected |
Constructor.
|
inlineprotectedvirtual |
Destructor.
|
protectedvirtual |
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.
Reimplemented from CGUIBehaviour.
|
protectedvirtual |
Called when the mouse button or finger is pressed down over an object.
vAbsX | X-position in screen coordinates where the click occurred |
vAbsY | Y-position in screen coordinates where the click occurred |
Reimplemented from CGUIBehaviour.
|
protectedvirtual |
Called when the mouse button or finger is released. The object under the mouse at the time of releasing will receive this event.
vAbsX | X-position in screen coordinates where the mouse was released. |
vAbsY | Y-position in screen coordinates where the mouse was released. |
Reimplemented from CGUIBehaviour.
|
protectedvirtual |
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.
uiKey | Character of the pressed key. |
eKeyIdentifier | The Guiliani key identifier. |
uiModifiers | The key modifiers bitfield. |
Reimplemented from CGUIBehaviour.
|
protectedvirtual |
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.
vAbsX | X-position in screen coordinates where the click occurred |
vAbsY | Y-position in screen coordinates where the click occurred |
Reimplemented from CGUIBehaviour.
|
protectedvirtual |
Called when an object is clicked twice within a given time span.
vAbsX | X-position in screen coordinates where the click occurred |
vAbsY | Y-position in screen coordinates where the click occurred |
Reimplemented from CGUIBehaviour.
|
protectedvirtual |
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.
vDeltaX | relative movement in x-direction since the last call of DoDrag/ButtonDown |
vDeltaY | relative movement in y-direction since the last call of DoDrag/ButtonDown |
vAbsX | current X-position in screen coordinates of the mouse |
vAbsY | current Y-position in screen coordinates of the mouse |
Reimplemented from CGUIBehaviour.
|
protectedvirtual |
Called on the dragged object (=the object on which the initial ButtonDown-event occurred) when the mouse button is released after a drag event.
vAbsX | current X-position in screen coordinates of the mouse |
vAbsY | current Y-position in screen coordinates of the mouse |
Reimplemented from CGUIBehaviour.
|
protectedvirtual |
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.
eKeyIdentifier | The Guiliani key identifier. |
uiModifiers | The key modifiers bitfield. |
Reimplemented from CGUIBehaviour.
|
protectedvirtual |
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.
eKeyIdentifier | The Guiliani key identifier. |
uiModifiers | The key modifiers bitfield. |
Reimplemented from CGUIBehaviour.
|
protectedvirtual |
Called when an object is pressed for a longer period of time.
vAbsX | X-position in screen coordinates where the click occurred |
vAbsY | Y-position in screen coordinates where the click occurred |
Reimplemented from CGUIBehaviour.
|
protectedvirtual |
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.
vAbsX | X-position in screen coordinates where the mouse entered the object |
vAbsY | Y-position in screen coordinates where the mouse entered the object |
Reimplemented from CGUIBehaviour.
|
protectedvirtual |
Called when the mouse leaves the area which is covered by an object. Objects will not receive DoMouseLeave events if they are not highlightable.
vAbsX | X-position of the mouse in screen coordinates after it left the object |
vAbsY | Y-position of the mouse in screen coordinates after it left the object |
Reimplemented from CGUIBehaviour.
|
protectedvirtual |
Called when the mouse wheel was scrolled in downward direction.
vAbsX | X-position of the mouse in screen coordinates |
vAbsY | Y-position of the mouse in screen coordinates |
Reimplemented from CGUIBehaviour.
|
protectedvirtual |
Called when the mouse wheel was scrolled in upward direction while the scroll direction modifier was pressed.
vAbsX | X-position of the mouse in screen coordinates |
vAbsY | Y-position of the mouse in screen coordinates |
Reimplemented from CGUIBehaviour.
|
protectedvirtual |
Called when the mouse wheel was scrolled in downward direction while the scroll direction modifier was pressed.
vAbsX | X-position of the mouse in screen coordinates |
vAbsY | Y-position of the mouse in screen coordinates |
Reimplemented from CGUIBehaviour.
|
protectedvirtual |
Called when the mouse wheel was scrolled in upward direction.
vAbsX | X-position of the mouse in screen coordinates |
vAbsY | Y-position of the mouse in screen coordinates |
Reimplemented from CGUIBehaviour.
|
protectedpure virtual |
Executes the command for the given behaviour, if it is equal to the stored one.
eFromBehaviour | Behaviour slot from which this method was called. |
Implemented in CGUIConditionalBehaviour, CGUIMultiCmdBehaviour, and CGUISingleCmdBehaviour.
|
protectedvirtual |
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.
pRefObj | usually is a child of this object which indicates the current position in the child list. |
bSubTreeOfRefObjDone | indicates if the subtree that is under pRefObj has already been asked to take focus, or if not. |
Reimplemented from CGUIBehaviour.
|
protectedvirtual |
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.
pRefObj | usually is a child of this object which indicates the current position in the child list. |
bSubTreeOfRefObjDone | indicates if the subtree that is under pRefObj has already been asked to take focus, or if not. |
Reimplemented from CGUIBehaviour.
|
protectedvirtual |
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.
Reimplemented from CGUIBehaviour.
|
protectedvirtual |
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.
Reimplemented from CGUIBehaviour.
|
protectedvirtual |
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.
Reimplemented from CGUIBehaviour.
|
protectedvirtual |
Slot for handling creation of object. Will be called after the object was created and all attributes have been set.
Reimplemented from CGUIBehaviour.
|
protectedvirtual |
Slot for handling deletion of object. Will be called within the destructor, so do not throw any exceptions.
Reimplemented from CGUIBehaviour.
|
protectedvirtual |
Slot for handling change to invisible.
Reimplemented from CGUIBehaviour.
|
protectedvirtual |
Slot for handling change to visible.
Reimplemented from CGUIBehaviour.