Gnash
0.8.10
|
What is being dragged and how. More...
#include <DragState.h>
Public Member Functions | |
DragState (DisplayObject *d, bool lock) | |
bool | isLockCentered () const |
void | setOffset (boost::int32_t x, boost::int32_t y) |
boost::int32_t | xOffset () const |
boost::int32_t | yOffset () const |
bool | hasBounds () const |
const SWFRect & | getBounds () const |
Get the boundaries to constraint the drag into. | |
void | setBounds (const SWFRect &bounds) |
Set the boundaries to constraint the drag into. | |
DisplayObject * | getCharacter () const |
May return NULL !! | |
void | reset () |
Reset drag state to its initial condition. | |
void | markReachableResources () const |
Mark DisplayObject as reachable (if any) |
What is being dragged and how.
gnash::DragState::DragState | ( | DisplayObject * | d, |
bool | lock | ||
) | [inline] |
const SWFRect& gnash::DragState::getBounds | ( | ) | const [inline] |
Get the boundaries to constraint the drag into.
Coordinates of the rectangle are expected in TWIPS.
Note that if hasBounds() is false the returned rectangle is the NULL rectangle - see SWFRect::is_null().
DisplayObject* gnash::DragState::getCharacter | ( | ) | const [inline] |
May return NULL !!
bool gnash::DragState::hasBounds | ( | ) | const [inline] |
bool gnash::DragState::isLockCentered | ( | ) | const [inline] |
void gnash::DragState::markReachableResources | ( | ) | const [inline] |
Mark DisplayObject as reachable (if any)
References gnash::GcResource::setReachable().
void gnash::DragState::reset | ( | ) | [inline] |
Reset drag state to its initial condition.
void gnash::DragState::setBounds | ( | const SWFRect & | bounds | ) | [inline] |
Set the boundaries to constraint the drag into.
Coordinates of the rectangle are expected in TWIPS.
void gnash::DragState::setOffset | ( | boost::int32_t | x, |
boost::int32_t | y | ||
) | [inline] |
boost::int32_t gnash::DragState::xOffset | ( | ) | const [inline] |
boost::int32_t gnash::DragState::yOffset | ( | ) | const [inline] |