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

#include <spacer.hpp>

Inheritance diagram for neogfx::spacer:
neogfx::layout_item< object< i_spacer > > neogfx::anchorable< Base > neogfx::horizontal_spacer neogfx::vertical_spacer

Public Types

typedef i_spacer abstract_type
 
- Public Types inherited from neogfx::anchorable< Base >
typedef neolib::map< string, i_anchor * > anchor_map_type
 

Public Member Functions

 spacer (neogfx::expansion_policy aExpansionPolicy)
 
 spacer (i_layout &aParent, neogfx::expansion_policy aExpansionPolicy)
 
virtual ~spacer ()
 
bool has_parent_layout () const final
 
const i_layoutparent_layout () const final
 
i_layoutparent_layout () final
 
void set_parent_layout (i_layout *aParentLayout) final
 
bool has_parent_widget () const final
 
const i_widgetparent_widget () const final
 
i_widgetparent_widget () final
 
void set_parent_widget (i_widget *aParentWidget) final
 
neogfx::expansion_policy expansion_policy () const override
 
void set_expansion_policy (neogfx::expansion_policy aExpansionPolicy) override
 
neogfx::size_policy size_policy () const override
 
bool has_margin () const noexcept override
 
neogfx::margin margin () const override
 
bool has_border () const noexcept override
 
neogfx::border border () const override
 
bool has_padding () const noexcept override
 
neogfx::padding padding () const override
 
bool device_metrics_available () const override
 
const i_device_metricsdevice_metrics () const override
 
void layout_as (const point &aPosition, const size &aSize) override
 
bool visible () const override
 
- Public Member Functions inherited from neogfx::layout_item< object< i_spacer > >
 layout_item ()
 
 ~layout_item ()
 
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 override
 
const i_widgetas_widget () const override
 
i_widgetas_widget () override
 
bool has_parent_layout_item () const final
 
const i_layout_itemparent_layout_item () const final
 
i_layout_itemparent_layout_item () final
 
bool has_layout_manager () const final
 
const i_widgetlayout_manager () const final
 
i_widgetlayout_manager () final
 
void update_layout (bool aDeferLayout=true, bool aAncestors=false) final
 
point origin () const final
 
void reset_origin () const final
 
point position () const final
 
size extents () const final
 
bool has_size_policy () const noexcept override
 
neogfx::size_policy size_policy () const override
 
void set_size_policy (const optional_size_policy &aSizePolicy, bool aUpdateLayout=true) override
 
bool has_weight () const noexcept override
 
size weight () const override
 
void set_weight (optional_size const &aWeight, bool aUpdateLayout=true) override
 
bool has_ideal_size () const noexcept override
 
bool is_ideal_size_constrained () const noexcept override
 
size ideal_size (optional_size const &aAvailableSpace={}) const override
 
void set_ideal_size (optional_size const &aIdealSize, bool aUpdateLayout=true) override
 
bool has_minimum_size () const noexcept override
 
bool is_minimum_size_constrained () const noexcept override
 
size minimum_size (optional_size const &aAvailableSpace={}) const override
 
void set_minimum_size (optional_size const &aMinimumSize, bool aUpdateLayout=true) override
 
bool has_maximum_size () const noexcept override
 
bool is_maximum_size_constrained () const noexcept override
 
size maximum_size (optional_size const &aAvailableSpace={}) const override
 
void set_maximum_size (optional_size const &aMaximumSize, bool aUpdateLayout=true) override
 
bool has_fixed_size () const noexcept override
 
size fixed_size (optional_size const &aAvailableSpace={}) const override
 
void set_fixed_size (optional_size const &aFixedSize, bool aUpdateLayout=true)
 
bool has_transformation () const noexcept override
 
mat33 const & transformation (bool aCombineAncestorTransformations=false) const override
 
void set_transformation (optional_mat33 const &aTransformation, bool aUpdateLayout=true) override
 
bool has_margin () const noexcept override
 
neogfx::margin margin () const override
 
void set_margin (optional_margin const &aMargin, bool aUpdateLayout=true) override
 
bool has_border () const noexcept override
 
neogfx::border border () const override
 
void set_border (optional_border const &aBorder, bool aUpdateLayout=true) override
 
bool has_padding () const noexcept override
 
neogfx::padding padding () const override
 
void set_padding (optional_padding const &aPadding, bool aUpdateLayout=true) override
 
void invalidate_combined_transformation () override
 
void fix_weightings (bool aRecalculate=true) override
 
i_anchor & anchor_to (i_anchorable &aRhs, i_string const &aLhsAnchor, anchor_constraint_function aLhsFunction, i_string const &aRhsAnchor, anchor_constraint_function aRhsFunction) override
 
- Public Member Functions inherited from neogfx::anchorable< Base >
 ~anchorable ()
 
i_anchor & anchor_to (i_anchorable &aRhs, const i_string &aLhsAnchor, anchor_constraint_function aLhsFunction, const i_string &aRhsAnchor, anchor_constraint_function aRhsFunction) override
 
const anchor_map_typeanchors () const override
 
anchor_map_typeanchors () override
 

Additional Inherited Members

- Public Attributes inherited from neogfx::layout_item< object< i_spacer > >
define_property(property_category::soft_geometry, point, Position, position) define_property(property_category cache< pointiOrigin
 
cache< mat33iCombinedTransformation
 
- Protected Member Functions inherited from neogfx::layout_item< object< i_spacer > >
void set_position (const point &aPosition) override
 
void set_extents (const size &aExtents) override
 
point unconstrained_origin () const override
 
point unconstrained_position () const override
 
void layout_item_enabled (i_layout_item &aItem) override
 
void layout_item_disabled (i_layout_item &aItem) override
 

Detailed Description

Definition at line 31 of file spacer.hpp.

Member Typedef Documentation

◆ abstract_type

Definition at line 38 of file spacer.hpp.

Constructor & Destructor Documentation

◆ spacer() [1/2]

neogfx::spacer::spacer ( neogfx::expansion_policy  aExpansionPolicy)

◆ spacer() [2/2]

neogfx::spacer::spacer ( i_layout aParent,
neogfx::expansion_policy  aExpansionPolicy 
)

◆ ~spacer()

virtual neogfx::spacer::~spacer ( )
virtual

Member Function Documentation

◆ border()

neogfx::border neogfx::spacer::border ( ) const
override

◆ device_metrics()

const i_device_metrics & neogfx::spacer::device_metrics ( ) const
override

◆ device_metrics_available()

bool neogfx::spacer::device_metrics_available ( ) const
override

◆ expansion_policy()

neogfx::expansion_policy neogfx::spacer::expansion_policy ( ) const
override

◆ has_border()

bool neogfx::spacer::has_border ( ) const
overridenoexcept

◆ has_margin()

bool neogfx::spacer::has_margin ( ) const
overridenoexcept

◆ has_padding()

bool neogfx::spacer::has_padding ( ) const
overridenoexcept

◆ has_parent_layout()

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

◆ has_parent_widget()

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

◆ layout_as()

void neogfx::spacer::layout_as ( const point aPosition,
const size aSize 
)
override

◆ margin()

neogfx::margin neogfx::spacer::margin ( ) const
override

◆ padding()

neogfx::padding neogfx::spacer::padding ( ) const
override

◆ parent_layout() [1/2]

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

◆ parent_layout() [2/2]

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

◆ parent_widget() [1/2]

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

◆ parent_widget() [2/2]

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

◆ set_expansion_policy()

void neogfx::spacer::set_expansion_policy ( neogfx::expansion_policy  aExpansionPolicy)
override

◆ set_parent_layout()

void neogfx::spacer::set_parent_layout ( i_layout aParentLayout)
final

◆ set_parent_widget()

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

◆ size_policy()

neogfx::size_policy neogfx::spacer::size_policy ( ) const
override

◆ visible()

bool neogfx::spacer::visible ( ) const
override

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