28 #ifndef _CEGUIDragContainer_h_
29 #define _CEGUIDragContainer_h_
31 #include "../CEGUIWindow.h"
32 #include "../CEGUIWindowFactory.h"
33 #include "CEGUIDragContainerProperties.h"
37 # pragma warning(push)
38 # pragma warning(disable : 4251)
91 bool isDraggingEnabled(
void)
const;
104 void setDraggingEnabled(
bool setting);
114 bool isBeingDragged(
void)
const;
127 float getPixelDragThreshold(
void)
const;
143 void setPixelDragThreshold(
float pixels);
153 float getDragAlpha(
void)
const;
170 void setDragAlpha(
float alpha);
180 const Image* getDragCursorImage(
void)
const;
196 void setDragCursorImage(
const Image* image);
234 void setDragCursorImage(
const String& imageset,
const String& image);
247 Window* getCurrentDropTarget(
void)
const;
257 bool isStickyModeEnabled()
const;
267 void setStickyModeEnabled(
bool setting);
285 bool pickUp(
const bool force_sticky =
false);
300 void setFixedDragOffset(
const UVector2& offset);
315 const UVector2& getFixedDragOffset()
const;
327 void setUsingFixedDragOffset(
const bool enable);
339 bool isUsingFixedDragOffset()
const;
360 bool isDraggingThresholdExceeded(
const Point& local_mouse);
369 void initialiseDragging(
void);
381 void doDragging(
const Point& local_mouse);
387 void updateActiveMouseCursor(
void)
const;
400 virtual bool testClassName_impl(
const String& class_name)
const
402 if (class_name==
"DragContainer")
return true;
564 void addDragContainerProperties(
void);
570 #if defined(_MSC_VER)
571 # pragma warning(pop)
574 #endif // end of guard _CEGUIDragContainer_h_