Represents the window borders around a window component. More...
#include <juce_ComponentPeer.h>

Public Member Functions | |
| OptionalBorderSize () | |
| Default constructor. More... | |
| OptionalBorderSize (BorderSize< int > size) | |
| Constructor. More... | |
| operator bool () const noexcept | |
| Returns true if a valid value has been provided. More... | |
| const auto & | operator* () const noexcept |
| Returns a reference to the value. More... | |
| const auto * | operator-> () const noexcept |
| Returns a pointer to the value. More... | |
Private Attributes | |
| BorderSize< int > | borderSize |
| bool | valid |
Represents the window borders around a window component.
You must use operator bool() to evaluate the validity of the object before accessing its value.
Returned by getFrameSizeIfPresent(). A missing value may be returned on Linux for a short time after window creation.
|
inline |
Default constructor.
Creates an invalid object.
|
inlineexplicit |
Constructor.
Creates a valid object containing the provided BorderSize<int>.
|
inlineexplicitnoexcept |
Returns true if a valid value has been provided.
|
inlinenoexcept |
Returns a reference to the value.
You must not call this function on an invalid object. Use operator bool() to determine validity.
References jassert.
|
inlinenoexcept |
Returns a pointer to the value.
You must not call this function on an invalid object. Use operator bool() to determine validity.
References jassert.
|
private |
|
private |