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

#include <entity_actions.h>

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

Public Member Functions

 entity_set_text_bounds_action_t (entt::handle ent, const fsize_t &old_area, const fsize_t &new_area)
 
void do_action () override
 
void undo_action () override
 
auto is_mergeable (const editing_action_t &previous) const -> bool override
 
void merge_with (const editing_action_t &previous) override
 
auto is_valid () const -> bool override
 
void draw_in_inspector (rtti::context &ctx) override
 
- Public Member Functions inherited from crtp_meta_type< entity_set_text_bounds_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

entt::handle entity {}
 
fsize_t old_area {}
 
fsize_t new_area {}
 

Additional Inherited Members

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

Detailed Description

Definition at line 116 of file entity_actions.h.

Constructor & Destructor Documentation

◆ entity_set_text_bounds_action_t()

unravel::entity_set_text_bounds_action_t::entity_set_text_bounds_action_t ( entt::handle ent,
const fsize_t & old_area,
const fsize_t & new_area )

Definition at line 332 of file entity_actions.cpp.

Member Function Documentation

◆ do_action()

void unravel::entity_set_text_bounds_action_t::do_action ( )
override

Definition at line 338 of file entity_actions.cpp.

◆ draw_in_inspector()

void unravel::entity_set_text_bounds_action_t::draw_in_inspector ( rtti::context & ctx)
override

Definition at line 383 of file entity_actions.cpp.

◆ is_mergeable()

auto unravel::entity_set_text_bounds_action_t::is_mergeable ( const editing_action_t & previous) const -> bool
override

Definition at line 366 of file entity_actions.cpp.

◆ is_valid()

auto unravel::entity_set_text_bounds_action_t::is_valid ( ) const -> bool
override

Definition at line 378 of file entity_actions.cpp.

◆ merge_with()

void unravel::entity_set_text_bounds_action_t::merge_with ( const editing_action_t & previous)
override

Definition at line 372 of file entity_actions.cpp.

◆ undo_action()

void unravel::entity_set_text_bounds_action_t::undo_action ( )
override

Definition at line 352 of file entity_actions.cpp.

Member Data Documentation

◆ entity

entt::handle unravel::entity_set_text_bounds_action_t::entity {}

Definition at line 118 of file entity_actions.h.

◆ new_area

fsize_t unravel::entity_set_text_bounds_action_t::new_area {}

Definition at line 120 of file entity_actions.h.

◆ old_area

fsize_t unravel::entity_set_text_bounds_action_t::old_area {}

Definition at line 119 of file entity_actions.h.


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