27 #ifndef _CEGUIDragContainer_h_
28 #define _CEGUIDragContainer_h_
30 #include "../Window.h"
31 #include "../WindowFactory.h"
34 # pragma warning(push)
35 # pragma warning(disable : 4251)
129 bool isDraggingEnabled(
void)
const;
142 void setDraggingEnabled(
bool setting);
152 bool isBeingDragged(
void)
const;
165 float getPixelDragThreshold(
void)
const;
181 void setPixelDragThreshold(
float pixels);
191 float getDragAlpha(
void)
const;
208 void setDragAlpha(
float alpha);
218 const Image* getDragCursorImage(
void)
const;
234 void setDragCursorImage(
const Image* image);
252 void setDragCursorImage(
const String& name);
265 Window* getCurrentDropTarget(
void)
const;
275 bool isStickyModeEnabled()
const;
285 void setStickyModeEnabled(
bool setting);
303 bool pickUp(
const bool force_sticky =
false);
318 void setFixedDragOffset(
const UVector2& offset);
333 const UVector2& getFixedDragOffset()
const;
345 void setUsingFixedDragOffset(
const bool enable);
357 bool isUsingFixedDragOffset()
const;
378 bool isDraggingThresholdExceeded(
const Vector2f& local_mouse);
387 void initialiseDragging(
void);
399 void doDragging(
const Vector2f& local_mouse);
405 void updateActiveMouseCursor(
void)
const;
553 void addDragContainerProperties(
void);
559 #if defined(_MSC_VER)
560 # pragma warning(pop)
563 #endif // end of guard _CEGUIDragContainer_h_
static const String EventDragEnabledChanged
Definition: DragContainer.h:76
float d_dragAlpha
Alpha value to set when dragging.
Definition: DragContainer.h:527
Generic drag & drop enabled window class.
Definition: DragContainer.h:45
bool d_storedClipState
Parent clip state to re-set.
Definition: DragContainer.h:529
static const String EventDragDropTargetChanged
Definition: DragContainer.h:101
Interface for Image.
Definition: Image.h:158
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
EventArgs based class used for certain drag/drop notifications.
Definition: InputEvent.h:341
static const String WidgetTypeName
Type name for DragContainer.
Definition: DragContainer.h:51
struct that holds some context relating to a RenderingSurface object.
Definition: RenderingContext.h:39
bool d_pickedUp
true after been picked-up / dragged via sticky mode
Definition: DragContainer.h:536
static const String EventDragThresholdChanged
Definition: DragContainer.h:94
UVector2 d_startPosition
position prior to dragging.
Definition: DragContainer.h:525
bool d_draggingEnabled
True when dragging is enabled.
Definition: DragContainer.h:521
bool d_dragging
true when being dragged.
Definition: DragContainer.h:523
UVector2 d_dragPoint
point we are being dragged at.
Definition: DragContainer.h:524
const Image * d_dragCursorImage
Image to use for mouse cursor when dragging.
Definition: DragContainer.h:531
static const String EventDragPositionChanged
Definition: DragContainer.h:70
bool d_dropflag
Definition: DragContainer.h:532
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: Window.h:149
static const String EventDragMouseCursorChanged
Definition: DragContainer.h:88
static const String EventDragEnded
Definition: DragContainer.h:64
EventArgs based class that is used for objects passed to handlers triggered for events concerning som...
Definition: Element.h:210
Window * d_dropTarget
Target window for possible drop operation.
Definition: DragContainer.h:530
EventArgs based class that is used for objects passed to handlers triggered for events concerning som...
Definition: InputEvent.h:251
UVector2 d_fixedDragOffset
current fixed mouse offset value.
Definition: DragContainer.h:540
EventArgs based class that is used for objects passed to input event handlers concerning mouse input...
Definition: InputEvent.h:280
bool d_usingFixedDragOffset
true if fixed mouse offset is used for dragging position.
Definition: DragContainer.h:538
bool d_leftMouseDown
True when left mouse button is down.
Definition: DragContainer.h:522
static const String EventDragAlphaChanged
Definition: DragContainer.h:82
float d_storedAlpha
Alpha value to re-set when dragging ends.
Definition: DragContainer.h:528
static const String EventDragStarted
Definition: DragContainer.h:58
float d_dragThreshold
Pixels mouse must move before dragging commences.
Definition: DragContainer.h:526
String class used within the GUI system.
Definition: String.h:62
static const String EventNamespace
Namespace for global events.
Definition: DragContainer.h:52