score::EnableActionIfDocument Struct Referencefinal

The EnableActionIfDocument struct. More...

Inheritance diagram for score::EnableActionIfDocument:
score::DocumentActionCondition score::ActionCondition

Detailed Description

The EnableActionIfDocument struct.

Enables its actions if there is an active document.

Public Member Functions

void action (ActionManager &mgr, MaybeDocument doc) override
 action This function will be called whenever a particular event happen. More...
 
- Public Member Functions inherited from score::DocumentActionCondition
 ActionCondition (StringKey< ActionCondition > k)
 
- Public Member Functions inherited from score::ActionCondition
 ActionCondition (StringKey< ActionCondition > k)
 
void setEnabled (score::ActionManager &mgr, bool b)
 setEnabled Sets the state of all the matching actions More...
 
template<typename Action_T >
void add ()
 add Register an action for this condition. More...
 
StringKey< ActionConditionkey () const
 

Static Public Member Functions

static StringKey< ActionConditionstatic_key ()
 

Member Function Documentation

◆ action()

void score::EnableActionIfDocument::action ( ActionManager mgr,
MaybeDocument   
)
overridevirtual

action This function will be called whenever a particular event happen.

The default implementation does nothing.

Reimplemented from score::ActionCondition.


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