55 std::vector<CGUIElement*> m_allItems;
56 std::vector<CGUIElement*> m_visibleItems;
145 return (
int)m_allItems.size();
155 virtual void update();
159 virtual void onPointerUp(
int pointerId,
float pointerX,
float pointerY);
184 return m_itemSpacing;
This is the base object class from which other GUIs inherit. It's an empty GUI and can contain child ...
Definition CGUIElement.h:51
This is the object class that represents a masked rectangle, and other GUIs will only display within ...
Definition CGUIMask.h:48
Definition CObjectSerializable.h:36
CUIBase(CUIContainer *container, CGUIElement *element)
Constructor.
Top-level UI container and event router.
Definition CUIContainer.h:59
void setOffset(float offset)
Set content offset programmatically.
Definition CUIListView.h:197
virtual bool acceptDragFocus()
Whether this UI element should accept drag-focus when the pointer is already down and the user drags ...
Definition CUIListView.h:209
float getItemSpacing()
Get spacing between items.
Definition CUIListView.h:182
void enableMask(bool b)
Enable or disable visual masking for the list viewport.
virtual void updateStopSpeed()
Damp and stop the scrolling speed smoothly when near rest.
virtual void onPointerMove(int pointerId, float pointerX, float pointerY)
Called when pointer moves while over or dragging the element.
CGUIElement * getItem(int id)
Get item by index.
CGUIElement * addItem(CObjectSerializable *data)
Create a new item and attach data to it (using serialization template).
CGUIMask * getMask()
Get the current mask element used for clipping the list viewport.
Definition CUIListView.h:106
virtual void updateItemMovement()
Update item movement logic (applies m_speed, clamps and spring-back).
void clear()
Remove and destroy all child UI elements created from the list's base item.
int getItemCount()
Return number of items currently in the list.
Definition CUIListView.h:143
virtual void updateLimitOffset()
Update computed limits for allowable offset (m_maxOffset and related).
bool removeItem(CGUIElement *item)
Remove a specific item from the list, The function also remove and destroy all child UI elements crea...
void setVertical(bool b)
Set vertical layout mode.
Definition CUIListView.h:164
float getOffset()
Get current scroll offset.
Definition CUIListView.h:188
virtual void onPointerUp(int pointerId, float pointerX, float pointerY)
Called when pointer is released over the element.
float getMaxOffset()
Returns maximum computed offset (content size - viewport size).
Definition CUIListView.h:204
bool isVertical()
Returns true when layout is vertical.
Definition CUIListView.h:170
CGUIElement * addItem()
Create a new item using the m_baseItem template and append it to the list.
virtual void updateInertia()
Compute and apply inertia when the pointer is released and m_speed != 0.
virtual void onPointerDown(int pointerId, float pointerX, float pointerY)
Called when pointer is pressed down on the element.
CUIListView(CUIContainer *container, CGUIElement *element, CGUIElement *baseItem, CGUIElement *listElement=NULL)
Create a list view.
void setItemSpacing(float b)
Set spacing between items.
Definition CUIListView.h:176
virtual void updateItemPosition()
Recompute and apply item world/local positions based on m_offset.
Classes used to build the User Interface (UI).
Definition CAlphaMotion.h:32
Everything in the Skylicht Engine. You can start by looking at the topics.
Definition AudioDebugLog.h:29