Gnash  0.8.10
Public Member Functions
gnash::DragState Class Reference

What is being dragged and how. More...

#include <DragState.h>

List of all members.

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 SWFRectgetBounds () const
 Get the boundaries to constraint the drag into.
void setBounds (const SWFRect &bounds)
 Set the boundaries to constraint the drag into.
DisplayObjectgetCharacter () const
 May return NULL !!
void reset ()
 Reset drag state to its initial condition.
void markReachableResources () const
 Mark DisplayObject as reachable (if any)

Detailed Description

What is being dragged and how.


Constructor & Destructor Documentation

gnash::DragState::DragState ( DisplayObject d,
bool  lock 
) [inline]

Member Function Documentation

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]

Set displacement offset from origin at time of drag start. Coordinates are in stage space (twips)

References x, and y.

boost::int32_t gnash::DragState::xOffset ( ) const [inline]
boost::int32_t gnash::DragState::yOffset ( ) const [inline]

The documentation for this class was generated from the following file: