GItem Class Reference

Base class for items in widget containers. More...

#include <GList.h>

Inheritance diagram for GItem:

GListItem GTreeItem

List of all members.

Classes

struct  ItemPaintCtx
 Painting context. More...

Public Member Functions

virtual void OnSelect ()
 Called when the item is selected.
virtual void OnMouseClick (GMouse &m)
 Called when the item is clicked.
virtual void OnPaint (ItemPaintCtx &Ctx)=0
 Called when the item needs painting.
virtual bool OnBeginDrag (GMouse &m)
 Called when the item is dragged.
virtual void OnMeasure (GMeasureInfo *Info)
 Called when the owning container needs to know the size of the item.
virtual void OnInsert ()
 Called when the item is inserted into a new container.
virtual void OnRemove ()
 Called when the item is removed from it's container.
virtual void Update ()
 Call to tell the container that the data displayed by the item has changed.
virtual void ScrollTo ()
 Moves the item onscreen.
virtual GViewEditLabel (int Col=-1)
 Shows a editable label above the item allowing the user to change the value associated with the column 'Col'.
virtual void OnEditLabelEnd ()
 Event called when the edit label ends.
virtual bool Select ()
 True if the item is selected.
virtual void Select (bool b)
 Select/Deselect the item.
virtual char * GetText (int Col=0)
 Gets the text associated with the column 'Col'.
virtual bool SetText (char *s, int Col=0)
 Sets the text associated with the column 'Col'.
virtual int GetImage (int Flags=0)
 Gets the icon index.
virtual void SetImage (int Col)
 Sets the icon index.
virtual GRectGetPos (int Col=-1)
 Gets the position.
virtual GFontGetFont ()
 Gets the font for the item.
virtual GViewFillGetForegroundFill ()
 Gets the foreground (font colour).
virtual void SetForegroundFill (GViewFill *Fill)
 Sets the foreground.
virtual GViewFillGetBackgroundFill ()
 Gets the background fill setting.
virtual void SetBackgroundFill (GViewFill *Fill)
 Sets the background fill setting.
virtual bool XmlIo (class GXmlTag *Tag, bool Write)
 Reads / writes list item to XML.


Detailed Description

Base class for items in widget containers.
The documentation for this class was generated from the following file:

Generated on Wed Dec 1 15:41:03 2010 for Lgi by  doxygen 1.5.7.1