19 #ifndef GNASH_DRAG_STATE_H 20 #define GNASH_DRAG_STATE_H 22 #include <boost/optional.hpp> 49 return _lock_centered;
61 std::int32_t
xOffset()
const {
return _xoffset; }
62 std::int32_t
yOffset()
const {
return _yoffset; }
65 return _bounds ?
true :
false;
94 return _displayObject;
99 _displayObject =
nullptr;
101 _lock_centered =
false;
113 boost::optional<SWFRect> _bounds;
123 std::int32_t _xoffset;
124 std::int32_t _yoffset;
131 #endif // GNASH_DRAG_STATE_H void setReachable() const
Mark this resource as being reachable.
Definition: GC.h:92
Definition: GnashKey.h:150
DisplayObject is the base class for all DisplayList objects.
Definition: DisplayObject.h:168
DragState(DisplayObject *d, bool lock)
Definition: DragState.h:39
std::int32_t yOffset() const
Definition: DragState.h:62
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:88
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:40
bool isLockCentered() const
Definition: DragState.h:48
std::int32_t xOffset() const
Definition: DragState.h:61
bool hasBounds() const
Definition: DragState.h:64
std::int32_t x
Definition: BitmapData_as.cpp:434
DisplayObject * getCharacter() const
May return NULL !!
Definition: DragState.h:93
const SWFRect & getBounds() const
Get the boundaries to constraint the drag into.
Definition: DragState.h:79
void markReachableResources() const
Mark DisplayObject as reachable (if any)
Definition: DragState.h:105
void reset()
Reset drag state to its initial condition.
Definition: DragState.h:98
std::int32_t y
Definition: BitmapData_as.cpp:435
Rectangle class, see swf defined rectangle record.
Definition: SWFRect.h:44
void setOffset(std::int32_t x, std::int32_t y)
Definition: DragState.h:56