1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Added new method FlexItem::withAlignSelf()

This commit is contained in:
jules 2016-12-19 11:26:35 +00:00
parent aac01b2b4b
commit 901913a0da
2 changed files with 4 additions and 0 deletions

View file

@ -842,3 +842,4 @@ FlexItem FlexItem::withHeight (float newHeight) const noexcept { auto fi =
FlexItem FlexItem::withMargin (Margin m) const noexcept { auto fi = *this; fi.margin = m; return fi; }
FlexItem FlexItem::withOrder (int newOrder) const noexcept { auto fi = *this; fi.order = newOrder; return fi; }
FlexItem FlexItem::withAlignSelf (AlignSelf a) const noexcept { auto fi = *this; fi.alignSelf = a; return fi; }

View file

@ -155,4 +155,7 @@ public:
/** Returns a copy of this object with a new order. */
FlexItem withOrder (int newOrder) const noexcept;
/** Returns a copy of this object with a new alignSelf value. */
FlexItem withAlignSelf (AlignSelf newAlignSelf) const noexcept;
};