JNGL
Easy to use cross-platform 2D game library
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Executor Class Reference

Executes a specific action, e.g. removes the Widget. More...

#include <jngl/effects.hpp>

Public Member Functions

 Executor (std::function< Action(float)>)
 
Action step () override
 
void beginDraw () const override
 Does nothing. More...
 
void endDraw () const override
 
virtual Action step ()=0
 
virtual void beginDraw () const =0
 
virtual void endDraw () const =0
 

Additional Inherited Members

- Public Types inherited from Effect
enum class  Action { NONE , REMOVE_EFFECT , REMOVE_WIDGET }
 

Detailed Description

Executes a specific action, e.g. removes the Widget.

Definition at line 42 of file effects.hpp.

Inheritance diagram for Executor:
[legend]
Collaboration diagram for Executor:
[legend]

Member Function Documentation

◆ step()

Action step ( )
overridevirtual

Implements Effect.

◆ beginDraw()

void beginDraw ( ) const
overridevirtual

Does nothing.

Implements Effect.

◆ endDraw()

void endDraw ( ) const
overridevirtual

Implements Effect.


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