MyGUI  3.2.1
Public Types | Public Member Functions | Static Public Member Functions | Data Fields | Protected Member Functions | Protected Attributes
MyGUI::DDContainer Class Reference

DDContainer properties. Skin childs. DDContainer widget description should be here. More...

#include <MyGUI_DDContainer.h>

+ Inheritance diagram for MyGUI::DDContainer:

Public Types

typedef RTTIBase Base
typedef DDContainer 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
 DDContainer ()
void setNeedDragDrop (bool _value)
bool getNeedDragDrop () const
void resetDrag ()
virtual void _setContainerItemInfo (size_t _index, bool _set, bool _accept)

Static Public Member Functions

static const std::string & getClassTypeName ()

Data Fields

EventHandle_DDContainerPtrCDDItemInfoRefBoolRef eventStartDrag
EventHandle_DDContainerPtrCDDItemInfoRefBoolRef eventRequestDrop
EventHandle_DDContainerPtrCDDItemInfoRefBool eventDropResult
EventHandle_EventHandle_DDContainerPtrDDItemState eventChangeDDState
EventHandle_EventHandle_DDContainerPtrWidgetPtrRefIntCoordRef requestDragWidgetInfo
delegates::CMultiDelegate1
< DDContainer * > 
_eventInvalideContainer
delegates::CMultiDelegate3
< DDContainer *, Widget
*, const DDWidgetState & > 
eventUpdateDropState

Protected Member Functions

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, MouseButton _id)
virtual void notifyInvalideDrop (DDContainer *_sender)
virtual void removeDropItems ()
virtual void updateDropItems ()
virtual void updateDropItemsState (const DDWidgetState &_state)
void mouseDrag (MouseButton _id)
void mouseButtonReleased (MouseButton _id)
void mouseButtonPressed (MouseButton _id)
void endDrop (bool _reset)
virtual void setPropertyOverride (const std::string &_key, const std::string &_value)

Protected Attributes

bool mDropResult
bool mNeedDrop
bool mStartDrop
WidgetmOldDrop
WidgetmCurrentSender
DDItemInfo mDropInfo
size_t mDropSenderIndex
WidgetmDropItem
IntCoord mDropDimension
IntPoint mClickInWidget
bool mNeedDragDrop
DDContainermReseiverContainer

Detailed Description

DDContainer properties. Skin childs. DDContainer widget description should be here.

Definition at line 27 of file MyGUI_DDContainer.h.


Member Typedef Documentation

Reimplemented from MyGUI::Widget.

Reimplemented in MyGUI::ItemBox.

Definition at line 30 of file MyGUI_DDContainer.h.

Reimplemented from MyGUI::Widget.

Reimplemented in MyGUI::ItemBox.

Definition at line 30 of file MyGUI_DDContainer.h.


Constructor & Destructor Documentation

Definition at line 15 of file MyGUI_DDContainer.cpp.


Member Function Documentation

void MyGUI::DDContainer::_setContainerItemInfo ( size_t  _index,
bool  _set,
bool  _accept 
) [virtual]

Reimplemented in MyGUI::ItemBox.

Definition at line 280 of file MyGUI_DDContainer.cpp.

void MyGUI::DDContainer::endDrop ( bool  _reset) [protected]

Definition at line 199 of file MyGUI_DDContainer.cpp.

static const std::string& MyGUI::DDContainer::getClassTypeName ( ) [inline, static]

Reimplemented from MyGUI::Widget.

Reimplemented in MyGUI::ItemBox.

Definition at line 30 of file MyGUI_DDContainer.h.

Get drag'n'drop mode flag

Definition at line 275 of file MyGUI_DDContainer.cpp.

virtual const std::string& MyGUI::DDContainer::getTypeName ( ) const [inline, virtual]

Get type name as string

Reimplemented from MyGUI::Widget.

Reimplemented in MyGUI::ItemBox.

Definition at line 30 of file MyGUI_DDContainer.h.

template<typename Type >
bool MyGUI::DDContainer::isType ( ) const [inline]

Compare with selected type

Reimplemented from MyGUI::Widget.

Reimplemented in MyGUI::ItemBox.

Definition at line 30 of file MyGUI_DDContainer.h.

virtual bool MyGUI::DDContainer::isType ( const std::type_info &  _type) const [inline, virtual]

Compare with selected type

Reimplemented from MyGUI::Widget.

Reimplemented in MyGUI::ItemBox.

Definition at line 30 of file MyGUI_DDContainer.h.

Definition at line 52 of file MyGUI_DDContainer.cpp.

Definition at line 74 of file MyGUI_DDContainer.cpp.

void MyGUI::DDContainer::mouseDrag ( MouseButton  _id) [protected]

Definition at line 82 of file MyGUI_DDContainer.cpp.

void MyGUI::DDContainer::notifyInvalideDrop ( DDContainer _sender) [protected, virtual]

Definition at line 250 of file MyGUI_DDContainer.cpp.

void MyGUI::DDContainer::onMouseButtonPressed ( int  _left,
int  _top,
MouseButton  _id 
) [protected, virtual]

Reimplemented from MyGUI::WidgetInput.

Reimplemented in MyGUI::ItemBox.

Definition at line 28 of file MyGUI_DDContainer.cpp.

void MyGUI::DDContainer::onMouseButtonReleased ( int  _left,
int  _top,
MouseButton  _id 
) [protected, virtual]

Reimplemented from MyGUI::WidgetInput.

Reimplemented in MyGUI::ItemBox.

Definition at line 38 of file MyGUI_DDContainer.cpp.

void MyGUI::DDContainer::onMouseDrag ( int  _left,
int  _top,
MouseButton  _id 
) [protected, virtual]

Reimplemented from MyGUI::WidgetInput.

Reimplemented in MyGUI::ItemBox.

Definition at line 45 of file MyGUI_DDContainer.cpp.

void MyGUI::DDContainer::removeDropItems ( ) [protected, virtual]

Reimplemented in MyGUI::ItemBox.

Definition at line 223 of file MyGUI_DDContainer.cpp.

Reimplemented in MyGUI::ItemBox.

Definition at line 284 of file MyGUI_DDContainer.cpp.

void MyGUI::DDContainer::setNeedDragDrop ( bool  _value)

Set drag'n'drop mode flag. Disabled (false) by default.

Definition at line 270 of file MyGUI_DDContainer.cpp.

void MyGUI::DDContainer::setPropertyOverride ( const std::string &  _key,
const std::string &  _value 
) [protected, virtual]
Properties:
NeedDragDrop is DDContainer property with type bool. Поддержка Drag and Drop.

Reimplemented from MyGUI::Widget.

Reimplemented in MyGUI::ItemBox.

Definition at line 255 of file MyGUI_DDContainer.cpp.

void MyGUI::DDContainer::updateDropItems ( ) [protected, virtual]

Reimplemented in MyGUI::ItemBox.

Definition at line 228 of file MyGUI_DDContainer.cpp.

void MyGUI::DDContainer::updateDropItemsState ( const DDWidgetState _state) [protected, virtual]

Reimplemented in MyGUI::ItemBox.

Definition at line 245 of file MyGUI_DDContainer.cpp.


Field Documentation

Event : [Internal event] невалидна информация для контейнера.
signature : void method(MyGUI::DDContainer* _sender)

Parameters:
_senderwidget that called this event

Definition at line 93 of file MyGUI_DDContainer.h.

Event : Drag'n'drop state changed.
signature : void method(MyGUI::DDContainer* _sender, MyGUI::DDItemState _state)

Parameters:
_senderwidget that called this event
_statenew state

Definition at line 74 of file MyGUI_DDContainer.h.

Event : End drag (drop).
signature : void method(MyGUI::DDContainer* _sender, const MyGUI::DDItemInfo& _info, bool _result)

Parameters:
_senderwidget that called this event
_infoinformation about DDContainers
_resultif true then drop was successfull

Definition at line 67 of file MyGUI_DDContainer.h.

Event : Request for start drop (moving mouse over container, but not dropped yet).
signature : void method(MyGUI::DDContainer* _sender, const MyGUI::DDItemInfo& _info, bool& _result)

Parameters:
_senderwidget that called this event
_infoinformation about DDContainers
_resultwrite here true if container accept dragged widget or false if it isn't

Definition at line 59 of file MyGUI_DDContainer.h.

Event : Request for start drag.
signature : void method(MyGUI::DDContainer* _sender, const MyGUI::DDItemInfo& _info, bool& _result)

Parameters:
_senderwidget that called this event
_infoinformation about DDContainers
_resultwrite here true if container can be draggedor false if it can't

Definition at line 51 of file MyGUI_DDContainer.h.

Event : [Internal event] !!обновить виджеты дропа DD_FIXME наверное internal.
signature : void method(MyGUI::DDContainer* _sender, MyGUI::Widget* _item, const MyGUI::DDWidgetState& _state)

Parameters:
_senderwidget that called this event
_items
_state

Definition at line 101 of file MyGUI_DDContainer.h.

Definition at line 138 of file MyGUI_DDContainer.h.

Definition at line 128 of file MyGUI_DDContainer.h.

Definition at line 136 of file MyGUI_DDContainer.h.

Definition at line 130 of file MyGUI_DDContainer.h.

Definition at line 135 of file MyGUI_DDContainer.h.

Definition at line 123 of file MyGUI_DDContainer.h.

Definition at line 132 of file MyGUI_DDContainer.h.

Definition at line 141 of file MyGUI_DDContainer.h.

Definition at line 124 of file MyGUI_DDContainer.h.

Definition at line 127 of file MyGUI_DDContainer.h.

Definition at line 143 of file MyGUI_DDContainer.h.

Definition at line 125 of file MyGUI_DDContainer.h.

Event : [not used] Request widget for dragging.
signature : void method(MyGUI::DDContainer* _sender, MyGUI::Widget*& _item, MyGUI::IntCoord& _dimension)

Parameters:
_senderwidget that called this event
_itemwrite widget pointer here
_dimensionwrite widget coordinate here

Definition at line 82 of file MyGUI_DDContainer.h.


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