Kanzi 3.9.10
kanzi::StackLayoutConceptImpl< TBaseClass, TDerivedClass > Class Template Reference

Stack layout concept implementation base class. More...

#include <kanzi/ui/node/concept/stack_layout.hpp>

Inheritance diagram for kanzi::StackLayoutConceptImpl< TBaseClass, TDerivedClass >:
[legend]

Public Member Functions

LayoutDirection getDirection () const
 Gets the value of DirectionProperty.
 
bool isReversed () const
 Gets the value of ReversedProperty.
 
void setDirection (LayoutDirection value)
 Sets the value of DirectionProperty.
 
void setReversed (bool value)
 Sets the value of ReversedProperty.
 

Static Public Member Functions

static PropertyTypeEditorInfoSharedPtr makeEditorInfo ()
 
- Static Public Member Functions inherited from kanzi::StackLayoutConcept
static size_t directionToIndex (LayoutDirection direction)
 
static size_t directionToOppositeIndex (LayoutDirection direction)
 
static PropertyTypeEditorInfoSharedPtr makeEditorInfo ()
 

Protected Member Functions

 StackLayoutConceptImpl (Domain *domain, string_view name)
 Constructor.
 

Additional Inherited Members

- Public Types inherited from kanzi::StackLayoutConcept
enum  LayoutDirection { DirectionX , DirectionY , DirectionZ }
 Direction in which stack layout arranges its items. More...
 
- Static Public Attributes inherited from kanzi::StackLayoutConcept
static PropertyType< StackLayoutConcept::LayoutDirectionDirectionProperty
 Direction property.
 
static PropertyType< boolReversedProperty
 Reversed property.
 

Detailed Description

template<typename TBaseClass, typename TDerivedClass>
class kanzi::StackLayoutConceptImpl< TBaseClass, TDerivedClass >

Stack layout concept implementation base class.

Note
Do not use this class directly. To use a stack layout in your application use StackLayout3D or StackLayout2D.

StackLayoutConceptImpl provides the functionality to implement a stack layout. StackLayoutConceptImpl derives from StackLayoutConcept, which defines the data and property types used by the implementation. To implement a custom stack layout derive from StackLayoutConceptImpl. The expected inheritance graph is TBaseClass <- StackLayoutConceptImpl <- YourClass.

Constructor & Destructor Documentation

◆ StackLayoutConceptImpl()

template<typename TBaseClass , typename TDerivedClass >
kanzi::StackLayoutConceptImpl< TBaseClass, TDerivedClass >::StackLayoutConceptImpl ( Domain * domain,
string_view name )
explicitprotected

Constructor.

Parameters
domainThe UI domain the new node belongs to.
nameThe name of the node.

Member Function Documentation

◆ makeEditorInfo()

template<typename TBaseClass , typename TDerivedClass >
PropertyTypeEditorInfoSharedPtr kanzi::StackLayoutConceptImpl< TBaseClass, TDerivedClass >::makeEditorInfo ( )
static

◆ getDirection()

Gets the value of DirectionProperty.

See also
setDirection()

◆ setDirection()

Sets the value of DirectionProperty.

See also
getDirection()

◆ isReversed()

template<typename TBaseClass , typename TDerivedClass >
bool kanzi::StackLayoutConceptImpl< TBaseClass, TDerivedClass >::isReversed ( ) const

Gets the value of ReversedProperty.

See also
setReversed()

◆ setReversed()

template<typename TBaseClass , typename TDerivedClass >
void kanzi::StackLayoutConceptImpl< TBaseClass, TDerivedClass >::setReversed ( bool value)

Sets the value of ReversedProperty.

See also
isReversed()

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