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.
 
void endDraw () const override
 

Additional Inherited Members

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

Detailed Description

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

Definition at line 43 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: