IndexGlobalsBLVar
BLVar Class Referencefinal

Variant [C++ API].

Member Functions

Construction & Destruction
Overloaded Operators
Common Functionality
Type Accessors
Properties
Casts
Assignment
Equality

Static Functions

Static Constructors

Additional Inherited Members

- Public Attributes inherited from BLObjectCore

BLObjectType BLVar::type() constnoexcept[¶]

Returns the type of the underlying object.

bool BLVar::isArray() constnoexcept[¶]

Tests whether this BLVar instance represents a BLArray<T> storing any supported type.

bool BLVar::isBitArray() constnoexcept[¶]

Tests whether this BLVar instance represents BLBitArray.

bool BLVar::isBitSet() constnoexcept[¶]

Tests whether this BLVar instance represents BLBitSet.

bool BLVar::isBool() constnoexcept[¶]

Tests whether this BLVar instance represents a boxed bool value.

bool BLVar::isContext() constnoexcept[¶]

Tests whether this BLVar instance represents BLContext.

bool BLVar::isDouble() constnoexcept[¶]

Tests whether this BLVar instance represents a boxed double value.

bool BLVar::isFont() constnoexcept[¶]

Tests whether this BLVar instance represents BLFont.

bool BLVar::isFontData() constnoexcept[¶]

Tests whether this BLVar instance represents BLFontData.

bool BLVar::isFontFace() constnoexcept[¶]

Tests whether this BLVar instance represents BLFontFace.

bool BLVar::isFontManager() constnoexcept[¶]

Tests whether this BLVar instance represents BLFontManager.

bool BLVar::isGradient() constnoexcept[¶]

Tests whether this BLVar instance represents BLGradient.

bool BLVar::isImage() constnoexcept[¶]

Tests whether this BLVar instance represents BLImage.

bool BLVar::isImageCodec() constnoexcept[¶]

Tests whether this BLVar instance represents BLImageCodec.

bool BLVar::isImageDecoder() constnoexcept[¶]

Tests whether this BLVar instance represents BLImageDecoder.

bool BLVar::isImageEncoder() constnoexcept[¶]

Tests whether this BLVar instance represents BLImageEncoder.

bool BLVar::isInt64() constnoexcept[¶]

Tests whether this BLVar instance represents a boxed int64_t value.

bool BLVar::isNull() constnoexcept[¶]

Tests whether this BLVar instance represents a null value.

bool BLVar::isPath() constnoexcept[¶]

Tests whether this BLVar instance represents BLPath.

bool BLVar::isPattern() constnoexcept[¶]

Tests whether this BLVar instance represents BLPattern.

bool BLVar::isString() constnoexcept[¶]

Tests whether this BLVar instance represents BLString.

bool BLVar::isRgba() constnoexcept[¶]

Tests whether this BLVar instance represents boxed BLRgba.

bool BLVar::isRgba32() constnoexcept[¶]

Tests whether this BLVar instance represents boxed BLRgba32.

bool BLVar::isRgba64() constnoexcept[¶]

Tests whether this BLVar instance represents boxed BLRgba64.

bool BLVar::isUInt64() constnoexcept[¶]

Tests whether this BLVar instance represents a boxed uint64_t value.

bool BLVar::isStyle() constnoexcept[¶]

Tests whether this BLVar instance is a style that can be used with the rendering context.

BLResult BLVar::toBool(
bool* out
) constnoexcept[¶]

Converts this value to bool and stores the result in out.

BLResult BLVar::toInt32(
int32_t* out
) constnoexcept[¶]

Converts this value to int32_t and stores the result in out.

BLResult BLVar::toInt64(
int64_t* out
) constnoexcept[¶]

Converts this value to int64_t and stores the result in out.

BLResult BLVar::toUInt32(
uint32_t* out
) constnoexcept[¶]

Converts this value to uint32_t and stores the result in out.

BLResult BLVar::toUInt64(
uint64_t* out
) constnoexcept[¶]

Converts this value to uint64_t and stores the result in out.

BLResult BLVar::toDouble(
double* out
) constnoexcept[¶]

Converts this value to double precision floating point and stores the result in out.

BLResult BLVar::toRgba(
BLRgba* out
) constnoexcept[¶]

Converts this value to BLRgba and stores the result in out.

BLResult BLVar::toRgba32() constnoexcept[¶]

Converts this value to BLRgba32 and stores the result in out.

BLResult BLVar::toRgba64() constnoexcept[¶]

Converts this value to BLRgba64 and stores the result in out.

BLResult BLVar::getProperty(
const char* name,
BLVarCore& valueOut
) constnoexcept[1/2][¶]

Gets a property of the given name and assigns it to an initialized valueOut.

BLResult BLVar::getProperty(
BLVarCore& valueOut
) constnoexcept[2/2][¶]

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

BLResult BLVar::setProperty(
const char* name,
const BLObjectCore& value
)noexcept[1/2][¶]

Sets a property of the given name to value.

BLResult BLVar::setProperty(
const BLObjectCore& value
)noexcept[2/2][¶]

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

template<typename T>
T& BLVar::as()noexcept[1/2][¶]

Casts this BLVar instance to T&.

template<typename T>
const T& BLVar::as() constnoexcept[2/2][¶]

Casts this BLVar instance to const T&.