High level GDNative
Single header GDNative high level API for C/C++
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
Dictionary creation

Helper functions to create Dictionaries. More...

Data Structures

struct  hgdn_dictionary_entry
 
struct  hgdn_dictionary_entry_own
 
struct  hgdn_dictionary_entry_string
 
struct  hgdn_dictionary_entry_string_own
 
struct  hgdn_dictionary_entry_string_string
 
struct  hgdn_dictionary_entry_string_int
 

Macros

#define hgdn_new_dictionary_args(...)   (hgdn_new_dictionary((const hgdn_dictionary_entry[]){ __VA_ARGS__ }, HGDN__NARG(__VA_ARGS__)))
 
#define hgdn_new_dictionary_string_args(...)   (hgdn_new_dictionary_string((const hgdn_dictionary_entry_string[]){ __VA_ARGS__ }, HGDN__NARG(__VA_ARGS__)))
 
#define hgdn_new_dictionary_string_int_args(...)   (hgdn_new_dictionary_string_int((const hgdn_dictionary_entry_string_int[]){ __VA_ARGS__ }, HGDN__NARG(__VA_ARGS__)))
 
#define hgdn_new_dictionary_string_string_args(...)   (hgdn_new_dictionary_string_string((const hgdn_dictionary_entry_string_string[]){ __VA_ARGS__ }, HGDN__NARG(__VA_ARGS__)))
 
#define hgdn_new_dictionary_own_args(...)   (hgdn_new_dictionary_own((hgdn_dictionary_entry_own[]){ __VA_ARGS__ }, HGDN__NARG(__VA_ARGS__)))
 
#define hgdn_new_dictionary_string_own_args(...)   (hgdn_new_dictionary_string_own((hgdn_dictionary_entry_string_own[]){ __VA_ARGS__ }, HGDN__NARG(__VA_ARGS__)))
 

Functions

HGDN_DECL godot_dictionary hgdn_new_dictionary (const hgdn_dictionary_entry *buffer, const godot_int size)
 
HGDN_DECL godot_dictionary hgdn_new_dictionary_string (const hgdn_dictionary_entry_string *buffer, const godot_int size)
 
HGDN_DECL godot_dictionary hgdn_new_dictionary_string_int (const hgdn_dictionary_entry_string_int *buffer, const godot_int size)
 
HGDN_DECL godot_dictionary hgdn_new_dictionary_string_string (const hgdn_dictionary_entry_string_string *buffer, const godot_int size)
 
HGDN_DECL godot_dictionary hgdn_new_dictionary_own (hgdn_dictionary_entry_own *buffer, const godot_int size)
 
HGDN_DECL godot_dictionary hgdn_new_dictionary_string_own (hgdn_dictionary_entry_string_own *buffer, const godot_int size)
 

Detailed Description

The *_own functions own the passed Variants, destroying them. Useful when you create the Variants just for creating a Dictionary with them.