Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::untracked_action_t Struct Reference

#include <lambda_actions.h>

Inheritance diagram for unravel::untracked_action_t:
crtp_meta_type< untracked_action_t, editing_action_t >

Public Types

using action_t = std::function<void()>
 

Public Member Functions

 untracked_action_t (action_t act)
 
void do_action () override
 
void undo_action () override
 
auto is_undoable () const -> bool override
 
- Public Member Functions inherited from crtp_meta_type< untracked_action_t, editing_action_t >
virtual auto get_meta_type () const -> entt::meta_type
 
auto is () const -> bool
 
auto is (const entt::meta_type &type) const -> bool
 
virtual auto as_derived () -> entt::meta_any
 

Public Attributes

action_t action {}
 

Additional Inherited Members

- Static Public Member Functions inherited from crtp_meta_type< untracked_action_t, editing_action_t >
static auto get_static_meta_type () -> entt::meta_type
 

Detailed Description

Definition at line 10 of file lambda_actions.h.

Member Typedef Documentation

◆ action_t

using unravel::untracked_action_t::action_t = std::function<void()>

Definition at line 12 of file lambda_actions.h.

Constructor & Destructor Documentation

◆ untracked_action_t()

unravel::untracked_action_t::untracked_action_t ( action_t act)

Definition at line 7 of file lambda_actions.cpp.

Member Function Documentation

◆ do_action()

void unravel::untracked_action_t::do_action ( )
override

Definition at line 12 of file lambda_actions.cpp.

◆ is_undoable()

auto unravel::untracked_action_t::is_undoable ( ) const -> bool
override

Definition at line 25 of file lambda_actions.cpp.

◆ undo_action()

void unravel::untracked_action_t::undo_action ( )
override

Definition at line 20 of file lambda_actions.cpp.

Member Data Documentation

◆ action

action_t unravel::untracked_action_t::action {}

Definition at line 13 of file lambda_actions.h.


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