High level GDNative
Single header GDNative high level API for C/C++
Loading...
Searching...
No Matches
Macros | Functions
Variant constructors

Helper functions to create Variant values. More...

Macros

#define hgdn_new_variant(value)
 Overloaded function/macro for creating Variants from any values. Available in C++ and C11.
 

Functions

HGDN_DECL godot_variant hgdn_new_variant_copy (const godot_variant *value)
 
HGDN_DECL godot_variant hgdn_new_nil_variant ()
 
HGDN_DECL godot_variant hgdn_new_bool_variant (const godot_bool value)
 
HGDN_DECL godot_variant hgdn_new_uint_variant (const uint64_t value)
 
HGDN_DECL godot_variant hgdn_new_int_variant (const int64_t value)
 
HGDN_DECL godot_variant hgdn_new_real_variant (const double value)
 
HGDN_DECL godot_variant hgdn_new_string_variant (const godot_string *value)
 
HGDN_DECL godot_variant hgdn_new_cstring_variant (const char *value)
 
HGDN_DECL godot_variant hgdn_new_wide_string_variant (const wchar_t *value)
 
HGDN_DECL godot_variant hgdn_new_vector2_variant (const godot_vector2 value)
 
HGDN_DECL godot_variant hgdn_new_vector3_variant (const godot_vector3 value)
 
HGDN_DECL godot_variant hgdn_new_rect2_variant (const godot_rect2 value)
 
HGDN_DECL godot_variant hgdn_new_plane_variant (const godot_plane value)
 
HGDN_DECL godot_variant hgdn_new_quat_variant (const godot_quat value)
 
HGDN_DECL godot_variant hgdn_new_aabb_variant (const godot_aabb value)
 
HGDN_DECL godot_variant hgdn_new_basis_variant (const godot_basis value)
 
HGDN_DECL godot_variant hgdn_new_transform2d_variant (const godot_transform2d value)
 
HGDN_DECL godot_variant hgdn_new_transform_variant (const godot_transform value)
 
HGDN_DECL godot_variant hgdn_new_color_variant (const godot_color value)
 
HGDN_DECL godot_variant hgdn_new_node_path_variant (const godot_node_path *value)
 
HGDN_DECL godot_variant hgdn_new_rid_variant (const godot_rid *value)
 
HGDN_DECL godot_variant hgdn_new_object_variant (const godot_object *value)
 
HGDN_DECL godot_variant hgdn_new_dictionary_variant (const godot_dictionary *value)
 
HGDN_DECL godot_variant hgdn_new_array_variant (const godot_array *value)
 
HGDN_DECL godot_variant hgdn_new_pool_byte_array_variant (const godot_pool_byte_array *value)
 
HGDN_DECL godot_variant hgdn_new_pool_int_array_variant (const godot_pool_int_array *value)
 
HGDN_DECL godot_variant hgdn_new_pool_real_array_variant (const godot_pool_real_array *value)
 
HGDN_DECL godot_variant hgdn_new_pool_vector2_array_variant (const godot_pool_vector2_array *value)
 
HGDN_DECL godot_variant hgdn_new_pool_vector3_array_variant (const godot_pool_vector3_array *value)
 
HGDN_DECL godot_variant hgdn_new_pool_color_array_variant (const godot_pool_color_array *value)
 
HGDN_DECL godot_variant hgdn_new_pool_string_array_variant (const godot_pool_string_array *value)
 
HGDN_DECL godot_variant hgdn_new_string_variant_own (godot_string value)
 
HGDN_DECL godot_variant hgdn_new_node_path_variant_own (godot_node_path value)
 
HGDN_DECL godot_variant hgdn_new_dictionary_variant_own (godot_dictionary value)
 
HGDN_DECL godot_variant hgdn_new_array_variant_own (godot_array value)
 
HGDN_DECL godot_variant hgdn_new_pool_byte_array_variant_own (godot_pool_byte_array value)
 
HGDN_DECL godot_variant hgdn_new_pool_int_array_variant_own (godot_pool_int_array value)
 
HGDN_DECL godot_variant hgdn_new_pool_real_array_variant_own (godot_pool_real_array value)
 
HGDN_DECL godot_variant hgdn_new_pool_vector2_array_variant_own (godot_pool_vector2_array value)
 
HGDN_DECL godot_variant hgdn_new_pool_vector3_array_variant_own (godot_pool_vector3_array value)
 
HGDN_DECL godot_variant hgdn_new_pool_color_array_variant_own (godot_pool_color_array value)
 
HGDN_DECL godot_variant hgdn_new_pool_string_array_variant_own (godot_pool_string_array value)
 

Detailed Description

The *_own functions own the passed argument, destroying it. Useful when you create the object just for creating a Variant of it, enabling the idiom hgdn_new_string_variant_own(hgdn_new_string("...")).