libGumball 0.0.1
C23-Based, libGimbal-powered UI Library
Loading...
Searching...
No Matches
gumball_root.h File Reference

Go to the source code of this file.

Macros

#define GUM_Root_create()
Type System

Type UUID and cast operators

#define GUM_ROOT_TYPE
#define GUM_ROOT(self)
#define GUM_ROOT_CLASS(klass)
#define GUM_ROOT_CLASSOF(self)

Detailed Description

GUM_Root data structure and hierarchy graph

GUM_Root is the element responsible for holding all other elements in the scene. It also internally holds the draw queue, which is a list of all drawable elements in the scene, sorted by z-index.

Todo
  • Make the draw queue private.

Macro Definition Documentation

◆ GUM_ROOT_TYPE

#define GUM_ROOT_TYPE

Returns the GUM_Root Type UUID.

◆ GUM_ROOT

#define GUM_ROOT ( self)

Casts an instance of a compatible element to a GUM_Root.

◆ GUM_ROOT_CLASS

#define GUM_ROOT_CLASS ( klass)

Casts an class of a compatible element to a GUM_Root.

◆ GUM_ROOT_CLASSOF

#define GUM_ROOT_CLASSOF ( self)

Casts an instance of a compatible element to a GUM_Root.

◆ GUM_Root_create

#define GUM_Root_create ( )

Returns a new GUM_Root.

Note
Currently there is no support for having multiple roots at once.