|
| COList () |
|
| CList () |
|
virtual | ~CList () |
|
virtual void | ResetStates () |
|
virtual void | AddItem (const CStrW &str, const CStrW &data) |
| Adds an item last to the list. More...
|
|
| IGUIScrollBarOwner () |
|
virtual | ~IGUIScrollBarOwner () |
|
virtual const SGUIScrollBarStyle * | GetScrollBarStyle (const CStr &style) const |
| Interface for the m_ScrollBar to use. More...
|
|
virtual void | AddScrollBar (IGUIScrollBar *scrollbar) |
| Add a scroll-bar. More...
|
|
virtual IGUIScrollBar & | GetScrollBar (const int &index) |
| Get Scroll Bar reference (it should be transparent it's actually pointers). More...
|
|
virtual float | GetScrollBarPos (const int index) const |
| Get the position of the scroll bar at. More...
|
|
| IGUIObject () |
|
virtual | ~IGUIObject () |
|
virtual bool | MouseOver () |
| Checks if mouse is hovering this object. More...
|
|
const CStr & | GetName () const |
| Get object name, name is unique. More...
|
|
void | SetName (const CStr &Name) |
| Get object name. More...
|
|
CStr | GetPresentableName () const |
|
void | AddToPointersMap (map_pObjects &ObjectMap) |
| Adds object and its children to the map, it's name being the first part, and the second being itself. More...
|
|
void | AddChild (IGUIObject *pChild) |
| Notice nothing will be returned or thrown if the child hasn't been inputted into the GUI yet. More...
|
|
vector_pObjects::iterator | begin () |
|
vector_pObjects::iterator | end () |
|
bool | SettingExists (const CStr &Setting) const |
| Checks if settings exists, only available for derived classes that has this set up, that's why the base class just returns false. More...
|
|
PSRETURN | SetSetting (const CStr &Setting, const CStrW &Value, const bool &SkipMessage=false) |
| Set a setting by string, regardless of what type it is. More...
|
|
PSRETURN | GetSettingType (const CStr &Setting, EGUISettingType &Type) const |
| Retrieves the type of a named setting. More...
|
|
void | RegisterScriptHandler (const CStr &Action, const CStr &Code, CGUI *pGUI) |
| Set the script handler for a particular object-specific action. More...
|
|
JSObject * | GetJSObject () |
| Retrieves the JSObject representing this GUI object. More...
|
|
CGUI * | GetGUI () |
|
const CGUI * | GetGUI () const |
|
void | SetFocus () |
| Take focus! More...
|
|
| IGUITextOwner () |
|
virtual | ~IGUITextOwner () |
|
void | AddText (SGUIText *text) |
| Adds a text object. More...
|
|
virtual void | UpdateCachedSize () |
|
virtual void | DrawText (size_t index, const CColor &color, const CPos &pos, float z, const CRect &clipping=CRect()) |
| Draws the Text. More...
|
|
virtual bool | MouseOverIcon () |
| Test if mouse position is over an icon. More...
|
|
|
void | SetupText () |
| Sets up text, should be called every time changes has been made that can change the visual. More...
|
|
void | HandleMessage (SGUIMessage &Message) |
|
virtual bool | HandleAdditionalChildren (const XMBElement &child, CXeromyces *pFile) |
| Handle the <item> tag. More...
|
|
void | DrawList (const int &selected, const CStr &_sprite, const CStr &_sprite_selected, const CStr &_textcolor) |
|
virtual CRect | GetListRect () const |
|
virtual InReaction | ManuallyHandleEvent (const SDL_Event_ *ev) |
| Handle events manually to catch keyboard inputting. More...
|
|
virtual void | Draw () |
| Draws the List box. More...
|
|
virtual void | SelectNextElement () |
| Easy select elements functions. More...
|
|
virtual void | SelectPrevElement () |
|
virtual void | SelectFirstElement () |
|
virtual void | SelectLastElement () |
|
void | UpdateAutoScroll () |
|
virtual bool | GetModified () const |
|
void | AddSetting (const EGUISettingType &Type, const CStr &Name) |
| Add a setting to m_Settings. More...
|
|
virtual void | Destroy () |
| Calls Destroy on all children, and deallocates all memory. More...
|
|
void | LoadStyle (CGUI &GUIinstance, const CStr &StyleName) |
| Loads a style. More...
|
|
void | LoadStyle (const SGUIStyle &Style) |
| Loads a style. More...
|
|
virtual float | GetBufferedZ () const |
| Returns not the Z value, but the actual buffered Z value, i.e. More...
|
|
void | SetGUI (CGUI *const &pGUI) |
|
void | SetParent (IGUIObject *pParent) |
| Set parent of this object. More...
|
|
bool | IsFocused () const |
| Check if object is focused. More...
|
|
IGUIObject * | GetParent () const |
| NOTE! This will not just return m_pParent, when that is need use it! There is one exception to it, when the parent is the top-node (the object that isn't a real object), this will return NULL, so that the top-node's children are seemingly parentless. More...
|
|
CPos | GetMousePos () const |
| Get Mouse from CGUI. More...
|
|
InReaction | SendEvent (EGUIMessageType type, const CStr &EventName) |
| Send event to this GUI object (HandleMessage and ScriptEvent) More...
|
|
void | ScriptEvent (const CStr &Action) |
| Execute the script for a particular action. More...
|
|
void | ScriptEvent (const CStr &Action, JS::HandleValue Argument) |
| Execute the script for a particular action. More...
|
|
void | SetScriptHandler (const CStr &Action, JS::HandleObject Function) |
|
void | UpdateMouseOver (IGUIObject *const &pMouseOver) |
| Inputes the object that is currently hovered, this function updates this object accordingly (i.e. More...
|
|
void | CalculateTextPosition (CRect &ObjSize, CPos &TextPos, SGUIText &Text) |
| Calculate the position for the text, based on the alignment. More...
|
|
Multi-column list.
One row can be selected by the user. Individual cells are clipped if the contained text is too long.
The list can be sorted dynamically by JS code when a heading is clicked. A scroll-bar will appear when needed.