Castor3D 0.16.0
Multiplatform 3D engine
|
#include <Layout.hpp>
Classes | |
struct | Item |
Fonctions membres publiques | |
General | |
C3D_API | Layout (Layout const &) noexcept=delete |
C3D_API Layout & | operator= (Layout const &) noexcept=delete |
C3D_API | Layout (Layout &&) noexcept=delete |
C3D_API Layout & | operator= (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 () |
Fonctions membres publiques hérités de castor::NamedBaseT< T > | |
NamedBaseT (T name) noexcept | |
Constructeur. | |
T const & | getName () const noexcept |
Récupère le nom. | |
void | rename (T name) noexcept |
Controls management | |
ControlsManager * | m_manager {} |
LayoutControl * | m_container {} |
castor::Vector< Item > | m_items |
castor::Vector< SpacerUPtr > | m_spacers |
CpuFrameEvent * | m_event {} |
std::atomic_bool | m_updating { false } |
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 |
ControlsManager & | getManager () const noexcept |
bool | hasContainer () const noexcept |
LayoutControl & | getContainer () const noexcept |
auto | begin () const noexcept |
auto | end () const noexcept |
C3D_API void | update () |
Membres hérités additionnels | |
Attributs protégés hérités de castor::NamedBaseT< T > | |
T | m_name |
|
virtualnoexcept |
|
explicit |
Constructor for global layout
[in] | typeName | The layout type name. |
[in] | manager | The parent controls manager. |
|
explicit |
Constructor
[in] | typeName | The layout type name. |
[in] | container | The parent layout control. |
C3D_API void castor3d::Layout::addControl | ( | Control & | control, |
LayoutItemFlags | flags = {} ) |
Adds a control.
[in] | control | The control. |
[in] | flags | The layout flags for the control. |
C3D_API void castor3d::Layout::addSpacer | ( | uint32_t | size = Spacer::Dynamic | ) |
Adds a space.
[in] | size | The space size |
|
inlinenoexcept |
Références m_items.
|
inlinenoexcept |
Références m_items.
|
inlinenoexcept |
Références CU_Require, hasContainer(), et m_container.
|
inlinenoexcept |
|
inlinenoexcept |
Références m_container.
Référencé par getContainer().
|
inlinenoexcept |
C3D_API void castor3d::Layout::markDirty | ( | ) |
Marks the layout as dirty.
Référencé par castor3d::LayoutBox::setHorizontal().
Removes a control.
[in] | control | The control. |
[in] | checkPresent | true to log a warning if not found. |
|
protected |
Updates the layout and its controls.
|
protected |
Référencé par getContainer(), et hasContainer().
|
protected |
|
protected |
|
protected |
Référencé par getManager(), et hasManager().
|
protected |
|
protected |