BLVariant Class Reference

Variant [C++ API].

BLVariant defines a common interface that can be used to work with both Blend2D values and objects in an abstract way without knowing their type. Since both objects and values share the same common strucutre it's possible to treat them as same at the lowest level (memory and lifetime management).

Member Functions

Static Functions

Additional Inherited Members

- Public Attributes inherited from BLVariantCore

Member Function Documentation

bool BLVariant::isNone() const

Tests whether the variant is a built-in null instance (of any impl-type).

uint32_t BLVariant::implType() const

Returns the type of the object, see BLImplType for more details.