OpenStructure
Public Member Functions | Protected Attributes
MouseEventTransition Class Reference

#include <transition.hh>

Inherits TransitionBase.

Public Member Functions

 MouseEventTransition (QEvent::Type type, Qt::MouseButton button, Qt::KeyboardModifiers modifiers, State *target, bool swallow_event=true, TransitionGuard *guard=new TransitionGuard())
 
virtual std::pair< bool, bool > checkEvent (QMouseEvent *event)
 
- Public Member Functions inherited from TransitionBase
 TransitionBase (State *target, TransitionGuard *guard=new TransitionGuard())
 

Protected Attributes

QEvent::Type type_
 
Qt::MouseButton button_
 
Qt::KeyboardModifiers modifiers_
 
bool swallow_
 
- Protected Attributes inherited from TransitionBase
Statetarget_
 
TransitionGuardguard_
 

Additional Inherited Members

- Signals inherited from TransitionBase
void triggered ()
 
- Protected Member Functions inherited from TransitionBase
void trigger_ ()
 
bool is_active_ ()
 

Detailed Description

Definition at line 79 of file transition.hh.

Constructor & Destructor Documentation

◆ MouseEventTransition()

MouseEventTransition ( QEvent::Type  type,
Qt::MouseButton  button,
Qt::KeyboardModifiers  modifiers,
State target,
bool  swallow_event = true,
TransitionGuard guard = new TransitionGuard() 
)

Member Function Documentation

◆ checkEvent()

virtual std::pair<bool,bool> checkEvent ( QMouseEvent *  event)
virtual

Field Documentation

◆ button_

Qt::MouseButton button_
protected

Definition at line 86 of file transition.hh.

◆ modifiers_

Qt::KeyboardModifiers modifiers_
protected

Definition at line 87 of file transition.hh.

◆ swallow_

bool swallow_
protected

Definition at line 88 of file transition.hh.

◆ type_

QEvent::Type type_
protected

Definition at line 85 of file transition.hh.


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