JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
juce::ComponentPeer::OptionalBorderSize Class Referencefinal

Represents the window borders around a window component. More...

#include "juce_ComponentPeer.h"

Public Member Functions

 OptionalBorderSize ()
 Default constructor.
 
 OptionalBorderSize (BorderSize< int > size)
 Constructor.
 
 operator bool () const noexcept
 Returns true if a valid value has been provided.
 
const autooperator* () const noexcept
 Returns a reference to the value.
 
const autooperator-> () const noexcept
 Returns a pointer to the value.
 

Detailed Description

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.

Definition at line 90 of file juce_ComponentPeer.h.

Constructor & Destructor Documentation

◆ OptionalBorderSize() [1/2]

juce::ComponentPeer::OptionalBorderSize::OptionalBorderSize ( )

Default constructor.

Creates an invalid object.

Definition at line 94 of file juce_ComponentPeer.h.

◆ OptionalBorderSize() [2/2]

juce::ComponentPeer::OptionalBorderSize::OptionalBorderSize ( BorderSize< int size)
explicit

Constructor.

Creates a valid object containing the provided BorderSize<int>.

Definition at line 97 of file juce_ComponentPeer.h.

Member Function Documentation

◆ operator bool()

juce::ComponentPeer::OptionalBorderSize::operator bool ( ) const
explicitnoexcept

Returns true if a valid value has been provided.

Definition at line 100 of file juce_ComponentPeer.h.

◆ operator*()

const auto & juce::ComponentPeer::OptionalBorderSize::operator* ( ) const
noexcept

Returns a reference to the value.

You must not call this function on an invalid object. Use operator bool() to determine validity.

Definition at line 107 of file juce_ComponentPeer.h.

◆ operator->()

const auto * juce::ComponentPeer::OptionalBorderSize::operator-> ( ) const
noexcept

Returns a pointer to the value.

You must not call this function on an invalid object. Use operator bool() to determine validity.

Definition at line 118 of file juce_ComponentPeer.h.


The documentation for this class was generated from the following file: