#include <juce_FlexItem.h>
Describes the properties of an item inside a FlexBox container.
- See also
- FlexBox
@tags{GUI}
◆ AlignSelf
| enum class juce::FlexItem::AlignSelf |
|
strong |
Possible value for the alignSelf property
| Enumerator |
|---|
| autoAlign | Follows the FlexBox container's alignItems property.
|
| flexStart | Item is aligned towards the start of the cross axis.
|
| flexEnd | Item is aligned towards the end of the cross axis.
|
| center | Item is aligned towards the center of the cross axis.
|
| stretch | Item is stretched from start to end of the cross axis.
|
◆ FlexItem() [1/6]
| juce::FlexItem::FlexItem |
( |
| ) |
|
|
noexcept |
Creates an item with default parameters, and zero size.
◆ FlexItem() [2/6]
| juce::FlexItem::FlexItem |
( |
float | width, |
|
|
float | height ) |
|
noexcept |
Creates an item with the given size.
◆ FlexItem() [3/6]
| juce::FlexItem::FlexItem |
( |
float | width, |
|
|
float | height, |
|
|
Component & | targetComponent ) |
|
noexcept |
Creates an item with the given size and target Component.
◆ FlexItem() [4/6]
| juce::FlexItem::FlexItem |
( |
float | width, |
|
|
float | height, |
|
|
FlexBox & | flexBoxToControl ) |
|
noexcept |
Creates an item that represents an embedded FlexBox with a given size.
◆ FlexItem() [5/6]
| juce::FlexItem::FlexItem |
( |
Component & | componentToControl | ) |
|
|
noexcept |
Creates an item with a given target Component.
◆ FlexItem() [6/6]
| juce::FlexItem::FlexItem |
( |
FlexBox & | flexBoxToControl | ) |
|
|
noexcept |
Creates an item that represents an embedded FlexBox. This class will not create a copy of the supplied flex box. You need to ensure that the life-time of flexBoxToControl is longer than the FlexItem.
◆ withAlignSelf()
Returns a copy of this object with a new alignSelf value.
◆ withFlex() [1/3]
| FlexItem juce::FlexItem::withFlex |
( |
float | newFlexGrow | ) |
const |
|
noexcept |
Returns a copy of this object with a new flex-grow value.
◆ withFlex() [2/3]
| FlexItem juce::FlexItem::withFlex |
( |
float | newFlexGrow, |
|
|
float | newFlexShrink ) const |
|
noexcept |
Returns a copy of this object with new flex-grow and flex-shrink values.
◆ withFlex() [3/3]
| FlexItem juce::FlexItem::withFlex |
( |
float | newFlexGrow, |
|
|
float | newFlexShrink, |
|
|
float | newFlexBasis ) const |
|
noexcept |
Returns a copy of this object with new flex-grow, flex-shrink and flex-basis values.
◆ withHeight()
| FlexItem juce::FlexItem::withHeight |
( |
float | newHeight | ) |
const |
|
noexcept |
Returns a copy of this object with a new height.
◆ withMargin()
Returns a copy of this object with a new margin.
◆ withMaxHeight()
| FlexItem juce::FlexItem::withMaxHeight |
( |
float | newMaxHeight | ) |
const |
|
noexcept |
Returns a copy of this object with a new maximum height.
◆ withMaxWidth()
| FlexItem juce::FlexItem::withMaxWidth |
( |
float | newMaxWidth | ) |
const |
|
noexcept |
Returns a copy of this object with a new maximum width.
◆ withMinHeight()
| FlexItem juce::FlexItem::withMinHeight |
( |
float | newMinHeight | ) |
const |
|
noexcept |
Returns a copy of this object with a new minimum height.
◆ withMinWidth()
| FlexItem juce::FlexItem::withMinWidth |
( |
float | newMinWidth | ) |
const |
|
noexcept |
Returns a copy of this object with a new minimum width.
◆ withOrder()
| FlexItem juce::FlexItem::withOrder |
( |
int | newOrder | ) |
const |
|
noexcept |
Returns a copy of this object with a new order.
◆ withWidth()
| FlexItem juce::FlexItem::withWidth |
( |
float | newWidth | ) |
const |
|
noexcept |
Returns a copy of this object with a new width.
◆ alignSelf
This is the align-self property of the item. This determines the alignment of the item along the cross-axis (perpendicular to the direction of flow).
◆ associatedComponent
If this is non-null, it represents a Component whose bounds are controlled by this item.
◆ associatedFlexBox
If this is non-null, it represents a FlexBox whose bounds are controlled by this item.
◆ autoValue
| const int juce::FlexItem::autoValue = -2 |
|
static |
This constant can be used for sizes to indicate that 'auto' mode should be used.
◆ currentBounds
| Rectangle<float> juce::FlexItem::currentBounds |
The item's current bounds.
◆ flexBasis
| float juce::FlexItem::flexBasis = 0.0f |
Specifies the flex-basis of the item. This is the initial main size of a flex item in the direction of flow. It determines the size of the content-box unless specified otherwise using box-sizing.
◆ flexGrow
| float juce::FlexItem::flexGrow = 0.0f |
Specifies the flex grow factor of this item. This indicates the amount of space inside the flex container the item should take up.
◆ flexShrink
| float juce::FlexItem::flexShrink = 1.0f |
Specifies the flex shrink factor of the item. This indicates the rate at which the item shrinks if there is insufficient space in the container.
◆ height
◆ margin
The margin to leave around this item.
◆ maxHeight
The item's maximum height
◆ maxWidth
◆ minHeight
| float juce::FlexItem::minHeight = 0.0f |
The item's minimum height
◆ minWidth
| float juce::FlexItem::minWidth = 0.0f |
◆ notAssigned
| const int juce::FlexItem::notAssigned = -1 |
|
static |
This constant can be used for sizes to indicate that no value has been set.
◆ order
| int juce::FlexItem::order = 0 |
Determines the order used to lay out items in their flex container. Elements are laid out in ascending order of thus order value. Elements with the same order value are laid out in the order in which they appear in the array.
◆ width
The documentation for this class was generated from the following files:
- /home/runner/work/lmms-fork/lmms-fork/plugins/CarlaBase/carla/source/modules/juce_gui_basics/layout/juce_FlexItem.h
- /home/runner/work/lmms-fork/lmms-fork/plugins/CarlaBase/carla/source/modules/juce_gui_basics/layout/juce_FlexBox.cpp