19 #ifndef GNASH_DRAG_STATE_H
20 #define GNASH_DRAG_STATE_H
22 #include <boost/optional.hpp>
47 return _lock_centered;
59 boost::int32_t
xOffset()
const {
return _xoffset; }
60 boost::int32_t
yOffset()
const {
return _yoffset; }
92 return _displayObject;
99 _lock_centered =
false;
111 boost::optional<SWFRect> _bounds;
121 boost::int32_t _xoffset;
122 boost::int32_t _yoffset;
129 #endif // GNASH_DRAG_STATE_H
Definition: GnashKey.h:150
bool hasBounds() const
Definition: DragState.h:62
boost::int32_t xOffset() const
Definition: DragState.h:59
DisplayObject is the base class for all DisplayList objects.
Definition: DisplayObject.h:168
DragState(DisplayObject *d, bool lock)
Definition: DragState.h:39
What is being dragged and how.
Definition: DragState.h:35
void setBounds(const SWFRect &bounds)
Set the boundaries to constraint the drag into.
Definition: DragState.h:86
void setOffset(boost::int32_t x, boost::int32_t y)
Definition: DragState.h:54
DisplayObject * getCharacter() const
May return NULL !!
Definition: DragState.h:91
bool isLockCentered() const
Definition: DragState.h:46
void markReachableResources() const
Mark DisplayObject as reachable (if any)
Definition: DragState.h:103
boost::int32_t x
Definition: BitmapData_as.cpp:434
const SWFRect & getBounds() const
Get the boundaries to constraint the drag into.
Definition: DragState.h:77
void setReachable() const
Mark this resource as being reachable.
Definition: GC.h:92
boost::int32_t yOffset() const
Definition: DragState.h:60
void reset()
Reset drag state to its initial condition.
Definition: DragState.h:96
boost::int32_t y
Definition: BitmapData_as.cpp:435
Rectangle class, see swf defined rectangle record.
Definition: SWFRect.h:44