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

#include <layout_item_cache.hpp>

Inheritance diagram for neogfx::layout_item_cache:
neogfx::object< reference_counted< i_layout_item_cache > > neolib::object< Base > neogfx::i_properties neolib::lifetime< Base > neolib::i_lifetime

Public Member Functions

 layout_item_cache (i_layout_item &aItem)
 
 layout_item_cache (i_ref_ptr< i_layout_item > const &aItem)
 
 layout_item_cache (const layout_item_cache &aOther)
 
 ~layout_item_cache ()
 
i_anchor & anchor_to (i_anchorable &aRhs, const i_string &aLhsAnchor, anchor_constraint_function aLhsFunction, const i_string &aRhsAnchor, anchor_constraint_function aRhsFunction) final
 
const anchor_map_type & anchors () const final
 
anchor_map_type & anchors () final
 
const i_stringid () const final
 
void set_id (const i_string &aId) final
 
bool is_cache () const final
 
bool is_layout () const final
 
const i_layoutas_layout () const final
 
i_layoutas_layout () final
 
bool is_spacer () const final
 
const i_spacer & as_spacer () const final
 
i_spacer & as_spacer () final
 
bool is_widget () const final
 
const i_widgetas_widget () const final
 
i_widgetas_widget () final
 
bool has_parent_layout_item () const final
 
const i_layout_itemparent_layout_item () const final
 
i_layout_itemparent_layout_item () final
 
bool has_parent_layout () const final
 
const i_layoutparent_layout () const final
 
i_layoutparent_layout () final
 
void set_parent_layout (i_layout *aParentLayout)
 
bool has_parent_widget () const final
 
const i_widgetparent_widget () const final
 
i_widgetparent_widget () final
 
void set_parent_widget (i_widget *aParentWidget) final
 
bool has_layout_manager () const final
 
const i_widgetlayout_manager () const final
 
i_widgetlayout_manager () final
 
bool device_metrics_available () const final
 
const i_device_metricsdevice_metrics () const final
 
point origin () const final
 
void reset_origin () const final
 
point position () const final
 
void set_position (const point &aPosition) final
 
size extents () const final
 
void set_extents (const size &aExtents) final
 
bool has_size_policy () const noexcept final
 
neogfx::size_policy size_policy () const final
 
void set_size_policy (const optional_size_policy &aSizePolicy, bool aUpdateLayout=true) final
 
bool has_weight () const noexcept final
 
size weight () const final
 
void set_weight (optional_size const &aWeight, bool aUpdateLayout=true) final
 
bool has_ideal_size () const noexcept final
 
bool is_ideal_size_constrained () const noexcept final
 
size ideal_size (optional_size const &aAvailableSpace=optional_size{}) const final
 
void set_ideal_size (optional_size const &aMinimumSize, bool aUpdateLayout=true) final
 
bool has_minimum_size () const noexcept final
 
bool is_minimum_size_constrained () const noexcept final
 
size minimum_size (optional_size const &aAvailableSpace=optional_size{}) const final
 
void set_minimum_size (optional_size const &aMinimumSize, bool aUpdateLayout=true) final
 
bool has_maximum_size () const noexcept final
 
bool is_maximum_size_constrained () const noexcept final
 
size maximum_size (optional_size const &aAvailableSpace=optional_size{}) const final
 
void set_maximum_size (optional_size const &aMaximumSize, bool aUpdateLayout=true) final
 
bool has_fixed_size () const noexcept final
 
size fixed_size (optional_size const &aAvailableSpace={}) const final
 
void set_fixed_size (optional_size const &aFixedSize, bool aUpdateLayout=true) final
 
bool has_transformation () const noexcept final
 
mat33 const & transformation (bool aCombineAncestorTransformations=false) const final
 
void set_transformation (optional_mat33 const &aTransformation, bool aUpdateLayout=true) final
 
bool has_margin () const noexcept final
 
neogfx::margin margin () const final
 
void set_margin (optional_margin const &aMargin, bool aUpdateLayout=true) final
 
bool has_border () const noexcept final
 
neogfx::border border () const final
 
void set_border (optional_border const &aBorder, bool aUpdateLayout=true) final
 
bool has_padding () const noexcept final
 
neogfx::padding padding () const final
 
void set_padding (optional_padding const &aPadding, bool aUpdateLayout=true) final
 
bool visible () const final
 
void update_layout (bool aDeferLayout=true, bool aAncestors=true) final
 
void layout_as (const point &aPosition, const size &aSize) final
 
void invalidate_combined_transformation () final
 
void fix_weightings (bool aRecalculate=true) final
 
i_layout_itemsubject () const final
 
bool subject_destroyed () const final
 
layout_item_dispositioncached_disposition () const final
 
bool operator== (const layout_item_cache &aOther) const
 
- Public Member Functions inherited from neogfx::object< reference_counted< i_layout_item_cache > >
i_objectas_object () override
 
void class_name (neolib::i_string &aClassName) const override
 
neogfx::object_type object_type () const override
 
void property_changed (i_property &) override
 
const i_propertiesproperties () const override
 
i_propertiesproperties () override
 
void register_property (i_property &aProperty) override
 
const neogfx::property_mapproperty_map () const override
 
- Public Member Functions inherited from neolib::object< Base >
 define_declared_event (Destroying, destroying)
 
 define_declared_event (Destroyed, destroyed)
 
 object (lifetime_state aState=lifetime_state::Creating)
 
 ~object ()
 
void set_destroying () override
 
void set_destroyed () override
 
bool is_alive () const final
 
bool is_destroyed () const final
 
- Public Member Functions inherited from neolib::lifetime< Base >
 lifetime (lifetime_state aState=lifetime_state::Alive)
 
virtual ~lifetime ()
 
lifetime_state object_state () const final
 
std::shared_ptr< std::atomic< lifetime_state > > object_state_ptr () const final
 
bool is_creating () const final
 
bool is_destroying () const final
 
void set_alive () override
 
- Public Member Functions inherited from neolib::i_lifetime
virtual ~i_lifetime ()=default
 
- Public Member Functions inherited from neogfx::i_properties
uint32_t count () const
 
std::string name (uint32_t aIndex) const
 
const i_propertyproperty (uint32_t aIndex) const
 
i_propertyproperty (uint32_t aIndex)
 

Protected Member Functions

point unconstrained_origin () const final
 
point unconstrained_position () const final
 
void layout_item_enabled (i_layout_item &aItem) final
 
void layout_item_disabled (i_layout_item &aItem) final
 
- Protected Member Functions inherited from neogfx::i_properties
neogfx::property_mapproperty_map ()
 

Additional Inherited Members

- Public Types inherited from neolib::lifetime< Base >
typedef neolib::destroyed_flag destroyed_flag
 

Detailed Description

Definition at line 31 of file layout_item_cache.hpp.

Constructor & Destructor Documentation

◆ layout_item_cache() [1/3]

neogfx::layout_item_cache::layout_item_cache ( i_layout_item aItem)

◆ layout_item_cache() [2/3]

neogfx::layout_item_cache::layout_item_cache ( i_ref_ptr< i_layout_item > const &  aItem)

◆ layout_item_cache() [3/3]

neogfx::layout_item_cache::layout_item_cache ( const layout_item_cache aOther)

◆ ~layout_item_cache()

neogfx::layout_item_cache::~layout_item_cache ( )

Member Function Documentation

◆ anchor_to()

i_anchor & neogfx::layout_item_cache::anchor_to ( i_anchorable aRhs,
const i_string aLhsAnchor,
anchor_constraint_function  aLhsFunction,
const i_string aRhsAnchor,
anchor_constraint_function  aRhsFunction 
)
final

◆ anchors() [1/2]

const anchor_map_type & neogfx::layout_item_cache::anchors ( ) const
final

◆ anchors() [2/2]

anchor_map_type & neogfx::layout_item_cache::anchors ( )
final

◆ as_layout() [1/2]

const i_layout & neogfx::layout_item_cache::as_layout ( ) const
final

◆ as_layout() [2/2]

i_layout & neogfx::layout_item_cache::as_layout ( )
final

◆ as_spacer() [1/2]

const i_spacer & neogfx::layout_item_cache::as_spacer ( ) const
final

◆ as_spacer() [2/2]

i_spacer & neogfx::layout_item_cache::as_spacer ( )
final

◆ as_widget() [1/2]

const i_widget & neogfx::layout_item_cache::as_widget ( ) const
final

◆ as_widget() [2/2]

i_widget & neogfx::layout_item_cache::as_widget ( )
final

◆ border()

neogfx::border neogfx::layout_item_cache::border ( ) const
final

◆ cached_disposition()

layout_item_disposition & neogfx::layout_item_cache::cached_disposition ( ) const
final

◆ device_metrics()

const i_device_metrics & neogfx::layout_item_cache::device_metrics ( ) const
final

◆ device_metrics_available()

bool neogfx::layout_item_cache::device_metrics_available ( ) const
final

◆ extents()

size neogfx::layout_item_cache::extents ( ) const
final

◆ fix_weightings()

void neogfx::layout_item_cache::fix_weightings ( bool  aRecalculate = true)
final

◆ fixed_size()

size neogfx::layout_item_cache::fixed_size ( optional_size const &  aAvailableSpace = {}) const
final

◆ has_border()

bool neogfx::layout_item_cache::has_border ( ) const
finalnoexcept

◆ has_fixed_size()

bool neogfx::layout_item_cache::has_fixed_size ( ) const
finalnoexcept

◆ has_ideal_size()

bool neogfx::layout_item_cache::has_ideal_size ( ) const
finalnoexcept

◆ has_layout_manager()

bool neogfx::layout_item_cache::has_layout_manager ( ) const
final

◆ has_margin()

bool neogfx::layout_item_cache::has_margin ( ) const
finalnoexcept

◆ has_maximum_size()

bool neogfx::layout_item_cache::has_maximum_size ( ) const
finalnoexcept

◆ has_minimum_size()

bool neogfx::layout_item_cache::has_minimum_size ( ) const
finalnoexcept

◆ has_padding()

bool neogfx::layout_item_cache::has_padding ( ) const
finalnoexcept

◆ has_parent_layout()

bool neogfx::layout_item_cache::has_parent_layout ( ) const
final

◆ has_parent_layout_item()

bool neogfx::layout_item_cache::has_parent_layout_item ( ) const
final

◆ has_parent_widget()

bool neogfx::layout_item_cache::has_parent_widget ( ) const
final

◆ has_size_policy()

bool neogfx::layout_item_cache::has_size_policy ( ) const
finalnoexcept

◆ has_transformation()

bool neogfx::layout_item_cache::has_transformation ( ) const
finalnoexcept

◆ has_weight()

bool neogfx::layout_item_cache::has_weight ( ) const
finalnoexcept

◆ id()

const i_string & neogfx::layout_item_cache::id ( ) const
final

◆ ideal_size()

size neogfx::layout_item_cache::ideal_size ( optional_size const &  aAvailableSpace = optional_size{}) const
final

◆ invalidate_combined_transformation()

void neogfx::layout_item_cache::invalidate_combined_transformation ( )
final

◆ is_cache()

bool neogfx::layout_item_cache::is_cache ( ) const
final

◆ is_ideal_size_constrained()

bool neogfx::layout_item_cache::is_ideal_size_constrained ( ) const
finalnoexcept

◆ is_layout()

bool neogfx::layout_item_cache::is_layout ( ) const
final

◆ is_maximum_size_constrained()

bool neogfx::layout_item_cache::is_maximum_size_constrained ( ) const
finalnoexcept

◆ is_minimum_size_constrained()

bool neogfx::layout_item_cache::is_minimum_size_constrained ( ) const
finalnoexcept

◆ is_spacer()

bool neogfx::layout_item_cache::is_spacer ( ) const
final

◆ is_widget()

bool neogfx::layout_item_cache::is_widget ( ) const
final

◆ layout_as()

void neogfx::layout_item_cache::layout_as ( const point aPosition,
const size aSize 
)
final

◆ layout_item_disabled()

void neogfx::layout_item_cache::layout_item_disabled ( i_layout_item aItem)
finalprotected

◆ layout_item_enabled()

void neogfx::layout_item_cache::layout_item_enabled ( i_layout_item aItem)
finalprotected

◆ layout_manager() [1/2]

const i_widget & neogfx::layout_item_cache::layout_manager ( ) const
final

◆ layout_manager() [2/2]

i_widget & neogfx::layout_item_cache::layout_manager ( )
final

◆ margin()

neogfx::margin neogfx::layout_item_cache::margin ( ) const
final

◆ maximum_size()

size neogfx::layout_item_cache::maximum_size ( optional_size const &  aAvailableSpace = optional_size{}) const
final

◆ minimum_size()

size neogfx::layout_item_cache::minimum_size ( optional_size const &  aAvailableSpace = optional_size{}) const
final

◆ operator==()

bool neogfx::layout_item_cache::operator== ( const layout_item_cache aOther) const

◆ origin()

point neogfx::layout_item_cache::origin ( ) const
final

◆ padding()

neogfx::padding neogfx::layout_item_cache::padding ( ) const
final

◆ parent_layout() [1/2]

const i_layout & neogfx::layout_item_cache::parent_layout ( ) const
final

◆ parent_layout() [2/2]

i_layout & neogfx::layout_item_cache::parent_layout ( )
final

◆ parent_layout_item() [1/2]

const i_layout_item & neogfx::layout_item_cache::parent_layout_item ( ) const
final

◆ parent_layout_item() [2/2]

i_layout_item & neogfx::layout_item_cache::parent_layout_item ( )
final

◆ parent_widget() [1/2]

const i_widget & neogfx::layout_item_cache::parent_widget ( ) const
final

◆ parent_widget() [2/2]

i_widget & neogfx::layout_item_cache::parent_widget ( )
final

◆ position()

point neogfx::layout_item_cache::position ( ) const
final

◆ reset_origin()

void neogfx::layout_item_cache::reset_origin ( ) const
final

◆ set_border()

void neogfx::layout_item_cache::set_border ( optional_border const &  aBorder,
bool  aUpdateLayout = true 
)
final

◆ set_extents()

void neogfx::layout_item_cache::set_extents ( const size aExtents)
final

◆ set_fixed_size()

void neogfx::layout_item_cache::set_fixed_size ( optional_size const &  aFixedSize,
bool  aUpdateLayout = true 
)
final

◆ set_id()

void neogfx::layout_item_cache::set_id ( const i_string aId)
final

◆ set_ideal_size()

void neogfx::layout_item_cache::set_ideal_size ( optional_size const &  aMinimumSize,
bool  aUpdateLayout = true 
)
final

◆ set_margin()

void neogfx::layout_item_cache::set_margin ( optional_margin const &  aMargin,
bool  aUpdateLayout = true 
)
final

◆ set_maximum_size()

void neogfx::layout_item_cache::set_maximum_size ( optional_size const &  aMaximumSize,
bool  aUpdateLayout = true 
)
final

◆ set_minimum_size()

void neogfx::layout_item_cache::set_minimum_size ( optional_size const &  aMinimumSize,
bool  aUpdateLayout = true 
)
final

◆ set_padding()

void neogfx::layout_item_cache::set_padding ( optional_padding const &  aPadding,
bool  aUpdateLayout = true 
)
final

◆ set_parent_layout()

void neogfx::layout_item_cache::set_parent_layout ( i_layout aParentLayout)

◆ set_parent_widget()

void neogfx::layout_item_cache::set_parent_widget ( i_widget aParentWidget)
final

◆ set_position()

void neogfx::layout_item_cache::set_position ( const point aPosition)
final

◆ set_size_policy()

void neogfx::layout_item_cache::set_size_policy ( const optional_size_policy &  aSizePolicy,
bool  aUpdateLayout = true 
)
final

◆ set_transformation()

void neogfx::layout_item_cache::set_transformation ( optional_mat33 const &  aTransformation,
bool  aUpdateLayout = true 
)
final

◆ set_weight()

void neogfx::layout_item_cache::set_weight ( optional_size const &  aWeight,
bool  aUpdateLayout = true 
)
final

◆ size_policy()

neogfx::size_policy neogfx::layout_item_cache::size_policy ( ) const
final

◆ subject()

i_layout_item & neogfx::layout_item_cache::subject ( ) const
final

◆ subject_destroyed()

bool neogfx::layout_item_cache::subject_destroyed ( ) const
final

◆ transformation()

mat33 const & neogfx::layout_item_cache::transformation ( bool  aCombineAncestorTransformations = false) const
final

◆ unconstrained_origin()

point neogfx::layout_item_cache::unconstrained_origin ( ) const
finalprotected

◆ unconstrained_position()

point neogfx::layout_item_cache::unconstrained_position ( ) const
finalprotected

◆ update_layout()

void neogfx::layout_item_cache::update_layout ( bool  aDeferLayout = true,
bool  aAncestors = true 
)
final

◆ visible()

bool neogfx::layout_item_cache::visible ( ) const
final

◆ weight()

size neogfx::layout_item_cache::weight ( ) const
final

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