libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
|
Go to the source code of this file.
Data Structures | |
struct | GblClassClosureClass |
struct | GblClassClosure |
Macros | |
#define | GBL_CLASS_CLOSURE_TYPE |
#define | GBL_CLASS_CLOSURE(self) |
#define | GBL_CLASS_CLOSURE_CLASS(klass) |
#define | GBL_CLASS_CLOSURE_GET_CLASS(self) |
Functions | |
GblType | GblClassClosure_type (void) |
GblClassClosure * | GblClassClosure_create (GblType classType, size_t offset, GblInstance *pInstance, void *pUserdata) |
GblClassClosure, virtual method invoking closure, and API.
This file contains GblClassClosure and its associated API. It is used to invoke a virtual method on given GblInstance
Definition in file gimbal_class_closure.h.
#define GBL_CLASS_CLOSURE_TYPE |
GblType UUID for GblClassClosure.
Definition at line 18 of file gimbal_class_closure.h.
#define GBL_CLASS_CLOSURE | ( | self | ) |
Cast a GblInstance to GblClassClosure.
Definition at line 20 of file gimbal_class_closure.h.
#define GBL_CLASS_CLOSURE_CLASS | ( | klass | ) |
Cast a GblClass ot GblClassClosureClass.
Definition at line 21 of file gimbal_class_closure.h.
#define GBL_CLASS_CLOSURE_GET_CLASS | ( | self | ) |
Get a GblClassClosureClass from GblInstance.
Definition at line 22 of file gimbal_class_closure.h.
GblType GblClassClosure_type | ( | void | ) |
Returns the GblType UUID associated with GblClassClosure.
GblClassClosure * GblClassClosure_create | ( | GblType | classType, |
size_t | offset, | ||
GblInstance * | pInstance, | ||
void * | pUserdata | ||
) |
Creates a new GblClassClosure with the given values, returning a pointer to it.