Castor3D 0.16.0
Multiplatform 3D engine
List of all members
castor3d::LayoutBox Class Reference

#include <LayoutBox.hpp>

Inheritance diagram for castor3d::LayoutBox:
Inheritance graph
[legend]
Collaboration diagram for castor3d::LayoutBox:
Collaboration graph
[legend]

General

C3D_API LayoutBox (ControlsManager &manager)
 
C3D_API LayoutBox (LayoutControl &container)
 
void setHorizontal (bool v) noexcept
 
bool isHorizontal () const noexcept
 

Additional Inherited Members

- Public Member Functions inherited from castor3d::Layout
C3D_API Layout (Layout const &) noexcept=delete
 
C3D_API Layoutoperator= (Layout const &) noexcept=delete
 
C3D_API Layout (Layout &&) noexcept=delete
 
C3D_API Layoutoperator= (Layout &&) noexcept=delete
 
virtual C3D_API ~Layout () noexcept
 
C3D_API Layout (castor::String const &typeName, ControlsManager &manager)
 
C3D_API Layout (castor::String const &typeName, LayoutControl &container)
 
C3D_API void markDirty ()
 
C3D_API void addControl (Control &control, LayoutItemFlags flags={})
 
C3D_API void removeControl (Control const &control, bool checkPresent=true)
 
C3D_API void addSpacer (uint32_t size=Spacer::Dynamic)
 
bool hasManager () const noexcept
 
ControlsManagergetManager () const noexcept
 
bool hasContainer () const noexcept
 
LayoutControlgetContainer () const noexcept
 
auto begin () const noexcept
 
auto end () const noexcept
 
- Public Member Functions inherited from castor::NamedBaseT< T >
 NamedBaseT (T name) noexcept
 Constructor.
 
T const & getName () const noexcept
 Retrieves the name.
 
void rename (T name) noexcept
 
- Protected Member Functions inherited from castor3d::Layout
C3D_API void update ()
 
- Protected Attributes inherited from castor3d::Layout
ControlsManagerm_manager {}
 
LayoutControlm_container {}
 
castor::Vector< Itemm_items
 
castor::Vector< SpacerUPtr > m_spacers
 
CpuFrameEventm_event {}
 
std::atomic_bool m_updating { false }
 
- Protected Attributes inherited from castor::NamedBaseT< T >
m_name
 

Constructor & Destructor Documentation

◆ LayoutBox() [1/2]

C3D_API castor3d::LayoutBox::LayoutBox ( ControlsManager & manager)
explicit

Constructor for global layout

◆ LayoutBox() [2/2]

C3D_API castor3d::LayoutBox::LayoutBox ( LayoutControl & container)
explicit

Constructor

Parameters
[in]containerThe control affected by this layout.

Member Function Documentation

◆ isHorizontal()

bool castor3d::LayoutBox::isHorizontal ( ) const
inlinenoexcept

◆ setHorizontal()

void castor3d::LayoutBox::setHorizontal ( bool v)
inlinenoexcept

Sets the layout direction.

Parameters
[in]vtrue for an horizontal layout.

References castor3d::Layout::markDirty().

Here is the call graph for this function:

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