Container that can override preferred size of its child. More...
#include <Prefsize.hpp>
Public Attributes | |
| ClientMarker | cm |
| DirtyAttr< std::optional< float > > | attr_prefsizeX |
| DirtyAttr< std::optional< float > > | attr_prefsizeY |
| DirtyAttr< std::optional< float > > | attr_prefsizeZ |
| DirtyAttr< float3 > | attr_prefsizeScale |
Public Attributes inherited from iv::OneChildElem< SlotChild > | |
| ClientMarker | cm |
Public Attributes inherited from iv::Elem | |
| ClientMarker | cm |
| DirtyAttr< bool > | attr_enabled |
| DirtyAttr< float4x4 > | modelTransform |
| DirtyAttr< ShaderScissor > | scissor |
Public Attributes inherited from iv::InputNode | |
| ClientMarker | cm |
Public Attributes inherited from iv::SlotChild | |
| ClientMarker | cm |
| DirtyAttr< float3 > | expectedSize |
| DirtyAttr< float3 > | preferredSize |
| DirtyAttr< float3 > | size |
Public Attributes inherited from iv::Pickable | |
| ClientMarker | cm |
Protected Member Functions | |
| virtual void | first_pass_impl (ElementRenderer *) override |
| virtual void | second_pass_impl (ElementRenderer *) override |
Protected Member Functions inherited from iv::OneChildElem< SlotChild > | |
| virtual void | elem_eachChild (std::function< void(Elem *) > const &) override |
| virtual void | elem_childDisconnect (Elem *) override |
| virtual void | input_eachChild (std::function< void(InputNode *) > const &f) override |
| virtual void | input_childDisconnect (InputNode *child) override |
Protected Member Functions inherited from iv::InputNode | |
| virtual bool | input_trigger_process (InputRoot *root, Input::DeviceKey key) |
| virtual void | input_process (InputRoot *root, Input::DeviceKey key, bool &press, bool &real, bool &offspace) |
Additional Inherited Members | |
Protected Attributes inherited from iv::OneChildElem< SlotChild > | |
| DirtyAttr< SlotChild * > | child |
Detailed Description
Container that can override preferred size of its child.
If a dimension has empty (std::nullopt) prefsize value, then that Prefsize will not override that axis.
Definition at line 16 of file Prefsize.hpp.
Constructor & Destructor Documentation
◆ Prefsize()
| iv::Prefsize::Prefsize | ( | Instance * | inst | ) |
Definition at line 6 of file Prefsize.cpp.
Member Function Documentation
◆ enabled()
| Prefsize * iv::Prefsize::enabled | ( | bool | val | ) |
Definition at line 95 of file Prefsize.cpp.
◆ prefsize()
Definition at line 107 of file Prefsize.cpp.
◆ prefsizeX()
| Prefsize * iv::Prefsize::prefsizeX | ( | std::optional< float > | val | ) |
Definition at line 115 of file Prefsize.cpp.
◆ prefsizeY()
| Prefsize * iv::Prefsize::prefsizeY | ( | std::optional< float > | val | ) |
Definition at line 121 of file Prefsize.cpp.
◆ prefsizeZ()
| Prefsize * iv::Prefsize::prefsizeZ | ( | std::optional< float > | val | ) |
Definition at line 127 of file Prefsize.cpp.
◆ prefsizeScale()
Multiplies prefsize by this value before assigning it.
Definition at line 101 of file Prefsize.cpp.
◆ first_pass_impl()
|
overrideprotectedvirtual |
Implements iv::Elem.
Definition at line 18 of file Prefsize.cpp.
◆ second_pass_impl()
|
overrideprotectedvirtual |
Reimplemented from iv::Elem.
Definition at line 74 of file Prefsize.cpp.
◆ instance()
Member Data Documentation
◆ cm
| ClientMarker iv::Prefsize::cm |
Definition at line 19 of file Prefsize.hpp.
◆ attr_prefsizeX
| DirtyAttr< std::optional< float > > iv::Prefsize::attr_prefsizeX |
Definition at line 24 of file Prefsize.hpp.
◆ attr_prefsizeY
| DirtyAttr< std::optional< float > > iv::Prefsize::attr_prefsizeY |
Definition at line 25 of file Prefsize.hpp.
◆ attr_prefsizeZ
| DirtyAttr< std::optional< float > > iv::Prefsize::attr_prefsizeZ |
Definition at line 26 of file Prefsize.hpp.
◆ attr_prefsizeScale
Definition at line 28 of file Prefsize.hpp.
The documentation for this class was generated from the following files:
- ivorium_graphics/Elements/Prefsize.hpp
- ivorium_graphics/Elements/Prefsize.cpp

Public Member Functions inherited from 