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

Member Function Documentation

BLObjectType BLVar::type() const◆ 

Returns the type of the underlying object.

bool BLVar::isArray() const◆ 

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

bool BLVar::isBitArray() const◆ 

Tests whether this BLVar instance represents BLBitArray.

bool BLVar::isBitSet() const◆ 

Tests whether this BLVar instance represents BLBitSet.

bool BLVar::isBool() const◆ 

Tests whether this BLVar instance represents a boxed bool value.

bool BLVar::isContext() const◆ 

Tests whether this BLVar instance represents BLContext.

bool BLVar::isDouble() const◆ 

Tests whether this BLVar instance represents a boxed double value.

bool BLVar::isFont() const◆ 

Tests whether this BLVar instance represents BLFont.

bool BLVar::isFontData() const◆ 

Tests whether this BLVar instance represents BLFontData.

bool BLVar::isFontFace() const◆ 

Tests whether this BLVar instance represents BLFontFace.

bool BLVar::isFontManager() const◆ 

Tests whether this BLVar instance represents BLFontManager.

bool BLVar::isGradient() const◆ 

Tests whether this BLVar instance represents BLGradient.

bool BLVar::isImage() const◆ 

Tests whether this BLVar instance represents BLImage.

bool BLVar::isImageCodec() const◆ 

Tests whether this BLVar instance represents BLImageCodec.

bool BLVar::isImageDecoder() const◆ 

Tests whether this BLVar instance represents BLImageDecoder.

bool BLVar::isImageEncoder() const◆ 

Tests whether this BLVar instance represents BLImageEncoder.

bool BLVar::isInt64() const◆ 

Tests whether this BLVar instance represents a boxed int64_t value.

bool BLVar::isNull() const◆ 

Tests whether this BLVar instance represents a null value.

bool BLVar::isPath() const◆ 

Tests whether this BLVar instance represents BLPath.

bool BLVar::isPattern() const◆ 

Tests whether this BLVar instance represents BLPattern.

bool BLVar::isString() const◆ 

Tests whether this BLVar instance represents BLString.

bool BLVar::isRgba() const◆ 

Tests whether this BLVar instance represents boxed BLRgba.

bool BLVar::isRgba32() const◆ 

Tests whether this BLVar instance represents boxed BLRgba32.

bool BLVar::isRgba64() const◆ 

Tests whether this BLVar instance represents boxed BLRgba64.

bool BLVar::isUInt64() const◆ 

Tests whether this BLVar instance represents a boxed uint64_t value.

bool BLVar::isStyle() const◆ 

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

BLResult BLVar::toBool(bool* out) const◆ 

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

BLResult BLVar::toInt32(int32_t* out) const◆ 

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

BLResult BLVar::toInt64(int64_t* out) const◆ 

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

BLResult BLVar::toUInt32(uint32_t* out) const◆ 

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

BLResult BLVar::toUInt64(uint64_t* out) const◆ 

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

BLResult BLVar::toDouble(double* out) const◆ 

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

BLResult BLVar::toRgba(BLRgba* out) const◆ 

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

BLResult BLVar::toRgba32(BLRgba32* out) const◆ 

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

BLResult BLVar::toRgba64(BLRgba64* out) const◆ 

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

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

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

BLResult BLVar::getProperty(BLStringView name, BLVarCore& valueOut) const[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)[1/2]◆ 

Sets a property of the given name to value.

BLResult BLVar::setProperty(BLStringView name, const BLObjectCore& value)[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()[1/2]◆ 

Casts this BLVar instance to T&.

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

Casts this BLVar instance to const T&.