|
| template<Orientation TLocalOrientation = TOrientation, typename std::enable_if_t< TLocalOrientation==Orientation::Horizontal, int > = 0> |
| void | setAlignment (spk::VerticalAlignment p_alignment) |
| | Sets alignment along the cross axis (horizontal layout).
|
| template<Orientation TLocalOrientation = TOrientation, typename std::enable_if_t< TLocalOrientation==Orientation::Vertical, int > = 0> |
| void | setAlignment (spk::HorizontalAlignment p_alignment) |
| | Sets alignment along the cross axis (vertical layout).
|
| template<Orientation TLocalOrientation = TOrientation, typename std::enable_if_t< TLocalOrientation==Orientation::Horizontal, int > = 0> |
| spk::VerticalAlignment | alignment () const |
| | Returns alignment along the cross axis (horizontal layout).
|
| template<Orientation TLocalOrientation = TOrientation, typename std::enable_if_t< TLocalOrientation==Orientation::Vertical, int > = 0> |
| spk::HorizontalAlignment | alignment () const |
| | Returns alignment along the cross axis (vertical layout).
|
| void | setGeometry (const spk::Extend2D &p_geometry) override |
| | Sets the layout geometry and positions elements.
|
| void | addElement (ResizableElement *p_object, const SizePolicy::Value &p_sizePolicy) |
| | Adds an element with a main-axis size policy.
|
| void | addElement (ResizableElement *p_object, const SizePolicy &p_sizePolicy) |
| | Adds an element with an explicit size policy.
|
| void | setPadding (const uint32_t &p_padding) |
| | Sets padding along the main axis.
|
| void | setPadding (const spk::Vector2UInt &p_padding) |
| | Sets layout padding between elements.
|
| const spk::Vector2UInt & | padding () const |
| | Returns layout padding.
|
|
void | clear () |
| | Removes all elements from the layout.
|
| template<typename TExtra> |
| void | addElement (ResizableElement *p_element, const SizePolicy &p_sizePolicy, TExtra &&p_extra) |
| | Adds an element with extra layout data.
|
| void | addElement (ResizableElement *p_element, const SizePolicy &p_sizePolicy) |
| | Adds an element with a size policy.
|
| SizeHint & | sizeHint () |
| | Returns mutable size hint data.
|
| const SizeHint & | sizeHint () const |
| | Returns const size hint data.
|
template<Orientation TOrientation>
class spk::LinearLayout< TOrientation >
Layout arranging elements linearly along an orientation.
- Template Parameters
-
| TOrientation | Layout orientation (horizontal or vertical). |
- See also
- Layout