|
| CGUIListBox (CGUICompositeObject *const pParent, const eC_Value &vX, const eC_Value &vY, const eC_Value &vWidth, const eC_Value &vHeight, const Mode_t &eMode=VER_EXT, const eC_Bool &bMultipleSelection=false, const ObjectHandle_t &eID=NO_HANDLE) |
|
| CGUIListBox (CGUICompositeObject *const pParent, const CGUIRect &kRect, const Mode_t &eMode=VER_EXT, const eC_Bool &bMultipleSelection=false, const ObjectHandle_t &eID=NO_HANDLE) |
|
| CGUIListBox () |
| Standard constructor.
|
|
| ~CGUIListBox () |
| Destructor.
|
|
eC_Bool | AddItem (CGUIListItem *pItem, eC_Bool bIsAutoAdjustArrange=true) |
|
eC_Bool | AddSelection (eC_UInt uiIndex) |
|
void | AddSelectionObserver (CGUIObserver *pObserver) |
|
void | AdjustArrangement () |
|
void | DeleteAllItems () |
|
virtual eC_Bool | DoButtonDown (const eC_Value &vAbsX, const eC_Value &vAbsY) |
|
virtual eC_Bool | DoClick (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 | DoDraw () |
|
eC_Bool | DoKeyDown (const GUIKeyIdentifier_t &eKeyID, const eC_UInt &uiModifiers) |
|
virtual eC_Bool | DoMouseEnter (const eC_Value &vAbsX, const eC_Value &vAbsY) |
|
eC_Bool | DoPostDraw () |
|
eC_Int | FindItem (const eC_String &kItemStr) const |
|
eC_Int | FindItemBySubstring (const eC_String &kSearchString) const |
|
eC_Bool | FocusAny () |
|
CGUIListItem * | GetItem (eC_UInt uiIndex) |
|
eC_UInt | GetItemCount () const |
|
eC_Int | GetItemIndexOfObject (const CGUIObject *pObj) const |
|
CGUIListItem * | GetNextItem () |
|
StringList_t | GetSelectedItemsStrList () |
|
eC_String | GetSelectedItemStr () |
|
eC_Int | GetSelection () |
|
IndexList_t | GetSelectionIndexList () |
|
eC_Bool | IsObjectAnItemInList (const CGUIObject *pObj) const |
|
virtual void | ReadFromStream () |
|
void | ReleaseAllSelection () |
|
void | ReleaseSelection (eC_UInt uiIndex) |
|
eC_Bool | RemoveItem (CGUIListItem *pItem, eC_Bool bIsAutoAdjustArrange=true) |
| Removes an item from the scrolled container. More...
|
|
eC_Bool | RemoveItems (eC_UInt uiStartIndex, eC_UInt uiEndIndex, eC_Bool bIsAutoAdjustArrange=true) |
|
void | RemoveSelectionObserver (CGUIObserver *pObserver) |
|
virtual eC_Bool | RequestFocusForSelection () |
|
eC_Bool | SelectObject (const CGUIObject *pObj) |
|
void | SetBgColor (const eC_UInt &uiBgColor) |
|
void | SetBgColor (const GlobalProperty_t &eBgColor) |
|
void | SetDraggedFrameBgColor (const eC_UInt &uiDraggedFrameBgColor) |
|
void | SetDraggedFrameBgColor (const GlobalProperty_t &eDraggedFrameBgColor) |
|
void | SetHeight (const eC_Value &vHeight) |
|
void | SetItemSelectedColor (eC_UInt uiItemSelectedColor) |
|
void | SetMultipleSelection (const eC_Bool &bMultiSelection) |
|
void | SetSelectedByHighlighting (const eC_Bool &bSelectedByHighlighting) |
|
void | SetSelection (eC_UInt uiIndex) |
|
void | SetUnifyItemSize (const eC_Bool &bUnifyItemSize) |
|
void | SetUseKeyboard (const eC_Bool &bUseKeyboard) |
|
void | SetWidth (const eC_Value &vWidth) |
|
virtual void | WriteToStream (const eC_Bool bWriteClassID=false) |
|
| CGUIScrollView (CGUICompositeObject *const pParent, const eC_Value &vX, const eC_Value &vY, const eC_Value &vWidth, const eC_Value &vHeight, const ObjectHandle_t &eID=NO_HANDLE) |
|
| CGUIScrollView (CGUICompositeObject *const pParent, const CGUIRect &kRect, const ObjectHandle_t &eID=NO_HANDLE) |
|
| CGUIScrollView (const CGUIScrollView &rkSource) |
|
| CGUIScrollView () |
|
virtual void | AdjustScrollBars () |
|
virtual void | DoAnimate (const eC_Value &vTimes=eC_FromInt(1)) |
|
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 CGUICompositeObject * | GetClipper () const |
|
virtual CGUICompositeObject * | GetContainer () const |
|
CGUIScrollBar * | GetHorizontalScrollbar () |
|
CGUIScrollBar * | GetVerticalScrollbar () |
|
virtual eC_Bool | IsHorizontalScrollBarAtBottom () const |
|
virtual eC_Bool | IsVerticalScrollBarAtRight () const |
|
CGUIScrollView & | operator= (const CGUIScrollView &rkSource) |
|
virtual void | RestoreScrollPosition () |
|
virtual void | SaveScrollPosition () |
| Stores the scroll positions (values of both scroll bars)
|
|
virtual void | ScrollToFocussedObject () |
|
virtual void | ScrollToObject (CGUIObject *pkObject) |
|
void | SetAutoAdjustContainerSize (const eC_Bool bAutoAdjustContainerSize) |
|
void | SetAutoAdjustScrollViewLayout (const eC_Bool bAutoAdjustScrollViewLayout) |
|
virtual void | SetHorizontalScrollBarAtBottom (const eC_Bool bIsAtBottom) |
|
virtual void | SetHorizontalScrollbarPolicy (const ScrollBarPolicy ePolicy) |
|
virtual void | SetScrollingInertia (const eC_Value vInertia) |
|
virtual void | SetScrollingViewport (const eC_Value vX, const eC_Value vY) |
|
virtual void | SetVerticalScrollBarAtRight (const eC_Bool bIsAtRight) |
|
virtual void | SetVerticalScrollbarPolicy (const ScrollBarPolicy ePolicy) |
|
virtual void | StartScrollingAnimation () |
| Called when the Scrollview wishes to start scrolling. Overriding methods should call the base class implementation.
|
|
virtual void | StopScrollingAnimation () |
| Called when the scrolling animation is over. Overriding methods should call the base class implementation.
|
|
| CGUICompositeObject () |
|
| CGUICompositeObject (CGUICompositeObject *const pParent, const eC_Value &vX, const eC_Value &vY, const eC_Value &vWidth, const eC_Value &vHeight, const ObjectHandle_t &eID=NO_HANDLE) |
|
| CGUICompositeObject (CGUICompositeObject *const pParent, const CGUIRect &kRect, const ObjectHandle_t &eID=NO_HANDLE) |
|
| CGUICompositeObject (const CGUICompositeObject &kSource) |
|
virtual | ~CGUICompositeObject () |
| This destructor is automatically virtual, as the base class destructor is virtual.
|
|
eC_Bool | BringToFront (const CGUIObject *pkObject) |
|
eC_Bool | CanBeCyclicFocussed () const |
|
void | DrawOnTop (CGUIObject *pkObject) |
|
void | DrawOnTopOf (CGUIObject *const pkObject, CGUIObject *const pDrawOnTopOf) |
|
virtual CGUIObject * | FindObject (const eC_Value &vAbsX, const eC_Value &vAbsY) |
|
void | Flip (const eC_Bool &rbVertical) |
|
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) |
|
const CGUIObject * | GetAndCheckObjectByID (ObjectHandle_t eObjID, const eC_String &kObjectName) const |
|
CGUIObject * | GetAndCheckObjectByID (ObjectHandle_t eObjID, const eC_String &kObjectName) |
|
CGUIObject * | GetChild (const eC_UInt uIndex) const |
|
CGUIObject * | GetChild (const eC_UInt uIndex) |
|
const ObjectPtrList & | GetChildObjectsList () const |
|
const ObjectPtrList & | GetDrawOrderList () const |
|
eC_Int | GetIndexOfChild (const CGUIObject *pkObject) const |
|
eC_UInt | GetNumberOfChildren () const |
|
CGUIObject * | GetObjectByID (const ObjectHandle_t &eID, const eC_Bool &bOnlyVisible=false) |
|
const CGUIObject * | GetObjectByID (const ObjectHandle_t &eID, const eC_Bool &bOnlyVisible=false) const |
|
eC_Bool | InsertChildAt (const eC_UInt cuiIndex, CGUIObject *pkChild) |
|
void | InvalidateChildren () |
| Invalidates all chidren, but not this parent.
|
|
eC_Bool | IsAncestorOf (const CGUIObject *pkObject) const |
|
virtual eC_Bool | IsCompositeObject () const |
|
eC_Bool | LowerOneLevel (const CGUIObject *pkObject) |
|
CGUICompositeObject & | operator= (const CGUICompositeObject &kSource) |
|
eC_Bool | RaiseOneLevel (const CGUIObject *pkObject) |
|
virtual void | RefreshLayout (CGUILayouter::eMovedEdges_t eMovedEdges) const |
|
void | RemoveAllChildren () |
|
void | Rotate (const eC_UInt &ruiDegrees, const eC_Bool &rbFirst=false) |
|
eC_Bool | SendToBack (const CGUIObject *pkObject) |
|
virtual void | SetClickThrough (const eC_Bool &bClickThrough) |
|
virtual void | SetClickThrough (const eC_Bool &bClickThrough, const eC_Bool &bChildrenClickThrough) |
|
void | SetCyclicFocus (const eC_Bool &bCyclicFocus) |
|
virtual void | SetDisabled (const eC_Bool &bDisabled) |
|
virtual void | SetDisabled (const eC_Bool &bDisabled, const eC_Bool &bChildrenDisabled) |
|
virtual void | SetFocussable (const eC_Bool &bFocussable) |
|
virtual void | SetFocussable (const eC_Bool &bFocussable, const eC_Bool &bChildrenFocussable) |
|
virtual void | SetGrayedOut (const eC_Bool &bGrayedOut) |
|
virtual void | SetGrayedOut (const eC_Bool &bGrayedOut, const eC_Bool &bChildrenGrayedOut) |
|
virtual void | SetInvisible (const eC_Bool &bInvisible) |
|
virtual void | SetInvisible (const eC_Bool &bInvisible, const eC_Bool &bChildrenInvisible) |
|
| CGUIObject (CGUICompositeObject *const pParent, const eC_Value &vX, const eC_Value &vY, const eC_Value &vWidth, const eC_Value &vHeight, const ObjectHandle_t &eID=NO_HANDLE) |
|
| CGUIObject (CGUICompositeObject *const pParent, const CGUIRect &kRect, const ObjectHandle_t &eID=NO_HANDLE) |
|
| CGUIObject () |
|
| CGUIObject (const CGUIObject &kSource) |
|
virtual | ~CGUIObject () |
|
void | AddValueObserver (CGUIObserver *pObserver) |
|
eC_Bool | CalculateInvalidatedRect (CGUIRect &rRect) const |
|
virtual eC_Bool | ClaimFocus () |
|
virtual void | CreateSnapshot (eC_UInt uiBackColor=0x00) |
|
eC_Bool | DataPoolConnectorExists () const |
|
void | DeleteSnapshot () |
|
virtual void | DisableSnapshotDrawing (eC_Bool bDeleteSnapshot=true) |
|
virtual eC_Bool | DoDrawSnapshot () |
|
virtual void | EnableSnapshotDrawing () |
|
CGUIRect | GetAbsRect () const |
|
eC_Value | GetAbsXPos () const |
|
eC_Value | GetAbsXPosCenter () const |
|
eC_Value | GetAbsXPosREdge () const |
|
eC_Value | GetAbsYPos () const |
|
eC_Value | GetAbsYPosBEdge () const |
|
eC_Value | GetAbsYPosCenter () const |
|
eC_UByte | GetAlpha () const |
|
CGUIBehaviourDecorator * | GetBehaviour () |
|
const CGUIBehaviourDecorator * | GetBehaviour () const |
|
GUIBitmapPlaneID_t | GetBitmapID () const |
|
CGUIBitmapPlane & | GetBitmapPlane () const |
|
CGUIRect | GetCurrentAbsRect () const |
|
eC_Value | GetCurrentAbsXPos () const |
|
eC_Value | GetCurrentAbsXPosCenter () const |
|
eC_Value | GetCurrentAbsXPosREdge () const |
|
eC_Value | GetCurrentAbsYPos () const |
|
eC_Value | GetCurrentAbsYPosBEdge () const |
|
eC_Value | GetCurrentAbsYPosCenter () const |
|
CDataPoolConnector & | GetDataPoolConnector () |
|
eC_Value | GetDistanceBottom () const |
|
eC_Value | GetDistanceRight () const |
|
eC_Value | GetHalfHeight () const |
|
eC_Value | GetHalfWidth () const |
|
eC_Value | GetHeight () const |
|
ObjectHandle_t | GetID () const |
|
CGUILayouter * | GetLayouter () |
|
const CGUILayouter * | GetLayouter () const |
|
ObjectHandle_t | GetNeighborBottomID () const |
|
ObjectHandle_t | GetNeighborLeftID () const |
|
ObjectHandle_t | GetNeighborRightID () const |
|
ObjectHandle_t | GetNeighborTopID () const |
|
CGUIObject * | GetObjectByID (const ObjectHandle_t &eID, const eC_Bool &bOnlyVisible=false) |
|
const CGUIObject * | GetObjectByID (const ObjectHandle_t &eID, const eC_Bool &bOnlyVisible=false) const |
|
CGUIRect | GetOriginRect () const |
|
CGUICompositeObject * | GetParent () |
|
const CGUICompositeObject * | GetParent () const |
|
CGUIRect | GetRelRect () const |
|
eC_Value | GetRelXPos () const |
|
eC_Value | GetRelXPosCenter () const |
|
eC_Value | GetRelXPosREdge () const |
|
eC_Value | GetRelYPos () const |
|
eC_Value | GetRelYPosBEdge () const |
|
eC_Value | GetRelYPosCenter () const |
|
eC_Value | GetWidth () const |
|
void | InvalidateArea () |
|
eC_Bool | IsClickable () const |
|
eC_Bool | IsClickThrough () const |
|
eC_Bool | IsDescendantOf (const CGUIObject *const pAncestor) const |
|
eC_Bool | IsDisabled () const |
|
eC_Bool | IsDragable () const |
|
eC_Bool | IsDragged () const |
|
eC_Bool | IsDrawingSnapshot () const |
|
eC_Bool | IsFocussable () const |
|
eC_Bool | IsFocussed () const |
|
eC_Bool | IsGrayedOut () const |
|
virtual eC_Bool | IsHighlightable () const |
|
eC_Bool | IsHighlighted () const |
|
eC_Bool | IsInvisible () const |
|
eC_Bool | IsPressed () const |
|
eC_Bool | IsStopFocus () const |
|
void | NotifyValueObservers (const CGUIValue &kValue, const eC_UInt uiX=0, const eC_UInt uiY=0) |
|
CGUIObject & | operator= (const CGUIObject &kSource) |
|
void | RemoveValueObserver (CGUIObserver *pObserver) |
|
void | RenderToBitmap (eC_UInt uiBitmapID, eC_Value vXOffset=eC_FromInt(0), eC_Value vYOffset=eC_FromInt(0)) |
|
eC_Bool | RequestFocus () |
|
void | SetAlpha (eC_UByte ubAlpha) |
|
void | SetBehaviour (CGUIBehaviourDecorator *pBehaviour) |
|
void | SetClickThrough (const eC_Bool &bClickThrough) |
|
void | SetID (const ObjectHandle_t &eID) |
|
void | SetLayouter (CGUILayouter *pLayouter) |
|
void | SetNeighborBottomID (const ObjectHandle_t eNewNeighborBottomID) |
|
void | SetNeighborIDs (const ObjectHandle_t eNewNeighborLeftID, const ObjectHandle_t eNewNeighborRightID, const ObjectHandle_t eNewNeighborTopID, const ObjectHandle_t eNewNeighborBottomID) |
|
void | SetNeighborLeftID (const ObjectHandle_t eNewNeighborLeftID) |
|
void | SetNeighborRightID (const ObjectHandle_t eNewNeighborRightID) |
|
void | SetNeighborTopID (const ObjectHandle_t eNewNeighborTopID) |
|
virtual void | SetParent (CGUICompositeObject *const pParent) |
|
void | SetRelRect (const CGUIRect &kNewRect) |
|
virtual void | SetRelXPos (const eC_Value &vX) |
|
void | SetRelXPosCenter (const eC_Value &vXCenter) |
|
void | SetRelXPosREdge (const eC_Value &vX) |
|
virtual void | SetRelYPos (const eC_Value &vY) |
|
void | SetRelYPosBEdge (const eC_Value &vY) |
|
void | SetRelYPosCenter (const eC_Value &vYCenter) |
|
void | SetStopFocus (const eC_Bool &bDontFocusToParent) |
|
virtual eC_Bool | SetValue (const CGUIValue &rkValue) |
|
virtual eC_Bool | SetValue (CDataPoolEntry &rkValue) |
|
virtual eC_Bool | DoUserEvent (CGUIEvent *const pEvent) |
|
virtual void | OnCreate () |
|
virtual void | OnDelete () |
|
virtual void | OnHide () |
|
virtual void | OnShow () |
|
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 | DoButtonUp (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)) |
|
virtual void | LoseFocus () |
|
virtual eC_Bool | Decrease () |
|
virtual eC_Bool | Increase () |
|
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) |
|
const eC_String & | GetXMLTag () const |
|
void | SetXMLTag (const eC_String &kXMLTag) |
|
virtual | ~CGUIAnimatable () |
| Destructor. Removes all existing animation callbacks.
|
|
virtual eC_Bool | IsAnimating () const |
|
virtual void | StartAnimation () |
|
virtual void | StopAnimation () |
|
| CGUIColorPropertyObserver () |
| default-constructor
|
|
| ~CGUIColorPropertyObserver () |
| destructor
|
|
eC_UInt | AddColorProperty (const eC_Bool &bColorIsProperty, const eC_UInt &uiColorValue, const GlobalProperty_t &eColorProperty) |
|
void | AddColorProperty (const eC_UInt &uiIndex, const eC_Bool &bColorIsProperty, const eC_UInt &uiColorValue, const GlobalProperty_t &eColorProperty) |
|
ColorValue_t | GetColorProperty (const eC_UInt &uiIndex) const |
|
eC_UInt | GetColorValue (const eC_UInt &uiIndex) const |
|
virtual void | OnColorPropertyChange () |
|
virtual void | OnNotification () |
| Called by CGUISubject whenever an observed object triggers an update.
|
|
void | RemoveColorProperty (const eC_UInt &uiIndex) |
|
void | SetColorProperty (const eC_UInt &uiIndex, const eC_UInt &uiColorValue) |
|
void | SetColorProperty (const eC_UInt &uiIndex, const GlobalProperty_t &eColorProperty) |
|
void | SetColorProperty (const eC_UInt &uiIndex, const ColorValue_t &kColorValue) |
|
| CGUIObserver () |
| Default constructor.
|
|
virtual | ~CGUIObserver () |
| Default destructor. Notifies all subjects of destruction.
|
|
const eC_TListDoubleLinked< CGUISubject * > & | GetSubjectList () const |
|
virtual void | OnNotification (const eC_String &kMessage) |
|
virtual void | OnNotification (const CGUIObject *const pkUpdatedObject) |
|
virtual void | OnNotification (const CGUIValue &kObservedValue, const CGUIObject *const pkUpdatedObject, const eC_UInt uiX=0, const eC_UInt uiY=0) |
|
void | SetAutoDelete (const eC_Bool bAutoDelete) |
|
Contains list items and can be scrolled if there is not enough space.
| The "list box" control is a scrollable container for a list of entries (list items). These entries can be selected or unselected Single and multiple selection of entries is supported. If the total height of the items is bigger than the container itself, a vertical scroll bar is shown (Class: CGUIListBox). |
This class is derived from CGUIScrollView and has all features of a scroll view. There is an enumeration type definition called Mode_t to indicate the show mode of the list box. It is possible to multiple select items inside the list box by specifying the parameter in the constructor.
The items can be added by calling AddItem() and removed by RemoveItem() or RemoveItems(). There are also interfaces for influencing all items. If multiple selection is enabled, an item can be selected by calling method AddSelection(). The selection of the item is released by calling method ReleaseSelection(). All selected items are released by ReleaseAllSelection().
There are interfaces to handle the items such as GetItem(), GetNextItem, FindItem(), DeleteAllItems(), GetItemCount() and so on. You can obtain the selected item index list and string list by calling the GetSelectionIndexList() and GetSelectedItemsStrList(), respectively. If only the index or the item string of the first selected item is interesting, the GetSelection() and GetSelectedItemStr() can be used.
If multiple selection is enabled, the user can select multiple items from the list box by dragging the mouse over items or by pressing SHIFT, CONTROL or both of them and clicking the mouse over item or dragging over items. By pressing SHIFT key and arrow key (UP, DOWN, LEFT or RIGHT key), it is also possible to select multiple items inside the list box.
The arrangement of items in the list box can be adjusted by calling AdjustArrangement(). If the width or height of the item is changed, this method should be called to adjust the arrangement.
Example:
eC_FromInt(10), eC_FromInt(50),
eC_FromInt(200), eC_FromInt(150),
CGUIListBox::HOR_EXT,
false,
NO_HANDLE);
for (int i=0; i<11; i++)
{
eC_FromInt(0), eC_FromInt(0),
eC_FromInt(100), eC_FromInt(30),
"item "+ eC_String(i),
true,
eC_FromInt(0), eC_FromInt(0),
DUMMY_IMAGE,
NO_HANDLE);
if (i%2 == 0)
{
pkItem->
SetIconImages(IMG_STDCTRL_RB_NOTSELECTED_NORMAL, IMG_STDCTRL_RB_SELECTED_NORMAL);
}
}