29GridItem::Property::Property() noexcept : isAuto (
true)
33GridItem::Property::Property (GridItem::Keyword
keyword) noexcept : isAuto (
keyword == GridItem::Keyword::autoValue)
55GridItem::Property::Property (Span
spanToUse) noexcept
62GridItem::Margin::Margin() noexcept : left(), right(), top(), bottom() {}
64GridItem::Margin::Margin (
int v) noexcept : GridItem::Margin::Margin (
static_cast<float> (v)) {}
66GridItem::Margin::Margin (
float v) noexcept :
left (v),
right (v), top (v), bottom (v) {}
68GridItem::Margin::Margin (
float t,
float r,
float b,
float l) noexcept : left (
l), right (r), top (t), bottom (b) {}
The base class for all JUCE user-interface objects.
Defines an item in a Grid.
void setArea(Property rowStart, Property columnStart, Property rowEnd, Property columnEnd)
Short-hand.
GridItem withOrder(int newOrder) const noexcept
Returns a copy of this object with a new order.
GridItem withJustifySelf(JustifySelf newJustifySelf) const noexcept
Returns a copy of this object with a new justifySelf property.
AlignSelf
Possible values for the alignSelf property.
Component * associatedComponent
If this is non-null, it represents a Component whose bounds are controlled by this item.
GridItem withMargin(Margin newMargin) const noexcept
Returns a copy of this object with a new margin.
GridItem withColumn(StartAndEndProperty column) const noexcept
Returns a copy of this object with a new column property.
GridItem withHeight(float newHeight) const noexcept
Returns a copy of this object with a new height.
StartAndEndProperty row
These are the start and end properties of the row.
int order
Determines the order used to lay out items in their grid container.
GridItem withAlignSelf(AlignSelf newAlignSelf) const noexcept
Returns a copy of this object with a new alignSelf property.
GridItem withSize(float newWidth, float newHeight) const noexcept
Returns a copy of this object with a new size.
GridItem() noexcept
Creates an item with default parameters.
StartAndEndProperty column
These are the start and end properties of the column.
GridItem withRow(StartAndEndProperty row) const noexcept
Returns a copy of this object with a new row property.
GridItem withArea(Property rowStart, Property columnStart, Property rowEnd, Property columnEnd) const noexcept
Short-hand.
GridItem withWidth(float newWidth) const noexcept
Returns a copy of this object with a new width.
Margin margin
The margin to leave around this item.
JustifySelf justifySelf
This is the justify-self property of the item.
JustifySelf
Possible values for the justifySelf property.
AlignSelf alignSelf
This is the align-self property of the item.
Represents start and end properties.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...