neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::DesignStudio::i_element Class Referenceabstract

#include <i_element.hpp>

Inheritance diagram for neogfx::DesignStudio::i_element:
neolib::i_reference_counted neogfx::DesignStudio::i_node neogfx::DesignStudio::i_script neogfx::DesignStudio::node neogfx::DesignStudio::script

Classes

struct  no_caddy
 
struct  no_layout_item
 
struct  no_parent
 

Public Types

typedef i_element abstract_type
 
typedef neolib::i_vector< i_ref_ptr< i_element > > children_t
 

Public Member Functions

 declare_event (mode_changed) declare_event(selection_changed) declare_event(context_menu
 
virtual i_element_library const & library () const =0
 
virtual i_projectproject () const =0
 
virtual element_group group () const =0
 
virtual neolib::i_string const & type () const =0
 
virtual neolib::i_string const & id () const =0
 
virtual i_element const & root () const =0
 
virtual i_elementroot ()=0
 
virtual bool has_parent () const =0
 
virtual i_element const & parent () const =0
 
virtual i_elementparent ()=0
 
virtual void set_parent (i_element &aParent)=0
 
virtual children_t const & children () const =0
 
virtual children_tchildren ()=0
 
virtual void add_child (i_element &aChild)=0
 
virtual void remove_child (i_element &aChild)=0
 
virtual void create_default_children ()=0
 
virtual bool needs_caddy () const =0
 
virtual bool has_caddy () const =0
 
virtual i_element_caddycaddy () const =0
 
virtual void set_caddy (i_element_caddy &aCaddy)=0
 
virtual bool has_layout_item () const =0
 
virtual void create_layout_item (i_widget &aParent)=0
 
virtual i_layout_itemlayout_item () const =0
 
virtual element_mode mode () const =0
 
virtual void set_mode (element_mode aMode)=0
 
virtual bool is_selected () const =0
 
virtual void select (bool aSelected=true, bool aDeselectRest=true)=0
 
children_t::const_iterator begin () const
 
children_t::iterator begin ()
 
children_t::const_iterator end () const
 
children_t::iterator end ()
 
bool is_root () const
 
std::size_t selected_child_count () const
 
void visit (std::function< void(i_element &)> aVisitor)
 
void reverse_visit (std::function< void(i_element &)> aVisitor)
 
bool has_widget () const
 
i_widgetwidget () const
 
- Public Member Functions inherited from neolib::i_reference_counted
virtual ~i_reference_counted ()=default
 
virtual void add_ref () const noexcept=0
 
virtual void release () const =0
 
virtual int32_t use_count () const noexcept=0
 
virtual const i_reference_countedrelease_and_take_ownership () const =0
 
virtual i_reference_countedrelease_and_take_ownership ()=0
 
virtual void pin () const noexcept=0
 
virtual void unpin () const =0
 
virtual i_ref_control_blockcontrol_block ()=0
 

Detailed Description

Definition at line 72 of file i_element.hpp.

Member Typedef Documentation

◆ abstract_type

◆ children_t

Member Function Documentation

◆ add_child()

virtual void neogfx::DesignStudio::i_element::add_child ( i_element aChild)
pure virtual

◆ begin() [1/2]

children_t::iterator neogfx::DesignStudio::i_element::begin ( )
inline

Definition at line 120 of file i_element.hpp.

◆ begin() [2/2]

children_t::const_iterator neogfx::DesignStudio::i_element::begin ( ) const
inline

Definition at line 119 of file i_element.hpp.

◆ caddy()

virtual i_element_caddy & neogfx::DesignStudio::i_element::caddy ( ) const
pure virtual

◆ children() [1/2]

virtual children_t const & neogfx::DesignStudio::i_element::children ( ) const
pure virtual

◆ children() [2/2]

virtual children_t & neogfx::DesignStudio::i_element::children ( )
pure virtual

◆ create_default_children()

virtual void neogfx::DesignStudio::i_element::create_default_children ( )
pure virtual

◆ create_layout_item()

virtual void neogfx::DesignStudio::i_element::create_layout_item ( i_widget aParent)
pure virtual

◆ declare_event()

neogfx::DesignStudio::i_element::declare_event ( mode_changed  )

◆ end() [1/2]

children_t::iterator neogfx::DesignStudio::i_element::end ( )
inline

Definition at line 122 of file i_element.hpp.

◆ end() [2/2]

children_t::const_iterator neogfx::DesignStudio::i_element::end ( ) const
inline

Definition at line 121 of file i_element.hpp.

◆ group()

virtual element_group neogfx::DesignStudio::i_element::group ( ) const
pure virtual

◆ has_caddy()

virtual bool neogfx::DesignStudio::i_element::has_caddy ( ) const
pure virtual

◆ has_layout_item()

virtual bool neogfx::DesignStudio::i_element::has_layout_item ( ) const
pure virtual

◆ has_parent()

virtual bool neogfx::DesignStudio::i_element::has_parent ( ) const
pure virtual

◆ has_widget()

bool neogfx::DesignStudio::i_element::has_widget ( ) const
inline

Definition at line 148 of file i_element.hpp.

◆ id()

virtual neolib::i_string const & neogfx::DesignStudio::i_element::id ( ) const
pure virtual

◆ is_root()

bool neogfx::DesignStudio::i_element::is_root ( ) const
inline

Definition at line 124 of file i_element.hpp.

◆ is_selected()

virtual bool neogfx::DesignStudio::i_element::is_selected ( ) const
pure virtual

◆ layout_item()

virtual i_layout_item & neogfx::DesignStudio::i_element::layout_item ( ) const
pure virtual

◆ library()

virtual i_element_library const & neogfx::DesignStudio::i_element::library ( ) const
pure virtual

◆ mode()

virtual element_mode neogfx::DesignStudio::i_element::mode ( ) const
pure virtual

◆ needs_caddy()

virtual bool neogfx::DesignStudio::i_element::needs_caddy ( ) const
pure virtual

◆ parent() [1/2]

virtual i_element const & neogfx::DesignStudio::i_element::parent ( ) const
pure virtual

◆ parent() [2/2]

virtual i_element & neogfx::DesignStudio::i_element::parent ( )
pure virtual

◆ project()

virtual i_project & neogfx::DesignStudio::i_element::project ( ) const
pure virtual

◆ remove_child()

virtual void neogfx::DesignStudio::i_element::remove_child ( i_element aChild)
pure virtual

◆ reverse_visit()

void neogfx::DesignStudio::i_element::reverse_visit ( std::function< void(i_element &)>  aVisitor)
inline

Definition at line 141 of file i_element.hpp.

◆ root() [1/2]

virtual i_element const & neogfx::DesignStudio::i_element::root ( ) const
pure virtual

◆ root() [2/2]

virtual i_element & neogfx::DesignStudio::i_element::root ( )
pure virtual

◆ select()

virtual void neogfx::DesignStudio::i_element::select ( bool  aSelected = true,
bool  aDeselectRest = true 
)
pure virtual

◆ selected_child_count()

std::size_t neogfx::DesignStudio::i_element::selected_child_count ( ) const
inline

Definition at line 128 of file i_element.hpp.

◆ set_caddy()

virtual void neogfx::DesignStudio::i_element::set_caddy ( i_element_caddy aCaddy)
pure virtual

◆ set_mode()

virtual void neogfx::DesignStudio::i_element::set_mode ( element_mode  aMode)
pure virtual

◆ set_parent()

virtual void neogfx::DesignStudio::i_element::set_parent ( i_element aParent)
pure virtual

◆ type()

virtual neolib::i_string const & neogfx::DesignStudio::i_element::type ( ) const
pure virtual

◆ visit()

void neogfx::DesignStudio::i_element::visit ( std::function< void(i_element &)>  aVisitor)
inline

Definition at line 135 of file i_element.hpp.

◆ widget()

i_widget & neogfx::DesignStudio::i_element::widget ( ) const
inline

Definition at line 152 of file i_element.hpp.


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