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

#include <i_layout_item.hpp>

Inheritance diagram for neogfx::i_layout_item:
neolib::i_reference_counted neogfx::i_property_owner neogfx::i_anchorable neogfx::i_object neolib::i_object neolib::i_lifetime neogfx::i_layout neogfx::i_layout_item_cache neogfx::i_widget neogfx::DesignStudio::i_element_caddy neogfx::i_image_widget neogfx::i_status_bar neogfx::i_terminal neogfx::i_text_widget neogfx::i_title_bar neogfx::i_window neolib::lifetime< neogfx::i_window >

Public Types

typedef i_layout_item abstract_type
 
- Public Types inherited from neogfx::i_anchorable
typedef i_anchorable abstract_type
 
typedef neolib::i_map< i_string, i_anchor * > anchor_map_type
 

Public Member Functions

virtual ~i_layout_item ()=default
 
virtual const i_stringid () const =0
 
virtual void set_id (const i_string &aId)=0
 
virtual bool is_cache () const =0
 
virtual bool is_layout () const =0
 
virtual const i_layoutas_layout () const =0
 
virtual i_layoutas_layout ()=0
 
virtual bool is_spacer () const =0
 
virtual const i_spacer & as_spacer () const =0
 
virtual i_spacer & as_spacer ()=0
 
virtual bool is_widget () const =0
 
virtual const i_widgetas_widget () const =0
 
virtual i_widgetas_widget ()=0
 
virtual bool has_parent_layout_item () const =0
 
virtual const i_layout_itemparent_layout_item () const =0
 
virtual i_layout_itemparent_layout_item ()=0
 
virtual bool has_parent_layout () const =0
 
virtual const i_layoutparent_layout () const =0
 
virtual i_layoutparent_layout ()=0
 
virtual void set_parent_layout (i_layout *aParentLayout)=0
 
virtual bool has_parent_widget () const =0
 
virtual const i_widgetparent_widget () const =0
 
virtual i_widgetparent_widget ()=0
 
virtual void set_parent_widget (i_widget *aParentWidget)=0
 
virtual bool has_layout_manager () const =0
 
virtual const i_widgetlayout_manager () const =0
 
virtual i_widgetlayout_manager ()=0
 
virtual void update_layout (bool aDeferLayout=true, bool aAncestors=false)=0
 
virtual void layout_as (const point &aPosition, const size &aSize)=0
 
virtual void invalidate_combined_transformation ()=0
 
virtual void fix_weightings (bool aRecalculate=true)=0
 
virtual void layout_item_enabled (i_layout_item &aItem)=0
 
virtual void layout_item_disabled (i_layout_item &aItem)=0
 
virtual bool visible () const =0
 
template<typename LayoutType >
bool has_ancestor_layout () const
 
template<typename LayoutType >
LayoutType * find_ancestor_layout ()
 
template<typename LayoutType >
LayoutType & ancestor_layout ()
 
bool same_parent_widget_as (i_layout_item const &aOther) 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
 
- Public Member Functions inherited from neogfx::i_property_owner
virtual ~i_property_owner ()=default
 
virtual void property_changed (i_property &aProperty)=0
 
virtual const i_propertiesproperties () const =0
 
virtual i_propertiesproperties ()=0
 
- Public Member Functions inherited from neogfx::i_object
virtual ~i_object ()=default
 
virtual i_objectas_object ()=0
 
virtual void class_name (neolib::i_string &aClassName) const =0
 
virtual neogfx::object_type object_type () const =0
 
- Public Member Functions inherited from neolib::i_object
 declare_event (destroying)
 
 declare_event (destroyed)
 
- Public Member Functions inherited from neolib::i_lifetime
virtual ~i_lifetime ()=default
 
virtual lifetime_state object_state () const =0
 
virtual std::shared_ptr< std::atomic< lifetime_state > > object_state_ptr () const =0
 
virtual bool is_creating () const =0
 
virtual bool is_alive () const =0
 
virtual bool is_destroying () const =0
 
virtual bool is_destroyed () const =0
 
virtual void set_alive ()=0
 
virtual void set_destroying ()=0
 
virtual void set_destroyed ()=0
 
- Public Member Functions inherited from neogfx::i_anchorable
virtual i_objectas_object ()=0
 
virtual i_anchor & anchor_to (i_anchorable &aRhs, const i_string &aLhsAnchor, anchor_constraint_function aLhsFunction, const i_string &aRhsAnchor, anchor_constraint_function aRhsFunction)=0
 
virtual const anchor_map_typeanchors () const =0
 
virtual anchor_map_typeanchors ()=0
 
i_anchor & anchor_to (i_anchorable &aRhs, std::string const &aLhsAnchor, anchor_constraint_function aLhsFunction, std::string const &aRhsAnchor, anchor_constraint_function aRhsFunction)
 

Friends

class layout_item_cache
 

Detailed Description

Definition at line 55 of file i_layout_item.hpp.

Member Typedef Documentation

◆ abstract_type

Constructor & Destructor Documentation

◆ ~i_layout_item()

virtual neogfx::i_layout_item::~i_layout_item ( )
virtualdefault

Member Function Documentation

◆ ancestor_layout()

template<typename LayoutType >
LayoutType & neogfx::i_layout_item::ancestor_layout ( )
inline

Definition at line 123 of file i_layout_item.hpp.

◆ as_layout() [1/2]

virtual const i_layout & neogfx::i_layout_item::as_layout ( ) const
pure virtual

◆ as_layout() [2/2]

virtual i_layout & neogfx::i_layout_item::as_layout ( )
pure virtual

◆ as_spacer() [1/2]

virtual const i_spacer & neogfx::i_layout_item::as_spacer ( ) const
pure virtual

◆ as_spacer() [2/2]

virtual i_spacer & neogfx::i_layout_item::as_spacer ( )
pure virtual

◆ as_widget() [1/2]

virtual const i_widget & neogfx::i_layout_item::as_widget ( ) const
pure virtual

◆ as_widget() [2/2]

virtual i_widget & neogfx::i_layout_item::as_widget ( )
pure virtual

◆ find_ancestor_layout()

template<typename LayoutType >
LayoutType * neogfx::i_layout_item::find_ancestor_layout ( )
inline

Definition at line 111 of file i_layout_item.hpp.

◆ fix_weightings()

virtual void neogfx::i_layout_item::fix_weightings ( bool  aRecalculate = true)
pure virtual

◆ has_ancestor_layout()

template<typename LayoutType >
bool neogfx::i_layout_item::has_ancestor_layout ( ) const
inline

Definition at line 106 of file i_layout_item.hpp.

◆ has_layout_manager()

virtual bool neogfx::i_layout_item::has_layout_manager ( ) const
pure virtual

Implemented in neogfx::i_widget.

◆ has_parent_layout()

virtual bool neogfx::i_layout_item::has_parent_layout ( ) const
pure virtual

Implemented in neogfx::i_widget.

◆ has_parent_layout_item()

virtual bool neogfx::i_layout_item::has_parent_layout_item ( ) const
pure virtual

◆ has_parent_widget()

virtual bool neogfx::i_layout_item::has_parent_widget ( ) const
pure virtual

◆ id()

virtual const i_string & neogfx::i_layout_item::id ( ) const
pure virtual

◆ invalidate_combined_transformation()

virtual void neogfx::i_layout_item::invalidate_combined_transformation ( )
pure virtual

◆ is_cache()

virtual bool neogfx::i_layout_item::is_cache ( ) const
pure virtual

◆ is_layout()

virtual bool neogfx::i_layout_item::is_layout ( ) const
pure virtual

◆ is_spacer()

virtual bool neogfx::i_layout_item::is_spacer ( ) const
pure virtual

◆ is_widget()

virtual bool neogfx::i_layout_item::is_widget ( ) const
pure virtual

◆ layout_as()

virtual void neogfx::i_layout_item::layout_as ( const point aPosition,
const size aSize 
)
pure virtual

◆ layout_item_disabled()

virtual void neogfx::i_layout_item::layout_item_disabled ( i_layout_item aItem)
pure virtual

◆ layout_item_enabled()

virtual void neogfx::i_layout_item::layout_item_enabled ( i_layout_item aItem)
pure virtual

◆ layout_manager() [1/2]

virtual const i_widget & neogfx::i_layout_item::layout_manager ( ) const
pure virtual

Implemented in neogfx::i_widget.

◆ layout_manager() [2/2]

virtual i_widget & neogfx::i_layout_item::layout_manager ( )
pure virtual

Implemented in neogfx::i_widget.

◆ parent_layout() [1/2]

virtual const i_layout & neogfx::i_layout_item::parent_layout ( ) const
pure virtual

Implemented in neogfx::i_widget.

◆ parent_layout() [2/2]

virtual i_layout & neogfx::i_layout_item::parent_layout ( )
pure virtual

Implemented in neogfx::i_widget.

◆ parent_layout_item() [1/2]

virtual const i_layout_item & neogfx::i_layout_item::parent_layout_item ( ) const
pure virtual

◆ parent_layout_item() [2/2]

virtual i_layout_item & neogfx::i_layout_item::parent_layout_item ( )
pure virtual

◆ parent_widget() [1/2]

virtual const i_widget & neogfx::i_layout_item::parent_widget ( ) const
pure virtual

◆ parent_widget() [2/2]

virtual i_widget & neogfx::i_layout_item::parent_widget ( )
pure virtual

◆ same_parent_widget_as()

bool neogfx::i_layout_item::same_parent_widget_as ( i_layout_item const &  aOther) const
inline

Definition at line 130 of file i_layout_item.hpp.

◆ set_id()

virtual void neogfx::i_layout_item::set_id ( const i_string aId)
pure virtual

◆ set_parent_layout()

virtual void neogfx::i_layout_item::set_parent_layout ( i_layout aParentLayout)
pure virtual

◆ set_parent_widget()

virtual void neogfx::i_layout_item::set_parent_widget ( i_widget aParentWidget)
pure virtual

◆ update_layout()

virtual void neogfx::i_layout_item::update_layout ( bool  aDeferLayout = true,
bool  aAncestors = false 
)
pure virtual

◆ visible()

virtual bool neogfx::i_layout_item::visible ( ) const
pure virtual

Implemented in neogfx::i_widget.

Friends And Related Symbol Documentation

◆ layout_item_cache

friend class layout_item_cache
friend

Definition at line 57 of file i_layout_item.hpp.


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