27 #ifndef _InventoryItem_h_ 28 #define _InventoryItem_h_ 30 #include "InventoryBase.h" 31 #include <CEGUI/widgets/DragContainer.h> 41 static const String WidgetTypeName;
42 static const String EventNamespace;
47 bool isSolidAtLocation(
int x,
int y)
const;
51 void setItemLayout(
const bool* layout);
57 int locationOnReceiverX()
const;
63 int locationOnReceiverY()
const;
68 void setLocationOnReceiver(
int x,
int y);
72 bool currentDropTargetIsValid()
const;
75 bool isHit(
const Vector2f& position,
const bool allow_disabled =
false)
const;
76 void setContentSize(
int width,
int height);
83 Rectf gridBasePixelRect()
const;
87 bool d_validDropTarget;
89 int d_receiverLocationX;
91 int d_receiverLocationY;
96 #endif // end of guard _InventoryItem_h_
Generic drag & drop enabled window class.
Definition: cegui/include/CEGUI/widgets/DragContainer.h:45
bool isHit(const Vector2f &position, const bool allow_disabled=false) const
check if the given pixel position would hit this window.
Definition: InventoryItem.cpp:90
Main namespace for Crazy Eddie's GUI Library.
Definition: cegui/include/CEGUI/Affector.h:42
EventArgs based class used for certain drag/drop notifications.
Definition: cegui/include/CEGUI/InputEvent.h:341
void onDragDropTargetChanged(DragDropEventArgs &e)
Method called when the current drop target of this DragContainer changes.
Definition: InventoryItem.cpp:172
void onMoved(ElementEventArgs &e)
Handler called when the window's position changes.
Definition: InventoryItem.cpp:148
Definition: InventoryBase.h:37
void populateGeometryBuffer()
Update the rendering cache.
Definition: InventoryItem.cpp:111
EventArgs based class that is used for objects passed to handlers triggered for events concerning som...
Definition: cegui/include/CEGUI/Element.h:210
Definition: InventoryItem.h:38
String class used within the GUI system.
Definition: cegui/include/CEGUI/String.h:62