libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
Loading...
Searching...
No Matches
gimbal_class_closure.h File Reference

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)
 
GblClassClosureGblClassClosure_create (GblType classType, size_t offset, GblInstance *pInstance, void *pUserdata)
 

Detailed Description

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

See also
GblClassClosure
Author
2023 Falco Girgis

Definition in file gimbal_class_closure.h.

Macro Definition Documentation

◆ GBL_CLASS_CLOSURE_TYPE

#define GBL_CLASS_CLOSURE_TYPE

GblType UUID for GblClassClosure.

Definition at line 18 of file gimbal_class_closure.h.

◆ GBL_CLASS_CLOSURE

#define GBL_CLASS_CLOSURE (   self)

Cast a GblInstance to GblClassClosure.

Definition at line 20 of file gimbal_class_closure.h.

◆ GBL_CLASS_CLOSURE_CLASS

#define GBL_CLASS_CLOSURE_CLASS (   klass)

Cast a GblClass ot GblClassClosureClass.

Definition at line 21 of file gimbal_class_closure.h.

◆ GBL_CLASS_CLOSURE_GET_CLASS

#define GBL_CLASS_CLOSURE_GET_CLASS (   self)

Get a GblClassClosureClass from GblInstance.

Definition at line 22 of file gimbal_class_closure.h.

Function Documentation

◆ GblClassClosure_type()

GblType GblClassClosure_type ( void  )

Returns the GblType UUID associated with GblClassClosure.

◆ GblClassClosure_create()

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.