MyGUI  3.0.1
Data Structures | Public Types | Public Member Functions | Static Public Member Functions | Data Fields | Protected Types | Protected Member Functions
MyGUI::ListCtrl Class Reference

#include <MyGUI_ListCtrl.h>

+ Inheritance diagram for MyGUI::ListCtrl:

Data Structures

struct  ItemDataInfo

Public Types

typedef RTTIBase Base
typedef ListCtrl RTTIBase
- Public Types inherited from MyGUI::DDContainer
typedef RTTIBase Base
typedef DDContainer RTTIBase
- Public Types inherited from MyGUI::Widget
typedef Widget RTTIBase
- Public Types inherited from MyGUI::IObject
typedef IObject RTTIBase

Public Member Functions

virtual const std::string & getTypeName () const
virtual bool isType (const std::type_info &_type) const
template<typename Type >
bool isType () const
 ListCtrl ()
size_t getItemCount () const
 Get number of items.
void insertItemAt (size_t _index, Any _data=Any::Null)
 Insert an item into a array at a specified position.
void addItem (Any _data=Any::Null)
 Add an item to the end of a array.
void removeItemAt (size_t _index)
 Remove item at a specified position.
void removeAllItems ()
 Remove all items.
void redrawItemAt (size_t _index)
 Redraw at a specified position.
void redrawAllItems ()
 Redraw all items.
size_t getIndexSelected ()
 Get index of selected item (ITEM_NONE if none selected)
void setIndexSelected (size_t _index)
 Select specified _index.
void clearIndexSelected ()
 Clear item selection.
void setItemDataAt (size_t _index, Any _data)
 Replace an item data at a specified position.
void clearItemDataAt (size_t _index)
 Clear an item data at a specified position.
template<typename ValueType >
ValueType * getItemDataAt (size_t _index, bool _throw=true)
 Get item data from specified position.
size_t getIndexByWidget (Widget *_widget)
WidgetgetWidgetDrag ()
WidgetgetWidgetByIndex (size_t _index)
void resetDrag ()
virtual void setPosition (const IntPoint &_value)
 
virtual void setSize (const IntSize &_value)
 
virtual void setCoord (const IntCoord &_value)
 
void setPosition (int _left, int _top)
 
void setSize (int _width, int _height)
 
void setCoord (int _left, int _top, int _width, int _height)
 
virtual void _initialise (WidgetStyle _style, const IntCoord &_coord, Align _align, ResourceSkin *_info, Widget *_parent, ICroppedRectangle *_croppedParent, IWidgetCreator *_creator, const std::string &_name)
- Public Member Functions inherited from MyGUI::DDContainer
 DDContainer ()
void setNeedDragDrop (bool _value)
bool getNeedDragDrop ()
virtual void setProperty (const std::string &_key, const std::string &_value)
 
- Public Member Functions inherited from MyGUI::Widget
template<typename Type >
Type * castType (bool _throw=true)
template<typename Type >
const Type * castType (bool _throw=true) const
 Widget ()
WidgetcreateWidgetT (const std::string &_type, const std::string &_skin, const IntCoord &_coord, Align _align, const std::string &_name="")
WidgetcreateWidgetT (const std::string &_type, const std::string &_skin, int _left, int _top, int _width, int _height, Align _align, const std::string &_name="")
WidgetcreateWidgetRealT (const std::string &_type, const std::string &_skin, const FloatCoord &_coord, Align _align, const std::string &_name="")
WidgetcreateWidgetRealT (const std::string &_type, const std::string &_skin, float _left, float _top, float _width, float _height, Align _align, const std::string &_name="")
template<typename T >
T * createWidget (const std::string &_skin, const IntCoord &_coord, Align _align, const std::string &_name="")
template<typename T >
T * createWidget (const std::string &_skin, int _left, int _top, int _width, int _height, Align _align, const std::string &_name="")
template<typename T >
T * createWidgetReal (const std::string &_skin, const FloatCoord &_coord, Align _align, const std::string &_name="")
template<typename T >
T * createWidgetReal (const std::string &_skin, float _left, float _top, float _width, float _height, Align _align, const std::string &_name="")
WidgetcreateWidgetT (WidgetStyle _style, const std::string &_type, const std::string &_skin, const IntCoord &_coord, Align _align, const std::string &_layer="", const std::string &_name="")
template<typename T >
T * createWidget (WidgetStyle _style, const std::string &_skin, const IntCoord &_coord, Align _align, const std::string &_layer="", const std::string &_name="")
const std::string & getName () const
 Get name of widget.
void setRealPosition (const FloatPoint &_value)
void setRealSize (const FloatSize &_value)
void setRealCoord (const FloatCoord &_value)
void setRealPosition (float _left, float _top)
void setRealSize (float _width, float _height)
void setRealCoord (float _left, float _top, float _width, float _height)
virtual void setVisible (bool _value)
virtual void setAlign (Align _value)
virtual void setCaption (const UString &_value)
virtual const UStringgetCaption ()
void setAlpha (float _value)
float getAlpha ()
void setInheritsAlpha (bool _value)
bool isInheritsAlpha ()
bool setState (const std::string &_value)
void setColour (const Colour &_value)
bool isRootWidget ()
WidgetgetParent ()
EnumeratorWidgetPtr getEnumerator ()
size_t getChildCount ()
WidgetgetChildAt (size_t _index)
WidgetfindWidget (const std::string &_name)
void setNeedKeyFocus (bool _value)
bool isNeedKeyFocus ()
void setNeedMouseFocus (bool _value)
bool isNeedMouseFocus ()
void setInheritsPick (bool _value)
bool isInheritsPick ()
void setMaskPick (const std::string &_filename)
virtual void setEnabled (bool _value)
void setEnabledSilent (bool _value)
bool isEnabled ()
void setPointer (const std::string &_value)
const std::string & getPointer ()
const std::string & getLayerName ()
IntCoord getClientCoord ()
WidgetgetClientWidget ()
ISubWidgetTextgetSubWidgetText ()
ISubWidgetRectgetSubWidgetMain ()
void setNeedToolTip (bool _value)
bool getNeedToolTip ()
void setEnableToolTip (bool _value)
bool getEnableToolTip ()
void detachFromWidget (const std::string &_layer="")
void attachToWidget (Widget *_parent, WidgetStyle _style=WidgetStyle::Child, const std::string &_layer="")
void changeWidgetSkin (const std::string &_skinname)
void setWidgetStyle (WidgetStyle _style, const std::string &_layer="")
WidgetStyle getWidgetStyle ()
void _forcePeek (Widget *_widget)
void _setUVSet (const FloatRect &_rect)
virtual void _setTextureName (const std::string &_texture)
virtual const std::string & _getTextureName ()
IWidgetCreator_getIWidgetCreator ()
IntCoord _getTextRegion ()
IntSize _getTextSize ()
void _setFontName (const std::string &_font)
const std::string & _getFontName ()
void _setFontHeight (int _height)
int _getFontHeight ()
void _setTextAlign (Align _align)
Align _getTextAlign ()
void _setTextColour (const Colour &_colour)
const Colour_getTextColour ()
void setCaptionWithNewLine (const std::string &_value)
void setPosition (const IntCoord &_coord)
void setPosition (int _left, int _top, int _width, int _height)
void enableToolTip (bool _enable)
void setInheritsPeek (bool _inherits)
bool isInheritsPeek ()
void setMaskPeek (const std::string &_filename)
IntCoord getTextCoord ()
IntSize getTextSize ()
void setFontName (const std::string &_font)
const std::string & getFontName ()
void setFontHeight (int _height)
int getFontHeight ()
void setTextAlign (Align _align)
Align getTextAlign ()
void setTextColour (const Colour &_colour)
const ColourgetTextColour ()
- Public Member Functions inherited from MyGUI::IObject
virtual ~IObject ()
- Public Member Functions inherited from MyGUI::ICroppedRectangle
 ICroppedRectangle ()
virtual ~ICroppedRectangle ()
ICroppedRectanglegetCroppedParent ()
const IntCoordgetCoord () const
IntPoint getPosition () const
IntSize getSize () const
bool isVisible () const
const IntPointgetAbsolutePosition () const
IntRect getAbsoluteRect () const
IntCoord getAbsoluteCoord () const
int getAbsoluteLeft () const
int getAbsoluteTop () const
Align getAlign () const
int getLeft () const
int getRight () const
int getTop () const
int getBottom () const
int getWidth () const
int getHeight () const
bool _isMargin () const
int _getViewLeft () const
int _getViewRight () const
int _getViewTop () const
int _getViewBottom () const
int _getViewWidth () const
int _getViewHeight () const
virtual void _correctView ()
void _setCroppedParent (ICroppedRectangle *_parent)
const IntRect_getMargin () const
int _getMarginLeft () const
int _getMarginRight () const
int _getMarginTop () const
int _getMarginBottom () const
void show ()
void hide ()
bool isShow ()
- Public Member Functions inherited from MyGUI::LayerItem
 LayerItem ()
virtual ~LayerItem ()
ILayergetLayer ()
virtual void attachItemToNode (ILayer *_layer, ILayerNode *_node)
virtual void detachFromLayer ()
virtual void upLayerItem ()
void setRenderItemTexture (ITexture *_texture)
void addChildItem (LayerItem *_item)
void removeChildItem (LayerItem *_item)
void addChildNode (LayerItem *_item)
void removeChildNode (LayerItem *_item)
void addRenderItem (ISubWidget *_item)
void removeAllRenderItems ()
void saveLayerItem ()
void restoreLayerItem ()
- Public Member Functions inherited from MyGUI::ILayerItem
virtual ~ILayerItem ()
- Public Member Functions inherited from MyGUI::UserData
 UserData ()
virtual ~UserData ()
void setUserString (const std::string &_key, const std::string &_value)
const std::string & getUserString (const std::string &_key)
bool clearUserString (const std::string &_key)
bool isUserString (const std::string &_key)
void clearUserStrings ()
void setUserData (Any _data)
template<typename ValueType >
ValueType * getUserData (bool _throw=true)
void _setInternalData (Any _data)
template<typename ValueType >
ValueType * _getInternalData (bool _throw=true)
void * getUserData ()
- Public Member Functions inherited from MyGUI::WidgetEvent
virtual ~WidgetEvent ()
- Public Member Functions inherited from MyGUI::IWidgetCreator
virtual ~IWidgetCreator ()
virtual void _linkChildWidget (Widget *_widget)
virtual void _unlinkChildWidget (Widget *_widget)

Static Public Member Functions

static const std::string & getClassTypeName ()

Data Fields

EventHandle_ListCtrlPtrWidgetPtr requestCreateWidgetItem
EventHandle_ListCtrlPtrWidgetPtrCIBCellDrawInfoRef requestDrawItem
EventHandle_ListCtrlPtrSizeT eventSelectItemAccept
EventHandle_ListCtrlPtrSizeT eventChangeItemPosition
EventHandle_ListCtrlPtrSizeT eventMouseItemActivate
EventHandle_ListCtrlPtrCIBNotifyCellDataRef eventNotifyItem
- Data Fields inherited from MyGUI::DDContainer
EventHandle_DDContainerPtrCDDItemInfoRefBoolRef eventStartDrag
EventHandle_DDContainerPtrCDDItemInfoRefBoolRef eventRequestDrop
EventHandle_DDContainerPtrCDDItemInfoRefBool eventDropResult
EventHandle_EventHandle_DDContainerPtrDDItemState eventChangeDDState
EventHandle_EventHandle_DDContainerPtrWidgetPtrRefIntCoordRef requestDragWidgetInfo
EventPair
< EventHandle_WidgetVoid,
delegates::CDelegate1
< DDContainer * > > 
_eventInvalideContainer
delegates::CDelegate3
< DDContainer *, Widget
*, const DDWidgetState & > 
eventUpdateDropState

Protected Types

typedef std::vector< ItemDataInfoVectorItemInfo

Protected Member Functions

virtual ~ListCtrl ()
void baseChangeWidgetSkin (ResourceSkin *_info)
virtual void onMouseButtonPressed (int _left, int _top, MouseButton _id)
virtual void onMouseButtonReleased (int _left, int _top, MouseButton _id)
virtual void onMouseDrag (int _left, int _top)
virtual void onMouseWheel (int _rel)
virtual void onKeyLostFocus (Widget *_new)
virtual void onKeySetFocus (Widget *_old)
void notifyKeyButtonPressed (Widget *_sender, KeyCode _key, Char _char)
void notifyKeyButtonReleased (Widget *_sender, KeyCode _key)
void notifyScrollChangePosition (VScroll *_sender, size_t _index)
void notifyMouseWheel (Widget *_sender, int _rel)
void notifyRootMouseChangeFocus (Widget *_sender, bool _focus)
void notifyMouseButtonDoubleClick (Widget *_sender)
void _requestGetContainer (Widget *_sender, Widget *&_container, size_t &_index)
void notifyMouseDrag (Widget *_sender, int _left, int _top)
void notifyMouseButtonPressed (Widget *_sender, int _left, int _top, MouseButton _id)
void notifyMouseButtonReleased (Widget *_sender, int _left, int _top, MouseButton _id)
virtual void removeDropItems ()
virtual void updateDropItems ()
virtual void updateDropItemsState (const DDWidgetState &_state)
void updateMetrics ()
void _updateAllVisible (size_t _index, bool _needUpdateContetntSize, bool _update)
void updateFromResize ()
WidgetgetItemWidget (size_t _index)
void _setContainerItemInfo (size_t _index, bool _set, bool _accept)
void resetCurrentActiveItem ()
void findCurrentActiveItem ()
virtual size_t _getContainerIndex (const IntPoint &_point)
virtual void _resetContainer (bool _update)
void _setScrollViewPage (size_t _size)
- Protected Member Functions inherited from MyGUI::DDContainer
virtual ~DDContainer ()
virtual void notifyInvalideDrop (DDContainer *_sender)
virtual void _getContainer (Widget *&_container, size_t &_index)
void mouseDrag ()
void mouseButtonReleased (MouseButton _id)
void mouseButtonPressed (MouseButton _id)
void endDrop (bool _reset)
- Protected Member Functions inherited from MyGUI::Widget
 Widget (WidgetStyle _style, const IntCoord &_coord, Align _align, ResourceSkin *_info, Widget *_parent, ICroppedRectangle *_croppedParent, IWidgetCreator *_creator, const std::string &_name)
virtual ~Widget ()
void _updateView ()
void _setAlign (const IntSize &_oldsize, bool _update)
void _setAlign (const IntCoord &_oldcoord, bool _update)
virtual WidgetbaseCreateWidget (WidgetStyle _style, const std::string &_type, const std::string &_skin, const IntCoord &_coord, Align _align, const std::string &_layer, const std::string &_name)
virtual void _destroyChildWidget (Widget *_widget)
virtual void _destroyAllChildWidget ()
virtual void baseUpdateEnable ()
virtual ILayerItemgetLayerItemByPoint (int _left, int _top)
virtual const IntCoordgetLayerItemCoord ()
- Protected Member Functions inherited from MyGUI::ICroppedRectangle
bool _checkPoint (int _left, int _top)
bool _checkMargin ()
bool _checkOutside ()
- Protected Member Functions inherited from MyGUI::LayerItem
void attachToLayerItemNode (ILayerNode *_node, bool _deep)
void detachFromLayerItemNode (bool _deep)
- Protected Member Functions inherited from MyGUI::WidgetEvent
 WidgetEvent ()
virtual void onMouseLostFocus (Widget *_new)
virtual void onMouseSetFocus (Widget *_old)
virtual void onMouseMove (int _left, int _top)
virtual void onMouseButtonClick ()
virtual void onMouseButtonDoubleClick ()
virtual void onKeyButtonPressed (KeyCode _key, Char _char)
virtual void onKeyButtonReleased (KeyCode _key)
virtual void onMouseChangeRootFocus (bool _focus)
virtual void onKeyChangeRootFocus (bool _focus)
- Protected Member Functions inherited from MyGUI::IWidgetCreator
void _deleteWidget (Widget *_widget)

Additional Inherited Members

- Protected Attributes inherited from MyGUI::DDContainer
bool mDropResult
bool mNeedDrop
bool mStartDrop
WidgetmOldDrop
WidgetmCurrentSender
DDItemInfo mDropInfo
size_t mDropSenderIndex
WidgetmDropItem
IntCoord mDropDimension
IntPoint mClickInWidget
bool mNeedDragDrop
DDContainermReseiverContainer

Detailed Description

Definition at line 41 of file MyGUI_ListCtrl.h.

Member Typedef Documentation

Definition at line 45 of file MyGUI_ListCtrl.h.

Definition at line 45 of file MyGUI_ListCtrl.h.

typedef std::vector<ItemDataInfo> MyGUI::ListCtrl::VectorItemInfo
protected

Definition at line 194 of file MyGUI_ListCtrl.h.

Constructor & Destructor Documentation

MyGUI::ListCtrl::ListCtrl ( )

Definition at line 37 of file MyGUI_ListCtrl.cpp.

MyGUI::ListCtrl::~ListCtrl ( )
protectedvirtual

Definition at line 56 of file MyGUI_ListCtrl.cpp.

Member Function Documentation

size_t MyGUI::ListCtrl::_getContainerIndex ( const IntPoint _point)
protectedvirtual

Reimplemented from MyGUI::Widget.

Definition at line 578 of file MyGUI_ListCtrl.cpp.

void MyGUI::ListCtrl::_initialise ( WidgetStyle  _style,
const IntCoord _coord,
Align  _align,
ResourceSkin _info,
Widget _parent,
ICroppedRectangle _croppedParent,
IWidgetCreator _creator,
const std::string &  _name 
)
virtual

Reimplemented from MyGUI::DDContainer.

Reimplemented in MyGUI::ListBox.

Definition at line 49 of file MyGUI_ListCtrl.cpp.

void MyGUI::ListCtrl::_requestGetContainer ( Widget _sender,
Widget *&  _container,
size_t &  _index 
)
protected

Definition at line 350 of file MyGUI_ListCtrl.cpp.

void MyGUI::ListCtrl::_resetContainer ( bool  _update)
protectedvirtual

Reimplemented from MyGUI::Widget.

Definition at line 593 of file MyGUI_ListCtrl.cpp.

void MyGUI::ListCtrl::_setContainerItemInfo ( size_t  _index,
bool  _set,
bool  _accept 
)
protectedvirtual

Reimplemented from MyGUI::DDContainer.

Definition at line 368 of file MyGUI_ListCtrl.cpp.

void MyGUI::ListCtrl::_setScrollViewPage ( size_t  _size)
inlineprotected

Definition at line 247 of file MyGUI_ListCtrl.h.

void MyGUI::ListCtrl::_updateAllVisible ( size_t  _index,
bool  _needUpdateContetntSize,
bool  _update 
)
protected

Definition at line 160 of file MyGUI_ListCtrl.cpp.

void MyGUI::ListCtrl::addItem ( Any  _data = Any::Null)
inline

Add an item to the end of a array.

Definition at line 60 of file MyGUI_ListCtrl.h.

void MyGUI::ListCtrl::baseChangeWidgetSkin ( ResourceSkin _info)
protectedvirtual

Reimplemented from MyGUI::DDContainer.

Reimplemented in MyGUI::ListBox.

Definition at line 71 of file MyGUI_ListCtrl.cpp.

void MyGUI::ListCtrl::clearIndexSelected ( )
inline

Clear item selection.

Reimplemented in MyGUI::ListBox.

Definition at line 85 of file MyGUI_ListCtrl.h.

void MyGUI::ListCtrl::clearItemDataAt ( size_t  _index)
inline

Clear an item data at a specified position.

Reimplemented in MyGUI::ListBox.

Definition at line 95 of file MyGUI_ListCtrl.h.

void MyGUI::ListCtrl::findCurrentActiveItem ( )
protected

Definition at line 309 of file MyGUI_ListCtrl.cpp.

static const std::string& MyGUI::ListCtrl::getClassTypeName ( )
inlinestatic

Reimplemented from MyGUI::DDContainer.

Reimplemented in MyGUI::ListBox.

Definition at line 45 of file MyGUI_ListCtrl.h.

size_t MyGUI::ListCtrl::getIndexByWidget ( Widget _widget)

Get item index by item Widget pointer

Definition at line 566 of file MyGUI_ListCtrl.cpp.

size_t MyGUI::ListCtrl::getIndexSelected ( )
inline

Get index of selected item (ITEM_NONE if none selected)

Reimplemented in MyGUI::ListBox.

Definition at line 79 of file MyGUI_ListCtrl.h.

size_t MyGUI::ListCtrl::getItemCount ( ) const
inline

Get number of items.

Reimplemented in MyGUI::ListBox.

Definition at line 54 of file MyGUI_ListCtrl.h.

template<typename ValueType >
ValueType* MyGUI::ListCtrl::getItemDataAt ( size_t  _index,
bool  _throw = true 
)
inline

Get item data from specified position.

Reimplemented in MyGUI::ListBox.

Definition at line 99 of file MyGUI_ListCtrl.h.

Widget * MyGUI::ListCtrl::getItemWidget ( size_t  _index)
protected

Definition at line 229 of file MyGUI_ListCtrl.cpp.

virtual const std::string& MyGUI::ListCtrl::getTypeName ( ) const
inlinevirtual

Get type name as string

Reimplemented from MyGUI::DDContainer.

Reimplemented in MyGUI::ListBox.

Definition at line 45 of file MyGUI_ListCtrl.h.

Widget * MyGUI::ListCtrl::getWidgetByIndex ( size_t  _index)

Get item Widget pointer by item index if it is visible

Note
returned widget can be deleted, so this pointer is valid only at time when you got it and can be invalid next frame

Definition at line 608 of file MyGUI_ListCtrl.cpp.

Widget* MyGUI::ListCtrl::getWidgetDrag ( )
inline

Get widget created for drop

Definition at line 110 of file MyGUI_ListCtrl.h.

void MyGUI::ListCtrl::insertItemAt ( size_t  _index,
Any  _data = Any::Null 
)

Insert an item into a array at a specified position.

Definition at line 414 of file MyGUI_ListCtrl.cpp.

template<typename Type >
bool MyGUI::ListCtrl::isType ( ) const
inline

Compare with selected type

Reimplemented from MyGUI::DDContainer.

Reimplemented in MyGUI::ListBox.

Definition at line 45 of file MyGUI_ListCtrl.h.

virtual bool MyGUI::ListCtrl::isType ( const std::type_info &  _type) const
inlinevirtual

Compare with selected type

Reimplemented from MyGUI::DDContainer.

Reimplemented in MyGUI::ListBox.

Definition at line 45 of file MyGUI_ListCtrl.h.

void MyGUI::ListCtrl::notifyKeyButtonPressed ( Widget _sender,
KeyCode  _key,
Char  _char 
)
protected

Definition at line 556 of file MyGUI_ListCtrl.cpp.

void MyGUI::ListCtrl::notifyKeyButtonReleased ( Widget _sender,
KeyCode  _key 
)
protected

Definition at line 561 of file MyGUI_ListCtrl.cpp.

void MyGUI::ListCtrl::notifyMouseButtonDoubleClick ( Widget _sender)
protected

Definition at line 549 of file MyGUI_ListCtrl.cpp.

void MyGUI::ListCtrl::notifyMouseButtonPressed ( Widget _sender,
int  _left,
int  _top,
MouseButton  _id 
)
protected

Definition at line 688 of file MyGUI_ListCtrl.cpp.

void MyGUI::ListCtrl::notifyMouseButtonReleased ( Widget _sender,
int  _left,
int  _top,
MouseButton  _id 
)
protected

Definition at line 722 of file MyGUI_ListCtrl.cpp.

void MyGUI::ListCtrl::notifyMouseDrag ( Widget _sender,
int  _left,
int  _top 
)
protected

Definition at line 683 of file MyGUI_ListCtrl.cpp.

void MyGUI::ListCtrl::notifyMouseWheel ( Widget _sender,
int  _rel 
)
protected

Definition at line 818 of file MyGUI_ListCtrl.cpp.

void MyGUI::ListCtrl::notifyRootMouseChangeFocus ( Widget _sender,
bool  _focus 
)
protected

Definition at line 728 of file MyGUI_ListCtrl.cpp.

void MyGUI::ListCtrl::notifyScrollChangePosition ( VScroll _sender,
size_t  _index 
)
protected

Definition at line 796 of file MyGUI_ListCtrl.cpp.

void MyGUI::ListCtrl::onKeyLostFocus ( Widget _new)
protectedvirtual

Reimplemented from MyGUI::WidgetEvent.

Definition at line 274 of file MyGUI_ListCtrl.cpp.

void MyGUI::ListCtrl::onKeySetFocus ( Widget _old)
protectedvirtual

Reimplemented from MyGUI::WidgetEvent.

Definition at line 266 of file MyGUI_ListCtrl.cpp.

void MyGUI::ListCtrl::onMouseButtonPressed ( int  _left,
int  _top,
MouseButton  _id 
)
protectedvirtual

Reimplemented from MyGUI::DDContainer.

Definition at line 622 of file MyGUI_ListCtrl.cpp.

void MyGUI::ListCtrl::onMouseButtonReleased ( int  _left,
int  _top,
MouseButton  _id 
)
protectedvirtual

Reimplemented from MyGUI::DDContainer.

Definition at line 627 of file MyGUI_ListCtrl.cpp.

void MyGUI::ListCtrl::onMouseDrag ( int  _left,
int  _top 
)
protectedvirtual

Reimplemented from MyGUI::DDContainer.

Definition at line 632 of file MyGUI_ListCtrl.cpp.

void MyGUI::ListCtrl::onMouseWheel ( int  _rel)
protectedvirtual

Reimplemented from MyGUI::WidgetEvent.

Definition at line 259 of file MyGUI_ListCtrl.cpp.

void MyGUI::ListCtrl::redrawAllItems ( )
inline

Redraw all items.

Definition at line 72 of file MyGUI_ListCtrl.h.

void MyGUI::ListCtrl::redrawItemAt ( size_t  _index)

Redraw at a specified position.

Definition at line 488 of file MyGUI_ListCtrl.cpp.

void MyGUI::ListCtrl::removeAllItems ( )

Remove all items.

Reimplemented in MyGUI::ListBox.

Definition at line 472 of file MyGUI_ListCtrl.cpp.

void MyGUI::ListCtrl::removeDropItems ( )
protectedvirtual

Reimplemented from MyGUI::DDContainer.

Definition at line 637 of file MyGUI_ListCtrl.cpp.

void MyGUI::ListCtrl::removeItemAt ( size_t  _index)

Remove item at a specified position.

Reimplemented in MyGUI::ListBox.

Definition at line 442 of file MyGUI_ListCtrl.cpp.

void MyGUI::ListCtrl::resetCurrentActiveItem ( )
protected

Definition at line 282 of file MyGUI_ListCtrl.cpp.

void MyGUI::ListCtrl::resetDrag ( )

Interrupt drag as if widget was dropped into empty space

Definition at line 849 of file MyGUI_ListCtrl.cpp.

void MyGUI::ListCtrl::setCoord ( const IntCoord _value)
virtual

Set widget position and size

Reimplemented from MyGUI::Widget.

Definition at line 143 of file MyGUI_ListCtrl.cpp.

void MyGUI::ListCtrl::setCoord ( int  _left,
int  _top,
int  _width,
int  _height 
)
inline

See Widget::setCoord(const IntCoord& _coord)

Reimplemented from MyGUI::Widget.

Definition at line 134 of file MyGUI_ListCtrl.h.

void MyGUI::ListCtrl::setIndexSelected ( size_t  _index)

Select specified _index.

Reimplemented in MyGUI::ListBox.

Definition at line 505 of file MyGUI_ListCtrl.cpp.

void MyGUI::ListCtrl::setItemDataAt ( size_t  _index,
Any  _data 
)

Replace an item data at a specified position.

Reimplemented in MyGUI::ListBox.

Definition at line 394 of file MyGUI_ListCtrl.cpp.

void MyGUI::ListCtrl::setPosition ( const IntPoint _value)
virtual

Set widget position (position of left top corner)

Reimplemented from MyGUI::Widget.

Definition at line 132 of file MyGUI_ListCtrl.cpp.

void MyGUI::ListCtrl::setPosition ( int  _left,
int  _top 
)
inline

See Widget::setPosition(const IntPoint& _pos)

Reimplemented from MyGUI::Widget.

Definition at line 130 of file MyGUI_ListCtrl.h.

void MyGUI::ListCtrl::setSize ( const IntSize _value)
virtual

Set widget size

Reimplemented from MyGUI::Widget.

Definition at line 137 of file MyGUI_ListCtrl.cpp.

void MyGUI::ListCtrl::setSize ( int  _width,
int  _height 
)
inline

See Widget::setSize(const IntSize& _size)

Reimplemented from MyGUI::Widget.

Definition at line 132 of file MyGUI_ListCtrl.h.

void MyGUI::ListCtrl::updateDropItems ( )
protectedvirtual

Reimplemented from MyGUI::DDContainer.

Definition at line 642 of file MyGUI_ListCtrl.cpp.

void MyGUI::ListCtrl::updateDropItemsState ( const DDWidgetState _state)
protectedvirtual

Reimplemented from MyGUI::DDContainer.

Definition at line 664 of file MyGUI_ListCtrl.cpp.

void MyGUI::ListCtrl::updateFromResize ( )
protected

Definition at line 149 of file MyGUI_ListCtrl.cpp.

void MyGUI::ListCtrl::updateMetrics ( )
protected

Definition at line 782 of file MyGUI_ListCtrl.cpp.

Field Documentation

EventHandle_ListCtrlPtrSizeT MyGUI::ListCtrl::eventChangeItemPosition

Event : position of selected item was changed signature : void method(MyGUI::ListCtrl* _sender, size_t _index)

Parameters
_senderwidget that called this event
_indexitem index

Definition at line 165 of file MyGUI_ListCtrl.h.

EventHandle_ListCtrlPtrSizeT MyGUI::ListCtrl::eventMouseItemActivate

Event : click on item signature : void method(MyGUI::ListCtrl* _sender, size_t _index)

Parameters
_senderwidget that called this event
_indexitem index

Definition at line 172 of file MyGUI_ListCtrl.h.

EventHandle_ListCtrlPtrCIBNotifyCellDataRef MyGUI::ListCtrl::eventNotifyItem

Event : notify about event in item widget signature : void method(MyGUI::ListCtrl* _sender, const MyGUI::IBNotifyItemData& _info)

Parameters
_senderwidget that called this event
_infoinfo about item notify

Definition at line 179 of file MyGUI_ListCtrl.h.

EventHandle_ListCtrlPtrSizeT MyGUI::ListCtrl::eventSelectItemAccept

Event : doubleclick or enter pressed on item signature : void method(MyGUI::ListCtrl* _sender, size_t _index)

Parameters
_senderwidget that called this event
_indexitem index

Definition at line 158 of file MyGUI_ListCtrl.h.

EventHandle_ListCtrlPtrWidgetPtr MyGUI::ListCtrl::requestCreateWidgetItem

Event : request for creating new item signature : void method(MyGUI::ListCtrl* _sender, MyGUI::Widget* _item)

Parameters
_senderwidget that called this event
_itemwidget item pointer

Definition at line 143 of file MyGUI_ListCtrl.h.

EventHandle_ListCtrlPtrWidgetPtrCIBCellDrawInfoRef MyGUI::ListCtrl::requestDrawItem

Event : request for item redraw signature : void method(MyGUI::ListCtrl* _sender, MyGUI::Widget* _item, const MyGUI::IBDrawItemInfo& _info)

Parameters
_senderwidget that called this event
_itemwidget item pointer
_infoitem info

Definition at line 151 of file MyGUI_ListCtrl.h.


The documentation for this class was generated from the following files: