Gnash  0.8.11dev
Public Member Functions | Public Attributes | List of all members
gnash::MouseButtonState Struct Reference

Helper to generate mouse events, given mouse state & history. More...

#include <MouseButtonState.h>

Public Member Functions

 MouseButtonState ()
 
void markReachableResources () const
 Mark reachable objects (active and topmost entities) More...
 

Public Attributes

InteractiveObjectactiveEntity
 entity that currently owns the mouse pointer More...
 
InteractiveObjecttopmostEntity
 what's underneath the mouse right now More...
 
bool wasDown
 previous state of mouse button More...
 
bool isDown
 current state of mouse button More...
 
bool wasInsideActiveEntity
 whether mouse was inside the active_entity last frame More...
 

Detailed Description

Helper to generate mouse events, given mouse state & history.

Constructor & Destructor Documentation

§ MouseButtonState()

gnash::MouseButtonState::MouseButtonState ( )
inline

Member Function Documentation

§ markReachableResources()

void gnash::MouseButtonState::markReachableResources ( ) const
inline

Mark reachable objects (active and topmost entities)

References gnash::GcResource::setReachable().

Referenced by gnash::movie_root::markReachableResources().

Member Data Documentation

§ activeEntity

InteractiveObject* gnash::MouseButtonState::activeEntity

entity that currently owns the mouse pointer

Referenced by gnash::movie_root::getActiveEntityUnderPointer(), and gnash::movie_root::testInvariant().

§ isDown

bool gnash::MouseButtonState::isDown

current state of mouse button

Referenced by gnash::movie_root::mouseClick(), and gnash::movie_root::testInvariant().

§ topmostEntity

InteractiveObject* gnash::MouseButtonState::topmostEntity

what's underneath the mouse right now

Referenced by gnash::movie_root::mouseClick(), and gnash::movie_root::testInvariant().

§ wasDown

bool gnash::MouseButtonState::wasDown

previous state of mouse button

Referenced by gnash::movie_root::testInvariant().

§ wasInsideActiveEntity

bool gnash::MouseButtonState::wasInsideActiveEntity

whether mouse was inside the active_entity last frame

Referenced by gnash::movie_root::testInvariant().


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