From fb8253c912c995473eb752a116e95e22131601ce Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Tue, 27 Sep 2022 13:46:18 +0300 Subject: [PATCH] =?UTF-8?q?Add=20wrapper=20function=20generation=20for=20b?= =?UTF-8?q?uilt-in=20module=20=E2=86=94=20godot-cpp=20interoperability.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- binding_generator.py | 72 ++++ godot-headers/extension_api.json | 548 ++++++++++++++++++++----------- 2 files changed, 433 insertions(+), 187 deletions(-) diff --git a/binding_generator.py b/binding_generator.py index c1e2a691..55b4b4da 100644 --- a/binding_generator.py +++ b/binding_generator.py @@ -6,15 +6,83 @@ import shutil from pathlib import Path +def generate_mod_version(argcount, const=False, returns=False): + s = """ +#define MODBIND$VER($RETTYPE m_name$ARG) \\ +virtual $RETVAL _##m_name($FUNCARGS) $CONST override; \\ +""" + sproto = str(argcount) + method_info = "" + if returns: + sproto += "R" + s = s.replace("$RETTYPE", "m_ret, ") + s = s.replace("$RETVAL", "m_ret") + + else: + s = s.replace("$RETTYPE", "") + s = s.replace("$RETVAL", "void") + + if const: + sproto += "C" + s = s.replace("$CONST", "const") + else: + s = s.replace("$CONST", "") + + s = s.replace("$VER", sproto) + argtext = "" + funcargs = "" + + for i in range(argcount): + if i > 0: + funcargs += ", " + + argtext += ", m_type" + str(i + 1) + funcargs += "m_type" + str(i + 1) + " arg" + str(i + 1) + + if argcount: + s = s.replace("$ARG", argtext) + s = s.replace("$FUNCARGS", funcargs) + else: + s = s.replace("$ARG", "") + s = s.replace("$FUNCARGS", funcargs) + + return s + + +def generate_wrappers(target): + max_versions = 12 + + txt = """ +#ifndef GDEXTENSION_WRAPPERS_GEN_H +#define GDEXTENSION_WRAPPERS_GEN_H + +""" + + for i in range(max_versions + 1): + txt += "\n/* Module Wrapper " + str(i) + " Arguments */\n" + txt += generate_mod_version(i, False, False) + txt += generate_mod_version(i, False, True) + txt += generate_mod_version(i, True, False) + txt += generate_mod_version(i, True, True) + + txt += "\n#endif\n" + + with open(target, "w") as f: + f.write(txt) + + def get_file_list(api_filepath, output_dir, headers=False, sources=False): api = {} files = [] with open(api_filepath) as api_file: api = json.load(api_file) + core_gen_folder = Path(output_dir) / "gen" / "include" / "godot_cpp" / "core" include_gen_folder = Path(output_dir) / "gen" / "include" / "godot_cpp" source_gen_folder = Path(output_dir) / "gen" / "src" + files.append(str((core_gen_folder / "ext_wrappers.gen.inc").as_posix())) + for builtin_class in api["builtin_classes"]: if is_pod_type(builtin_class["name"]): continue @@ -121,12 +189,16 @@ singletons = [] def generate_builtin_bindings(api, output_dir, build_config): global builtin_classes + core_gen_folder = Path(output_dir) / "include" / "godot_cpp" / "core" include_gen_folder = Path(output_dir) / "include" / "godot_cpp" / "variant" source_gen_folder = Path(output_dir) / "src" / "variant" + core_gen_folder.mkdir(parents=True, exist_ok=True) include_gen_folder.mkdir(parents=True, exist_ok=True) source_gen_folder.mkdir(parents=True, exist_ok=True) + generate_wrappers(core_gen_folder / "ext_wrappers.gen.inc") + # Store types beforehand. for builtin_api in api["builtin_classes"]: if is_pod_type(builtin_api["name"]): diff --git a/godot-headers/extension_api.json b/godot-headers/extension_api.json index efdaab6d..d013ae43 100644 --- a/godot-headers/extension_api.json +++ b/godot-headers/extension_api.json @@ -16823,6 +16823,20 @@ } ], "methods": [ + { + "name": "callv", + "return_type": "Variant", + "is_vararg": false, + "is_const": true, + "is_static": false, + "hash": 413578926, + "arguments": [ + { + "name": "arguments", + "type": "Array" + } + ] + }, { "name": "is_null", "return_type": "bool", @@ -70365,6 +70379,10 @@ { "name": "WINDOW_EVENT_DPI_CHANGE", "value": 6 + }, + { + "name": "WINDOW_EVENT_TITLEBAR_CHANGE", + "value": 7 } ] }, @@ -149820,6 +149838,24 @@ } ] }, + { + "name": "area_get_collision_layer", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, { "name": "area_set_collision_mask", "is_const": false, @@ -149839,6 +149875,24 @@ } ] }, + { + "name": "area_get_collision_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, { "name": "area_set_param", "is_const": false, @@ -152124,6 +152178,22 @@ } ] }, + { + "name": "_area_get_collision_layer", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, { "name": "_area_set_collision_mask", "is_const": false, @@ -152141,6 +152211,22 @@ } ] }, + { + "name": "_area_get_collision_mask", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, { "name": "_area_set_monitorable", "is_const": false, @@ -154965,6 +155051,24 @@ } ] }, + { + "name": "area_get_collision_layer", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, { "name": "area_set_collision_mask", "is_const": false, @@ -154984,6 +155088,24 @@ } ] }, + { + "name": "area_get_collision_mask", + "is_const": true, + "is_vararg": false, + "is_static": false, + "is_virtual": false, + "hash": 2198884583, + "return_value": { + "type": "int", + "meta": "uint32" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, { "name": "area_set_param", "is_const": false, @@ -157630,6 +157752,22 @@ } ] }, + { + "name": "_area_get_collision_layer", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, { "name": "_area_set_collision_mask", "is_const": false, @@ -157647,6 +157785,22 @@ } ] }, + { + "name": "_area_get_collision_mask", + "is_const": true, + "is_static": false, + "is_vararg": false, + "is_virtual": true, + "return_value": { + "type": "int" + }, + "arguments": [ + { + "name": "area", + "type": "RID" + } + ] + }, { "name": "_area_set_monitorable", "is_const": false, @@ -195599,6 +195753,19 @@ "type": "String" } ] + }, + { + "name": "go_to_method", + "arguments": [ + { + "name": "script", + "type": "Object" + }, + { + "name": "method", + "type": "String" + } + ] } ] }, @@ -220999,6 +221166,10 @@ { "name": "FONT_LCD_SUBPIXEL_LAYOUT_VBGR", "value": 4 + }, + { + "name": "FONT_LCD_SUBPIXEL_LAYOUT_MAX", + "value": 5 } ] }, @@ -225361,7 +225532,7 @@ "api_type": "core", "methods": [ { - "name": "has_feature", + "name": "_has_feature", "is_const": true, "is_static": false, "is_vararg": false, @@ -225377,7 +225548,7 @@ ] }, { - "name": "get_name", + "name": "_get_name", "is_const": true, "is_static": false, "is_vararg": false, @@ -225387,7 +225558,7 @@ } }, { - "name": "get_features", + "name": "_get_features", "is_const": true, "is_static": false, "is_vararg": false, @@ -225397,7 +225568,7 @@ } }, { - "name": "free_rid", + "name": "_free_rid", "is_const": false, "is_static": false, "is_vararg": false, @@ -225410,7 +225581,7 @@ ] }, { - "name": "has", + "name": "_has", "is_const": false, "is_static": false, "is_vararg": false, @@ -225426,7 +225597,7 @@ ] }, { - "name": "load_support_data", + "name": "_load_support_data", "is_const": false, "is_static": false, "is_vararg": false, @@ -225442,7 +225613,7 @@ ] }, { - "name": "get_support_data_filename", + "name": "_get_support_data_filename", "is_const": true, "is_static": false, "is_vararg": false, @@ -225452,7 +225623,7 @@ } }, { - "name": "get_support_data_info", + "name": "_get_support_data_info", "is_const": true, "is_static": false, "is_vararg": false, @@ -225462,7 +225633,7 @@ } }, { - "name": "save_support_data", + "name": "_save_support_data", "is_const": true, "is_static": false, "is_vararg": false, @@ -225478,7 +225649,7 @@ ] }, { - "name": "is_locale_right_to_left", + "name": "_is_locale_right_to_left", "is_const": true, "is_static": false, "is_vararg": false, @@ -225494,7 +225665,7 @@ ] }, { - "name": "name_to_tag", + "name": "_name_to_tag", "is_const": true, "is_static": false, "is_vararg": false, @@ -225510,7 +225681,7 @@ ] }, { - "name": "tag_to_name", + "name": "_tag_to_name", "is_const": true, "is_static": false, "is_vararg": false, @@ -225526,7 +225697,7 @@ ] }, { - "name": "create_font", + "name": "_create_font", "is_const": false, "is_static": false, "is_vararg": false, @@ -225536,7 +225707,7 @@ } }, { - "name": "font_set_data", + "name": "_font_set_data", "is_const": false, "is_static": false, "is_vararg": false, @@ -225553,7 +225724,7 @@ ] }, { - "name": "font_set_data_ptr", + "name": "_font_set_data_ptr", "is_const": false, "is_static": false, "is_vararg": false, @@ -225574,7 +225745,7 @@ ] }, { - "name": "font_set_face_index", + "name": "_font_set_face_index", "is_const": false, "is_static": false, "is_vararg": false, @@ -225591,7 +225762,7 @@ ] }, { - "name": "font_get_face_index", + "name": "_font_get_face_index", "is_const": true, "is_static": false, "is_vararg": false, @@ -225607,7 +225778,7 @@ ] }, { - "name": "font_get_face_count", + "name": "_font_get_face_count", "is_const": true, "is_static": false, "is_vararg": false, @@ -225623,7 +225794,7 @@ ] }, { - "name": "font_set_style", + "name": "_font_set_style", "is_const": false, "is_static": false, "is_vararg": false, @@ -225640,7 +225811,7 @@ ] }, { - "name": "font_get_style", + "name": "_font_get_style", "is_const": true, "is_static": false, "is_vararg": false, @@ -225656,7 +225827,7 @@ ] }, { - "name": "font_set_name", + "name": "_font_set_name", "is_const": false, "is_static": false, "is_vararg": false, @@ -225673,7 +225844,7 @@ ] }, { - "name": "font_get_name", + "name": "_font_get_name", "is_const": true, "is_static": false, "is_vararg": false, @@ -225689,7 +225860,7 @@ ] }, { - "name": "font_set_style_name", + "name": "_font_set_style_name", "is_const": false, "is_static": false, "is_vararg": false, @@ -225706,7 +225877,7 @@ ] }, { - "name": "font_get_style_name", + "name": "_font_get_style_name", "is_const": true, "is_static": false, "is_vararg": false, @@ -225722,7 +225893,7 @@ ] }, { - "name": "font_set_antialiasing", + "name": "_font_set_antialiasing", "is_const": false, "is_static": false, "is_vararg": false, @@ -225739,7 +225910,7 @@ ] }, { - "name": "font_get_antialiasing", + "name": "_font_get_antialiasing", "is_const": true, "is_static": false, "is_vararg": false, @@ -225755,7 +225926,7 @@ ] }, { - "name": "font_set_generate_mipmaps", + "name": "_font_set_generate_mipmaps", "is_const": false, "is_static": false, "is_vararg": false, @@ -225772,7 +225943,7 @@ ] }, { - "name": "font_get_generate_mipmaps", + "name": "_font_get_generate_mipmaps", "is_const": true, "is_static": false, "is_vararg": false, @@ -225788,7 +225959,7 @@ ] }, { - "name": "font_set_multichannel_signed_distance_field", + "name": "_font_set_multichannel_signed_distance_field", "is_const": false, "is_static": false, "is_vararg": false, @@ -225805,7 +225976,7 @@ ] }, { - "name": "font_is_multichannel_signed_distance_field", + "name": "_font_is_multichannel_signed_distance_field", "is_const": true, "is_static": false, "is_vararg": false, @@ -225821,7 +225992,7 @@ ] }, { - "name": "font_set_msdf_pixel_range", + "name": "_font_set_msdf_pixel_range", "is_const": false, "is_static": false, "is_vararg": false, @@ -225838,7 +226009,7 @@ ] }, { - "name": "font_get_msdf_pixel_range", + "name": "_font_get_msdf_pixel_range", "is_const": true, "is_static": false, "is_vararg": false, @@ -225854,7 +226025,7 @@ ] }, { - "name": "font_set_msdf_size", + "name": "_font_set_msdf_size", "is_const": false, "is_static": false, "is_vararg": false, @@ -225871,7 +226042,7 @@ ] }, { - "name": "font_get_msdf_size", + "name": "_font_get_msdf_size", "is_const": true, "is_static": false, "is_vararg": false, @@ -225887,7 +226058,7 @@ ] }, { - "name": "font_set_fixed_size", + "name": "_font_set_fixed_size", "is_const": false, "is_static": false, "is_vararg": false, @@ -225904,7 +226075,7 @@ ] }, { - "name": "font_get_fixed_size", + "name": "_font_get_fixed_size", "is_const": true, "is_static": false, "is_vararg": false, @@ -225920,7 +226091,7 @@ ] }, { - "name": "font_set_force_autohinter", + "name": "_font_set_force_autohinter", "is_const": false, "is_static": false, "is_vararg": false, @@ -225937,7 +226108,7 @@ ] }, { - "name": "font_is_force_autohinter", + "name": "_font_is_force_autohinter", "is_const": true, "is_static": false, "is_vararg": false, @@ -225953,7 +226124,7 @@ ] }, { - "name": "font_set_hinting", + "name": "_font_set_hinting", "is_const": false, "is_static": false, "is_vararg": false, @@ -225970,7 +226141,7 @@ ] }, { - "name": "font_get_hinting", + "name": "_font_get_hinting", "is_const": true, "is_static": false, "is_vararg": false, @@ -225986,7 +226157,7 @@ ] }, { - "name": "font_set_subpixel_positioning", + "name": "_font_set_subpixel_positioning", "is_const": false, "is_static": false, "is_vararg": false, @@ -226003,7 +226174,7 @@ ] }, { - "name": "font_get_subpixel_positioning", + "name": "_font_get_subpixel_positioning", "is_const": true, "is_static": false, "is_vararg": false, @@ -226019,7 +226190,7 @@ ] }, { - "name": "font_set_embolden", + "name": "_font_set_embolden", "is_const": false, "is_static": false, "is_vararg": false, @@ -226036,7 +226207,7 @@ ] }, { - "name": "font_get_embolden", + "name": "_font_get_embolden", "is_const": true, "is_static": false, "is_vararg": false, @@ -226052,7 +226223,7 @@ ] }, { - "name": "font_set_transform", + "name": "_font_set_transform", "is_const": false, "is_static": false, "is_vararg": false, @@ -226069,7 +226240,7 @@ ] }, { - "name": "font_get_transform", + "name": "_font_get_transform", "is_const": true, "is_static": false, "is_vararg": false, @@ -226085,7 +226256,7 @@ ] }, { - "name": "font_set_variation_coordinates", + "name": "_font_set_variation_coordinates", "is_const": false, "is_static": false, "is_vararg": false, @@ -226102,7 +226273,7 @@ ] }, { - "name": "font_get_variation_coordinates", + "name": "_font_get_variation_coordinates", "is_const": true, "is_static": false, "is_vararg": false, @@ -226118,7 +226289,7 @@ ] }, { - "name": "font_set_oversampling", + "name": "_font_set_oversampling", "is_const": false, "is_static": false, "is_vararg": false, @@ -226135,7 +226306,7 @@ ] }, { - "name": "font_get_oversampling", + "name": "_font_get_oversampling", "is_const": true, "is_static": false, "is_vararg": false, @@ -226151,7 +226322,7 @@ ] }, { - "name": "font_get_size_cache_list", + "name": "_font_get_size_cache_list", "is_const": true, "is_static": false, "is_vararg": false, @@ -226167,7 +226338,7 @@ ] }, { - "name": "font_clear_size_cache", + "name": "_font_clear_size_cache", "is_const": false, "is_static": false, "is_vararg": false, @@ -226180,7 +226351,7 @@ ] }, { - "name": "font_remove_size_cache", + "name": "_font_remove_size_cache", "is_const": false, "is_static": false, "is_vararg": false, @@ -226197,7 +226368,7 @@ ] }, { - "name": "font_set_ascent", + "name": "_font_set_ascent", "is_const": false, "is_static": false, "is_vararg": false, @@ -226218,7 +226389,7 @@ ] }, { - "name": "font_get_ascent", + "name": "_font_get_ascent", "is_const": true, "is_static": false, "is_vararg": false, @@ -226238,7 +226409,7 @@ ] }, { - "name": "font_set_descent", + "name": "_font_set_descent", "is_const": false, "is_static": false, "is_vararg": false, @@ -226259,7 +226430,7 @@ ] }, { - "name": "font_get_descent", + "name": "_font_get_descent", "is_const": true, "is_static": false, "is_vararg": false, @@ -226279,7 +226450,7 @@ ] }, { - "name": "font_set_underline_position", + "name": "_font_set_underline_position", "is_const": false, "is_static": false, "is_vararg": false, @@ -226300,7 +226471,7 @@ ] }, { - "name": "font_get_underline_position", + "name": "_font_get_underline_position", "is_const": true, "is_static": false, "is_vararg": false, @@ -226320,7 +226491,7 @@ ] }, { - "name": "font_set_underline_thickness", + "name": "_font_set_underline_thickness", "is_const": false, "is_static": false, "is_vararg": false, @@ -226341,7 +226512,7 @@ ] }, { - "name": "font_get_underline_thickness", + "name": "_font_get_underline_thickness", "is_const": true, "is_static": false, "is_vararg": false, @@ -226361,7 +226532,7 @@ ] }, { - "name": "font_set_scale", + "name": "_font_set_scale", "is_const": false, "is_static": false, "is_vararg": false, @@ -226382,7 +226553,7 @@ ] }, { - "name": "font_get_scale", + "name": "_font_get_scale", "is_const": true, "is_static": false, "is_vararg": false, @@ -226402,7 +226573,7 @@ ] }, { - "name": "font_get_texture_count", + "name": "_font_get_texture_count", "is_const": true, "is_static": false, "is_vararg": false, @@ -226422,7 +226593,7 @@ ] }, { - "name": "font_clear_textures", + "name": "_font_clear_textures", "is_const": false, "is_static": false, "is_vararg": false, @@ -226439,7 +226610,7 @@ ] }, { - "name": "font_remove_texture", + "name": "_font_remove_texture", "is_const": false, "is_static": false, "is_vararg": false, @@ -226460,7 +226631,7 @@ ] }, { - "name": "font_set_texture_image", + "name": "_font_set_texture_image", "is_const": false, "is_static": false, "is_vararg": false, @@ -226485,7 +226656,7 @@ ] }, { - "name": "font_get_texture_image", + "name": "_font_get_texture_image", "is_const": true, "is_static": false, "is_vararg": false, @@ -226509,7 +226680,7 @@ ] }, { - "name": "font_set_texture_offsets", + "name": "_font_set_texture_offsets", "is_const": false, "is_static": false, "is_vararg": false, @@ -226534,7 +226705,7 @@ ] }, { - "name": "font_get_texture_offsets", + "name": "_font_get_texture_offsets", "is_const": true, "is_static": false, "is_vararg": false, @@ -226558,7 +226729,7 @@ ] }, { - "name": "font_get_glyph_list", + "name": "_font_get_glyph_list", "is_const": true, "is_static": false, "is_vararg": false, @@ -226578,7 +226749,7 @@ ] }, { - "name": "font_clear_glyphs", + "name": "_font_clear_glyphs", "is_const": false, "is_static": false, "is_vararg": false, @@ -226595,7 +226766,7 @@ ] }, { - "name": "font_remove_glyph", + "name": "_font_remove_glyph", "is_const": false, "is_static": false, "is_vararg": false, @@ -226616,7 +226787,7 @@ ] }, { - "name": "font_get_glyph_advance", + "name": "_font_get_glyph_advance", "is_const": true, "is_static": false, "is_vararg": false, @@ -226640,7 +226811,7 @@ ] }, { - "name": "font_set_glyph_advance", + "name": "_font_set_glyph_advance", "is_const": false, "is_static": false, "is_vararg": false, @@ -226665,7 +226836,7 @@ ] }, { - "name": "font_get_glyph_offset", + "name": "_font_get_glyph_offset", "is_const": true, "is_static": false, "is_vararg": false, @@ -226689,7 +226860,7 @@ ] }, { - "name": "font_set_glyph_offset", + "name": "_font_set_glyph_offset", "is_const": false, "is_static": false, "is_vararg": false, @@ -226714,7 +226885,7 @@ ] }, { - "name": "font_get_glyph_size", + "name": "_font_get_glyph_size", "is_const": true, "is_static": false, "is_vararg": false, @@ -226738,7 +226909,7 @@ ] }, { - "name": "font_set_glyph_size", + "name": "_font_set_glyph_size", "is_const": false, "is_static": false, "is_vararg": false, @@ -226763,7 +226934,7 @@ ] }, { - "name": "font_get_glyph_uv_rect", + "name": "_font_get_glyph_uv_rect", "is_const": true, "is_static": false, "is_vararg": false, @@ -226787,7 +226958,7 @@ ] }, { - "name": "font_set_glyph_uv_rect", + "name": "_font_set_glyph_uv_rect", "is_const": false, "is_static": false, "is_vararg": false, @@ -226812,7 +226983,7 @@ ] }, { - "name": "font_get_glyph_texture_idx", + "name": "_font_get_glyph_texture_idx", "is_const": true, "is_static": false, "is_vararg": false, @@ -226836,7 +227007,7 @@ ] }, { - "name": "font_set_glyph_texture_idx", + "name": "_font_set_glyph_texture_idx", "is_const": false, "is_static": false, "is_vararg": false, @@ -226861,7 +227032,7 @@ ] }, { - "name": "font_get_glyph_texture_rid", + "name": "_font_get_glyph_texture_rid", "is_const": true, "is_static": false, "is_vararg": false, @@ -226885,7 +227056,7 @@ ] }, { - "name": "font_get_glyph_texture_size", + "name": "_font_get_glyph_texture_size", "is_const": true, "is_static": false, "is_vararg": false, @@ -226909,7 +227080,7 @@ ] }, { - "name": "font_get_glyph_contours", + "name": "_font_get_glyph_contours", "is_const": true, "is_static": false, "is_vararg": false, @@ -226933,7 +227104,7 @@ ] }, { - "name": "font_get_kerning_list", + "name": "_font_get_kerning_list", "is_const": true, "is_static": false, "is_vararg": false, @@ -226953,7 +227124,7 @@ ] }, { - "name": "font_clear_kerning_map", + "name": "_font_clear_kerning_map", "is_const": false, "is_static": false, "is_vararg": false, @@ -226970,7 +227141,7 @@ ] }, { - "name": "font_remove_kerning", + "name": "_font_remove_kerning", "is_const": false, "is_static": false, "is_vararg": false, @@ -226991,7 +227162,7 @@ ] }, { - "name": "font_set_kerning", + "name": "_font_set_kerning", "is_const": false, "is_static": false, "is_vararg": false, @@ -227016,7 +227187,7 @@ ] }, { - "name": "font_get_kerning", + "name": "_font_get_kerning", "is_const": true, "is_static": false, "is_vararg": false, @@ -227040,7 +227211,7 @@ ] }, { - "name": "font_get_glyph_index", + "name": "_font_get_glyph_index", "is_const": true, "is_static": false, "is_vararg": false, @@ -227068,7 +227239,7 @@ ] }, { - "name": "font_has_char", + "name": "_font_has_char", "is_const": true, "is_static": false, "is_vararg": false, @@ -227088,7 +227259,7 @@ ] }, { - "name": "font_get_supported_chars", + "name": "_font_get_supported_chars", "is_const": true, "is_static": false, "is_vararg": false, @@ -227104,7 +227275,7 @@ ] }, { - "name": "font_render_range", + "name": "_font_render_range", "is_const": false, "is_static": false, "is_vararg": false, @@ -227129,7 +227300,7 @@ ] }, { - "name": "font_render_glyph", + "name": "_font_render_glyph", "is_const": false, "is_static": false, "is_vararg": false, @@ -227150,7 +227321,7 @@ ] }, { - "name": "font_draw_glyph", + "name": "_font_draw_glyph", "is_const": true, "is_static": false, "is_vararg": false, @@ -227183,7 +227354,7 @@ ] }, { - "name": "font_draw_glyph_outline", + "name": "_font_draw_glyph_outline", "is_const": true, "is_static": false, "is_vararg": false, @@ -227220,7 +227391,7 @@ ] }, { - "name": "font_is_language_supported", + "name": "_font_is_language_supported", "is_const": true, "is_static": false, "is_vararg": false, @@ -227240,7 +227411,7 @@ ] }, { - "name": "font_set_language_support_override", + "name": "_font_set_language_support_override", "is_const": false, "is_static": false, "is_vararg": false, @@ -227261,7 +227432,7 @@ ] }, { - "name": "font_get_language_support_override", + "name": "_font_get_language_support_override", "is_const": false, "is_static": false, "is_vararg": false, @@ -227281,7 +227452,7 @@ ] }, { - "name": "font_remove_language_support_override", + "name": "_font_remove_language_support_override", "is_const": false, "is_static": false, "is_vararg": false, @@ -227298,7 +227469,7 @@ ] }, { - "name": "font_get_language_support_overrides", + "name": "_font_get_language_support_overrides", "is_const": false, "is_static": false, "is_vararg": false, @@ -227314,7 +227485,7 @@ ] }, { - "name": "font_is_script_supported", + "name": "_font_is_script_supported", "is_const": true, "is_static": false, "is_vararg": false, @@ -227334,7 +227505,7 @@ ] }, { - "name": "font_set_script_support_override", + "name": "_font_set_script_support_override", "is_const": false, "is_static": false, "is_vararg": false, @@ -227355,7 +227526,7 @@ ] }, { - "name": "font_get_script_support_override", + "name": "_font_get_script_support_override", "is_const": false, "is_static": false, "is_vararg": false, @@ -227375,7 +227546,7 @@ ] }, { - "name": "font_remove_script_support_override", + "name": "_font_remove_script_support_override", "is_const": false, "is_static": false, "is_vararg": false, @@ -227392,7 +227563,7 @@ ] }, { - "name": "font_get_script_support_overrides", + "name": "_font_get_script_support_overrides", "is_const": false, "is_static": false, "is_vararg": false, @@ -227408,7 +227579,7 @@ ] }, { - "name": "font_set_opentype_feature_overrides", + "name": "_font_set_opentype_feature_overrides", "is_const": false, "is_static": false, "is_vararg": false, @@ -227425,7 +227596,7 @@ ] }, { - "name": "font_get_opentype_feature_overrides", + "name": "_font_get_opentype_feature_overrides", "is_const": true, "is_static": false, "is_vararg": false, @@ -227441,7 +227612,7 @@ ] }, { - "name": "font_supported_feature_list", + "name": "_font_supported_feature_list", "is_const": true, "is_static": false, "is_vararg": false, @@ -227457,7 +227628,7 @@ ] }, { - "name": "font_supported_variation_list", + "name": "_font_supported_variation_list", "is_const": true, "is_static": false, "is_vararg": false, @@ -227473,7 +227644,7 @@ ] }, { - "name": "font_get_global_oversampling", + "name": "_font_get_global_oversampling", "is_const": true, "is_static": false, "is_vararg": false, @@ -227483,7 +227654,7 @@ } }, { - "name": "font_set_global_oversampling", + "name": "_font_set_global_oversampling", "is_const": false, "is_static": false, "is_vararg": false, @@ -227496,7 +227667,7 @@ ] }, { - "name": "get_hex_code_box_size", + "name": "_get_hex_code_box_size", "is_const": true, "is_static": false, "is_vararg": false, @@ -227516,7 +227687,7 @@ ] }, { - "name": "draw_hex_code_box", + "name": "_draw_hex_code_box", "is_const": true, "is_static": false, "is_vararg": false, @@ -227545,7 +227716,7 @@ ] }, { - "name": "create_shaped_text", + "name": "_create_shaped_text", "is_const": false, "is_static": false, "is_vararg": false, @@ -227565,7 +227736,7 @@ ] }, { - "name": "shaped_text_clear", + "name": "_shaped_text_clear", "is_const": false, "is_static": false, "is_vararg": false, @@ -227578,7 +227749,7 @@ ] }, { - "name": "shaped_text_set_direction", + "name": "_shaped_text_set_direction", "is_const": false, "is_static": false, "is_vararg": false, @@ -227595,7 +227766,7 @@ ] }, { - "name": "shaped_text_get_direction", + "name": "_shaped_text_get_direction", "is_const": true, "is_static": false, "is_vararg": false, @@ -227611,7 +227782,7 @@ ] }, { - "name": "shaped_text_get_inferred_direction", + "name": "_shaped_text_get_inferred_direction", "is_const": true, "is_static": false, "is_vararg": false, @@ -227627,7 +227798,7 @@ ] }, { - "name": "shaped_text_set_bidi_override", + "name": "_shaped_text_set_bidi_override", "is_const": false, "is_static": false, "is_vararg": false, @@ -227644,7 +227815,7 @@ ] }, { - "name": "shaped_text_set_custom_punctuation", + "name": "_shaped_text_set_custom_punctuation", "is_const": false, "is_static": false, "is_vararg": false, @@ -227661,7 +227832,7 @@ ] }, { - "name": "shaped_text_get_custom_punctuation", + "name": "_shaped_text_get_custom_punctuation", "is_const": true, "is_static": false, "is_vararg": false, @@ -227677,7 +227848,7 @@ ] }, { - "name": "shaped_text_set_orientation", + "name": "_shaped_text_set_orientation", "is_const": false, "is_static": false, "is_vararg": false, @@ -227694,7 +227865,7 @@ ] }, { - "name": "shaped_text_get_orientation", + "name": "_shaped_text_get_orientation", "is_const": true, "is_static": false, "is_vararg": false, @@ -227710,7 +227881,7 @@ ] }, { - "name": "shaped_text_set_preserve_invalid", + "name": "_shaped_text_set_preserve_invalid", "is_const": false, "is_static": false, "is_vararg": false, @@ -227727,7 +227898,7 @@ ] }, { - "name": "shaped_text_get_preserve_invalid", + "name": "_shaped_text_get_preserve_invalid", "is_const": true, "is_static": false, "is_vararg": false, @@ -227743,7 +227914,7 @@ ] }, { - "name": "shaped_text_set_preserve_control", + "name": "_shaped_text_set_preserve_control", "is_const": false, "is_static": false, "is_vararg": false, @@ -227760,7 +227931,7 @@ ] }, { - "name": "shaped_text_get_preserve_control", + "name": "_shaped_text_get_preserve_control", "is_const": true, "is_static": false, "is_vararg": false, @@ -227776,7 +227947,7 @@ ] }, { - "name": "shaped_text_set_spacing", + "name": "_shaped_text_set_spacing", "is_const": false, "is_static": false, "is_vararg": false, @@ -227797,7 +227968,7 @@ ] }, { - "name": "shaped_text_get_spacing", + "name": "_shaped_text_get_spacing", "is_const": true, "is_static": false, "is_vararg": false, @@ -227817,7 +227988,7 @@ ] }, { - "name": "shaped_text_add_string", + "name": "_shaped_text_add_string", "is_const": false, "is_static": false, "is_vararg": false, @@ -227857,7 +228028,7 @@ ] }, { - "name": "shaped_text_add_object", + "name": "_shaped_text_add_object", "is_const": false, "is_static": false, "is_vararg": false, @@ -227889,7 +228060,7 @@ ] }, { - "name": "shaped_text_resize_object", + "name": "_shaped_text_resize_object", "is_const": false, "is_static": false, "is_vararg": false, @@ -227917,7 +228088,7 @@ ] }, { - "name": "shaped_get_span_count", + "name": "_shaped_get_span_count", "is_const": true, "is_static": false, "is_vararg": false, @@ -227933,7 +228104,7 @@ ] }, { - "name": "shaped_get_span_meta", + "name": "_shaped_get_span_meta", "is_const": true, "is_static": false, "is_vararg": false, @@ -227953,7 +228124,7 @@ ] }, { - "name": "shaped_set_span_update_font", + "name": "_shaped_set_span_update_font", "is_const": false, "is_static": false, "is_vararg": false, @@ -227982,7 +228153,7 @@ ] }, { - "name": "shaped_text_substr", + "name": "_shaped_text_substr", "is_const": true, "is_static": false, "is_vararg": false, @@ -228006,7 +228177,7 @@ ] }, { - "name": "shaped_text_get_parent", + "name": "_shaped_text_get_parent", "is_const": true, "is_static": false, "is_vararg": false, @@ -228022,7 +228193,7 @@ ] }, { - "name": "shaped_text_fit_to_width", + "name": "_shaped_text_fit_to_width", "is_const": false, "is_static": false, "is_vararg": false, @@ -228046,7 +228217,7 @@ ] }, { - "name": "shaped_text_tab_align", + "name": "_shaped_text_tab_align", "is_const": false, "is_static": false, "is_vararg": false, @@ -228066,7 +228237,7 @@ ] }, { - "name": "shaped_text_shape", + "name": "_shaped_text_shape", "is_const": false, "is_static": false, "is_vararg": false, @@ -228082,7 +228253,7 @@ ] }, { - "name": "shaped_text_update_breaks", + "name": "_shaped_text_update_breaks", "is_const": false, "is_static": false, "is_vararg": false, @@ -228098,7 +228269,7 @@ ] }, { - "name": "shaped_text_update_justification_ops", + "name": "_shaped_text_update_justification_ops", "is_const": false, "is_static": false, "is_vararg": false, @@ -228114,7 +228285,7 @@ ] }, { - "name": "shaped_text_is_ready", + "name": "_shaped_text_is_ready", "is_const": true, "is_static": false, "is_vararg": false, @@ -228130,7 +228301,7 @@ ] }, { - "name": "shaped_text_get_glyphs", + "name": "_shaped_text_get_glyphs", "is_const": true, "is_static": false, "is_vararg": false, @@ -228146,7 +228317,7 @@ ] }, { - "name": "shaped_text_sort_logical", + "name": "_shaped_text_sort_logical", "is_const": false, "is_static": false, "is_vararg": false, @@ -228162,7 +228333,7 @@ ] }, { - "name": "shaped_text_get_glyph_count", + "name": "_shaped_text_get_glyph_count", "is_const": true, "is_static": false, "is_vararg": false, @@ -228178,7 +228349,7 @@ ] }, { - "name": "shaped_text_get_range", + "name": "_shaped_text_get_range", "is_const": true, "is_static": false, "is_vararg": false, @@ -228194,7 +228365,7 @@ ] }, { - "name": "shaped_text_get_line_breaks_adv", + "name": "_shaped_text_get_line_breaks_adv", "is_const": true, "is_static": false, "is_vararg": false, @@ -228226,7 +228397,7 @@ ] }, { - "name": "shaped_text_get_line_breaks", + "name": "_shaped_text_get_line_breaks", "is_const": true, "is_static": false, "is_vararg": false, @@ -228254,7 +228425,7 @@ ] }, { - "name": "shaped_text_get_word_breaks", + "name": "_shaped_text_get_word_breaks", "is_const": true, "is_static": false, "is_vararg": false, @@ -228274,7 +228445,7 @@ ] }, { - "name": "shaped_text_get_trim_pos", + "name": "_shaped_text_get_trim_pos", "is_const": true, "is_static": false, "is_vararg": false, @@ -228290,7 +228461,7 @@ ] }, { - "name": "shaped_text_get_ellipsis_pos", + "name": "_shaped_text_get_ellipsis_pos", "is_const": true, "is_static": false, "is_vararg": false, @@ -228306,7 +228477,7 @@ ] }, { - "name": "shaped_text_get_ellipsis_glyph_count", + "name": "_shaped_text_get_ellipsis_glyph_count", "is_const": true, "is_static": false, "is_vararg": false, @@ -228322,7 +228493,7 @@ ] }, { - "name": "shaped_text_get_ellipsis_glyphs", + "name": "_shaped_text_get_ellipsis_glyphs", "is_const": true, "is_static": false, "is_vararg": false, @@ -228338,7 +228509,7 @@ ] }, { - "name": "shaped_text_overrun_trim_to_width", + "name": "_shaped_text_overrun_trim_to_width", "is_const": false, "is_static": false, "is_vararg": false, @@ -228359,7 +228530,7 @@ ] }, { - "name": "shaped_text_get_objects", + "name": "_shaped_text_get_objects", "is_const": true, "is_static": false, "is_vararg": false, @@ -228375,7 +228546,7 @@ ] }, { - "name": "shaped_text_get_object_rect", + "name": "_shaped_text_get_object_rect", "is_const": true, "is_static": false, "is_vararg": false, @@ -228395,7 +228566,7 @@ ] }, { - "name": "shaped_text_get_size", + "name": "_shaped_text_get_size", "is_const": true, "is_static": false, "is_vararg": false, @@ -228411,7 +228582,7 @@ ] }, { - "name": "shaped_text_get_ascent", + "name": "_shaped_text_get_ascent", "is_const": true, "is_static": false, "is_vararg": false, @@ -228427,7 +228598,7 @@ ] }, { - "name": "shaped_text_get_descent", + "name": "_shaped_text_get_descent", "is_const": true, "is_static": false, "is_vararg": false, @@ -228443,7 +228614,7 @@ ] }, { - "name": "shaped_text_get_width", + "name": "_shaped_text_get_width", "is_const": true, "is_static": false, "is_vararg": false, @@ -228459,7 +228630,7 @@ ] }, { - "name": "shaped_text_get_underline_position", + "name": "_shaped_text_get_underline_position", "is_const": true, "is_static": false, "is_vararg": false, @@ -228475,7 +228646,7 @@ ] }, { - "name": "shaped_text_get_underline_thickness", + "name": "_shaped_text_get_underline_thickness", "is_const": true, "is_static": false, "is_vararg": false, @@ -228491,7 +228662,7 @@ ] }, { - "name": "shaped_text_get_dominant_direction_in_range", + "name": "_shaped_text_get_dominant_direction_in_range", "is_const": true, "is_static": false, "is_vararg": false, @@ -228515,7 +228686,7 @@ ] }, { - "name": "shaped_text_get_carets", + "name": "_shaped_text_get_carets", "is_const": true, "is_static": false, "is_vararg": false, @@ -228536,7 +228707,7 @@ ] }, { - "name": "shaped_text_get_selection", + "name": "_shaped_text_get_selection", "is_const": true, "is_static": false, "is_vararg": false, @@ -228560,7 +228731,7 @@ ] }, { - "name": "shaped_text_hit_test_grapheme", + "name": "_shaped_text_hit_test_grapheme", "is_const": true, "is_static": false, "is_vararg": false, @@ -228580,7 +228751,7 @@ ] }, { - "name": "shaped_text_hit_test_position", + "name": "_shaped_text_hit_test_position", "is_const": true, "is_static": false, "is_vararg": false, @@ -228600,7 +228771,7 @@ ] }, { - "name": "shaped_text_draw", + "name": "_shaped_text_draw", "is_const": true, "is_static": false, "is_vararg": false, @@ -228633,7 +228804,7 @@ ] }, { - "name": "shaped_text_draw_outline", + "name": "_shaped_text_draw_outline", "is_const": true, "is_static": false, "is_vararg": false, @@ -228670,7 +228841,7 @@ ] }, { - "name": "shaped_text_get_grapheme_bounds", + "name": "_shaped_text_get_grapheme_bounds", "is_const": true, "is_static": false, "is_vararg": false, @@ -228690,7 +228861,7 @@ ] }, { - "name": "shaped_text_next_grapheme_pos", + "name": "_shaped_text_next_grapheme_pos", "is_const": true, "is_static": false, "is_vararg": false, @@ -228710,7 +228881,7 @@ ] }, { - "name": "shaped_text_prev_grapheme_pos", + "name": "_shaped_text_prev_grapheme_pos", "is_const": true, "is_static": false, "is_vararg": false, @@ -228730,7 +228901,7 @@ ] }, { - "name": "format_number", + "name": "_format_number", "is_const": true, "is_static": false, "is_vararg": false, @@ -228750,7 +228921,7 @@ ] }, { - "name": "parse_number", + "name": "_parse_number", "is_const": true, "is_static": false, "is_vararg": false, @@ -228770,7 +228941,7 @@ ] }, { - "name": "percent_sign", + "name": "_percent_sign", "is_const": true, "is_static": false, "is_vararg": false, @@ -228786,7 +228957,7 @@ ] }, { - "name": "strip_diacritics", + "name": "_strip_diacritics", "is_const": true, "is_static": false, "is_vararg": false, @@ -228802,7 +228973,7 @@ ] }, { - "name": "is_valid_identifier", + "name": "_is_valid_identifier", "is_const": true, "is_static": false, "is_vararg": false, @@ -228818,7 +228989,7 @@ ] }, { - "name": "string_get_word_breaks", + "name": "_string_get_word_breaks", "is_const": true, "is_static": false, "is_vararg": false, @@ -228838,7 +229009,7 @@ ] }, { - "name": "is_confusable", + "name": "_is_confusable", "is_const": true, "is_static": false, "is_vararg": false, @@ -228858,7 +229029,7 @@ ] }, { - "name": "spoof_check", + "name": "_spoof_check", "is_const": true, "is_static": false, "is_vararg": false, @@ -228874,7 +229045,7 @@ ] }, { - "name": "string_to_upper", + "name": "_string_to_upper", "is_const": true, "is_static": false, "is_vararg": false, @@ -228894,7 +229065,7 @@ ] }, { - "name": "string_to_lower", + "name": "_string_to_lower", "is_const": true, "is_static": false, "is_vararg": false, @@ -228914,7 +229085,7 @@ ] }, { - "name": "parse_structured_text", + "name": "_parse_structured_text", "is_const": true, "is_static": false, "is_vararg": false, @@ -258092,6 +258263,9 @@ }, { "name": "theme_changed" + }, + { + "name": "titlebar_changed" } ], "properties": [