libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
Loading...
Searching...
No Matches
GblPropertyClass Struct Reference

#include <gimbal_property.h>

Inheritance diagram for GblPropertyClass:
GblBoxClass GblClass GblIVariantClass GblInterface GblClass

Data Fields

GblBoxClass base
 
GBL_RESULT(* pFnInitOptionalArgs )(GblProperty *pSelf, size_t argCount, va_list *pVaList)
 
GBL_RESULT(* pFnDefaultValue )(const GblProperty *pSelf, GblVariant *pValue)
 
GBL_RESULT(* pFnCheckValue )(const GblProperty *pSelf, const GblVariant *pValue)
 
GBL_RESULT(* pFnValidateValue )(const GblProperty *pSelf, GblVariant *pValue)
 
GBL_RESULT(* pFnCompareValues )(const GblProperty *pSelf, const GblVariant *pV1, const GblVariant *pV2, int *pResult)
 
- Data Fields inherited from GblBoxClass
GblClass base
 
GblIVariantClass GblIVariantImpl
 
struct { 
 
   GblArrayMap *   pFields 
 
private_ 
 
GBL_RESULT(* pFnDestructor )(GblBox *pSelf)
 
- Data Fields inherited from GblClass
struct { 
 
   uintptr_t   metaClassInfo 
 
private_ 
 
- Data Fields inherited from GblIVariantClass
GblInterface base
 
const GblIVariantVTablepVTable
 
- Data Fields inherited from GblInterface
GblClass base
 
size_t outerClassOffset_
 

Additional Inherited Members

Detailed Description

GblClass VTable structure for GblProperty.

GblPropertyClass provides overridable virtual methods which allow for a derived type to implement type-specific functionality for a property. This functionality includes:

  • additional constructor argument handling
  • default value handling
  • type checking
  • value validation
  • (fuzzy) comparisons
See also
GblProperty

Definition at line 80 of file gimbal_property.h.

Field Documentation

◆ base

GblBoxClass GblPropertyClass::base

Inherited base class structure.

Definition at line 80 of file gimbal_property.h.

◆ pFnInitOptionalArgs

GBL_RESULT(* GblPropertyClass::pFnInitOptionalArgs) (GblProperty *pSelf, size_t argCount, va_list *pVaList)

Virtual method invoked during constructor to manage additional, non-default arguments.

Definition at line 82 of file gimbal_property.h.

◆ pFnDefaultValue

GBL_RESULT(* GblPropertyClass::pFnDefaultValue) (const GblProperty *pSelf, GblVariant *pValue)

Virtual method returning the default value for the property.

Definition at line 84 of file gimbal_property.h.

◆ pFnCheckValue

GBL_RESULT(* GblPropertyClass::pFnCheckValue) (const GblProperty *pSelf, const GblVariant *pValue)

Checks whether a variant is of the right type or can even be accepted as the new property value.

Definition at line 86 of file gimbal_property.h.

◆ pFnValidateValue

GBL_RESULT(* GblPropertyClass::pFnValidateValue) (const GblProperty *pSelf, GblVariant *pValue)

Updates the variant's value to be within range and a valid value for the given property.

Definition at line 88 of file gimbal_property.h.

◆ pFnCompareValues

GBL_RESULT(* GblPropertyClass::pFnCompareValues) (const GblProperty *pSelf, const GblVariant *pV1, const GblVariant *pV2, int *pResult)

Compares the values of the two given variants to see if they're even different.

Definition at line 90 of file gimbal_property.h.


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