|
LMMS
|
#include <juce_BorderSize.h>
Public Member Functions | |
| BorderSize ()=default | |
| BorderSize (ValueType topGap, ValueType leftGap, ValueType bottomGap, ValueType rightGap) noexcept | |
| BorderSize (ValueType allGaps) noexcept | |
| ValueType | getTop () const noexcept |
| ValueType | getLeft () const noexcept |
| ValueType | getBottom () const noexcept |
| ValueType | getRight () const noexcept |
| ValueType | getTopAndBottom () const noexcept |
| ValueType | getLeftAndRight () const noexcept |
| bool | isEmpty () const noexcept |
| void | setTop (ValueType newTopGap) noexcept |
| void | setLeft (ValueType newLeftGap) noexcept |
| void | setBottom (ValueType newBottomGap) noexcept |
| void | setRight (ValueType newRightGap) noexcept |
| Rectangle< ValueType > | subtractedFrom (const Rectangle< ValueType > &original) const noexcept |
| void | subtractFrom (Rectangle< ValueType > &rectangle) const noexcept |
| Rectangle< ValueType > | addedTo (const Rectangle< ValueType > &original) const noexcept |
| void | addTo (Rectangle< ValueType > &rectangle) const noexcept |
| BorderSize< ValueType > | subtractedFrom (const BorderSize< ValueType > &other) const noexcept |
| BorderSize< ValueType > | addedTo (const BorderSize< ValueType > &other) const noexcept |
| template<typename ScalarType> | |
| BorderSize< ValueType > | multipliedBy (ScalarType scalar) const noexcept |
| bool | operator== (const BorderSize &other) const noexcept |
| bool | operator!= (const BorderSize &other) const noexcept |
Private Member Functions | |
| auto | tie () const |
Private Attributes | |
| ValueType | top {} |
| ValueType | left {} |
| ValueType | bottom {} |
| ValueType | right {} |
Specifies a set of gaps to be left around the sides of a rectangle.
This is basically the size of the spaces at the top, bottom, left and right of a rectangle. It's used by various component classes to specify borders.
@tags{Graphics}
|
default |
Creates a null border. All sizes are left as 0.
|
inlinenoexcept |
Creates a border with the given gaps.
|
inlineexplicitnoexcept |
Creates a border with the given gap on all sides.
|
inlinenoexcept |
Adds this border to another border.
|
inlinenoexcept |
Returns a rectangle with these borders added around it.
|
inlinenoexcept |
Adds this border around a given rectangle.
|
inlinenoexcept |
Returns the gap that should be left at the bottom of the region.
|
inlinenoexcept |
Returns the gap that should be left at the left of the region.
|
inlinenoexcept |
Returns the sum of the left and right gaps.
|
inlinenoexcept |
Returns the gap that should be left at the right of the region.
|
inlinenoexcept |
Returns the gap that should be left at the top of the region.
|
inlinenoexcept |
Returns the sum of the top and bottom gaps.
|
inlinenoexcept |
Returns true if this border has no thickness along any edge.
|
inlinenoexcept |
Multiplies each member of the border by a scalar.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Changes the bottom gap.
|
inlinenoexcept |
Changes the left gap.
|
inlinenoexcept |
Changes the right gap.
|
inlinenoexcept |
Changes the top gap.
|
inlinenoexcept |
Removes this border from another border.
|
inlinenoexcept |
Returns a rectangle with these borders removed from it.
|
inlinenoexcept |
Removes this border from a given rectangle.
|
inlineprivate |
|
private |
|
private |
|
private |
|
private |