use std::os::raw::c_char;
use std::ptr;
use std::mem;
#[derive(Copy, Clone)]
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct UndoRedo {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum UndoRedoMergeMode {
Disable = 0,
Ends = 1,
All = 2,
}
unsafe impl GodotObject for UndoRedo {
fn class_name() -> &'static str {
"UndoRedo"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for UndoRedo {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl Free for UndoRedo {
unsafe fn godot_free(self) { self.free() }
}
impl UndoRedo {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = UndoRedoMethodTable::get(gd_api).class_constructor.unwrap();
let this = ctor();
UndoRedo {
this
}
}
}
#[inline]
pub unsafe fn free(self) {
(get_api().godot_object_destroy)(self.this);
}
#[inline]
pub unsafe fn create_action(&mut self, name: GodotString, merge_mode: i64) -> () {
UndoRedo_create_action(self.this, name, merge_mode)
}
#[inline]
pub unsafe fn commit_action(&mut self) -> () {
UndoRedo_commit_action(self.this)
}
#[inline]
pub unsafe fn add_do_method(&mut self, object: Option<Object>, method: GodotString, varargs: &[Variant]) -> Variant {
UndoRedo_add_do_method(self.this, object, method, varargs)
}
#[inline]
pub unsafe fn add_undo_method(&mut self, object: Option<Object>, method: GodotString, varargs: &[Variant]) -> Variant {
UndoRedo_add_undo_method(self.this, object, method, varargs)
}
#[inline]
pub unsafe fn add_do_property(&mut self, object: Option<Object>, property: GodotString, value: Variant) -> () {
UndoRedo_add_do_property(self.this, object, property, value)
}
#[inline]
pub unsafe fn add_undo_property(&mut self, object: Option<Object>, property: GodotString, value: Variant) -> () {
UndoRedo_add_undo_property(self.this, object, property, value)
}
#[inline]
pub unsafe fn add_do_reference(&mut self, object: Option<Object>) -> () {
UndoRedo_add_do_reference(self.this, object)
}
#[inline]
pub unsafe fn add_undo_reference(&mut self, object: Option<Object>) -> () {
UndoRedo_add_undo_reference(self.this, object)
}
#[inline]
pub unsafe fn clear_history(&mut self) -> () {
UndoRedo_clear_history(self.this)
}
#[inline]
pub unsafe fn get_current_action_name(&self) -> GodotString {
UndoRedo_get_current_action_name(self.this)
}
#[inline]
pub unsafe fn get_version(&self) -> i64 {
UndoRedo_get_version(self.this)
}
#[inline]
pub unsafe fn redo(&mut self) -> bool {
UndoRedo_redo(self.this)
}
#[inline]
pub unsafe fn undo(&mut self) -> bool {
UndoRedo_undo(self.this)
}
#[inline]
pub unsafe fn _notification(&mut self, what: i64) -> () {
Object__notification(self.this, what)
}
#[inline]
pub unsafe fn _set(&mut self, property: GodotString, value: Variant) -> bool {
Object__set(self.this, property, value)
}
#[inline]
pub unsafe fn _get(&mut self, property: GodotString) -> Variant {
Object__get(self.this, property)
}
#[inline]
pub unsafe fn _get_property_list(&mut self) -> VariantArray {
Object__get_property_list(self.this)
}
#[inline]
pub unsafe fn _init(&mut self) -> () {
Object__init(self.this)
}
#[inline]
pub unsafe fn get_class(&self) -> GodotString {
Object_get_class(self.this)
}
#[inline]
pub unsafe fn is_class(&self, _type: GodotString) -> bool {
Object_is_class(self.this, _type)
}
#[inline]
pub unsafe fn set(&mut self, property: GodotString, value: Variant) -> () {
Object_set(self.this, property, value)
}
#[inline]
pub unsafe fn get(&self, property: GodotString) -> Variant {
Object_get(self.this, property)
}
#[inline]
pub unsafe fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
Object_set_indexed(self.this, property, value)
}
#[inline]
pub unsafe fn get_indexed(&self, property: NodePath) -> Variant {
Object_get_indexed(self.this, property)
}
#[inline]
pub unsafe fn get_property_list(&self) -> VariantArray {
Object_get_property_list(self.this)
}
#[inline]
pub unsafe fn get_method_list(&self) -> VariantArray {
Object_get_method_list(self.this)
}
#[inline]
pub unsafe fn notification(&mut self, what: i64, reversed: bool) -> () {
Object_notification(self.this, what, reversed)
}
#[inline]
pub unsafe fn get_instance_id(&self) -> i64 {
Object_get_instance_id(self.this)
}
#[inline]
pub unsafe fn set_script(&mut self, script: Option<Reference>) -> () {
Object_set_script(self.this, script)
}
#[inline]
pub unsafe fn get_script(&self) -> Option<Reference> {
Object_get_script(self.this)
}
#[inline]
pub unsafe fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
Object_set_meta(self.this, name, value)
}
#[inline]
pub unsafe fn get_meta(&self, name: GodotString) -> Variant {
Object_get_meta(self.this, name)
}
#[inline]
pub unsafe fn has_meta(&self, name: GodotString) -> bool {
Object_has_meta(self.this, name)
}
#[inline]
pub unsafe fn get_meta_list(&self) -> StringArray {
Object_get_meta_list(self.this)
}
#[inline]
pub unsafe fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
Object_add_user_signal(self.this, signal, arguments)
}
#[inline]
pub unsafe fn has_user_signal(&self, signal: GodotString) -> bool {
Object_has_user_signal(self.this, signal)
}
#[inline]
pub unsafe fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
Object_emit_signal(self.this, signal, varargs)
}
#[inline]
pub unsafe fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call(self.this, method, varargs)
}
#[inline]
pub unsafe fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call_deferred(self.this, method, varargs)
}
#[inline]
pub unsafe fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
Object_callv(self.this, method, arg_array)
}
#[inline]
pub unsafe fn has_method(&self, method: GodotString) -> bool {
Object_has_method(self.this, method)
}
#[inline]
pub unsafe fn get_signal_list(&self) -> VariantArray {
Object_get_signal_list(self.this)
}
#[inline]
pub unsafe fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
Object_get_signal_connection_list(self.this, signal)
}
#[inline]
pub unsafe fn get_incoming_connections(&self) -> VariantArray {
Object_get_incoming_connections(self.this)
}
#[inline]
pub unsafe fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
Object_connect(self.this, signal, target, method, binds, flags)
}
#[inline]
pub unsafe fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
Object_disconnect(self.this, signal, target, method)
}
#[inline]
pub unsafe fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
Object_is_connected(self.this, signal, target, method)
}
#[inline]
pub unsafe fn set_block_signals(&mut self, enable: bool) -> () {
Object_set_block_signals(self.this, enable)
}
#[inline]
pub unsafe fn is_blocking_signals(&self) -> bool {
Object_is_blocking_signals(self.this)
}
#[inline]
pub unsafe fn property_list_changed_notify(&mut self) -> () {
Object_property_list_changed_notify(self.this)
}
#[inline]
pub unsafe fn set_message_translation(&mut self, enable: bool) -> () {
Object_set_message_translation(self.this, enable)
}
#[inline]
pub unsafe fn can_translate_messages(&self) -> bool {
Object_can_translate_messages(self.this)
}
#[inline]
pub unsafe fn tr(&self, message: GodotString) -> GodotString {
Object_tr(self.this, message)
}
#[inline]
pub unsafe fn is_queued_for_deletion(&self) -> bool {
Object_is_queued_for_deletion(self.this)
}
#[inline]
pub unsafe fn to_object(&self) -> Object {
Object { this: self.this }
}
pub unsafe fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
#[derive(Copy, Clone)]
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct EditorPlugin {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum EditorPluginDockSlot {
LeftUl = 0,
LeftBl = 1,
LeftUr = 2,
LeftBr = 3,
RightUl = 4,
RightBl = 5,
RightUr = 6,
RightBr = 7,
Max = 8,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum EditorPluginCustomControlContainer {
ContainerToolbar = 0,
ContainerSpatialEditorMenu = 1,
ContainerSpatialEditorSide = 2,
ContainerSpatialEditorBottom = 3,
ContainerCanvasEditorMenu = 4,
ContainerCanvasEditorSide = 5,
ContainerCanvasEditorBottom = 6,
ContainerPropertyEditorBottom = 7,
}
unsafe impl GodotObject for EditorPlugin {
fn class_name() -> &'static str {
"EditorPlugin"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for EditorPlugin {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl Free for EditorPlugin {
unsafe fn godot_free(self) { self.free() }
}
impl QueueFree for EditorPlugin {
unsafe fn godot_queue_free(&mut self) { self.queue_free() }
}
impl EditorPlugin {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = EditorPluginMethodTable::get(gd_api).class_constructor.unwrap();
let this = ctor();
EditorPlugin {
this
}
}
}
#[inline]
pub unsafe fn free(self) {
(get_api().godot_object_destroy)(self.this);
}
#[inline]
pub unsafe fn forward_canvas_gui_input(&mut self, event: Option<InputEvent>) -> bool {
EditorPlugin_forward_canvas_gui_input(self.this, event)
}
#[inline]
pub unsafe fn forward_draw_over_viewport(&mut self, overlay: Option<Control>) -> () {
EditorPlugin_forward_draw_over_viewport(self.this, overlay)
}
#[inline]
pub unsafe fn forward_force_draw_over_viewport(&mut self, overlay: Option<Control>) -> () {
EditorPlugin_forward_force_draw_over_viewport(self.this, overlay)
}
#[inline]
pub unsafe fn forward_spatial_gui_input(&mut self, camera: Option<Camera>, event: Option<InputEvent>) -> bool {
EditorPlugin_forward_spatial_gui_input(self.this, camera, event)
}
#[inline]
pub unsafe fn create_spatial_gizmo(&mut self, for_spatial: Option<Spatial>) -> Option<EditorSpatialGizmo> {
EditorPlugin_create_spatial_gizmo(self.this, for_spatial)
}
#[inline]
pub unsafe fn get_plugin_name(&mut self) -> GodotString {
EditorPlugin_get_plugin_name(self.this)
}
#[inline]
pub unsafe fn get_plugin_icon(&mut self) -> Option<Object> {
EditorPlugin_get_plugin_icon(self.this)
}
#[inline]
pub unsafe fn has_main_screen(&mut self) -> bool {
EditorPlugin_has_main_screen(self.this)
}
#[inline]
pub unsafe fn make_visible(&mut self, visible: bool) -> () {
EditorPlugin_make_visible(self.this, visible)
}
#[inline]
pub unsafe fn edit(&mut self, object: Option<Object>) -> () {
EditorPlugin_edit(self.this, object)
}
#[inline]
pub unsafe fn handles(&mut self, object: Option<Object>) -> bool {
EditorPlugin_handles(self.this, object)
}
#[inline]
pub unsafe fn get_state(&mut self) -> Dictionary {
EditorPlugin_get_state(self.this)
}
#[inline]
pub unsafe fn set_state(&mut self, state: Dictionary) -> () {
EditorPlugin_set_state(self.this, state)
}
#[inline]
pub unsafe fn clear(&mut self) -> () {
EditorPlugin_clear(self.this)
}
#[inline]
pub unsafe fn save_external_data(&mut self) -> () {
EditorPlugin_save_external_data(self.this)
}
#[inline]
pub unsafe fn apply_changes(&mut self) -> () {
EditorPlugin_apply_changes(self.this)
}
#[inline]
pub unsafe fn get_breakpoints(&mut self) -> StringArray {
EditorPlugin_get_breakpoints(self.this)
}
#[inline]
pub unsafe fn set_window_layout(&mut self, layout: Option<ConfigFile>) -> () {
EditorPlugin_set_window_layout(self.this, layout)
}
#[inline]
pub unsafe fn get_window_layout(&mut self, layout: Option<ConfigFile>) -> () {
EditorPlugin_get_window_layout(self.this, layout)
}
#[inline]
pub unsafe fn build(&mut self) -> bool {
EditorPlugin_build(self.this)
}
#[inline]
pub unsafe fn add_control_to_container(&mut self, container: i64, control: Option<Object>) -> () {
EditorPlugin_add_control_to_container(self.this, container, control)
}
#[inline]
pub unsafe fn add_control_to_bottom_panel(&mut self, control: Option<Object>, title: GodotString) -> Option<ToolButton> {
EditorPlugin_add_control_to_bottom_panel(self.this, control, title)
}
#[inline]
pub unsafe fn add_control_to_dock(&mut self, slot: i64, control: Option<Object>) -> () {
EditorPlugin_add_control_to_dock(self.this, slot, control)
}
#[inline]
pub unsafe fn remove_control_from_docks(&mut self, control: Option<Object>) -> () {
EditorPlugin_remove_control_from_docks(self.this, control)
}
#[inline]
pub unsafe fn remove_control_from_bottom_panel(&mut self, control: Option<Object>) -> () {
EditorPlugin_remove_control_from_bottom_panel(self.this, control)
}
#[inline]
pub unsafe fn remove_control_from_container(&mut self, container: i64, control: Option<Object>) -> () {
EditorPlugin_remove_control_from_container(self.this, container, control)
}
#[inline]
pub unsafe fn add_tool_menu_item(&mut self, name: GodotString, handler: Option<Object>, callback: GodotString, ud: Variant) -> () {
EditorPlugin_add_tool_menu_item(self.this, name, handler, callback, ud)
}
#[inline]
pub unsafe fn add_tool_submenu_item(&mut self, name: GodotString, submenu: Option<Object>) -> () {
EditorPlugin_add_tool_submenu_item(self.this, name, submenu)
}
#[inline]
pub unsafe fn remove_tool_menu_item(&mut self, name: GodotString) -> () {
EditorPlugin_remove_tool_menu_item(self.this, name)
}
#[inline]
pub unsafe fn add_custom_type(&mut self, _type: GodotString, base: GodotString, script: Option<Script>, icon: Option<Texture>) -> () {
EditorPlugin_add_custom_type(self.this, _type, base, script, icon)
}
#[inline]
pub unsafe fn remove_custom_type(&mut self, _type: GodotString) -> () {
EditorPlugin_remove_custom_type(self.this, _type)
}
#[inline]
pub unsafe fn add_autoload_singleton(&mut self, name: GodotString, path: GodotString) -> () {
EditorPlugin_add_autoload_singleton(self.this, name, path)
}
#[inline]
pub unsafe fn remove_autoload_singleton(&mut self, name: GodotString) -> () {
EditorPlugin_remove_autoload_singleton(self.this, name)
}
#[inline]
pub unsafe fn update_overlays(&self) -> i64 {
EditorPlugin_update_overlays(self.this)
}
#[inline]
pub unsafe fn make_bottom_panel_item_visible(&mut self, item: Option<Object>) -> () {
EditorPlugin_make_bottom_panel_item_visible(self.this, item)
}
#[inline]
pub unsafe fn hide_bottom_panel(&mut self) -> () {
EditorPlugin_hide_bottom_panel(self.this)
}
#[inline]
pub unsafe fn get_undo_redo(&mut self) -> Option<UndoRedo> {
EditorPlugin_get_undo_redo(self.this)
}
#[inline]
pub unsafe fn queue_save_layout(&self) -> () {
EditorPlugin_queue_save_layout(self.this)
}
#[inline]
pub unsafe fn add_import_plugin(&mut self, importer: Option<EditorImportPlugin>) -> () {
EditorPlugin_add_import_plugin(self.this, importer)
}
#[inline]
pub unsafe fn remove_import_plugin(&mut self, importer: Option<EditorImportPlugin>) -> () {
EditorPlugin_remove_import_plugin(self.this, importer)
}
#[inline]
pub unsafe fn add_scene_import_plugin(&mut self, scene_importer: Option<EditorSceneImporter>) -> () {
EditorPlugin_add_scene_import_plugin(self.this, scene_importer)
}
#[inline]
pub unsafe fn remove_scene_import_plugin(&mut self, scene_importer: Option<EditorSceneImporter>) -> () {
EditorPlugin_remove_scene_import_plugin(self.this, scene_importer)
}
#[inline]
pub unsafe fn add_export_plugin(&mut self, plugin: Option<EditorExportPlugin>) -> () {
EditorPlugin_add_export_plugin(self.this, plugin)
}
#[inline]
pub unsafe fn remove_export_plugin(&mut self, plugin: Option<EditorExportPlugin>) -> () {
EditorPlugin_remove_export_plugin(self.this, plugin)
}
#[inline]
pub unsafe fn add_inspector_plugin(&mut self, plugin: Option<EditorInspectorPlugin>) -> () {
EditorPlugin_add_inspector_plugin(self.this, plugin)
}
#[inline]
pub unsafe fn remove_inspector_plugin(&mut self, plugin: Option<EditorInspectorPlugin>) -> () {
EditorPlugin_remove_inspector_plugin(self.this, plugin)
}
#[inline]
pub unsafe fn set_input_event_forwarding_always_enabled(&mut self) -> () {
EditorPlugin_set_input_event_forwarding_always_enabled(self.this)
}
#[inline]
pub unsafe fn set_force_draw_over_forwarding_enabled(&mut self) -> () {
EditorPlugin_set_force_draw_over_forwarding_enabled(self.this)
}
#[inline]
pub unsafe fn get_editor_interface(&mut self) -> Option<EditorInterface> {
EditorPlugin_get_editor_interface(self.this)
}
#[inline]
pub unsafe fn get_script_create_dialog(&mut self) -> Option<ScriptCreateDialog> {
EditorPlugin_get_script_create_dialog(self.this)
}
#[inline]
pub unsafe fn _process(&mut self, delta: f64) -> () {
Node__process(self.this, delta)
}
#[inline]
pub unsafe fn _physics_process(&mut self, delta: f64) -> () {
Node__physics_process(self.this, delta)
}
#[inline]
pub unsafe fn _enter_tree(&mut self) -> () {
Node__enter_tree(self.this)
}
#[inline]
pub unsafe fn _exit_tree(&mut self) -> () {
Node__exit_tree(self.this)
}
#[inline]
pub unsafe fn _ready(&mut self) -> () {
Node__ready(self.this)
}
#[inline]
pub unsafe fn _input(&mut self, event: Option<InputEvent>) -> () {
Node__input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_input(&mut self, event: Option<InputEvent>) -> () {
Node__unhandled_input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_key_input(&mut self, event: Option<InputEventKey>) -> () {
Node__unhandled_key_input(self.this, event)
}
#[inline]
pub unsafe fn add_child_below_node(&mut self, node: Option<Object>, child_node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child_below_node(self.this, node, child_node, legible_unique_name)
}
#[inline]
pub unsafe fn set_name(&mut self, name: GodotString) -> () {
Node_set_name(self.this, name)
}
#[inline]
pub unsafe fn get_name(&self) -> GodotString {
Node_get_name(self.this)
}
#[inline]
pub unsafe fn add_child(&mut self, node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child(self.this, node, legible_unique_name)
}
#[inline]
pub unsafe fn remove_child(&mut self, node: Option<Object>) -> () {
Node_remove_child(self.this, node)
}
#[inline]
pub unsafe fn get_child_count(&self) -> i64 {
Node_get_child_count(self.this)
}
#[inline]
pub unsafe fn get_children(&self) -> VariantArray {
Node_get_children(self.this)
}
#[inline]
pub unsafe fn get_child(&self, idx: i64) -> Option<Node> {
Node_get_child(self.this, idx)
}
#[inline]
pub unsafe fn has_node(&self, path: NodePath) -> bool {
Node_has_node(self.this, path)
}
#[inline]
pub unsafe fn get_node(&self, path: NodePath) -> Option<Node> {
Node_get_node(self.this, path)
}
#[inline]
pub unsafe fn get_parent(&self) -> Option<Node> {
Node_get_parent(self.this)
}
#[inline]
pub unsafe fn find_node(&self, mask: GodotString, recursive: bool, owned: bool) -> Option<Node> {
Node_find_node(self.this, mask, recursive, owned)
}
#[inline]
pub unsafe fn has_node_and_resource(&self, path: NodePath) -> bool {
Node_has_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn get_node_and_resource(&mut self, path: NodePath) -> VariantArray {
Node_get_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn is_inside_tree(&self) -> bool {
Node_is_inside_tree(self.this)
}
#[inline]
pub unsafe fn is_a_parent_of(&self, node: Option<Object>) -> bool {
Node_is_a_parent_of(self.this, node)
}
#[inline]
pub unsafe fn is_greater_than(&self, node: Option<Object>) -> bool {
Node_is_greater_than(self.this, node)
}
#[inline]
pub unsafe fn get_path(&self) -> NodePath {
Node_get_path(self.this)
}
#[inline]
pub unsafe fn get_path_to(&self, node: Option<Object>) -> NodePath {
Node_get_path_to(self.this, node)
}
#[inline]
pub unsafe fn add_to_group(&mut self, group: GodotString, persistent: bool) -> () {
Node_add_to_group(self.this, group, persistent)
}
#[inline]
pub unsafe fn remove_from_group(&mut self, group: GodotString) -> () {
Node_remove_from_group(self.this, group)
}
#[inline]
pub unsafe fn is_in_group(&self, group: GodotString) -> bool {
Node_is_in_group(self.this, group)
}
#[inline]
pub unsafe fn move_child(&mut self, child_node: Option<Object>, to_position: i64) -> () {
Node_move_child(self.this, child_node, to_position)
}
#[inline]
pub unsafe fn get_groups(&self) -> VariantArray {
Node_get_groups(self.this)
}
#[inline]
pub unsafe fn raise(&mut self) -> () {
Node_raise(self.this)
}
#[inline]
pub unsafe fn set_owner(&mut self, owner: Option<Object>) -> () {
Node_set_owner(self.this, owner)
}
#[inline]
pub unsafe fn get_owner(&self) -> Option<Node> {
Node_get_owner(self.this)
}
#[inline]
pub unsafe fn remove_and_skip(&mut self) -> () {
Node_remove_and_skip(self.this)
}
#[inline]
pub unsafe fn get_index(&self) -> i64 {
Node_get_index(self.this)
}
#[inline]
pub unsafe fn print_tree(&mut self) -> () {
Node_print_tree(self.this)
}
#[inline]
pub unsafe fn print_tree_pretty(&mut self) -> () {
Node_print_tree_pretty(self.this)
}
#[inline]
pub unsafe fn set_filename(&mut self, filename: GodotString) -> () {
Node_set_filename(self.this, filename)
}
#[inline]
pub unsafe fn get_filename(&self) -> GodotString {
Node_get_filename(self.this)
}
#[inline]
pub unsafe fn propagate_notification(&mut self, what: i64) -> () {
Node_propagate_notification(self.this, what)
}
#[inline]
pub unsafe fn propagate_call(&mut self, method: GodotString, args: VariantArray, parent_first: bool) -> () {
Node_propagate_call(self.this, method, args, parent_first)
}
#[inline]
pub unsafe fn set_physics_process(&mut self, enable: bool) -> () {
Node_set_physics_process(self.this, enable)
}
#[inline]
pub unsafe fn get_physics_process_delta_time(&self) -> f64 {
Node_get_physics_process_delta_time(self.this)
}
#[inline]
pub unsafe fn is_physics_processing(&self) -> bool {
Node_is_physics_processing(self.this)
}
#[inline]
pub unsafe fn get_process_delta_time(&self) -> f64 {
Node_get_process_delta_time(self.this)
}
#[inline]
pub unsafe fn set_process(&mut self, enable: bool) -> () {
Node_set_process(self.this, enable)
}
#[inline]
pub unsafe fn set_process_priority(&mut self, priority: i64) -> () {
Node_set_process_priority(self.this, priority)
}
#[inline]
pub unsafe fn is_processing(&self) -> bool {
Node_is_processing(self.this)
}
#[inline]
pub unsafe fn set_process_input(&mut self, enable: bool) -> () {
Node_set_process_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_input(&self) -> bool {
Node_is_processing_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_input(&self) -> bool {
Node_is_processing_unhandled_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_key_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_key_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_key_input(&self) -> bool {
Node_is_processing_unhandled_key_input(self.this)
}
#[inline]
pub unsafe fn set_pause_mode(&mut self, mode: i64) -> () {
Node_set_pause_mode(self.this, mode)
}
#[inline]
pub unsafe fn get_pause_mode(&self) -> NodePauseMode {
Node_get_pause_mode(self.this)
}
#[inline]
pub unsafe fn can_process(&self) -> bool {
Node_can_process(self.this)
}
#[inline]
pub unsafe fn print_stray_nodes(&mut self) -> () {
Node_print_stray_nodes(self.this)
}
#[inline]
pub unsafe fn get_position_in_parent(&self) -> i64 {
Node_get_position_in_parent(self.this)
}
#[inline]
pub unsafe fn set_display_folded(&mut self, fold: bool) -> () {
Node_set_display_folded(self.this, fold)
}
#[inline]
pub unsafe fn is_displayed_folded(&self) -> bool {
Node_is_displayed_folded(self.this)
}
#[inline]
pub unsafe fn set_process_internal(&mut self, enable: bool) -> () {
Node_set_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_internal(&self) -> bool {
Node_is_processing_internal(self.this)
}
#[inline]
pub unsafe fn set_physics_process_internal(&mut self, enable: bool) -> () {
Node_set_physics_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_physics_processing_internal(&self) -> bool {
Node_is_physics_processing_internal(self.this)
}
#[inline]
pub unsafe fn get_tree(&self) -> Option<SceneTree> {
Node_get_tree(self.this)
}
#[inline]
pub unsafe fn duplicate(&self, flags: i64) -> Option<Node> {
Node_duplicate(self.this, flags)
}
#[inline]
pub unsafe fn replace_by(&mut self, node: Option<Object>, keep_data: bool) -> () {
Node_replace_by(self.this, node, keep_data)
}
#[inline]
pub unsafe fn set_scene_instance_load_placeholder(&mut self, load_placeholder: bool) -> () {
Node_set_scene_instance_load_placeholder(self.this, load_placeholder)
}
#[inline]
pub unsafe fn get_scene_instance_load_placeholder(&self) -> bool {
Node_get_scene_instance_load_placeholder(self.this)
}
#[inline]
pub unsafe fn get_viewport(&self) -> Option<Viewport> {
Node_get_viewport(self.this)
}
#[inline]
pub unsafe fn queue_free(&mut self) -> () {
Node_queue_free(self.this)
}
#[inline]
pub unsafe fn request_ready(&mut self) -> () {
Node_request_ready(self.this)
}
#[inline]
pub unsafe fn set_network_master(&mut self, id: i64, recursive: bool) -> () {
Node_set_network_master(self.this, id, recursive)
}
#[inline]
pub unsafe fn get_network_master(&self) -> i64 {
Node_get_network_master(self.this)
}
#[inline]
pub unsafe fn is_network_master(&self) -> bool {
Node_is_network_master(self.this)
}
#[inline]
pub unsafe fn get_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_multiplayer(self.this)
}
#[inline]
pub unsafe fn get_custom_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_custom_multiplayer(self.this)
}
#[inline]
pub unsafe fn set_custom_multiplayer(&mut self, api: Option<MultiplayerAPI>) -> () {
Node_set_custom_multiplayer(self.this, api)
}
#[inline]
pub unsafe fn rpc_config(&mut self, method: GodotString, mode: i64) -> () {
Node_rpc_config(self.this, method, mode)
}
#[inline]
pub unsafe fn rset_config(&mut self, property: GodotString, mode: i64) -> () {
Node_rset_config(self.this, property, mode)
}
#[inline]
pub unsafe fn _set_import_path(&mut self, import_path: NodePath) -> () {
Node__set_import_path(self.this, import_path)
}
#[inline]
pub unsafe fn _get_import_path(&self) -> NodePath {
Node__get_import_path(self.this)
}
#[inline]
pub unsafe fn rpc(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rset(&mut self, property: GodotString, value: Variant) -> () {
Node_rset(self.this, property, value)
}
#[inline]
pub unsafe fn rset_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn rset_unreliable(&mut self, property: GodotString, value: Variant) -> () {
Node_rset_unreliable(self.this, property, value)
}
#[inline]
pub unsafe fn rset_unreliable_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_unreliable_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn _notification(&mut self, what: i64) -> () {
Object__notification(self.this, what)
}
#[inline]
pub unsafe fn _set(&mut self, property: GodotString, value: Variant) -> bool {
Object__set(self.this, property, value)
}
#[inline]
pub unsafe fn _get(&mut self, property: GodotString) -> Variant {
Object__get(self.this, property)
}
#[inline]
pub unsafe fn _get_property_list(&mut self) -> VariantArray {
Object__get_property_list(self.this)
}
#[inline]
pub unsafe fn _init(&mut self) -> () {
Object__init(self.this)
}
#[inline]
pub unsafe fn get_class(&self) -> GodotString {
Object_get_class(self.this)
}
#[inline]
pub unsafe fn is_class(&self, _type: GodotString) -> bool {
Object_is_class(self.this, _type)
}
#[inline]
pub unsafe fn set(&mut self, property: GodotString, value: Variant) -> () {
Object_set(self.this, property, value)
}
#[inline]
pub unsafe fn get(&self, property: GodotString) -> Variant {
Object_get(self.this, property)
}
#[inline]
pub unsafe fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
Object_set_indexed(self.this, property, value)
}
#[inline]
pub unsafe fn get_indexed(&self, property: NodePath) -> Variant {
Object_get_indexed(self.this, property)
}
#[inline]
pub unsafe fn get_property_list(&self) -> VariantArray {
Object_get_property_list(self.this)
}
#[inline]
pub unsafe fn get_method_list(&self) -> VariantArray {
Object_get_method_list(self.this)
}
#[inline]
pub unsafe fn notification(&mut self, what: i64, reversed: bool) -> () {
Object_notification(self.this, what, reversed)
}
#[inline]
pub unsafe fn get_instance_id(&self) -> i64 {
Object_get_instance_id(self.this)
}
#[inline]
pub unsafe fn set_script(&mut self, script: Option<Reference>) -> () {
Object_set_script(self.this, script)
}
#[inline]
pub unsafe fn get_script(&self) -> Option<Reference> {
Object_get_script(self.this)
}
#[inline]
pub unsafe fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
Object_set_meta(self.this, name, value)
}
#[inline]
pub unsafe fn get_meta(&self, name: GodotString) -> Variant {
Object_get_meta(self.this, name)
}
#[inline]
pub unsafe fn has_meta(&self, name: GodotString) -> bool {
Object_has_meta(self.this, name)
}
#[inline]
pub unsafe fn get_meta_list(&self) -> StringArray {
Object_get_meta_list(self.this)
}
#[inline]
pub unsafe fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
Object_add_user_signal(self.this, signal, arguments)
}
#[inline]
pub unsafe fn has_user_signal(&self, signal: GodotString) -> bool {
Object_has_user_signal(self.this, signal)
}
#[inline]
pub unsafe fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
Object_emit_signal(self.this, signal, varargs)
}
#[inline]
pub unsafe fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call(self.this, method, varargs)
}
#[inline]
pub unsafe fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call_deferred(self.this, method, varargs)
}
#[inline]
pub unsafe fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
Object_callv(self.this, method, arg_array)
}
#[inline]
pub unsafe fn has_method(&self, method: GodotString) -> bool {
Object_has_method(self.this, method)
}
#[inline]
pub unsafe fn get_signal_list(&self) -> VariantArray {
Object_get_signal_list(self.this)
}
#[inline]
pub unsafe fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
Object_get_signal_connection_list(self.this, signal)
}
#[inline]
pub unsafe fn get_incoming_connections(&self) -> VariantArray {
Object_get_incoming_connections(self.this)
}
#[inline]
pub unsafe fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
Object_connect(self.this, signal, target, method, binds, flags)
}
#[inline]
pub unsafe fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
Object_disconnect(self.this, signal, target, method)
}
#[inline]
pub unsafe fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
Object_is_connected(self.this, signal, target, method)
}
#[inline]
pub unsafe fn set_block_signals(&mut self, enable: bool) -> () {
Object_set_block_signals(self.this, enable)
}
#[inline]
pub unsafe fn is_blocking_signals(&self) -> bool {
Object_is_blocking_signals(self.this)
}
#[inline]
pub unsafe fn property_list_changed_notify(&mut self) -> () {
Object_property_list_changed_notify(self.this)
}
#[inline]
pub unsafe fn set_message_translation(&mut self, enable: bool) -> () {
Object_set_message_translation(self.this, enable)
}
#[inline]
pub unsafe fn can_translate_messages(&self) -> bool {
Object_can_translate_messages(self.this)
}
#[inline]
pub unsafe fn tr(&self, message: GodotString) -> GodotString {
Object_tr(self.this, message)
}
#[inline]
pub unsafe fn is_queued_for_deletion(&self) -> bool {
Object_is_queued_for_deletion(self.this)
}
#[inline]
pub unsafe fn to_node(&self) -> Node {
Node { this: self.this }
}
#[inline]
pub unsafe fn to_object(&self) -> Object {
Object { this: self.this }
}
pub unsafe fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
#[derive(Copy, Clone)]
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct EditorFileDialog {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum EditorFileDialogDisplayMode {
Thumbnails = 0,
List = 1,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum EditorFileDialogMode {
ModeOpenFile = 0,
ModeOpenFiles = 1,
ModeOpenDir = 2,
ModeOpenAny = 3,
ModeSaveFile = 4,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum EditorFileDialogAccess {
Resources = 0,
Userdata = 1,
Filesystem = 2,
}
unsafe impl GodotObject for EditorFileDialog {
fn class_name() -> &'static str {
"EditorFileDialog"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for EditorFileDialog {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl Free for EditorFileDialog {
unsafe fn godot_free(self) { self.free() }
}
impl QueueFree for EditorFileDialog {
unsafe fn godot_queue_free(&mut self) { self.queue_free() }
}
impl EditorFileDialog {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = EditorFileDialogMethodTable::get(gd_api).class_constructor.unwrap();
let this = ctor();
EditorFileDialog {
this
}
}
}
#[inline]
pub unsafe fn free(self) {
(get_api().godot_object_destroy)(self.this);
}
#[inline]
pub unsafe fn _unhandled_input(&mut self, arg0: Option<InputEvent>) -> () {
EditorFileDialog__unhandled_input(self.this, arg0)
}
#[inline]
pub unsafe fn _item_selected(&mut self, arg0: i64) -> () {
EditorFileDialog__item_selected(self.this, arg0)
}
#[inline]
pub unsafe fn _multi_selected(&mut self, arg0: i64, arg1: bool) -> () {
EditorFileDialog__multi_selected(self.this, arg0, arg1)
}
#[inline]
pub unsafe fn _items_clear_selection(&mut self) -> () {
EditorFileDialog__items_clear_selection(self.this)
}
#[inline]
pub unsafe fn _item_list_item_rmb_selected(&mut self, arg0: i64, arg1: Vector2) -> () {
EditorFileDialog__item_list_item_rmb_selected(self.this, arg0, arg1)
}
#[inline]
pub unsafe fn _item_list_rmb_clicked(&mut self, arg0: Vector2) -> () {
EditorFileDialog__item_list_rmb_clicked(self.this, arg0)
}
#[inline]
pub unsafe fn _item_menu_id_pressed(&mut self, arg0: i64) -> () {
EditorFileDialog__item_menu_id_pressed(self.this, arg0)
}
#[inline]
pub unsafe fn _item_db_selected(&mut self, arg0: i64) -> () {
EditorFileDialog__item_db_selected(self.this, arg0)
}
#[inline]
pub unsafe fn _dir_entered(&mut self, arg0: GodotString) -> () {
EditorFileDialog__dir_entered(self.this, arg0)
}
#[inline]
pub unsafe fn _file_entered(&mut self, arg0: GodotString) -> () {
EditorFileDialog__file_entered(self.this, arg0)
}
#[inline]
pub unsafe fn _action_pressed(&mut self) -> () {
EditorFileDialog__action_pressed(self.this)
}
#[inline]
pub unsafe fn _cancel_pressed(&mut self) -> () {
EditorFileDialog__cancel_pressed(self.this)
}
#[inline]
pub unsafe fn _filter_selected(&mut self, arg0: i64) -> () {
EditorFileDialog__filter_selected(self.this, arg0)
}
#[inline]
pub unsafe fn _save_confirm_pressed(&mut self) -> () {
EditorFileDialog__save_confirm_pressed(self.this)
}
#[inline]
pub unsafe fn clear_filters(&mut self) -> () {
EditorFileDialog_clear_filters(self.this)
}
#[inline]
pub unsafe fn add_filter(&mut self, filter: GodotString) -> () {
EditorFileDialog_add_filter(self.this, filter)
}
#[inline]
pub unsafe fn get_current_dir(&self) -> GodotString {
EditorFileDialog_get_current_dir(self.this)
}
#[inline]
pub unsafe fn get_current_file(&self) -> GodotString {
EditorFileDialog_get_current_file(self.this)
}
#[inline]
pub unsafe fn get_current_path(&self) -> GodotString {
EditorFileDialog_get_current_path(self.this)
}
#[inline]
pub unsafe fn set_current_dir(&mut self, dir: GodotString) -> () {
EditorFileDialog_set_current_dir(self.this, dir)
}
#[inline]
pub unsafe fn set_current_file(&mut self, file: GodotString) -> () {
EditorFileDialog_set_current_file(self.this, file)
}
#[inline]
pub unsafe fn set_current_path(&mut self, path: GodotString) -> () {
EditorFileDialog_set_current_path(self.this, path)
}
#[inline]
pub unsafe fn set_mode(&mut self, mode: i64) -> () {
EditorFileDialog_set_mode(self.this, mode)
}
#[inline]
pub unsafe fn get_mode(&self) -> EditorFileDialogMode {
EditorFileDialog_get_mode(self.this)
}
#[inline]
pub unsafe fn get_vbox(&mut self) -> Option<VBoxContainer> {
EditorFileDialog_get_vbox(self.this)
}
#[inline]
pub unsafe fn set_access(&mut self, access: i64) -> () {
EditorFileDialog_set_access(self.this, access)
}
#[inline]
pub unsafe fn get_access(&self) -> EditorFileDialogAccess {
EditorFileDialog_get_access(self.this)
}
#[inline]
pub unsafe fn set_show_hidden_files(&mut self, show: bool) -> () {
EditorFileDialog_set_show_hidden_files(self.this, show)
}
#[inline]
pub unsafe fn is_showing_hidden_files(&self) -> bool {
EditorFileDialog_is_showing_hidden_files(self.this)
}
#[inline]
pub unsafe fn _select_drive(&mut self, arg0: i64) -> () {
EditorFileDialog__select_drive(self.this, arg0)
}
#[inline]
pub unsafe fn _make_dir(&mut self) -> () {
EditorFileDialog__make_dir(self.this)
}
#[inline]
pub unsafe fn _make_dir_confirm(&mut self) -> () {
EditorFileDialog__make_dir_confirm(self.this)
}
#[inline]
pub unsafe fn _update_file_list(&mut self) -> () {
EditorFileDialog__update_file_list(self.this)
}
#[inline]
pub unsafe fn _update_dir(&mut self) -> () {
EditorFileDialog__update_dir(self.this)
}
#[inline]
pub unsafe fn _thumbnail_done(&mut self, arg0: GodotString, arg1: Option<Texture>, arg2: Variant) -> () {
EditorFileDialog__thumbnail_done(self.this, arg0, arg1, arg2)
}
#[inline]
pub unsafe fn set_display_mode(&mut self, mode: i64) -> () {
EditorFileDialog_set_display_mode(self.this, mode)
}
#[inline]
pub unsafe fn get_display_mode(&self) -> EditorFileDialogDisplayMode {
EditorFileDialog_get_display_mode(self.this)
}
#[inline]
pub unsafe fn _thumbnail_result(&mut self, arg0: GodotString, arg1: Option<Texture>, arg2: Variant) -> () {
EditorFileDialog__thumbnail_result(self.this, arg0, arg1, arg2)
}
#[inline]
pub unsafe fn set_disable_overwrite_warning(&mut self, disable: bool) -> () {
EditorFileDialog_set_disable_overwrite_warning(self.this, disable)
}
#[inline]
pub unsafe fn is_overwrite_warning_disabled(&self) -> bool {
EditorFileDialog_is_overwrite_warning_disabled(self.this)
}
#[inline]
pub unsafe fn _recent_selected(&mut self, arg0: i64) -> () {
EditorFileDialog__recent_selected(self.this, arg0)
}
#[inline]
pub unsafe fn _go_back(&mut self) -> () {
EditorFileDialog__go_back(self.this)
}
#[inline]
pub unsafe fn _go_forward(&mut self) -> () {
EditorFileDialog__go_forward(self.this)
}
#[inline]
pub unsafe fn _go_up(&mut self) -> () {
EditorFileDialog__go_up(self.this)
}
#[inline]
pub unsafe fn _favorite_toggled(&mut self, arg0: bool) -> () {
EditorFileDialog__favorite_toggled(self.this, arg0)
}
#[inline]
pub unsafe fn _favorite_selected(&mut self, arg0: i64) -> () {
EditorFileDialog__favorite_selected(self.this, arg0)
}
#[inline]
pub unsafe fn _favorite_move_up(&mut self) -> () {
EditorFileDialog__favorite_move_up(self.this)
}
#[inline]
pub unsafe fn _favorite_move_down(&mut self) -> () {
EditorFileDialog__favorite_move_down(self.this)
}
#[inline]
pub unsafe fn invalidate(&mut self) -> () {
EditorFileDialog_invalidate(self.this)
}
#[inline]
pub unsafe fn get_cancel(&mut self) -> Option<Button> {
ConfirmationDialog_get_cancel(self.this)
}
#[inline]
pub unsafe fn _ok(&mut self) -> () {
AcceptDialog__ok(self.this)
}
#[inline]
pub unsafe fn get_ok(&mut self) -> Option<Button> {
AcceptDialog_get_ok(self.this)
}
#[inline]
pub unsafe fn get_label(&mut self) -> Option<Label> {
AcceptDialog_get_label(self.this)
}
#[inline]
pub unsafe fn set_hide_on_ok(&mut self, enabled: bool) -> () {
AcceptDialog_set_hide_on_ok(self.this, enabled)
}
#[inline]
pub unsafe fn get_hide_on_ok(&self) -> bool {
AcceptDialog_get_hide_on_ok(self.this)
}
#[inline]
pub unsafe fn add_button(&mut self, text: GodotString, right: bool, action: GodotString) -> Option<Button> {
AcceptDialog_add_button(self.this, text, right, action)
}
#[inline]
pub unsafe fn add_cancel(&mut self, name: GodotString) -> Option<Button> {
AcceptDialog_add_cancel(self.this, name)
}
#[inline]
pub unsafe fn _builtin_text_entered(&mut self, arg0: GodotString) -> () {
AcceptDialog__builtin_text_entered(self.this, arg0)
}
#[inline]
pub unsafe fn register_text_enter(&mut self, line_edit: Option<Object>) -> () {
AcceptDialog_register_text_enter(self.this, line_edit)
}
#[inline]
pub unsafe fn _custom_action(&mut self, arg0: GodotString) -> () {
AcceptDialog__custom_action(self.this, arg0)
}
#[inline]
pub unsafe fn set_text(&mut self, text: GodotString) -> () {
AcceptDialog_set_text(self.this, text)
}
#[inline]
pub unsafe fn get_text(&self) -> GodotString {
AcceptDialog_get_text(self.this)
}
#[inline]
pub unsafe fn _gui_input(&mut self, arg0: Option<InputEvent>) -> () {
WindowDialog__gui_input(self.this, arg0)
}
#[inline]
pub unsafe fn set_title(&mut self, title: GodotString) -> () {
WindowDialog_set_title(self.this, title)
}
#[inline]
pub unsafe fn get_title(&self) -> GodotString {
WindowDialog_get_title(self.this)
}
#[inline]
pub unsafe fn set_resizable(&mut self, resizable: bool) -> () {
WindowDialog_set_resizable(self.this, resizable)
}
#[inline]
pub unsafe fn get_resizable(&self) -> bool {
WindowDialog_get_resizable(self.this)
}
#[inline]
pub unsafe fn _closed(&mut self) -> () {
WindowDialog__closed(self.this)
}
#[inline]
pub unsafe fn get_close_button(&mut self) -> Option<TextureButton> {
WindowDialog_get_close_button(self.this)
}
#[inline]
pub unsafe fn popup_centered(&mut self, size: Vector2) -> () {
Popup_popup_centered(self.this, size)
}
#[inline]
pub unsafe fn popup_centered_ratio(&mut self, ratio: f64) -> () {
Popup_popup_centered_ratio(self.this, ratio)
}
#[inline]
pub unsafe fn popup_centered_minsize(&mut self, minsize: Vector2) -> () {
Popup_popup_centered_minsize(self.this, minsize)
}
#[inline]
pub unsafe fn popup(&mut self, bounds: Rect2) -> () {
Popup_popup(self.this, bounds)
}
#[inline]
pub unsafe fn set_exclusive(&mut self, enable: bool) -> () {
Popup_set_exclusive(self.this, enable)
}
#[inline]
pub unsafe fn is_exclusive(&self) -> bool {
Popup_is_exclusive(self.this)
}
#[inline]
pub unsafe fn _get_minimum_size(&mut self) -> Vector2 {
Control__get_minimum_size(self.this)
}
#[inline]
pub unsafe fn get_drag_data(&mut self, position: Vector2) -> Option<Object> {
Control_get_drag_data(self.this, position)
}
#[inline]
pub unsafe fn can_drop_data(&mut self, position: Vector2, data: Variant) -> bool {
Control_can_drop_data(self.this, position, data)
}
#[inline]
pub unsafe fn drop_data(&mut self, position: Vector2, data: Variant) -> () {
Control_drop_data(self.this, position, data)
}
#[inline]
pub unsafe fn _make_custom_tooltip(&mut self, for_text: GodotString) -> Option<Object> {
Control__make_custom_tooltip(self.this, for_text)
}
#[inline]
pub unsafe fn has_point(&mut self, point: Vector2) -> bool {
Control_has_point(self.this, point)
}
#[inline]
pub unsafe fn _size_changed(&mut self) -> () {
Control__size_changed(self.this)
}
#[inline]
pub unsafe fn _update_minimum_size(&mut self) -> () {
Control__update_minimum_size(self.this)
}
#[inline]
pub unsafe fn accept_event(&mut self) -> () {
Control_accept_event(self.this)
}
#[inline]
pub unsafe fn get_minimum_size(&self) -> Vector2 {
Control_get_minimum_size(self.this)
}
#[inline]
pub unsafe fn get_combined_minimum_size(&self) -> Vector2 {
Control_get_combined_minimum_size(self.this)
}
#[inline]
pub unsafe fn set_anchors_preset(&mut self, preset: i64, keep_margin: bool) -> () {
Control_set_anchors_preset(self.this, preset, keep_margin)
}
#[inline]
pub unsafe fn set_margins_preset(&mut self, preset: i64, resize_mode: i64, margin: i64) -> () {
Control_set_margins_preset(self.this, preset, resize_mode, margin)
}
#[inline]
pub unsafe fn set_anchors_and_margins_preset(&mut self, preset: i64, resize_mode: i64, margin: i64) -> () {
Control_set_anchors_and_margins_preset(self.this, preset, resize_mode, margin)
}
#[inline]
pub unsafe fn set_anchor(&mut self, margin: i64, anchor: f64, keep_margin: bool, push_opposite_anchor: bool) -> () {
Control_set_anchor(self.this, margin, anchor, keep_margin, push_opposite_anchor)
}
#[inline]
pub unsafe fn _set_anchor(&mut self, margin: i64, anchor: f64) -> () {
Control__set_anchor(self.this, margin, anchor)
}
#[inline]
pub unsafe fn get_anchor(&self, margin: i64) -> f64 {
Control_get_anchor(self.this, margin)
}
#[inline]
pub unsafe fn set_margin(&mut self, margin: i64, offset: f64) -> () {
Control_set_margin(self.this, margin, offset)
}
#[inline]
pub unsafe fn set_anchor_and_margin(&mut self, margin: i64, anchor: f64, offset: f64, push_opposite_anchor: bool) -> () {
Control_set_anchor_and_margin(self.this, margin, anchor, offset, push_opposite_anchor)
}
#[inline]
pub unsafe fn set_begin(&mut self, position: Vector2) -> () {
Control_set_begin(self.this, position)
}
#[inline]
pub unsafe fn set_end(&mut self, position: Vector2) -> () {
Control_set_end(self.this, position)
}
#[inline]
pub unsafe fn set_position(&mut self, position: Vector2) -> () {
Control_set_position(self.this, position)
}
#[inline]
pub unsafe fn set_size(&mut self, size: Vector2) -> () {
Control_set_size(self.this, size)
}
#[inline]
pub unsafe fn set_custom_minimum_size(&mut self, size: Vector2) -> () {
Control_set_custom_minimum_size(self.this, size)
}
#[inline]
pub unsafe fn set_global_position(&mut self, position: Vector2) -> () {
Control_set_global_position(self.this, position)
}
#[inline]
pub unsafe fn set_rotation(&mut self, radians: f64) -> () {
Control_set_rotation(self.this, radians)
}
#[inline]
pub unsafe fn set_rotation_degrees(&mut self, degrees: f64) -> () {
Control_set_rotation_degrees(self.this, degrees)
}
#[inline]
pub unsafe fn set_scale(&mut self, scale: Vector2) -> () {
Control_set_scale(self.this, scale)
}
#[inline]
pub unsafe fn set_pivot_offset(&mut self, pivot_offset: Vector2) -> () {
Control_set_pivot_offset(self.this, pivot_offset)
}
#[inline]
pub unsafe fn get_margin(&self, margin: i64) -> f64 {
Control_get_margin(self.this, margin)
}
#[inline]
pub unsafe fn get_begin(&self) -> Vector2 {
Control_get_begin(self.this)
}
#[inline]
pub unsafe fn get_end(&self) -> Vector2 {
Control_get_end(self.this)
}
#[inline]
pub unsafe fn get_position(&self) -> Vector2 {
Control_get_position(self.this)
}
#[inline]
pub unsafe fn get_size(&self) -> Vector2 {
Control_get_size(self.this)
}
#[inline]
pub unsafe fn get_rotation(&self) -> f64 {
Control_get_rotation(self.this)
}
#[inline]
pub unsafe fn get_rotation_degrees(&self) -> f64 {
Control_get_rotation_degrees(self.this)
}
#[inline]
pub unsafe fn get_scale(&self) -> Vector2 {
Control_get_scale(self.this)
}
#[inline]
pub unsafe fn get_pivot_offset(&self) -> Vector2 {
Control_get_pivot_offset(self.this)
}
#[inline]
pub unsafe fn get_custom_minimum_size(&self) -> Vector2 {
Control_get_custom_minimum_size(self.this)
}
#[inline]
pub unsafe fn get_parent_area_size(&self) -> Vector2 {
Control_get_parent_area_size(self.this)
}
#[inline]
pub unsafe fn get_global_position(&self) -> Vector2 {
Control_get_global_position(self.this)
}
#[inline]
pub unsafe fn get_rect(&self) -> Rect2 {
Control_get_rect(self.this)
}
#[inline]
pub unsafe fn get_global_rect(&self) -> Rect2 {
Control_get_global_rect(self.this)
}
#[inline]
pub unsafe fn show_modal(&mut self, exclusive: bool) -> () {
Control_show_modal(self.this, exclusive)
}
#[inline]
pub unsafe fn set_focus_mode(&mut self, mode: i64) -> () {
Control_set_focus_mode(self.this, mode)
}
#[inline]
pub unsafe fn get_focus_mode(&self) -> ControlFocusMode {
Control_get_focus_mode(self.this)
}
#[inline]
pub unsafe fn has_focus(&self) -> bool {
Control_has_focus(self.this)
}
#[inline]
pub unsafe fn grab_focus(&mut self) -> () {
Control_grab_focus(self.this)
}
#[inline]
pub unsafe fn release_focus(&mut self) -> () {
Control_release_focus(self.this)
}
#[inline]
pub unsafe fn get_focus_owner(&self) -> Option<Control> {
Control_get_focus_owner(self.this)
}
#[inline]
pub unsafe fn set_h_size_flags(&mut self, flags: i64) -> () {
Control_set_h_size_flags(self.this, flags)
}
#[inline]
pub unsafe fn get_h_size_flags(&self) -> i64 {
Control_get_h_size_flags(self.this)
}
#[inline]
pub unsafe fn set_stretch_ratio(&mut self, ratio: f64) -> () {
Control_set_stretch_ratio(self.this, ratio)
}
#[inline]
pub unsafe fn get_stretch_ratio(&self) -> f64 {
Control_get_stretch_ratio(self.this)
}
#[inline]
pub unsafe fn set_v_size_flags(&mut self, flags: i64) -> () {
Control_set_v_size_flags(self.this, flags)
}
#[inline]
pub unsafe fn get_v_size_flags(&self) -> i64 {
Control_get_v_size_flags(self.this)
}
#[inline]
pub unsafe fn set_theme(&mut self, theme: Option<Theme>) -> () {
Control_set_theme(self.this, theme)
}
#[inline]
pub unsafe fn get_theme(&self) -> Option<Theme> {
Control_get_theme(self.this)
}
#[inline]
pub unsafe fn add_icon_override(&mut self, name: GodotString, texture: Option<Texture>) -> () {
Control_add_icon_override(self.this, name, texture)
}
#[inline]
pub unsafe fn add_shader_override(&mut self, name: GodotString, shader: Option<Shader>) -> () {
Control_add_shader_override(self.this, name, shader)
}
#[inline]
pub unsafe fn add_stylebox_override(&mut self, name: GodotString, stylebox: Option<StyleBox>) -> () {
Control_add_stylebox_override(self.this, name, stylebox)
}
#[inline]
pub unsafe fn add_font_override(&mut self, name: GodotString, font: Option<Font>) -> () {
Control_add_font_override(self.this, name, font)
}
#[inline]
pub unsafe fn add_color_override(&mut self, name: GodotString, color: Color) -> () {
Control_add_color_override(self.this, name, color)
}
#[inline]
pub unsafe fn add_constant_override(&mut self, name: GodotString, constant: i64) -> () {
Control_add_constant_override(self.this, name, constant)
}
#[inline]
pub unsafe fn get_icon(&self, name: GodotString, _type: GodotString) -> Option<Texture> {
Control_get_icon(self.this, name, _type)
}
#[inline]
pub unsafe fn get_stylebox(&self, name: GodotString, _type: GodotString) -> Option<StyleBox> {
Control_get_stylebox(self.this, name, _type)
}
#[inline]
pub unsafe fn get_font(&self, name: GodotString, _type: GodotString) -> Option<Font> {
Control_get_font(self.this, name, _type)
}
#[inline]
pub unsafe fn get_color(&self, name: GodotString, _type: GodotString) -> Color {
Control_get_color(self.this, name, _type)
}
#[inline]
pub unsafe fn get_constant(&self, name: GodotString, _type: GodotString) -> i64 {
Control_get_constant(self.this, name, _type)
}
#[inline]
pub unsafe fn has_icon_override(&self, name: GodotString) -> bool {
Control_has_icon_override(self.this, name)
}
#[inline]
pub unsafe fn has_shader_override(&self, name: GodotString) -> bool {
Control_has_shader_override(self.this, name)
}
#[inline]
pub unsafe fn has_stylebox_override(&self, name: GodotString) -> bool {
Control_has_stylebox_override(self.this, name)
}
#[inline]
pub unsafe fn has_font_override(&self, name: GodotString) -> bool {
Control_has_font_override(self.this, name)
}
#[inline]
pub unsafe fn has_color_override(&self, name: GodotString) -> bool {
Control_has_color_override(self.this, name)
}
#[inline]
pub unsafe fn has_constant_override(&self, name: GodotString) -> bool {
Control_has_constant_override(self.this, name)
}
#[inline]
pub unsafe fn has_icon(&self, name: GodotString, _type: GodotString) -> bool {
Control_has_icon(self.this, name, _type)
}
#[inline]
pub unsafe fn has_stylebox(&self, name: GodotString, _type: GodotString) -> bool {
Control_has_stylebox(self.this, name, _type)
}
#[inline]
pub unsafe fn has_font(&self, name: GodotString, _type: GodotString) -> bool {
Control_has_font(self.this, name, _type)
}
#[inline]
pub unsafe fn has_color(&self, name: GodotString, _type: GodotString) -> bool {
Control_has_color(self.this, name, _type)
}
#[inline]
pub unsafe fn has_constant(&self, name: GodotString, _type: GodotString) -> bool {
Control_has_constant(self.this, name, _type)
}
#[inline]
pub unsafe fn get_parent_control(&self) -> Option<Control> {
Control_get_parent_control(self.this)
}
#[inline]
pub unsafe fn set_h_grow_direction(&mut self, direction: i64) -> () {
Control_set_h_grow_direction(self.this, direction)
}
#[inline]
pub unsafe fn get_h_grow_direction(&self) -> ControlGrowDirection {
Control_get_h_grow_direction(self.this)
}
#[inline]
pub unsafe fn set_v_grow_direction(&mut self, direction: i64) -> () {
Control_set_v_grow_direction(self.this, direction)
}
#[inline]
pub unsafe fn get_v_grow_direction(&self) -> ControlGrowDirection {
Control_get_v_grow_direction(self.this)
}
#[inline]
pub unsafe fn set_tooltip(&mut self, tooltip: GodotString) -> () {
Control_set_tooltip(self.this, tooltip)
}
#[inline]
pub unsafe fn get_tooltip(&self, at_position: Vector2) -> GodotString {
Control_get_tooltip(self.this, at_position)
}
#[inline]
pub unsafe fn _get_tooltip(&self) -> GodotString {
Control__get_tooltip(self.this)
}
#[inline]
pub unsafe fn set_default_cursor_shape(&mut self, shape: i64) -> () {
Control_set_default_cursor_shape(self.this, shape)
}
#[inline]
pub unsafe fn get_default_cursor_shape(&self) -> ControlCursorShape {
Control_get_default_cursor_shape(self.this)
}
#[inline]
pub unsafe fn get_cursor_shape(&self, position: Vector2) -> ControlCursorShape {
Control_get_cursor_shape(self.this, position)
}
#[inline]
pub unsafe fn set_focus_neighbour(&mut self, margin: i64, neighbour: NodePath) -> () {
Control_set_focus_neighbour(self.this, margin, neighbour)
}
#[inline]
pub unsafe fn get_focus_neighbour(&self, margin: i64) -> NodePath {
Control_get_focus_neighbour(self.this, margin)
}
#[inline]
pub unsafe fn set_focus_next(&mut self, next: NodePath) -> () {
Control_set_focus_next(self.this, next)
}
#[inline]
pub unsafe fn get_focus_next(&self) -> NodePath {
Control_get_focus_next(self.this)
}
#[inline]
pub unsafe fn set_focus_previous(&mut self, previous: NodePath) -> () {
Control_set_focus_previous(self.this, previous)
}
#[inline]
pub unsafe fn get_focus_previous(&self) -> NodePath {
Control_get_focus_previous(self.this)
}
#[inline]
pub unsafe fn force_drag(&mut self, data: Variant, preview: Option<Object>) -> () {
Control_force_drag(self.this, data, preview)
}
#[inline]
pub unsafe fn set_mouse_filter(&mut self, filter: i64) -> () {
Control_set_mouse_filter(self.this, filter)
}
#[inline]
pub unsafe fn get_mouse_filter(&self) -> ControlMouseFilter {
Control_get_mouse_filter(self.this)
}
#[inline]
pub unsafe fn set_clip_contents(&mut self, enable: bool) -> () {
Control_set_clip_contents(self.this, enable)
}
#[inline]
pub unsafe fn is_clipping_contents(&mut self) -> bool {
Control_is_clipping_contents(self.this)
}
#[inline]
pub unsafe fn grab_click_focus(&mut self) -> () {
Control_grab_click_focus(self.this)
}
#[inline]
pub unsafe fn set_drag_forwarding(&mut self, target: Option<Object>) -> () {
Control_set_drag_forwarding(self.this, target)
}
#[inline]
pub unsafe fn set_drag_preview(&mut self, control: Option<Object>) -> () {
Control_set_drag_preview(self.this, control)
}
#[inline]
pub unsafe fn warp_mouse(&mut self, to_position: Vector2) -> () {
Control_warp_mouse(self.this, to_position)
}
#[inline]
pub unsafe fn minimum_size_changed(&mut self) -> () {
Control_minimum_size_changed(self.this)
}
#[inline]
pub unsafe fn _theme_changed(&mut self) -> () {
Control__theme_changed(self.this)
}
#[inline]
pub unsafe fn _font_changed(&mut self) -> () {
Control__font_changed(self.this)
}
#[inline]
pub unsafe fn _draw(&mut self) -> () {
CanvasItem__draw(self.this)
}
#[inline]
pub unsafe fn _toplevel_raise_self(&mut self) -> () {
CanvasItem__toplevel_raise_self(self.this)
}
#[inline]
pub unsafe fn _update_callback(&mut self) -> () {
CanvasItem__update_callback(self.this)
}
#[inline]
pub unsafe fn _edit_set_state(&mut self, state: Dictionary) -> () {
CanvasItem__edit_set_state(self.this, state)
}
#[inline]
pub unsafe fn _edit_get_state(&self) -> Dictionary {
CanvasItem__edit_get_state(self.this)
}
#[inline]
pub unsafe fn _edit_set_position(&mut self, position: Vector2) -> () {
CanvasItem__edit_set_position(self.this, position)
}
#[inline]
pub unsafe fn _edit_get_position(&self) -> Vector2 {
CanvasItem__edit_get_position(self.this)
}
#[inline]
pub unsafe fn _edit_set_scale(&mut self, scale: Vector2) -> () {
CanvasItem__edit_set_scale(self.this, scale)
}
#[inline]
pub unsafe fn _edit_get_scale(&self) -> Vector2 {
CanvasItem__edit_get_scale(self.this)
}
#[inline]
pub unsafe fn _edit_set_rect(&mut self, rect: Rect2) -> () {
CanvasItem__edit_set_rect(self.this, rect)
}
#[inline]
pub unsafe fn _edit_get_rect(&self) -> Rect2 {
CanvasItem__edit_get_rect(self.this)
}
#[inline]
pub unsafe fn _edit_use_rect(&self) -> bool {
CanvasItem__edit_use_rect(self.this)
}
#[inline]
pub unsafe fn _edit_set_rotation(&mut self, degrees: f64) -> () {
CanvasItem__edit_set_rotation(self.this, degrees)
}
#[inline]
pub unsafe fn _edit_get_rotation(&self) -> f64 {
CanvasItem__edit_get_rotation(self.this)
}
#[inline]
pub unsafe fn _edit_use_rotation(&self) -> bool {
CanvasItem__edit_use_rotation(self.this)
}
#[inline]
pub unsafe fn _edit_set_pivot(&mut self, pivot: Vector2) -> () {
CanvasItem__edit_set_pivot(self.this, pivot)
}
#[inline]
pub unsafe fn _edit_get_pivot(&self) -> Vector2 {
CanvasItem__edit_get_pivot(self.this)
}
#[inline]
pub unsafe fn _edit_use_pivot(&self) -> bool {
CanvasItem__edit_use_pivot(self.this)
}
#[inline]
pub unsafe fn get_canvas_item(&self) -> Rid {
CanvasItem_get_canvas_item(self.this)
}
#[inline]
pub unsafe fn set_visible(&mut self, visible: bool) -> () {
CanvasItem_set_visible(self.this, visible)
}
#[inline]
pub unsafe fn is_visible(&self) -> bool {
CanvasItem_is_visible(self.this)
}
#[inline]
pub unsafe fn is_visible_in_tree(&self) -> bool {
CanvasItem_is_visible_in_tree(self.this)
}
#[inline]
pub unsafe fn show(&mut self) -> () {
CanvasItem_show(self.this)
}
#[inline]
pub unsafe fn hide(&mut self) -> () {
CanvasItem_hide(self.this)
}
#[inline]
pub unsafe fn update(&mut self) -> () {
CanvasItem_update(self.this)
}
#[inline]
pub unsafe fn set_as_toplevel(&mut self, enable: bool) -> () {
CanvasItem_set_as_toplevel(self.this, enable)
}
#[inline]
pub unsafe fn is_set_as_toplevel(&self) -> bool {
CanvasItem_is_set_as_toplevel(self.this)
}
#[inline]
pub unsafe fn set_light_mask(&mut self, light_mask: i64) -> () {
CanvasItem_set_light_mask(self.this, light_mask)
}
#[inline]
pub unsafe fn get_light_mask(&self) -> i64 {
CanvasItem_get_light_mask(self.this)
}
#[inline]
pub unsafe fn set_modulate(&mut self, modulate: Color) -> () {
CanvasItem_set_modulate(self.this, modulate)
}
#[inline]
pub unsafe fn get_modulate(&self) -> Color {
CanvasItem_get_modulate(self.this)
}
#[inline]
pub unsafe fn set_self_modulate(&mut self, self_modulate: Color) -> () {
CanvasItem_set_self_modulate(self.this, self_modulate)
}
#[inline]
pub unsafe fn get_self_modulate(&self) -> Color {
CanvasItem_get_self_modulate(self.this)
}
#[inline]
pub unsafe fn set_draw_behind_parent(&mut self, enable: bool) -> () {
CanvasItem_set_draw_behind_parent(self.this, enable)
}
#[inline]
pub unsafe fn is_draw_behind_parent_enabled(&self) -> bool {
CanvasItem_is_draw_behind_parent_enabled(self.this)
}
#[inline]
pub unsafe fn _set_on_top(&mut self, on_top: bool) -> () {
CanvasItem__set_on_top(self.this, on_top)
}
#[inline]
pub unsafe fn _is_on_top(&self) -> bool {
CanvasItem__is_on_top(self.this)
}
#[inline]
pub unsafe fn draw_line(&mut self, from: Vector2, to: Vector2, color: Color, width: f64, antialiased: bool) -> () {
CanvasItem_draw_line(self.this, from, to, color, width, antialiased)
}
#[inline]
pub unsafe fn draw_polyline(&mut self, points: Vector2Array, color: Color, width: f64, antialiased: bool) -> () {
CanvasItem_draw_polyline(self.this, points, color, width, antialiased)
}
#[inline]
pub unsafe fn draw_polyline_colors(&mut self, points: Vector2Array, colors: ColorArray, width: f64, antialiased: bool) -> () {
CanvasItem_draw_polyline_colors(self.this, points, colors, width, antialiased)
}
#[inline]
pub unsafe fn draw_multiline(&mut self, points: Vector2Array, color: Color, width: f64, antialiased: bool) -> () {
CanvasItem_draw_multiline(self.this, points, color, width, antialiased)
}
#[inline]
pub unsafe fn draw_multiline_colors(&mut self, points: Vector2Array, colors: ColorArray, width: f64, antialiased: bool) -> () {
CanvasItem_draw_multiline_colors(self.this, points, colors, width, antialiased)
}
#[inline]
pub unsafe fn draw_rect(&mut self, rect: Rect2, color: Color, filled: bool) -> () {
CanvasItem_draw_rect(self.this, rect, color, filled)
}
#[inline]
pub unsafe fn draw_circle(&mut self, position: Vector2, radius: f64, color: Color) -> () {
CanvasItem_draw_circle(self.this, position, radius, color)
}
#[inline]
pub unsafe fn draw_texture(&mut self, texture: Option<Texture>, position: Vector2, modulate: Color, normal_map: Option<Texture>) -> () {
CanvasItem_draw_texture(self.this, texture, position, modulate, normal_map)
}
#[inline]
pub unsafe fn draw_texture_rect(&mut self, texture: Option<Texture>, rect: Rect2, tile: bool, modulate: Color, transpose: bool, normal_map: Option<Texture>) -> () {
CanvasItem_draw_texture_rect(self.this, texture, rect, tile, modulate, transpose, normal_map)
}
#[inline]
pub unsafe fn draw_texture_rect_region(&mut self, texture: Option<Texture>, rect: Rect2, src_rect: Rect2, modulate: Color, transpose: bool, normal_map: Option<Texture>, clip_uv: bool) -> () {
CanvasItem_draw_texture_rect_region(self.this, texture, rect, src_rect, modulate, transpose, normal_map, clip_uv)
}
#[inline]
pub unsafe fn draw_style_box(&mut self, style_box: Option<StyleBox>, rect: Rect2) -> () {
CanvasItem_draw_style_box(self.this, style_box, rect)
}
#[inline]
pub unsafe fn draw_primitive(&mut self, points: Vector2Array, colors: ColorArray, uvs: Vector2Array, texture: Option<Texture>, width: f64, normal_map: Option<Texture>) -> () {
CanvasItem_draw_primitive(self.this, points, colors, uvs, texture, width, normal_map)
}
#[inline]
pub unsafe fn draw_polygon(&mut self, points: Vector2Array, colors: ColorArray, uvs: Vector2Array, texture: Option<Texture>, normal_map: Option<Texture>, antialiased: bool) -> () {
CanvasItem_draw_polygon(self.this, points, colors, uvs, texture, normal_map, antialiased)
}
#[inline]
pub unsafe fn draw_colored_polygon(&mut self, points: Vector2Array, color: Color, uvs: Vector2Array, texture: Option<Texture>, normal_map: Option<Texture>, antialiased: bool) -> () {
CanvasItem_draw_colored_polygon(self.this, points, color, uvs, texture, normal_map, antialiased)
}
#[inline]
pub unsafe fn draw_string(&mut self, font: Option<Font>, position: Vector2, text: GodotString, modulate: Color, clip_w: i64) -> () {
CanvasItem_draw_string(self.this, font, position, text, modulate, clip_w)
}
#[inline]
pub unsafe fn draw_char(&mut self, font: Option<Font>, position: Vector2, char: GodotString, next: GodotString, modulate: Color) -> f64 {
CanvasItem_draw_char(self.this, font, position, char, next, modulate)
}
#[inline]
pub unsafe fn draw_mesh(&mut self, mesh: Option<Mesh>, texture: Option<Texture>, normal_map: Option<Texture>) -> () {
CanvasItem_draw_mesh(self.this, mesh, texture, normal_map)
}
#[inline]
pub unsafe fn draw_multimesh(&mut self, mesh: Option<Mesh>, texture: Option<Texture>, normal_map: Option<Texture>) -> () {
CanvasItem_draw_multimesh(self.this, mesh, texture, normal_map)
}
#[inline]
pub unsafe fn draw_set_transform(&mut self, position: Vector2, rotation: f64, scale: Vector2) -> () {
CanvasItem_draw_set_transform(self.this, position, rotation, scale)
}
#[inline]
pub unsafe fn draw_set_transform_matrix(&mut self, xform: Transform2D) -> () {
CanvasItem_draw_set_transform_matrix(self.this, xform)
}
#[inline]
pub unsafe fn get_transform(&self) -> Transform2D {
CanvasItem_get_transform(self.this)
}
#[inline]
pub unsafe fn get_global_transform(&self) -> Transform2D {
CanvasItem_get_global_transform(self.this)
}
#[inline]
pub unsafe fn get_global_transform_with_canvas(&self) -> Transform2D {
CanvasItem_get_global_transform_with_canvas(self.this)
}
#[inline]
pub unsafe fn get_viewport_transform(&self) -> Transform2D {
CanvasItem_get_viewport_transform(self.this)
}
#[inline]
pub unsafe fn get_viewport_rect(&self) -> Rect2 {
CanvasItem_get_viewport_rect(self.this)
}
#[inline]
pub unsafe fn get_canvas_transform(&self) -> Transform2D {
CanvasItem_get_canvas_transform(self.this)
}
#[inline]
pub unsafe fn get_local_mouse_position(&self) -> Vector2 {
CanvasItem_get_local_mouse_position(self.this)
}
#[inline]
pub unsafe fn get_global_mouse_position(&self) -> Vector2 {
CanvasItem_get_global_mouse_position(self.this)
}
#[inline]
pub unsafe fn get_canvas(&self) -> Rid {
CanvasItem_get_canvas(self.this)
}
#[inline]
pub unsafe fn get_world_2d(&self) -> Option<World2D> {
CanvasItem_get_world_2d(self.this)
}
#[inline]
pub unsafe fn set_material(&mut self, material: Option<Material>) -> () {
CanvasItem_set_material(self.this, material)
}
#[inline]
pub unsafe fn get_material(&self) -> Option<Material> {
CanvasItem_get_material(self.this)
}
#[inline]
pub unsafe fn set_use_parent_material(&mut self, enable: bool) -> () {
CanvasItem_set_use_parent_material(self.this, enable)
}
#[inline]
pub unsafe fn get_use_parent_material(&self) -> bool {
CanvasItem_get_use_parent_material(self.this)
}
#[inline]
pub unsafe fn set_notify_local_transform(&mut self, enable: bool) -> () {
CanvasItem_set_notify_local_transform(self.this, enable)
}
#[inline]
pub unsafe fn is_local_transform_notification_enabled(&self) -> bool {
CanvasItem_is_local_transform_notification_enabled(self.this)
}
#[inline]
pub unsafe fn set_notify_transform(&mut self, enable: bool) -> () {
CanvasItem_set_notify_transform(self.this, enable)
}
#[inline]
pub unsafe fn is_transform_notification_enabled(&self) -> bool {
CanvasItem_is_transform_notification_enabled(self.this)
}
#[inline]
pub unsafe fn make_canvas_position_local(&self, screen_point: Vector2) -> Vector2 {
CanvasItem_make_canvas_position_local(self.this, screen_point)
}
#[inline]
pub unsafe fn make_input_local(&self, event: Option<InputEvent>) -> Option<InputEvent> {
CanvasItem_make_input_local(self.this, event)
}
#[inline]
pub unsafe fn _process(&mut self, delta: f64) -> () {
Node__process(self.this, delta)
}
#[inline]
pub unsafe fn _physics_process(&mut self, delta: f64) -> () {
Node__physics_process(self.this, delta)
}
#[inline]
pub unsafe fn _enter_tree(&mut self) -> () {
Node__enter_tree(self.this)
}
#[inline]
pub unsafe fn _exit_tree(&mut self) -> () {
Node__exit_tree(self.this)
}
#[inline]
pub unsafe fn _ready(&mut self) -> () {
Node__ready(self.this)
}
#[inline]
pub unsafe fn _input(&mut self, event: Option<InputEvent>) -> () {
Node__input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_key_input(&mut self, event: Option<InputEventKey>) -> () {
Node__unhandled_key_input(self.this, event)
}
#[inline]
pub unsafe fn add_child_below_node(&mut self, node: Option<Object>, child_node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child_below_node(self.this, node, child_node, legible_unique_name)
}
#[inline]
pub unsafe fn set_name(&mut self, name: GodotString) -> () {
Node_set_name(self.this, name)
}
#[inline]
pub unsafe fn get_name(&self) -> GodotString {
Node_get_name(self.this)
}
#[inline]
pub unsafe fn add_child(&mut self, node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child(self.this, node, legible_unique_name)
}
#[inline]
pub unsafe fn remove_child(&mut self, node: Option<Object>) -> () {
Node_remove_child(self.this, node)
}
#[inline]
pub unsafe fn get_child_count(&self) -> i64 {
Node_get_child_count(self.this)
}
#[inline]
pub unsafe fn get_children(&self) -> VariantArray {
Node_get_children(self.this)
}
#[inline]
pub unsafe fn get_child(&self, idx: i64) -> Option<Node> {
Node_get_child(self.this, idx)
}
#[inline]
pub unsafe fn has_node(&self, path: NodePath) -> bool {
Node_has_node(self.this, path)
}
#[inline]
pub unsafe fn get_node(&self, path: NodePath) -> Option<Node> {
Node_get_node(self.this, path)
}
#[inline]
pub unsafe fn get_parent(&self) -> Option<Node> {
Node_get_parent(self.this)
}
#[inline]
pub unsafe fn find_node(&self, mask: GodotString, recursive: bool, owned: bool) -> Option<Node> {
Node_find_node(self.this, mask, recursive, owned)
}
#[inline]
pub unsafe fn has_node_and_resource(&self, path: NodePath) -> bool {
Node_has_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn get_node_and_resource(&mut self, path: NodePath) -> VariantArray {
Node_get_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn is_inside_tree(&self) -> bool {
Node_is_inside_tree(self.this)
}
#[inline]
pub unsafe fn is_a_parent_of(&self, node: Option<Object>) -> bool {
Node_is_a_parent_of(self.this, node)
}
#[inline]
pub unsafe fn is_greater_than(&self, node: Option<Object>) -> bool {
Node_is_greater_than(self.this, node)
}
#[inline]
pub unsafe fn get_path(&self) -> NodePath {
Node_get_path(self.this)
}
#[inline]
pub unsafe fn get_path_to(&self, node: Option<Object>) -> NodePath {
Node_get_path_to(self.this, node)
}
#[inline]
pub unsafe fn add_to_group(&mut self, group: GodotString, persistent: bool) -> () {
Node_add_to_group(self.this, group, persistent)
}
#[inline]
pub unsafe fn remove_from_group(&mut self, group: GodotString) -> () {
Node_remove_from_group(self.this, group)
}
#[inline]
pub unsafe fn is_in_group(&self, group: GodotString) -> bool {
Node_is_in_group(self.this, group)
}
#[inline]
pub unsafe fn move_child(&mut self, child_node: Option<Object>, to_position: i64) -> () {
Node_move_child(self.this, child_node, to_position)
}
#[inline]
pub unsafe fn get_groups(&self) -> VariantArray {
Node_get_groups(self.this)
}
#[inline]
pub unsafe fn raise(&mut self) -> () {
Node_raise(self.this)
}
#[inline]
pub unsafe fn set_owner(&mut self, owner: Option<Object>) -> () {
Node_set_owner(self.this, owner)
}
#[inline]
pub unsafe fn get_owner(&self) -> Option<Node> {
Node_get_owner(self.this)
}
#[inline]
pub unsafe fn remove_and_skip(&mut self) -> () {
Node_remove_and_skip(self.this)
}
#[inline]
pub unsafe fn get_index(&self) -> i64 {
Node_get_index(self.this)
}
#[inline]
pub unsafe fn print_tree(&mut self) -> () {
Node_print_tree(self.this)
}
#[inline]
pub unsafe fn print_tree_pretty(&mut self) -> () {
Node_print_tree_pretty(self.this)
}
#[inline]
pub unsafe fn set_filename(&mut self, filename: GodotString) -> () {
Node_set_filename(self.this, filename)
}
#[inline]
pub unsafe fn get_filename(&self) -> GodotString {
Node_get_filename(self.this)
}
#[inline]
pub unsafe fn propagate_notification(&mut self, what: i64) -> () {
Node_propagate_notification(self.this, what)
}
#[inline]
pub unsafe fn propagate_call(&mut self, method: GodotString, args: VariantArray, parent_first: bool) -> () {
Node_propagate_call(self.this, method, args, parent_first)
}
#[inline]
pub unsafe fn set_physics_process(&mut self, enable: bool) -> () {
Node_set_physics_process(self.this, enable)
}
#[inline]
pub unsafe fn get_physics_process_delta_time(&self) -> f64 {
Node_get_physics_process_delta_time(self.this)
}
#[inline]
pub unsafe fn is_physics_processing(&self) -> bool {
Node_is_physics_processing(self.this)
}
#[inline]
pub unsafe fn get_process_delta_time(&self) -> f64 {
Node_get_process_delta_time(self.this)
}
#[inline]
pub unsafe fn set_process(&mut self, enable: bool) -> () {
Node_set_process(self.this, enable)
}
#[inline]
pub unsafe fn set_process_priority(&mut self, priority: i64) -> () {
Node_set_process_priority(self.this, priority)
}
#[inline]
pub unsafe fn is_processing(&self) -> bool {
Node_is_processing(self.this)
}
#[inline]
pub unsafe fn set_process_input(&mut self, enable: bool) -> () {
Node_set_process_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_input(&self) -> bool {
Node_is_processing_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_input(&self) -> bool {
Node_is_processing_unhandled_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_key_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_key_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_key_input(&self) -> bool {
Node_is_processing_unhandled_key_input(self.this)
}
#[inline]
pub unsafe fn set_pause_mode(&mut self, mode: i64) -> () {
Node_set_pause_mode(self.this, mode)
}
#[inline]
pub unsafe fn get_pause_mode(&self) -> NodePauseMode {
Node_get_pause_mode(self.this)
}
#[inline]
pub unsafe fn can_process(&self) -> bool {
Node_can_process(self.this)
}
#[inline]
pub unsafe fn print_stray_nodes(&mut self) -> () {
Node_print_stray_nodes(self.this)
}
#[inline]
pub unsafe fn get_position_in_parent(&self) -> i64 {
Node_get_position_in_parent(self.this)
}
#[inline]
pub unsafe fn set_display_folded(&mut self, fold: bool) -> () {
Node_set_display_folded(self.this, fold)
}
#[inline]
pub unsafe fn is_displayed_folded(&self) -> bool {
Node_is_displayed_folded(self.this)
}
#[inline]
pub unsafe fn set_process_internal(&mut self, enable: bool) -> () {
Node_set_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_internal(&self) -> bool {
Node_is_processing_internal(self.this)
}
#[inline]
pub unsafe fn set_physics_process_internal(&mut self, enable: bool) -> () {
Node_set_physics_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_physics_processing_internal(&self) -> bool {
Node_is_physics_processing_internal(self.this)
}
#[inline]
pub unsafe fn get_tree(&self) -> Option<SceneTree> {
Node_get_tree(self.this)
}
#[inline]
pub unsafe fn duplicate(&self, flags: i64) -> Option<Node> {
Node_duplicate(self.this, flags)
}
#[inline]
pub unsafe fn replace_by(&mut self, node: Option<Object>, keep_data: bool) -> () {
Node_replace_by(self.this, node, keep_data)
}
#[inline]
pub unsafe fn set_scene_instance_load_placeholder(&mut self, load_placeholder: bool) -> () {
Node_set_scene_instance_load_placeholder(self.this, load_placeholder)
}
#[inline]
pub unsafe fn get_scene_instance_load_placeholder(&self) -> bool {
Node_get_scene_instance_load_placeholder(self.this)
}
#[inline]
pub unsafe fn get_viewport(&self) -> Option<Viewport> {
Node_get_viewport(self.this)
}
#[inline]
pub unsafe fn queue_free(&mut self) -> () {
Node_queue_free(self.this)
}
#[inline]
pub unsafe fn request_ready(&mut self) -> () {
Node_request_ready(self.this)
}
#[inline]
pub unsafe fn set_network_master(&mut self, id: i64, recursive: bool) -> () {
Node_set_network_master(self.this, id, recursive)
}
#[inline]
pub unsafe fn get_network_master(&self) -> i64 {
Node_get_network_master(self.this)
}
#[inline]
pub unsafe fn is_network_master(&self) -> bool {
Node_is_network_master(self.this)
}
#[inline]
pub unsafe fn get_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_multiplayer(self.this)
}
#[inline]
pub unsafe fn get_custom_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_custom_multiplayer(self.this)
}
#[inline]
pub unsafe fn set_custom_multiplayer(&mut self, api: Option<MultiplayerAPI>) -> () {
Node_set_custom_multiplayer(self.this, api)
}
#[inline]
pub unsafe fn rpc_config(&mut self, method: GodotString, mode: i64) -> () {
Node_rpc_config(self.this, method, mode)
}
#[inline]
pub unsafe fn rset_config(&mut self, property: GodotString, mode: i64) -> () {
Node_rset_config(self.this, property, mode)
}
#[inline]
pub unsafe fn _set_import_path(&mut self, import_path: NodePath) -> () {
Node__set_import_path(self.this, import_path)
}
#[inline]
pub unsafe fn _get_import_path(&self) -> NodePath {
Node__get_import_path(self.this)
}
#[inline]
pub unsafe fn rpc(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rset(&mut self, property: GodotString, value: Variant) -> () {
Node_rset(self.this, property, value)
}
#[inline]
pub unsafe fn rset_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn rset_unreliable(&mut self, property: GodotString, value: Variant) -> () {
Node_rset_unreliable(self.this, property, value)
}
#[inline]
pub unsafe fn rset_unreliable_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_unreliable_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn _notification(&mut self, what: i64) -> () {
Object__notification(self.this, what)
}
#[inline]
pub unsafe fn _set(&mut self, property: GodotString, value: Variant) -> bool {
Object__set(self.this, property, value)
}
#[inline]
pub unsafe fn _get(&mut self, property: GodotString) -> Variant {
Object__get(self.this, property)
}
#[inline]
pub unsafe fn _get_property_list(&mut self) -> VariantArray {
Object__get_property_list(self.this)
}
#[inline]
pub unsafe fn _init(&mut self) -> () {
Object__init(self.this)
}
#[inline]
pub unsafe fn get_class(&self) -> GodotString {
Object_get_class(self.this)
}
#[inline]
pub unsafe fn is_class(&self, _type: GodotString) -> bool {
Object_is_class(self.this, _type)
}
#[inline]
pub unsafe fn set(&mut self, property: GodotString, value: Variant) -> () {
Object_set(self.this, property, value)
}
#[inline]
pub unsafe fn get(&self, property: GodotString) -> Variant {
Object_get(self.this, property)
}
#[inline]
pub unsafe fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
Object_set_indexed(self.this, property, value)
}
#[inline]
pub unsafe fn get_indexed(&self, property: NodePath) -> Variant {
Object_get_indexed(self.this, property)
}
#[inline]
pub unsafe fn get_property_list(&self) -> VariantArray {
Object_get_property_list(self.this)
}
#[inline]
pub unsafe fn get_method_list(&self) -> VariantArray {
Object_get_method_list(self.this)
}
#[inline]
pub unsafe fn notification(&mut self, what: i64, reversed: bool) -> () {
Object_notification(self.this, what, reversed)
}
#[inline]
pub unsafe fn get_instance_id(&self) -> i64 {
Object_get_instance_id(self.this)
}
#[inline]
pub unsafe fn set_script(&mut self, script: Option<Reference>) -> () {
Object_set_script(self.this, script)
}
#[inline]
pub unsafe fn get_script(&self) -> Option<Reference> {
Object_get_script(self.this)
}
#[inline]
pub unsafe fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
Object_set_meta(self.this, name, value)
}
#[inline]
pub unsafe fn get_meta(&self, name: GodotString) -> Variant {
Object_get_meta(self.this, name)
}
#[inline]
pub unsafe fn has_meta(&self, name: GodotString) -> bool {
Object_has_meta(self.this, name)
}
#[inline]
pub unsafe fn get_meta_list(&self) -> StringArray {
Object_get_meta_list(self.this)
}
#[inline]
pub unsafe fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
Object_add_user_signal(self.this, signal, arguments)
}
#[inline]
pub unsafe fn has_user_signal(&self, signal: GodotString) -> bool {
Object_has_user_signal(self.this, signal)
}
#[inline]
pub unsafe fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
Object_emit_signal(self.this, signal, varargs)
}
#[inline]
pub unsafe fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call(self.this, method, varargs)
}
#[inline]
pub unsafe fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call_deferred(self.this, method, varargs)
}
#[inline]
pub unsafe fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
Object_callv(self.this, method, arg_array)
}
#[inline]
pub unsafe fn has_method(&self, method: GodotString) -> bool {
Object_has_method(self.this, method)
}
#[inline]
pub unsafe fn get_signal_list(&self) -> VariantArray {
Object_get_signal_list(self.this)
}
#[inline]
pub unsafe fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
Object_get_signal_connection_list(self.this, signal)
}
#[inline]
pub unsafe fn get_incoming_connections(&self) -> VariantArray {
Object_get_incoming_connections(self.this)
}
#[inline]
pub unsafe fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
Object_connect(self.this, signal, target, method, binds, flags)
}
#[inline]
pub unsafe fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
Object_disconnect(self.this, signal, target, method)
}
#[inline]
pub unsafe fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
Object_is_connected(self.this, signal, target, method)
}
#[inline]
pub unsafe fn set_block_signals(&mut self, enable: bool) -> () {
Object_set_block_signals(self.this, enable)
}
#[inline]
pub unsafe fn is_blocking_signals(&self) -> bool {
Object_is_blocking_signals(self.this)
}
#[inline]
pub unsafe fn property_list_changed_notify(&mut self) -> () {
Object_property_list_changed_notify(self.this)
}
#[inline]
pub unsafe fn set_message_translation(&mut self, enable: bool) -> () {
Object_set_message_translation(self.this, enable)
}
#[inline]
pub unsafe fn can_translate_messages(&self) -> bool {
Object_can_translate_messages(self.this)
}
#[inline]
pub unsafe fn tr(&self, message: GodotString) -> GodotString {
Object_tr(self.this, message)
}
#[inline]
pub unsafe fn is_queued_for_deletion(&self) -> bool {
Object_is_queued_for_deletion(self.this)
}
#[inline]
pub unsafe fn to_confirmation_dialog(&self) -> ConfirmationDialog {
ConfirmationDialog { this: self.this }
}
#[inline]
pub unsafe fn to_accept_dialog(&self) -> AcceptDialog {
AcceptDialog { this: self.this }
}
#[inline]
pub unsafe fn to_window_dialog(&self) -> WindowDialog {
WindowDialog { this: self.this }
}
#[inline]
pub unsafe fn to_popup(&self) -> Popup {
Popup { this: self.this }
}
#[inline]
pub unsafe fn to_control(&self) -> Control {
Control { this: self.this }
}
#[inline]
pub unsafe fn to_canvas_item(&self) -> CanvasItem {
CanvasItem { this: self.this }
}
#[inline]
pub unsafe fn to_node(&self) -> Node {
Node { this: self.this }
}
#[inline]
pub unsafe fn to_object(&self) -> Object {
Object { this: self.this }
}
pub unsafe fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct EditorScript {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for EditorScript {
fn class_name() -> &'static str {
"EditorScript"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
object::add_ref(obj);
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for EditorScript {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl EditorScript {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = EditorScriptMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
EditorScript {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn _run(&mut self) -> () {
unsafe { EditorScript__run(self.this) }
}
#[inline]
pub fn add_root_node(&mut self, node: Option<Object>) -> () {
unsafe { EditorScript_add_root_node(self.this, node) }
}
#[inline]
pub fn get_scene(&mut self) -> Option<Node> {
unsafe { EditorScript_get_scene(self.this) }
}
#[inline]
pub fn get_editor_interface(&mut self) -> Option<EditorInterface> {
unsafe { EditorScript_get_editor_interface(self.this) }
}
#[inline]
pub fn init_ref(&mut self) -> bool {
unsafe { Reference_init_ref(self.this) }
}
#[inline]
pub fn _notification(&mut self, what: i64) -> () {
unsafe { Object__notification(self.this, what) }
}
#[inline]
pub fn _set(&mut self, property: GodotString, value: Variant) -> bool {
unsafe { Object__set(self.this, property, value) }
}
#[inline]
pub fn _get(&mut self, property: GodotString) -> Variant {
unsafe { Object__get(self.this, property) }
}
#[inline]
pub fn _get_property_list(&mut self) -> VariantArray {
unsafe { Object__get_property_list(self.this) }
}
#[inline]
pub fn _init(&mut self) -> () {
unsafe { Object__init(self.this) }
}
#[inline]
pub fn get_class(&self) -> GodotString {
unsafe { Object_get_class(self.this) }
}
#[inline]
pub fn is_class(&self, _type: GodotString) -> bool {
unsafe { Object_is_class(self.this, _type) }
}
#[inline]
pub fn set(&mut self, property: GodotString, value: Variant) -> () {
unsafe { Object_set(self.this, property, value) }
}
#[inline]
pub fn get(&self, property: GodotString) -> Variant {
unsafe { Object_get(self.this, property) }
}
#[inline]
pub fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
unsafe { Object_set_indexed(self.this, property, value) }
}
#[inline]
pub fn get_indexed(&self, property: NodePath) -> Variant {
unsafe { Object_get_indexed(self.this, property) }
}
#[inline]
pub fn get_property_list(&self) -> VariantArray {
unsafe { Object_get_property_list(self.this) }
}
#[inline]
pub fn get_method_list(&self) -> VariantArray {
unsafe { Object_get_method_list(self.this) }
}
#[inline]
pub fn notification(&mut self, what: i64, reversed: bool) -> () {
unsafe { Object_notification(self.this, what, reversed) }
}
#[inline]
pub fn get_instance_id(&self) -> i64 {
unsafe { Object_get_instance_id(self.this) }
}
#[inline]
pub fn set_script(&mut self, script: Option<Reference>) -> () {
unsafe { Object_set_script(self.this, script) }
}
#[inline]
pub fn get_script(&self) -> Option<Reference> {
unsafe { Object_get_script(self.this) }
}
#[inline]
pub fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
unsafe { Object_set_meta(self.this, name, value) }
}
#[inline]
pub fn get_meta(&self, name: GodotString) -> Variant {
unsafe { Object_get_meta(self.this, name) }
}
#[inline]
pub fn has_meta(&self, name: GodotString) -> bool {
unsafe { Object_has_meta(self.this, name) }
}
#[inline]
pub fn get_meta_list(&self) -> StringArray {
unsafe { Object_get_meta_list(self.this) }
}
#[inline]
pub fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
unsafe { Object_add_user_signal(self.this, signal, arguments) }
}
#[inline]
pub fn has_user_signal(&self, signal: GodotString) -> bool {
unsafe { Object_has_user_signal(self.this, signal) }
}
#[inline]
pub fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_emit_signal(self.this, signal, varargs) }
}
#[inline]
pub fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call(self.this, method, varargs) }
}
#[inline]
pub fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call_deferred(self.this, method, varargs) }
}
#[inline]
pub fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
unsafe { Object_callv(self.this, method, arg_array) }
}
#[inline]
pub fn has_method(&self, method: GodotString) -> bool {
unsafe { Object_has_method(self.this, method) }
}
#[inline]
pub fn get_signal_list(&self) -> VariantArray {
unsafe { Object_get_signal_list(self.this) }
}
#[inline]
pub fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
unsafe { Object_get_signal_connection_list(self.this, signal) }
}
#[inline]
pub fn get_incoming_connections(&self) -> VariantArray {
unsafe { Object_get_incoming_connections(self.this) }
}
#[inline]
pub fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
unsafe { Object_connect(self.this, signal, target, method, binds, flags) }
}
#[inline]
pub fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
unsafe { Object_disconnect(self.this, signal, target, method) }
}
#[inline]
pub fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
unsafe { Object_is_connected(self.this, signal, target, method) }
}
#[inline]
pub fn set_block_signals(&mut self, enable: bool) -> () {
unsafe { Object_set_block_signals(self.this, enable) }
}
#[inline]
pub fn is_blocking_signals(&self) -> bool {
unsafe { Object_is_blocking_signals(self.this) }
}
#[inline]
pub fn property_list_changed_notify(&mut self) -> () {
unsafe { Object_property_list_changed_notify(self.this) }
}
#[inline]
pub fn set_message_translation(&mut self, enable: bool) -> () {
unsafe { Object_set_message_translation(self.this, enable) }
}
#[inline]
pub fn can_translate_messages(&self) -> bool {
unsafe { Object_can_translate_messages(self.this) }
}
#[inline]
pub fn tr(&self, message: GodotString) -> GodotString {
unsafe { Object_tr(self.this, message) }
}
#[inline]
pub fn is_queued_for_deletion(&self) -> bool {
unsafe { Object_is_queued_for_deletion(self.this) }
}
#[inline]
pub fn to_reference(&self) -> Reference {
unsafe {{ object::add_ref(self.this); }}
Reference { this: self.this }
}
#[inline]
pub fn to_object(&self) -> Object {
Object { this: self.this }
}
pub fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
impl Drop for EditorScript {
fn drop(&mut self) {
unsafe {
if object::unref(self.this) {
(get_api().godot_object_destroy)(self.this);
}
}
}
}
#[derive(Copy, Clone)]
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct EditorSelection {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for EditorSelection {
fn class_name() -> &'static str {
"EditorSelection"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for EditorSelection {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl Free for EditorSelection {
unsafe fn godot_free(self) { self.free() }
}
impl EditorSelection {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = EditorSelectionMethodTable::get(gd_api).class_constructor.unwrap();
let this = ctor();
EditorSelection {
this
}
}
}
#[inline]
pub unsafe fn free(self) {
(get_api().godot_object_destroy)(self.this);
}
#[inline]
pub unsafe fn _node_removed(&mut self, arg0: Option<Object>) -> () {
EditorSelection__node_removed(self.this, arg0)
}
#[inline]
pub unsafe fn clear(&mut self) -> () {
EditorSelection_clear(self.this)
}
#[inline]
pub unsafe fn add_node(&mut self, node: Option<Object>) -> () {
EditorSelection_add_node(self.this, node)
}
#[inline]
pub unsafe fn remove_node(&mut self, node: Option<Object>) -> () {
EditorSelection_remove_node(self.this, node)
}
#[inline]
pub unsafe fn get_selected_nodes(&mut self) -> VariantArray {
EditorSelection_get_selected_nodes(self.this)
}
#[inline]
pub unsafe fn get_transformable_selected_nodes(&mut self) -> VariantArray {
EditorSelection_get_transformable_selected_nodes(self.this)
}
#[inline]
pub unsafe fn _emit_change(&mut self) -> () {
EditorSelection__emit_change(self.this)
}
#[inline]
pub unsafe fn _notification(&mut self, what: i64) -> () {
Object__notification(self.this, what)
}
#[inline]
pub unsafe fn _set(&mut self, property: GodotString, value: Variant) -> bool {
Object__set(self.this, property, value)
}
#[inline]
pub unsafe fn _get(&mut self, property: GodotString) -> Variant {
Object__get(self.this, property)
}
#[inline]
pub unsafe fn _get_property_list(&mut self) -> VariantArray {
Object__get_property_list(self.this)
}
#[inline]
pub unsafe fn _init(&mut self) -> () {
Object__init(self.this)
}
#[inline]
pub unsafe fn get_class(&self) -> GodotString {
Object_get_class(self.this)
}
#[inline]
pub unsafe fn is_class(&self, _type: GodotString) -> bool {
Object_is_class(self.this, _type)
}
#[inline]
pub unsafe fn set(&mut self, property: GodotString, value: Variant) -> () {
Object_set(self.this, property, value)
}
#[inline]
pub unsafe fn get(&self, property: GodotString) -> Variant {
Object_get(self.this, property)
}
#[inline]
pub unsafe fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
Object_set_indexed(self.this, property, value)
}
#[inline]
pub unsafe fn get_indexed(&self, property: NodePath) -> Variant {
Object_get_indexed(self.this, property)
}
#[inline]
pub unsafe fn get_property_list(&self) -> VariantArray {
Object_get_property_list(self.this)
}
#[inline]
pub unsafe fn get_method_list(&self) -> VariantArray {
Object_get_method_list(self.this)
}
#[inline]
pub unsafe fn notification(&mut self, what: i64, reversed: bool) -> () {
Object_notification(self.this, what, reversed)
}
#[inline]
pub unsafe fn get_instance_id(&self) -> i64 {
Object_get_instance_id(self.this)
}
#[inline]
pub unsafe fn set_script(&mut self, script: Option<Reference>) -> () {
Object_set_script(self.this, script)
}
#[inline]
pub unsafe fn get_script(&self) -> Option<Reference> {
Object_get_script(self.this)
}
#[inline]
pub unsafe fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
Object_set_meta(self.this, name, value)
}
#[inline]
pub unsafe fn get_meta(&self, name: GodotString) -> Variant {
Object_get_meta(self.this, name)
}
#[inline]
pub unsafe fn has_meta(&self, name: GodotString) -> bool {
Object_has_meta(self.this, name)
}
#[inline]
pub unsafe fn get_meta_list(&self) -> StringArray {
Object_get_meta_list(self.this)
}
#[inline]
pub unsafe fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
Object_add_user_signal(self.this, signal, arguments)
}
#[inline]
pub unsafe fn has_user_signal(&self, signal: GodotString) -> bool {
Object_has_user_signal(self.this, signal)
}
#[inline]
pub unsafe fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
Object_emit_signal(self.this, signal, varargs)
}
#[inline]
pub unsafe fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call(self.this, method, varargs)
}
#[inline]
pub unsafe fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call_deferred(self.this, method, varargs)
}
#[inline]
pub unsafe fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
Object_callv(self.this, method, arg_array)
}
#[inline]
pub unsafe fn has_method(&self, method: GodotString) -> bool {
Object_has_method(self.this, method)
}
#[inline]
pub unsafe fn get_signal_list(&self) -> VariantArray {
Object_get_signal_list(self.this)
}
#[inline]
pub unsafe fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
Object_get_signal_connection_list(self.this, signal)
}
#[inline]
pub unsafe fn get_incoming_connections(&self) -> VariantArray {
Object_get_incoming_connections(self.this)
}
#[inline]
pub unsafe fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
Object_connect(self.this, signal, target, method, binds, flags)
}
#[inline]
pub unsafe fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
Object_disconnect(self.this, signal, target, method)
}
#[inline]
pub unsafe fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
Object_is_connected(self.this, signal, target, method)
}
#[inline]
pub unsafe fn set_block_signals(&mut self, enable: bool) -> () {
Object_set_block_signals(self.this, enable)
}
#[inline]
pub unsafe fn is_blocking_signals(&self) -> bool {
Object_is_blocking_signals(self.this)
}
#[inline]
pub unsafe fn property_list_changed_notify(&mut self) -> () {
Object_property_list_changed_notify(self.this)
}
#[inline]
pub unsafe fn set_message_translation(&mut self, enable: bool) -> () {
Object_set_message_translation(self.this, enable)
}
#[inline]
pub unsafe fn can_translate_messages(&self) -> bool {
Object_can_translate_messages(self.this)
}
#[inline]
pub unsafe fn tr(&self, message: GodotString) -> GodotString {
Object_tr(self.this, message)
}
#[inline]
pub unsafe fn is_queued_for_deletion(&self) -> bool {
Object_is_queued_for_deletion(self.this)
}
#[inline]
pub unsafe fn to_object(&self) -> Object {
Object { this: self.this }
}
pub unsafe fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct EditorImportPlugin {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for EditorImportPlugin {
fn class_name() -> &'static str {
"EditorImportPlugin"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
object::add_ref(obj);
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for EditorImportPlugin {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl EditorImportPlugin {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = EditorImportPluginMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
EditorImportPlugin {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn get_importer_name(&mut self) -> GodotString {
unsafe { EditorImportPlugin_get_importer_name(self.this) }
}
#[inline]
pub fn get_visible_name(&mut self) -> GodotString {
unsafe { EditorImportPlugin_get_visible_name(self.this) }
}
#[inline]
pub fn get_preset_count(&mut self) -> i64 {
unsafe { EditorImportPlugin_get_preset_count(self.this) }
}
#[inline]
pub fn get_preset_name(&mut self, preset: i64) -> GodotString {
unsafe { EditorImportPlugin_get_preset_name(self.this, preset) }
}
#[inline]
pub fn get_recognized_extensions(&mut self) -> VariantArray {
unsafe { EditorImportPlugin_get_recognized_extensions(self.this) }
}
#[inline]
pub fn get_import_options(&mut self, preset: i64) -> VariantArray {
unsafe { EditorImportPlugin_get_import_options(self.this, preset) }
}
#[inline]
pub fn get_save_extension(&mut self) -> GodotString {
unsafe { EditorImportPlugin_get_save_extension(self.this) }
}
#[inline]
pub fn get_resource_type(&mut self) -> GodotString {
unsafe { EditorImportPlugin_get_resource_type(self.this) }
}
#[inline]
pub fn get_priority(&mut self) -> f64 {
unsafe { EditorImportPlugin_get_priority(self.this) }
}
#[inline]
pub fn get_import_order(&mut self) -> i64 {
unsafe { EditorImportPlugin_get_import_order(self.this) }
}
#[inline]
pub fn get_option_visibility(&mut self, option: GodotString, options: Dictionary) -> bool {
unsafe { EditorImportPlugin_get_option_visibility(self.this, option, options) }
}
#[inline]
pub fn import(&mut self, source_file: GodotString, save_path: GodotString, options: Dictionary, r_platform_variants: VariantArray, r_gen_files: VariantArray) -> i64 {
unsafe { EditorImportPlugin_import(self.this, source_file, save_path, options, r_platform_variants, r_gen_files) }
}
#[inline]
pub fn init_ref(&mut self) -> bool {
unsafe { Reference_init_ref(self.this) }
}
#[inline]
pub fn _notification(&mut self, what: i64) -> () {
unsafe { Object__notification(self.this, what) }
}
#[inline]
pub fn _set(&mut self, property: GodotString, value: Variant) -> bool {
unsafe { Object__set(self.this, property, value) }
}
#[inline]
pub fn _get(&mut self, property: GodotString) -> Variant {
unsafe { Object__get(self.this, property) }
}
#[inline]
pub fn _get_property_list(&mut self) -> VariantArray {
unsafe { Object__get_property_list(self.this) }
}
#[inline]
pub fn _init(&mut self) -> () {
unsafe { Object__init(self.this) }
}
#[inline]
pub fn get_class(&self) -> GodotString {
unsafe { Object_get_class(self.this) }
}
#[inline]
pub fn is_class(&self, _type: GodotString) -> bool {
unsafe { Object_is_class(self.this, _type) }
}
#[inline]
pub fn set(&mut self, property: GodotString, value: Variant) -> () {
unsafe { Object_set(self.this, property, value) }
}
#[inline]
pub fn get(&self, property: GodotString) -> Variant {
unsafe { Object_get(self.this, property) }
}
#[inline]
pub fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
unsafe { Object_set_indexed(self.this, property, value) }
}
#[inline]
pub fn get_indexed(&self, property: NodePath) -> Variant {
unsafe { Object_get_indexed(self.this, property) }
}
#[inline]
pub fn get_property_list(&self) -> VariantArray {
unsafe { Object_get_property_list(self.this) }
}
#[inline]
pub fn get_method_list(&self) -> VariantArray {
unsafe { Object_get_method_list(self.this) }
}
#[inline]
pub fn notification(&mut self, what: i64, reversed: bool) -> () {
unsafe { Object_notification(self.this, what, reversed) }
}
#[inline]
pub fn get_instance_id(&self) -> i64 {
unsafe { Object_get_instance_id(self.this) }
}
#[inline]
pub fn set_script(&mut self, script: Option<Reference>) -> () {
unsafe { Object_set_script(self.this, script) }
}
#[inline]
pub fn get_script(&self) -> Option<Reference> {
unsafe { Object_get_script(self.this) }
}
#[inline]
pub fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
unsafe { Object_set_meta(self.this, name, value) }
}
#[inline]
pub fn get_meta(&self, name: GodotString) -> Variant {
unsafe { Object_get_meta(self.this, name) }
}
#[inline]
pub fn has_meta(&self, name: GodotString) -> bool {
unsafe { Object_has_meta(self.this, name) }
}
#[inline]
pub fn get_meta_list(&self) -> StringArray {
unsafe { Object_get_meta_list(self.this) }
}
#[inline]
pub fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
unsafe { Object_add_user_signal(self.this, signal, arguments) }
}
#[inline]
pub fn has_user_signal(&self, signal: GodotString) -> bool {
unsafe { Object_has_user_signal(self.this, signal) }
}
#[inline]
pub fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_emit_signal(self.this, signal, varargs) }
}
#[inline]
pub fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call(self.this, method, varargs) }
}
#[inline]
pub fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call_deferred(self.this, method, varargs) }
}
#[inline]
pub fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
unsafe { Object_callv(self.this, method, arg_array) }
}
#[inline]
pub fn has_method(&self, method: GodotString) -> bool {
unsafe { Object_has_method(self.this, method) }
}
#[inline]
pub fn get_signal_list(&self) -> VariantArray {
unsafe { Object_get_signal_list(self.this) }
}
#[inline]
pub fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
unsafe { Object_get_signal_connection_list(self.this, signal) }
}
#[inline]
pub fn get_incoming_connections(&self) -> VariantArray {
unsafe { Object_get_incoming_connections(self.this) }
}
#[inline]
pub fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
unsafe { Object_connect(self.this, signal, target, method, binds, flags) }
}
#[inline]
pub fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
unsafe { Object_disconnect(self.this, signal, target, method) }
}
#[inline]
pub fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
unsafe { Object_is_connected(self.this, signal, target, method) }
}
#[inline]
pub fn set_block_signals(&mut self, enable: bool) -> () {
unsafe { Object_set_block_signals(self.this, enable) }
}
#[inline]
pub fn is_blocking_signals(&self) -> bool {
unsafe { Object_is_blocking_signals(self.this) }
}
#[inline]
pub fn property_list_changed_notify(&mut self) -> () {
unsafe { Object_property_list_changed_notify(self.this) }
}
#[inline]
pub fn set_message_translation(&mut self, enable: bool) -> () {
unsafe { Object_set_message_translation(self.this, enable) }
}
#[inline]
pub fn can_translate_messages(&self) -> bool {
unsafe { Object_can_translate_messages(self.this) }
}
#[inline]
pub fn tr(&self, message: GodotString) -> GodotString {
unsafe { Object_tr(self.this, message) }
}
#[inline]
pub fn is_queued_for_deletion(&self) -> bool {
unsafe { Object_is_queued_for_deletion(self.this) }
}
#[inline]
pub fn to_reference(&self) -> Reference {
unsafe {{ object::add_ref(self.this); }}
Reference { this: self.this }
}
#[inline]
pub fn to_object(&self) -> Object {
Object { this: self.this }
}
pub fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
impl Drop for EditorImportPlugin {
fn drop(&mut self) {
unsafe {
if object::unref(self.this) {
(get_api().godot_object_destroy)(self.this);
}
}
}
}
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct EditorSpatialGizmo {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for EditorSpatialGizmo {
fn class_name() -> &'static str {
"EditorSpatialGizmo"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
object::add_ref(obj);
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for EditorSpatialGizmo {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl EditorSpatialGizmo {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = EditorSpatialGizmoMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
EditorSpatialGizmo {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn redraw(&mut self) -> () {
unsafe { EditorSpatialGizmo_redraw(self.this) }
}
#[inline]
pub fn get_handle_name(&mut self, index: i64) -> GodotString {
unsafe { EditorSpatialGizmo_get_handle_name(self.this, index) }
}
#[inline]
pub fn get_handle_value(&mut self, index: i64) -> Variant {
unsafe { EditorSpatialGizmo_get_handle_value(self.this, index) }
}
#[inline]
pub fn set_handle(&mut self, index: i64, camera: Option<Camera>, point: Vector2) -> () {
unsafe { EditorSpatialGizmo_set_handle(self.this, index, camera, point) }
}
#[inline]
pub fn commit_handle(&mut self, index: i64, restore: Variant, cancel: bool) -> () {
unsafe { EditorSpatialGizmo_commit_handle(self.this, index, restore, cancel) }
}
#[inline]
pub fn add_lines(&mut self, lines: Vector3Array, material: Option<Material>, billboard: bool) -> () {
unsafe { EditorSpatialGizmo_add_lines(self.this, lines, material, billboard) }
}
#[inline]
pub fn add_mesh(&mut self, mesh: Option<ArrayMesh>, billboard: bool, skeleton: Rid) -> () {
unsafe { EditorSpatialGizmo_add_mesh(self.this, mesh, billboard, skeleton) }
}
#[inline]
pub fn add_collision_segments(&mut self, segments: Vector3Array) -> () {
unsafe { EditorSpatialGizmo_add_collision_segments(self.this, segments) }
}
#[inline]
pub fn add_collision_triangles(&mut self, triangles: Option<TriangleMesh>) -> () {
unsafe { EditorSpatialGizmo_add_collision_triangles(self.this, triangles) }
}
#[inline]
pub fn add_unscaled_billboard(&mut self, material: Option<Material>, default_scale: f64) -> () {
unsafe { EditorSpatialGizmo_add_unscaled_billboard(self.this, material, default_scale) }
}
#[inline]
pub fn add_handles(&mut self, handles: Vector3Array, billboard: bool, secondary: bool) -> () {
unsafe { EditorSpatialGizmo_add_handles(self.this, handles, billboard, secondary) }
}
#[inline]
pub fn set_spatial_node(&mut self, node: Option<Object>) -> () {
unsafe { EditorSpatialGizmo_set_spatial_node(self.this, node) }
}
#[inline]
pub fn clear(&mut self) -> () {
unsafe { EditorSpatialGizmo_clear(self.this) }
}
#[inline]
pub fn init_ref(&mut self) -> bool {
unsafe { Reference_init_ref(self.this) }
}
#[inline]
pub fn _notification(&mut self, what: i64) -> () {
unsafe { Object__notification(self.this, what) }
}
#[inline]
pub fn _set(&mut self, property: GodotString, value: Variant) -> bool {
unsafe { Object__set(self.this, property, value) }
}
#[inline]
pub fn _get(&mut self, property: GodotString) -> Variant {
unsafe { Object__get(self.this, property) }
}
#[inline]
pub fn _get_property_list(&mut self) -> VariantArray {
unsafe { Object__get_property_list(self.this) }
}
#[inline]
pub fn _init(&mut self) -> () {
unsafe { Object__init(self.this) }
}
#[inline]
pub fn get_class(&self) -> GodotString {
unsafe { Object_get_class(self.this) }
}
#[inline]
pub fn is_class(&self, _type: GodotString) -> bool {
unsafe { Object_is_class(self.this, _type) }
}
#[inline]
pub fn set(&mut self, property: GodotString, value: Variant) -> () {
unsafe { Object_set(self.this, property, value) }
}
#[inline]
pub fn get(&self, property: GodotString) -> Variant {
unsafe { Object_get(self.this, property) }
}
#[inline]
pub fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
unsafe { Object_set_indexed(self.this, property, value) }
}
#[inline]
pub fn get_indexed(&self, property: NodePath) -> Variant {
unsafe { Object_get_indexed(self.this, property) }
}
#[inline]
pub fn get_property_list(&self) -> VariantArray {
unsafe { Object_get_property_list(self.this) }
}
#[inline]
pub fn get_method_list(&self) -> VariantArray {
unsafe { Object_get_method_list(self.this) }
}
#[inline]
pub fn notification(&mut self, what: i64, reversed: bool) -> () {
unsafe { Object_notification(self.this, what, reversed) }
}
#[inline]
pub fn get_instance_id(&self) -> i64 {
unsafe { Object_get_instance_id(self.this) }
}
#[inline]
pub fn set_script(&mut self, script: Option<Reference>) -> () {
unsafe { Object_set_script(self.this, script) }
}
#[inline]
pub fn get_script(&self) -> Option<Reference> {
unsafe { Object_get_script(self.this) }
}
#[inline]
pub fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
unsafe { Object_set_meta(self.this, name, value) }
}
#[inline]
pub fn get_meta(&self, name: GodotString) -> Variant {
unsafe { Object_get_meta(self.this, name) }
}
#[inline]
pub fn has_meta(&self, name: GodotString) -> bool {
unsafe { Object_has_meta(self.this, name) }
}
#[inline]
pub fn get_meta_list(&self) -> StringArray {
unsafe { Object_get_meta_list(self.this) }
}
#[inline]
pub fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
unsafe { Object_add_user_signal(self.this, signal, arguments) }
}
#[inline]
pub fn has_user_signal(&self, signal: GodotString) -> bool {
unsafe { Object_has_user_signal(self.this, signal) }
}
#[inline]
pub fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_emit_signal(self.this, signal, varargs) }
}
#[inline]
pub fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call(self.this, method, varargs) }
}
#[inline]
pub fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call_deferred(self.this, method, varargs) }
}
#[inline]
pub fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
unsafe { Object_callv(self.this, method, arg_array) }
}
#[inline]
pub fn has_method(&self, method: GodotString) -> bool {
unsafe { Object_has_method(self.this, method) }
}
#[inline]
pub fn get_signal_list(&self) -> VariantArray {
unsafe { Object_get_signal_list(self.this) }
}
#[inline]
pub fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
unsafe { Object_get_signal_connection_list(self.this, signal) }
}
#[inline]
pub fn get_incoming_connections(&self) -> VariantArray {
unsafe { Object_get_incoming_connections(self.this) }
}
#[inline]
pub fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
unsafe { Object_connect(self.this, signal, target, method, binds, flags) }
}
#[inline]
pub fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
unsafe { Object_disconnect(self.this, signal, target, method) }
}
#[inline]
pub fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
unsafe { Object_is_connected(self.this, signal, target, method) }
}
#[inline]
pub fn set_block_signals(&mut self, enable: bool) -> () {
unsafe { Object_set_block_signals(self.this, enable) }
}
#[inline]
pub fn is_blocking_signals(&self) -> bool {
unsafe { Object_is_blocking_signals(self.this) }
}
#[inline]
pub fn property_list_changed_notify(&mut self) -> () {
unsafe { Object_property_list_changed_notify(self.this) }
}
#[inline]
pub fn set_message_translation(&mut self, enable: bool) -> () {
unsafe { Object_set_message_translation(self.this, enable) }
}
#[inline]
pub fn can_translate_messages(&self) -> bool {
unsafe { Object_can_translate_messages(self.this) }
}
#[inline]
pub fn tr(&self, message: GodotString) -> GodotString {
unsafe { Object_tr(self.this, message) }
}
#[inline]
pub fn is_queued_for_deletion(&self) -> bool {
unsafe { Object_is_queued_for_deletion(self.this) }
}
#[inline]
pub fn to_spatial_gizmo(&self) -> SpatialGizmo {
unsafe {{ object::add_ref(self.this); }}
SpatialGizmo { this: self.this }
}
#[inline]
pub fn to_reference(&self) -> Reference {
unsafe {{ object::add_ref(self.this); }}
Reference { this: self.this }
}
#[inline]
pub fn to_object(&self) -> Object {
Object { this: self.this }
}
pub fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
impl Drop for EditorSpatialGizmo {
fn drop(&mut self) {
unsafe {
if object::unref(self.this) {
(get_api().godot_object_destroy)(self.this);
}
}
}
}
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct EditorResourcePreviewGenerator {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for EditorResourcePreviewGenerator {
fn class_name() -> &'static str {
"EditorResourcePreviewGenerator"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
object::add_ref(obj);
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for EditorResourcePreviewGenerator {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl EditorResourcePreviewGenerator {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = EditorResourcePreviewGeneratorMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
EditorResourcePreviewGenerator {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn handles(&mut self, _type: GodotString) -> bool {
unsafe { EditorResourcePreviewGenerator_handles(self.this, _type) }
}
#[inline]
pub fn generate(&mut self, from: Option<Resource>) -> Option<Texture> {
unsafe { EditorResourcePreviewGenerator_generate(self.this, from) }
}
#[inline]
pub fn generate_from_path(&mut self, path: GodotString) -> Option<Texture> {
unsafe { EditorResourcePreviewGenerator_generate_from_path(self.this, path) }
}
#[inline]
pub fn init_ref(&mut self) -> bool {
unsafe { Reference_init_ref(self.this) }
}
#[inline]
pub fn _notification(&mut self, what: i64) -> () {
unsafe { Object__notification(self.this, what) }
}
#[inline]
pub fn _set(&mut self, property: GodotString, value: Variant) -> bool {
unsafe { Object__set(self.this, property, value) }
}
#[inline]
pub fn _get(&mut self, property: GodotString) -> Variant {
unsafe { Object__get(self.this, property) }
}
#[inline]
pub fn _get_property_list(&mut self) -> VariantArray {
unsafe { Object__get_property_list(self.this) }
}
#[inline]
pub fn _init(&mut self) -> () {
unsafe { Object__init(self.this) }
}
#[inline]
pub fn get_class(&self) -> GodotString {
unsafe { Object_get_class(self.this) }
}
#[inline]
pub fn is_class(&self, _type: GodotString) -> bool {
unsafe { Object_is_class(self.this, _type) }
}
#[inline]
pub fn set(&mut self, property: GodotString, value: Variant) -> () {
unsafe { Object_set(self.this, property, value) }
}
#[inline]
pub fn get(&self, property: GodotString) -> Variant {
unsafe { Object_get(self.this, property) }
}
#[inline]
pub fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
unsafe { Object_set_indexed(self.this, property, value) }
}
#[inline]
pub fn get_indexed(&self, property: NodePath) -> Variant {
unsafe { Object_get_indexed(self.this, property) }
}
#[inline]
pub fn get_property_list(&self) -> VariantArray {
unsafe { Object_get_property_list(self.this) }
}
#[inline]
pub fn get_method_list(&self) -> VariantArray {
unsafe { Object_get_method_list(self.this) }
}
#[inline]
pub fn notification(&mut self, what: i64, reversed: bool) -> () {
unsafe { Object_notification(self.this, what, reversed) }
}
#[inline]
pub fn get_instance_id(&self) -> i64 {
unsafe { Object_get_instance_id(self.this) }
}
#[inline]
pub fn set_script(&mut self, script: Option<Reference>) -> () {
unsafe { Object_set_script(self.this, script) }
}
#[inline]
pub fn get_script(&self) -> Option<Reference> {
unsafe { Object_get_script(self.this) }
}
#[inline]
pub fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
unsafe { Object_set_meta(self.this, name, value) }
}
#[inline]
pub fn get_meta(&self, name: GodotString) -> Variant {
unsafe { Object_get_meta(self.this, name) }
}
#[inline]
pub fn has_meta(&self, name: GodotString) -> bool {
unsafe { Object_has_meta(self.this, name) }
}
#[inline]
pub fn get_meta_list(&self) -> StringArray {
unsafe { Object_get_meta_list(self.this) }
}
#[inline]
pub fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
unsafe { Object_add_user_signal(self.this, signal, arguments) }
}
#[inline]
pub fn has_user_signal(&self, signal: GodotString) -> bool {
unsafe { Object_has_user_signal(self.this, signal) }
}
#[inline]
pub fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_emit_signal(self.this, signal, varargs) }
}
#[inline]
pub fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call(self.this, method, varargs) }
}
#[inline]
pub fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call_deferred(self.this, method, varargs) }
}
#[inline]
pub fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
unsafe { Object_callv(self.this, method, arg_array) }
}
#[inline]
pub fn has_method(&self, method: GodotString) -> bool {
unsafe { Object_has_method(self.this, method) }
}
#[inline]
pub fn get_signal_list(&self) -> VariantArray {
unsafe { Object_get_signal_list(self.this) }
}
#[inline]
pub fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
unsafe { Object_get_signal_connection_list(self.this, signal) }
}
#[inline]
pub fn get_incoming_connections(&self) -> VariantArray {
unsafe { Object_get_incoming_connections(self.this) }
}
#[inline]
pub fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
unsafe { Object_connect(self.this, signal, target, method, binds, flags) }
}
#[inline]
pub fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
unsafe { Object_disconnect(self.this, signal, target, method) }
}
#[inline]
pub fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
unsafe { Object_is_connected(self.this, signal, target, method) }
}
#[inline]
pub fn set_block_signals(&mut self, enable: bool) -> () {
unsafe { Object_set_block_signals(self.this, enable) }
}
#[inline]
pub fn is_blocking_signals(&self) -> bool {
unsafe { Object_is_blocking_signals(self.this) }
}
#[inline]
pub fn property_list_changed_notify(&mut self) -> () {
unsafe { Object_property_list_changed_notify(self.this) }
}
#[inline]
pub fn set_message_translation(&mut self, enable: bool) -> () {
unsafe { Object_set_message_translation(self.this, enable) }
}
#[inline]
pub fn can_translate_messages(&self) -> bool {
unsafe { Object_can_translate_messages(self.this) }
}
#[inline]
pub fn tr(&self, message: GodotString) -> GodotString {
unsafe { Object_tr(self.this, message) }
}
#[inline]
pub fn is_queued_for_deletion(&self) -> bool {
unsafe { Object_is_queued_for_deletion(self.this) }
}
#[inline]
pub fn to_reference(&self) -> Reference {
unsafe {{ object::add_ref(self.this); }}
Reference { this: self.this }
}
#[inline]
pub fn to_object(&self) -> Object {
Object { this: self.this }
}
pub fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
impl Drop for EditorResourcePreviewGenerator {
fn drop(&mut self) {
unsafe {
if object::unref(self.this) {
(get_api().godot_object_destroy)(self.this);
}
}
}
}
#[derive(Copy, Clone)]
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct EditorFileSystem {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for EditorFileSystem {
fn class_name() -> &'static str {
"EditorFileSystem"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for EditorFileSystem {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl QueueFree for EditorFileSystem {
unsafe fn godot_queue_free(&mut self) { self.queue_free() }
}
impl EditorFileSystem {
#[inline]
pub unsafe fn get_filesystem(&mut self) -> Option<EditorFileSystemDirectory> {
EditorFileSystem_get_filesystem(self.this)
}
#[inline]
pub unsafe fn is_scanning(&self) -> bool {
EditorFileSystem_is_scanning(self.this)
}
#[inline]
pub unsafe fn get_scanning_progress(&self) -> f64 {
EditorFileSystem_get_scanning_progress(self.this)
}
#[inline]
pub unsafe fn scan(&mut self) -> () {
EditorFileSystem_scan(self.this)
}
#[inline]
pub unsafe fn scan_sources(&mut self) -> () {
EditorFileSystem_scan_sources(self.this)
}
#[inline]
pub unsafe fn update_file(&mut self, path: GodotString) -> () {
EditorFileSystem_update_file(self.this, path)
}
#[inline]
pub unsafe fn get_filesystem_path(&mut self, path: GodotString) -> Option<EditorFileSystemDirectory> {
EditorFileSystem_get_filesystem_path(self.this, path)
}
#[inline]
pub unsafe fn get_file_type(&self, path: GodotString) -> GodotString {
EditorFileSystem_get_file_type(self.this, path)
}
#[inline]
pub unsafe fn update_script_classes(&mut self) -> () {
EditorFileSystem_update_script_classes(self.this)
}
#[inline]
pub unsafe fn _process(&mut self, delta: f64) -> () {
Node__process(self.this, delta)
}
#[inline]
pub unsafe fn _physics_process(&mut self, delta: f64) -> () {
Node__physics_process(self.this, delta)
}
#[inline]
pub unsafe fn _enter_tree(&mut self) -> () {
Node__enter_tree(self.this)
}
#[inline]
pub unsafe fn _exit_tree(&mut self) -> () {
Node__exit_tree(self.this)
}
#[inline]
pub unsafe fn _ready(&mut self) -> () {
Node__ready(self.this)
}
#[inline]
pub unsafe fn _input(&mut self, event: Option<InputEvent>) -> () {
Node__input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_input(&mut self, event: Option<InputEvent>) -> () {
Node__unhandled_input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_key_input(&mut self, event: Option<InputEventKey>) -> () {
Node__unhandled_key_input(self.this, event)
}
#[inline]
pub unsafe fn add_child_below_node(&mut self, node: Option<Object>, child_node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child_below_node(self.this, node, child_node, legible_unique_name)
}
#[inline]
pub unsafe fn set_name(&mut self, name: GodotString) -> () {
Node_set_name(self.this, name)
}
#[inline]
pub unsafe fn get_name(&self) -> GodotString {
Node_get_name(self.this)
}
#[inline]
pub unsafe fn add_child(&mut self, node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child(self.this, node, legible_unique_name)
}
#[inline]
pub unsafe fn remove_child(&mut self, node: Option<Object>) -> () {
Node_remove_child(self.this, node)
}
#[inline]
pub unsafe fn get_child_count(&self) -> i64 {
Node_get_child_count(self.this)
}
#[inline]
pub unsafe fn get_children(&self) -> VariantArray {
Node_get_children(self.this)
}
#[inline]
pub unsafe fn get_child(&self, idx: i64) -> Option<Node> {
Node_get_child(self.this, idx)
}
#[inline]
pub unsafe fn has_node(&self, path: NodePath) -> bool {
Node_has_node(self.this, path)
}
#[inline]
pub unsafe fn get_node(&self, path: NodePath) -> Option<Node> {
Node_get_node(self.this, path)
}
#[inline]
pub unsafe fn get_parent(&self) -> Option<Node> {
Node_get_parent(self.this)
}
#[inline]
pub unsafe fn find_node(&self, mask: GodotString, recursive: bool, owned: bool) -> Option<Node> {
Node_find_node(self.this, mask, recursive, owned)
}
#[inline]
pub unsafe fn has_node_and_resource(&self, path: NodePath) -> bool {
Node_has_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn get_node_and_resource(&mut self, path: NodePath) -> VariantArray {
Node_get_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn is_inside_tree(&self) -> bool {
Node_is_inside_tree(self.this)
}
#[inline]
pub unsafe fn is_a_parent_of(&self, node: Option<Object>) -> bool {
Node_is_a_parent_of(self.this, node)
}
#[inline]
pub unsafe fn is_greater_than(&self, node: Option<Object>) -> bool {
Node_is_greater_than(self.this, node)
}
#[inline]
pub unsafe fn get_path(&self) -> NodePath {
Node_get_path(self.this)
}
#[inline]
pub unsafe fn get_path_to(&self, node: Option<Object>) -> NodePath {
Node_get_path_to(self.this, node)
}
#[inline]
pub unsafe fn add_to_group(&mut self, group: GodotString, persistent: bool) -> () {
Node_add_to_group(self.this, group, persistent)
}
#[inline]
pub unsafe fn remove_from_group(&mut self, group: GodotString) -> () {
Node_remove_from_group(self.this, group)
}
#[inline]
pub unsafe fn is_in_group(&self, group: GodotString) -> bool {
Node_is_in_group(self.this, group)
}
#[inline]
pub unsafe fn move_child(&mut self, child_node: Option<Object>, to_position: i64) -> () {
Node_move_child(self.this, child_node, to_position)
}
#[inline]
pub unsafe fn get_groups(&self) -> VariantArray {
Node_get_groups(self.this)
}
#[inline]
pub unsafe fn raise(&mut self) -> () {
Node_raise(self.this)
}
#[inline]
pub unsafe fn set_owner(&mut self, owner: Option<Object>) -> () {
Node_set_owner(self.this, owner)
}
#[inline]
pub unsafe fn get_owner(&self) -> Option<Node> {
Node_get_owner(self.this)
}
#[inline]
pub unsafe fn remove_and_skip(&mut self) -> () {
Node_remove_and_skip(self.this)
}
#[inline]
pub unsafe fn get_index(&self) -> i64 {
Node_get_index(self.this)
}
#[inline]
pub unsafe fn print_tree(&mut self) -> () {
Node_print_tree(self.this)
}
#[inline]
pub unsafe fn print_tree_pretty(&mut self) -> () {
Node_print_tree_pretty(self.this)
}
#[inline]
pub unsafe fn set_filename(&mut self, filename: GodotString) -> () {
Node_set_filename(self.this, filename)
}
#[inline]
pub unsafe fn get_filename(&self) -> GodotString {
Node_get_filename(self.this)
}
#[inline]
pub unsafe fn propagate_notification(&mut self, what: i64) -> () {
Node_propagate_notification(self.this, what)
}
#[inline]
pub unsafe fn propagate_call(&mut self, method: GodotString, args: VariantArray, parent_first: bool) -> () {
Node_propagate_call(self.this, method, args, parent_first)
}
#[inline]
pub unsafe fn set_physics_process(&mut self, enable: bool) -> () {
Node_set_physics_process(self.this, enable)
}
#[inline]
pub unsafe fn get_physics_process_delta_time(&self) -> f64 {
Node_get_physics_process_delta_time(self.this)
}
#[inline]
pub unsafe fn is_physics_processing(&self) -> bool {
Node_is_physics_processing(self.this)
}
#[inline]
pub unsafe fn get_process_delta_time(&self) -> f64 {
Node_get_process_delta_time(self.this)
}
#[inline]
pub unsafe fn set_process(&mut self, enable: bool) -> () {
Node_set_process(self.this, enable)
}
#[inline]
pub unsafe fn set_process_priority(&mut self, priority: i64) -> () {
Node_set_process_priority(self.this, priority)
}
#[inline]
pub unsafe fn is_processing(&self) -> bool {
Node_is_processing(self.this)
}
#[inline]
pub unsafe fn set_process_input(&mut self, enable: bool) -> () {
Node_set_process_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_input(&self) -> bool {
Node_is_processing_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_input(&self) -> bool {
Node_is_processing_unhandled_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_key_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_key_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_key_input(&self) -> bool {
Node_is_processing_unhandled_key_input(self.this)
}
#[inline]
pub unsafe fn set_pause_mode(&mut self, mode: i64) -> () {
Node_set_pause_mode(self.this, mode)
}
#[inline]
pub unsafe fn get_pause_mode(&self) -> NodePauseMode {
Node_get_pause_mode(self.this)
}
#[inline]
pub unsafe fn can_process(&self) -> bool {
Node_can_process(self.this)
}
#[inline]
pub unsafe fn print_stray_nodes(&mut self) -> () {
Node_print_stray_nodes(self.this)
}
#[inline]
pub unsafe fn get_position_in_parent(&self) -> i64 {
Node_get_position_in_parent(self.this)
}
#[inline]
pub unsafe fn set_display_folded(&mut self, fold: bool) -> () {
Node_set_display_folded(self.this, fold)
}
#[inline]
pub unsafe fn is_displayed_folded(&self) -> bool {
Node_is_displayed_folded(self.this)
}
#[inline]
pub unsafe fn set_process_internal(&mut self, enable: bool) -> () {
Node_set_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_internal(&self) -> bool {
Node_is_processing_internal(self.this)
}
#[inline]
pub unsafe fn set_physics_process_internal(&mut self, enable: bool) -> () {
Node_set_physics_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_physics_processing_internal(&self) -> bool {
Node_is_physics_processing_internal(self.this)
}
#[inline]
pub unsafe fn get_tree(&self) -> Option<SceneTree> {
Node_get_tree(self.this)
}
#[inline]
pub unsafe fn duplicate(&self, flags: i64) -> Option<Node> {
Node_duplicate(self.this, flags)
}
#[inline]
pub unsafe fn replace_by(&mut self, node: Option<Object>, keep_data: bool) -> () {
Node_replace_by(self.this, node, keep_data)
}
#[inline]
pub unsafe fn set_scene_instance_load_placeholder(&mut self, load_placeholder: bool) -> () {
Node_set_scene_instance_load_placeholder(self.this, load_placeholder)
}
#[inline]
pub unsafe fn get_scene_instance_load_placeholder(&self) -> bool {
Node_get_scene_instance_load_placeholder(self.this)
}
#[inline]
pub unsafe fn get_viewport(&self) -> Option<Viewport> {
Node_get_viewport(self.this)
}
#[inline]
pub unsafe fn queue_free(&mut self) -> () {
Node_queue_free(self.this)
}
#[inline]
pub unsafe fn request_ready(&mut self) -> () {
Node_request_ready(self.this)
}
#[inline]
pub unsafe fn set_network_master(&mut self, id: i64, recursive: bool) -> () {
Node_set_network_master(self.this, id, recursive)
}
#[inline]
pub unsafe fn get_network_master(&self) -> i64 {
Node_get_network_master(self.this)
}
#[inline]
pub unsafe fn is_network_master(&self) -> bool {
Node_is_network_master(self.this)
}
#[inline]
pub unsafe fn get_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_multiplayer(self.this)
}
#[inline]
pub unsafe fn get_custom_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_custom_multiplayer(self.this)
}
#[inline]
pub unsafe fn set_custom_multiplayer(&mut self, api: Option<MultiplayerAPI>) -> () {
Node_set_custom_multiplayer(self.this, api)
}
#[inline]
pub unsafe fn rpc_config(&mut self, method: GodotString, mode: i64) -> () {
Node_rpc_config(self.this, method, mode)
}
#[inline]
pub unsafe fn rset_config(&mut self, property: GodotString, mode: i64) -> () {
Node_rset_config(self.this, property, mode)
}
#[inline]
pub unsafe fn _set_import_path(&mut self, import_path: NodePath) -> () {
Node__set_import_path(self.this, import_path)
}
#[inline]
pub unsafe fn _get_import_path(&self) -> NodePath {
Node__get_import_path(self.this)
}
#[inline]
pub unsafe fn rpc(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rset(&mut self, property: GodotString, value: Variant) -> () {
Node_rset(self.this, property, value)
}
#[inline]
pub unsafe fn rset_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn rset_unreliable(&mut self, property: GodotString, value: Variant) -> () {
Node_rset_unreliable(self.this, property, value)
}
#[inline]
pub unsafe fn rset_unreliable_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_unreliable_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn _notification(&mut self, what: i64) -> () {
Object__notification(self.this, what)
}
#[inline]
pub unsafe fn _set(&mut self, property: GodotString, value: Variant) -> bool {
Object__set(self.this, property, value)
}
#[inline]
pub unsafe fn _get(&mut self, property: GodotString) -> Variant {
Object__get(self.this, property)
}
#[inline]
pub unsafe fn _get_property_list(&mut self) -> VariantArray {
Object__get_property_list(self.this)
}
#[inline]
pub unsafe fn _init(&mut self) -> () {
Object__init(self.this)
}
#[inline]
pub unsafe fn get_class(&self) -> GodotString {
Object_get_class(self.this)
}
#[inline]
pub unsafe fn is_class(&self, _type: GodotString) -> bool {
Object_is_class(self.this, _type)
}
#[inline]
pub unsafe fn set(&mut self, property: GodotString, value: Variant) -> () {
Object_set(self.this, property, value)
}
#[inline]
pub unsafe fn get(&self, property: GodotString) -> Variant {
Object_get(self.this, property)
}
#[inline]
pub unsafe fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
Object_set_indexed(self.this, property, value)
}
#[inline]
pub unsafe fn get_indexed(&self, property: NodePath) -> Variant {
Object_get_indexed(self.this, property)
}
#[inline]
pub unsafe fn get_property_list(&self) -> VariantArray {
Object_get_property_list(self.this)
}
#[inline]
pub unsafe fn get_method_list(&self) -> VariantArray {
Object_get_method_list(self.this)
}
#[inline]
pub unsafe fn notification(&mut self, what: i64, reversed: bool) -> () {
Object_notification(self.this, what, reversed)
}
#[inline]
pub unsafe fn get_instance_id(&self) -> i64 {
Object_get_instance_id(self.this)
}
#[inline]
pub unsafe fn set_script(&mut self, script: Option<Reference>) -> () {
Object_set_script(self.this, script)
}
#[inline]
pub unsafe fn get_script(&self) -> Option<Reference> {
Object_get_script(self.this)
}
#[inline]
pub unsafe fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
Object_set_meta(self.this, name, value)
}
#[inline]
pub unsafe fn get_meta(&self, name: GodotString) -> Variant {
Object_get_meta(self.this, name)
}
#[inline]
pub unsafe fn has_meta(&self, name: GodotString) -> bool {
Object_has_meta(self.this, name)
}
#[inline]
pub unsafe fn get_meta_list(&self) -> StringArray {
Object_get_meta_list(self.this)
}
#[inline]
pub unsafe fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
Object_add_user_signal(self.this, signal, arguments)
}
#[inline]
pub unsafe fn has_user_signal(&self, signal: GodotString) -> bool {
Object_has_user_signal(self.this, signal)
}
#[inline]
pub unsafe fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
Object_emit_signal(self.this, signal, varargs)
}
#[inline]
pub unsafe fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call(self.this, method, varargs)
}
#[inline]
pub unsafe fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call_deferred(self.this, method, varargs)
}
#[inline]
pub unsafe fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
Object_callv(self.this, method, arg_array)
}
#[inline]
pub unsafe fn has_method(&self, method: GodotString) -> bool {
Object_has_method(self.this, method)
}
#[inline]
pub unsafe fn get_signal_list(&self) -> VariantArray {
Object_get_signal_list(self.this)
}
#[inline]
pub unsafe fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
Object_get_signal_connection_list(self.this, signal)
}
#[inline]
pub unsafe fn get_incoming_connections(&self) -> VariantArray {
Object_get_incoming_connections(self.this)
}
#[inline]
pub unsafe fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
Object_connect(self.this, signal, target, method, binds, flags)
}
#[inline]
pub unsafe fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
Object_disconnect(self.this, signal, target, method)
}
#[inline]
pub unsafe fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
Object_is_connected(self.this, signal, target, method)
}
#[inline]
pub unsafe fn set_block_signals(&mut self, enable: bool) -> () {
Object_set_block_signals(self.this, enable)
}
#[inline]
pub unsafe fn is_blocking_signals(&self) -> bool {
Object_is_blocking_signals(self.this)
}
#[inline]
pub unsafe fn property_list_changed_notify(&mut self) -> () {
Object_property_list_changed_notify(self.this)
}
#[inline]
pub unsafe fn set_message_translation(&mut self, enable: bool) -> () {
Object_set_message_translation(self.this, enable)
}
#[inline]
pub unsafe fn can_translate_messages(&self) -> bool {
Object_can_translate_messages(self.this)
}
#[inline]
pub unsafe fn tr(&self, message: GodotString) -> GodotString {
Object_tr(self.this, message)
}
#[inline]
pub unsafe fn is_queued_for_deletion(&self) -> bool {
Object_is_queued_for_deletion(self.this)
}
#[inline]
pub unsafe fn to_node(&self) -> Node {
Node { this: self.this }
}
#[inline]
pub unsafe fn to_object(&self) -> Object {
Object { this: self.this }
}
pub unsafe fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct EditorSettings {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for EditorSettings {
fn class_name() -> &'static str {
"EditorSettings"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
object::add_ref(obj);
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for EditorSettings {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl EditorSettings {
#[inline]
pub fn has_setting(&self, name: GodotString) -> bool {
unsafe { EditorSettings_has_setting(self.this, name) }
}
#[inline]
pub fn set_setting(&mut self, name: GodotString, value: Variant) -> () {
unsafe { EditorSettings_set_setting(self.this, name, value) }
}
#[inline]
pub fn get_setting(&self, name: GodotString) -> Variant {
unsafe { EditorSettings_get_setting(self.this, name) }
}
#[inline]
pub fn erase(&mut self, property: GodotString) -> () {
unsafe { EditorSettings_erase(self.this, property) }
}
#[inline]
pub fn set_initial_value(&mut self, name: GodotString, value: Variant, update_current: bool) -> () {
unsafe { EditorSettings_set_initial_value(self.this, name, value, update_current) }
}
#[inline]
pub fn property_can_revert(&mut self, name: GodotString) -> bool {
unsafe { EditorSettings_property_can_revert(self.this, name) }
}
#[inline]
pub fn property_get_revert(&mut self, name: GodotString) -> Variant {
unsafe { EditorSettings_property_get_revert(self.this, name) }
}
#[inline]
pub fn add_property_info(&mut self, info: Dictionary) -> () {
unsafe { EditorSettings_add_property_info(self.this, info) }
}
#[inline]
pub fn get_settings_dir(&self) -> GodotString {
unsafe { EditorSettings_get_settings_dir(self.this) }
}
#[inline]
pub fn get_project_settings_dir(&self) -> GodotString {
unsafe { EditorSettings_get_project_settings_dir(self.this) }
}
#[inline]
pub fn set_project_metadata(&mut self, section: GodotString, key: GodotString, data: Variant) -> () {
unsafe { EditorSettings_set_project_metadata(self.this, section, key, data) }
}
#[inline]
pub fn get_project_metadata(&self, section: GodotString, key: GodotString, default: Variant) -> Variant {
unsafe { EditorSettings_get_project_metadata(self.this, section, key, default) }
}
#[inline]
pub fn set_favorite_dirs(&mut self, dirs: StringArray) -> () {
unsafe { EditorSettings_set_favorite_dirs(self.this, dirs) }
}
#[inline]
pub fn get_favorite_dirs(&self) -> StringArray {
unsafe { EditorSettings_get_favorite_dirs(self.this) }
}
#[inline]
pub fn set_recent_dirs(&mut self, dirs: StringArray) -> () {
unsafe { EditorSettings_set_recent_dirs(self.this, dirs) }
}
#[inline]
pub fn get_recent_dirs(&self) -> StringArray {
unsafe { EditorSettings_get_recent_dirs(self.this) }
}
#[inline]
pub fn _setup_local_to_scene(&mut self) -> () {
unsafe { Resource__setup_local_to_scene(self.this) }
}
#[inline]
pub fn set_path(&mut self, path: GodotString) -> () {
unsafe { Resource_set_path(self.this, path) }
}
#[inline]
pub fn take_over_path(&mut self, path: GodotString) -> () {
unsafe { Resource_take_over_path(self.this, path) }
}
#[inline]
pub fn get_path(&self) -> GodotString {
unsafe { Resource_get_path(self.this) }
}
#[inline]
pub fn set_name(&mut self, name: GodotString) -> () {
unsafe { Resource_set_name(self.this, name) }
}
#[inline]
pub fn get_name(&self) -> GodotString {
unsafe { Resource_get_name(self.this) }
}
#[inline]
pub fn get_rid(&self) -> Rid {
unsafe { Resource_get_rid(self.this) }
}
#[inline]
pub fn set_local_to_scene(&mut self, enable: bool) -> () {
unsafe { Resource_set_local_to_scene(self.this, enable) }
}
#[inline]
pub fn is_local_to_scene(&self) -> bool {
unsafe { Resource_is_local_to_scene(self.this) }
}
#[inline]
pub fn get_local_scene(&self) -> Option<Node> {
unsafe { Resource_get_local_scene(self.this) }
}
#[inline]
pub fn setup_local_to_scene(&mut self) -> () {
unsafe { Resource_setup_local_to_scene(self.this) }
}
#[inline]
pub fn duplicate(&self, subresources: bool) -> Option<Resource> {
unsafe { Resource_duplicate(self.this, subresources) }
}
#[inline]
pub fn init_ref(&mut self) -> bool {
unsafe { Reference_init_ref(self.this) }
}
#[inline]
pub fn _notification(&mut self, what: i64) -> () {
unsafe { Object__notification(self.this, what) }
}
#[inline]
pub fn _set(&mut self, property: GodotString, value: Variant) -> bool {
unsafe { Object__set(self.this, property, value) }
}
#[inline]
pub fn _get(&mut self, property: GodotString) -> Variant {
unsafe { Object__get(self.this, property) }
}
#[inline]
pub fn _get_property_list(&mut self) -> VariantArray {
unsafe { Object__get_property_list(self.this) }
}
#[inline]
pub fn _init(&mut self) -> () {
unsafe { Object__init(self.this) }
}
#[inline]
pub fn get_class(&self) -> GodotString {
unsafe { Object_get_class(self.this) }
}
#[inline]
pub fn is_class(&self, _type: GodotString) -> bool {
unsafe { Object_is_class(self.this, _type) }
}
#[inline]
pub fn set(&mut self, property: GodotString, value: Variant) -> () {
unsafe { Object_set(self.this, property, value) }
}
#[inline]
pub fn get(&self, property: GodotString) -> Variant {
unsafe { Object_get(self.this, property) }
}
#[inline]
pub fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
unsafe { Object_set_indexed(self.this, property, value) }
}
#[inline]
pub fn get_indexed(&self, property: NodePath) -> Variant {
unsafe { Object_get_indexed(self.this, property) }
}
#[inline]
pub fn get_property_list(&self) -> VariantArray {
unsafe { Object_get_property_list(self.this) }
}
#[inline]
pub fn get_method_list(&self) -> VariantArray {
unsafe { Object_get_method_list(self.this) }
}
#[inline]
pub fn notification(&mut self, what: i64, reversed: bool) -> () {
unsafe { Object_notification(self.this, what, reversed) }
}
#[inline]
pub fn get_instance_id(&self) -> i64 {
unsafe { Object_get_instance_id(self.this) }
}
#[inline]
pub fn set_script(&mut self, script: Option<Reference>) -> () {
unsafe { Object_set_script(self.this, script) }
}
#[inline]
pub fn get_script(&self) -> Option<Reference> {
unsafe { Object_get_script(self.this) }
}
#[inline]
pub fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
unsafe { Object_set_meta(self.this, name, value) }
}
#[inline]
pub fn get_meta(&self, name: GodotString) -> Variant {
unsafe { Object_get_meta(self.this, name) }
}
#[inline]
pub fn has_meta(&self, name: GodotString) -> bool {
unsafe { Object_has_meta(self.this, name) }
}
#[inline]
pub fn get_meta_list(&self) -> StringArray {
unsafe { Object_get_meta_list(self.this) }
}
#[inline]
pub fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
unsafe { Object_add_user_signal(self.this, signal, arguments) }
}
#[inline]
pub fn has_user_signal(&self, signal: GodotString) -> bool {
unsafe { Object_has_user_signal(self.this, signal) }
}
#[inline]
pub fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_emit_signal(self.this, signal, varargs) }
}
#[inline]
pub fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call(self.this, method, varargs) }
}
#[inline]
pub fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call_deferred(self.this, method, varargs) }
}
#[inline]
pub fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
unsafe { Object_callv(self.this, method, arg_array) }
}
#[inline]
pub fn has_method(&self, method: GodotString) -> bool {
unsafe { Object_has_method(self.this, method) }
}
#[inline]
pub fn get_signal_list(&self) -> VariantArray {
unsafe { Object_get_signal_list(self.this) }
}
#[inline]
pub fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
unsafe { Object_get_signal_connection_list(self.this, signal) }
}
#[inline]
pub fn get_incoming_connections(&self) -> VariantArray {
unsafe { Object_get_incoming_connections(self.this) }
}
#[inline]
pub fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
unsafe { Object_connect(self.this, signal, target, method, binds, flags) }
}
#[inline]
pub fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
unsafe { Object_disconnect(self.this, signal, target, method) }
}
#[inline]
pub fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
unsafe { Object_is_connected(self.this, signal, target, method) }
}
#[inline]
pub fn set_block_signals(&mut self, enable: bool) -> () {
unsafe { Object_set_block_signals(self.this, enable) }
}
#[inline]
pub fn is_blocking_signals(&self) -> bool {
unsafe { Object_is_blocking_signals(self.this) }
}
#[inline]
pub fn property_list_changed_notify(&mut self) -> () {
unsafe { Object_property_list_changed_notify(self.this) }
}
#[inline]
pub fn set_message_translation(&mut self, enable: bool) -> () {
unsafe { Object_set_message_translation(self.this, enable) }
}
#[inline]
pub fn can_translate_messages(&self) -> bool {
unsafe { Object_can_translate_messages(self.this) }
}
#[inline]
pub fn tr(&self, message: GodotString) -> GodotString {
unsafe { Object_tr(self.this, message) }
}
#[inline]
pub fn is_queued_for_deletion(&self) -> bool {
unsafe { Object_is_queued_for_deletion(self.this) }
}
#[inline]
pub fn to_resource(&self) -> Resource {
unsafe {{ object::add_ref(self.this); }}
Resource { this: self.this }
}
#[inline]
pub fn to_reference(&self) -> Reference {
unsafe {{ object::add_ref(self.this); }}
Reference { this: self.this }
}
#[inline]
pub fn to_object(&self) -> Object {
Object { this: self.this }
}
pub fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
#[derive(Copy, Clone)]
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct EditorResourcePreview {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for EditorResourcePreview {
fn class_name() -> &'static str {
"EditorResourcePreview"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for EditorResourcePreview {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl QueueFree for EditorResourcePreview {
unsafe fn godot_queue_free(&mut self) { self.queue_free() }
}
impl EditorResourcePreview {
#[inline]
pub unsafe fn _preview_ready(&mut self, arg0: GodotString, arg1: Option<Texture>, arg2: i64, arg3: GodotString, arg4: Variant) -> () {
EditorResourcePreview__preview_ready(self.this, arg0, arg1, arg2, arg3, arg4)
}
#[inline]
pub unsafe fn queue_resource_preview(&mut self, path: GodotString, receiver: Option<Object>, receiver_func: GodotString, userdata: Variant) -> () {
EditorResourcePreview_queue_resource_preview(self.this, path, receiver, receiver_func, userdata)
}
#[inline]
pub unsafe fn queue_edited_resource_preview(&mut self, resource: Option<Resource>, receiver: Option<Object>, receiver_func: GodotString, userdata: Variant) -> () {
EditorResourcePreview_queue_edited_resource_preview(self.this, resource, receiver, receiver_func, userdata)
}
#[inline]
pub unsafe fn add_preview_generator(&mut self, generator: Option<EditorResourcePreviewGenerator>) -> () {
EditorResourcePreview_add_preview_generator(self.this, generator)
}
#[inline]
pub unsafe fn remove_preview_generator(&mut self, generator: Option<EditorResourcePreviewGenerator>) -> () {
EditorResourcePreview_remove_preview_generator(self.this, generator)
}
#[inline]
pub unsafe fn check_for_invalidation(&mut self, path: GodotString) -> () {
EditorResourcePreview_check_for_invalidation(self.this, path)
}
#[inline]
pub unsafe fn _process(&mut self, delta: f64) -> () {
Node__process(self.this, delta)
}
#[inline]
pub unsafe fn _physics_process(&mut self, delta: f64) -> () {
Node__physics_process(self.this, delta)
}
#[inline]
pub unsafe fn _enter_tree(&mut self) -> () {
Node__enter_tree(self.this)
}
#[inline]
pub unsafe fn _exit_tree(&mut self) -> () {
Node__exit_tree(self.this)
}
#[inline]
pub unsafe fn _ready(&mut self) -> () {
Node__ready(self.this)
}
#[inline]
pub unsafe fn _input(&mut self, event: Option<InputEvent>) -> () {
Node__input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_input(&mut self, event: Option<InputEvent>) -> () {
Node__unhandled_input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_key_input(&mut self, event: Option<InputEventKey>) -> () {
Node__unhandled_key_input(self.this, event)
}
#[inline]
pub unsafe fn add_child_below_node(&mut self, node: Option<Object>, child_node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child_below_node(self.this, node, child_node, legible_unique_name)
}
#[inline]
pub unsafe fn set_name(&mut self, name: GodotString) -> () {
Node_set_name(self.this, name)
}
#[inline]
pub unsafe fn get_name(&self) -> GodotString {
Node_get_name(self.this)
}
#[inline]
pub unsafe fn add_child(&mut self, node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child(self.this, node, legible_unique_name)
}
#[inline]
pub unsafe fn remove_child(&mut self, node: Option<Object>) -> () {
Node_remove_child(self.this, node)
}
#[inline]
pub unsafe fn get_child_count(&self) -> i64 {
Node_get_child_count(self.this)
}
#[inline]
pub unsafe fn get_children(&self) -> VariantArray {
Node_get_children(self.this)
}
#[inline]
pub unsafe fn get_child(&self, idx: i64) -> Option<Node> {
Node_get_child(self.this, idx)
}
#[inline]
pub unsafe fn has_node(&self, path: NodePath) -> bool {
Node_has_node(self.this, path)
}
#[inline]
pub unsafe fn get_node(&self, path: NodePath) -> Option<Node> {
Node_get_node(self.this, path)
}
#[inline]
pub unsafe fn get_parent(&self) -> Option<Node> {
Node_get_parent(self.this)
}
#[inline]
pub unsafe fn find_node(&self, mask: GodotString, recursive: bool, owned: bool) -> Option<Node> {
Node_find_node(self.this, mask, recursive, owned)
}
#[inline]
pub unsafe fn has_node_and_resource(&self, path: NodePath) -> bool {
Node_has_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn get_node_and_resource(&mut self, path: NodePath) -> VariantArray {
Node_get_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn is_inside_tree(&self) -> bool {
Node_is_inside_tree(self.this)
}
#[inline]
pub unsafe fn is_a_parent_of(&self, node: Option<Object>) -> bool {
Node_is_a_parent_of(self.this, node)
}
#[inline]
pub unsafe fn is_greater_than(&self, node: Option<Object>) -> bool {
Node_is_greater_than(self.this, node)
}
#[inline]
pub unsafe fn get_path(&self) -> NodePath {
Node_get_path(self.this)
}
#[inline]
pub unsafe fn get_path_to(&self, node: Option<Object>) -> NodePath {
Node_get_path_to(self.this, node)
}
#[inline]
pub unsafe fn add_to_group(&mut self, group: GodotString, persistent: bool) -> () {
Node_add_to_group(self.this, group, persistent)
}
#[inline]
pub unsafe fn remove_from_group(&mut self, group: GodotString) -> () {
Node_remove_from_group(self.this, group)
}
#[inline]
pub unsafe fn is_in_group(&self, group: GodotString) -> bool {
Node_is_in_group(self.this, group)
}
#[inline]
pub unsafe fn move_child(&mut self, child_node: Option<Object>, to_position: i64) -> () {
Node_move_child(self.this, child_node, to_position)
}
#[inline]
pub unsafe fn get_groups(&self) -> VariantArray {
Node_get_groups(self.this)
}
#[inline]
pub unsafe fn raise(&mut self) -> () {
Node_raise(self.this)
}
#[inline]
pub unsafe fn set_owner(&mut self, owner: Option<Object>) -> () {
Node_set_owner(self.this, owner)
}
#[inline]
pub unsafe fn get_owner(&self) -> Option<Node> {
Node_get_owner(self.this)
}
#[inline]
pub unsafe fn remove_and_skip(&mut self) -> () {
Node_remove_and_skip(self.this)
}
#[inline]
pub unsafe fn get_index(&self) -> i64 {
Node_get_index(self.this)
}
#[inline]
pub unsafe fn print_tree(&mut self) -> () {
Node_print_tree(self.this)
}
#[inline]
pub unsafe fn print_tree_pretty(&mut self) -> () {
Node_print_tree_pretty(self.this)
}
#[inline]
pub unsafe fn set_filename(&mut self, filename: GodotString) -> () {
Node_set_filename(self.this, filename)
}
#[inline]
pub unsafe fn get_filename(&self) -> GodotString {
Node_get_filename(self.this)
}
#[inline]
pub unsafe fn propagate_notification(&mut self, what: i64) -> () {
Node_propagate_notification(self.this, what)
}
#[inline]
pub unsafe fn propagate_call(&mut self, method: GodotString, args: VariantArray, parent_first: bool) -> () {
Node_propagate_call(self.this, method, args, parent_first)
}
#[inline]
pub unsafe fn set_physics_process(&mut self, enable: bool) -> () {
Node_set_physics_process(self.this, enable)
}
#[inline]
pub unsafe fn get_physics_process_delta_time(&self) -> f64 {
Node_get_physics_process_delta_time(self.this)
}
#[inline]
pub unsafe fn is_physics_processing(&self) -> bool {
Node_is_physics_processing(self.this)
}
#[inline]
pub unsafe fn get_process_delta_time(&self) -> f64 {
Node_get_process_delta_time(self.this)
}
#[inline]
pub unsafe fn set_process(&mut self, enable: bool) -> () {
Node_set_process(self.this, enable)
}
#[inline]
pub unsafe fn set_process_priority(&mut self, priority: i64) -> () {
Node_set_process_priority(self.this, priority)
}
#[inline]
pub unsafe fn is_processing(&self) -> bool {
Node_is_processing(self.this)
}
#[inline]
pub unsafe fn set_process_input(&mut self, enable: bool) -> () {
Node_set_process_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_input(&self) -> bool {
Node_is_processing_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_input(&self) -> bool {
Node_is_processing_unhandled_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_key_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_key_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_key_input(&self) -> bool {
Node_is_processing_unhandled_key_input(self.this)
}
#[inline]
pub unsafe fn set_pause_mode(&mut self, mode: i64) -> () {
Node_set_pause_mode(self.this, mode)
}
#[inline]
pub unsafe fn get_pause_mode(&self) -> NodePauseMode {
Node_get_pause_mode(self.this)
}
#[inline]
pub unsafe fn can_process(&self) -> bool {
Node_can_process(self.this)
}
#[inline]
pub unsafe fn print_stray_nodes(&mut self) -> () {
Node_print_stray_nodes(self.this)
}
#[inline]
pub unsafe fn get_position_in_parent(&self) -> i64 {
Node_get_position_in_parent(self.this)
}
#[inline]
pub unsafe fn set_display_folded(&mut self, fold: bool) -> () {
Node_set_display_folded(self.this, fold)
}
#[inline]
pub unsafe fn is_displayed_folded(&self) -> bool {
Node_is_displayed_folded(self.this)
}
#[inline]
pub unsafe fn set_process_internal(&mut self, enable: bool) -> () {
Node_set_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_internal(&self) -> bool {
Node_is_processing_internal(self.this)
}
#[inline]
pub unsafe fn set_physics_process_internal(&mut self, enable: bool) -> () {
Node_set_physics_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_physics_processing_internal(&self) -> bool {
Node_is_physics_processing_internal(self.this)
}
#[inline]
pub unsafe fn get_tree(&self) -> Option<SceneTree> {
Node_get_tree(self.this)
}
#[inline]
pub unsafe fn duplicate(&self, flags: i64) -> Option<Node> {
Node_duplicate(self.this, flags)
}
#[inline]
pub unsafe fn replace_by(&mut self, node: Option<Object>, keep_data: bool) -> () {
Node_replace_by(self.this, node, keep_data)
}
#[inline]
pub unsafe fn set_scene_instance_load_placeholder(&mut self, load_placeholder: bool) -> () {
Node_set_scene_instance_load_placeholder(self.this, load_placeholder)
}
#[inline]
pub unsafe fn get_scene_instance_load_placeholder(&self) -> bool {
Node_get_scene_instance_load_placeholder(self.this)
}
#[inline]
pub unsafe fn get_viewport(&self) -> Option<Viewport> {
Node_get_viewport(self.this)
}
#[inline]
pub unsafe fn queue_free(&mut self) -> () {
Node_queue_free(self.this)
}
#[inline]
pub unsafe fn request_ready(&mut self) -> () {
Node_request_ready(self.this)
}
#[inline]
pub unsafe fn set_network_master(&mut self, id: i64, recursive: bool) -> () {
Node_set_network_master(self.this, id, recursive)
}
#[inline]
pub unsafe fn get_network_master(&self) -> i64 {
Node_get_network_master(self.this)
}
#[inline]
pub unsafe fn is_network_master(&self) -> bool {
Node_is_network_master(self.this)
}
#[inline]
pub unsafe fn get_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_multiplayer(self.this)
}
#[inline]
pub unsafe fn get_custom_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_custom_multiplayer(self.this)
}
#[inline]
pub unsafe fn set_custom_multiplayer(&mut self, api: Option<MultiplayerAPI>) -> () {
Node_set_custom_multiplayer(self.this, api)
}
#[inline]
pub unsafe fn rpc_config(&mut self, method: GodotString, mode: i64) -> () {
Node_rpc_config(self.this, method, mode)
}
#[inline]
pub unsafe fn rset_config(&mut self, property: GodotString, mode: i64) -> () {
Node_rset_config(self.this, property, mode)
}
#[inline]
pub unsafe fn _set_import_path(&mut self, import_path: NodePath) -> () {
Node__set_import_path(self.this, import_path)
}
#[inline]
pub unsafe fn _get_import_path(&self) -> NodePath {
Node__get_import_path(self.this)
}
#[inline]
pub unsafe fn rpc(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rset(&mut self, property: GodotString, value: Variant) -> () {
Node_rset(self.this, property, value)
}
#[inline]
pub unsafe fn rset_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn rset_unreliable(&mut self, property: GodotString, value: Variant) -> () {
Node_rset_unreliable(self.this, property, value)
}
#[inline]
pub unsafe fn rset_unreliable_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_unreliable_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn _notification(&mut self, what: i64) -> () {
Object__notification(self.this, what)
}
#[inline]
pub unsafe fn _set(&mut self, property: GodotString, value: Variant) -> bool {
Object__set(self.this, property, value)
}
#[inline]
pub unsafe fn _get(&mut self, property: GodotString) -> Variant {
Object__get(self.this, property)
}
#[inline]
pub unsafe fn _get_property_list(&mut self) -> VariantArray {
Object__get_property_list(self.this)
}
#[inline]
pub unsafe fn _init(&mut self) -> () {
Object__init(self.this)
}
#[inline]
pub unsafe fn get_class(&self) -> GodotString {
Object_get_class(self.this)
}
#[inline]
pub unsafe fn is_class(&self, _type: GodotString) -> bool {
Object_is_class(self.this, _type)
}
#[inline]
pub unsafe fn set(&mut self, property: GodotString, value: Variant) -> () {
Object_set(self.this, property, value)
}
#[inline]
pub unsafe fn get(&self, property: GodotString) -> Variant {
Object_get(self.this, property)
}
#[inline]
pub unsafe fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
Object_set_indexed(self.this, property, value)
}
#[inline]
pub unsafe fn get_indexed(&self, property: NodePath) -> Variant {
Object_get_indexed(self.this, property)
}
#[inline]
pub unsafe fn get_property_list(&self) -> VariantArray {
Object_get_property_list(self.this)
}
#[inline]
pub unsafe fn get_method_list(&self) -> VariantArray {
Object_get_method_list(self.this)
}
#[inline]
pub unsafe fn notification(&mut self, what: i64, reversed: bool) -> () {
Object_notification(self.this, what, reversed)
}
#[inline]
pub unsafe fn get_instance_id(&self) -> i64 {
Object_get_instance_id(self.this)
}
#[inline]
pub unsafe fn set_script(&mut self, script: Option<Reference>) -> () {
Object_set_script(self.this, script)
}
#[inline]
pub unsafe fn get_script(&self) -> Option<Reference> {
Object_get_script(self.this)
}
#[inline]
pub unsafe fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
Object_set_meta(self.this, name, value)
}
#[inline]
pub unsafe fn get_meta(&self, name: GodotString) -> Variant {
Object_get_meta(self.this, name)
}
#[inline]
pub unsafe fn has_meta(&self, name: GodotString) -> bool {
Object_has_meta(self.this, name)
}
#[inline]
pub unsafe fn get_meta_list(&self) -> StringArray {
Object_get_meta_list(self.this)
}
#[inline]
pub unsafe fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
Object_add_user_signal(self.this, signal, arguments)
}
#[inline]
pub unsafe fn has_user_signal(&self, signal: GodotString) -> bool {
Object_has_user_signal(self.this, signal)
}
#[inline]
pub unsafe fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
Object_emit_signal(self.this, signal, varargs)
}
#[inline]
pub unsafe fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call(self.this, method, varargs)
}
#[inline]
pub unsafe fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call_deferred(self.this, method, varargs)
}
#[inline]
pub unsafe fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
Object_callv(self.this, method, arg_array)
}
#[inline]
pub unsafe fn has_method(&self, method: GodotString) -> bool {
Object_has_method(self.this, method)
}
#[inline]
pub unsafe fn get_signal_list(&self) -> VariantArray {
Object_get_signal_list(self.this)
}
#[inline]
pub unsafe fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
Object_get_signal_connection_list(self.this, signal)
}
#[inline]
pub unsafe fn get_incoming_connections(&self) -> VariantArray {
Object_get_incoming_connections(self.this)
}
#[inline]
pub unsafe fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
Object_connect(self.this, signal, target, method, binds, flags)
}
#[inline]
pub unsafe fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
Object_disconnect(self.this, signal, target, method)
}
#[inline]
pub unsafe fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
Object_is_connected(self.this, signal, target, method)
}
#[inline]
pub unsafe fn set_block_signals(&mut self, enable: bool) -> () {
Object_set_block_signals(self.this, enable)
}
#[inline]
pub unsafe fn is_blocking_signals(&self) -> bool {
Object_is_blocking_signals(self.this)
}
#[inline]
pub unsafe fn property_list_changed_notify(&mut self) -> () {
Object_property_list_changed_notify(self.this)
}
#[inline]
pub unsafe fn set_message_translation(&mut self, enable: bool) -> () {
Object_set_message_translation(self.this, enable)
}
#[inline]
pub unsafe fn can_translate_messages(&self) -> bool {
Object_can_translate_messages(self.this)
}
#[inline]
pub unsafe fn tr(&self, message: GodotString) -> GodotString {
Object_tr(self.this, message)
}
#[inline]
pub unsafe fn is_queued_for_deletion(&self) -> bool {
Object_is_queued_for_deletion(self.this)
}
#[inline]
pub unsafe fn to_node(&self) -> Node {
Node { this: self.this }
}
#[inline]
pub unsafe fn to_object(&self) -> Object {
Object { this: self.this }
}
pub unsafe fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
#[derive(Copy, Clone)]
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct ScriptEditor {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for ScriptEditor {
fn class_name() -> &'static str {
"ScriptEditor"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for ScriptEditor {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl QueueFree for ScriptEditor {
unsafe fn godot_queue_free(&mut self) { self.queue_free() }
}
impl ScriptEditor {
#[inline]
pub unsafe fn _file_dialog_action(&mut self, arg0: GodotString) -> () {
ScriptEditor__file_dialog_action(self.this, arg0)
}
#[inline]
pub unsafe fn _tab_changed(&mut self, arg0: i64) -> () {
ScriptEditor__tab_changed(self.this, arg0)
}
#[inline]
pub unsafe fn _menu_option(&mut self, arg0: i64) -> () {
ScriptEditor__menu_option(self.this, arg0)
}
#[inline]
pub unsafe fn _close_current_tab(&mut self) -> () {
ScriptEditor__close_current_tab(self.this)
}
#[inline]
pub unsafe fn _close_discard_current_tab(&mut self, arg0: GodotString) -> () {
ScriptEditor__close_discard_current_tab(self.this, arg0)
}
#[inline]
pub unsafe fn _close_docs_tab(&mut self) -> () {
ScriptEditor__close_docs_tab(self.this)
}
#[inline]
pub unsafe fn _close_all_tabs(&mut self) -> () {
ScriptEditor__close_all_tabs(self.this)
}
#[inline]
pub unsafe fn _close_other_tabs(&mut self) -> () {
ScriptEditor__close_other_tabs(self.this)
}
#[inline]
pub unsafe fn _open_recent_script(&mut self, arg0: i64) -> () {
ScriptEditor__open_recent_script(self.this, arg0)
}
#[inline]
pub unsafe fn _theme_option(&mut self, arg0: i64) -> () {
ScriptEditor__theme_option(self.this, arg0)
}
#[inline]
pub unsafe fn _editor_play(&mut self) -> () {
ScriptEditor__editor_play(self.this)
}
#[inline]
pub unsafe fn _editor_pause(&mut self) -> () {
ScriptEditor__editor_pause(self.this)
}
#[inline]
pub unsafe fn _editor_stop(&mut self) -> () {
ScriptEditor__editor_stop(self.this)
}
#[inline]
pub unsafe fn _add_callback(&mut self, arg0: Option<Object>, arg1: GodotString, arg2: StringArray) -> () {
ScriptEditor__add_callback(self.this, arg0, arg1, arg2)
}
#[inline]
pub unsafe fn _reload_scripts(&mut self) -> () {
ScriptEditor__reload_scripts(self.this)
}
#[inline]
pub unsafe fn _resave_scripts(&mut self, arg0: GodotString) -> () {
ScriptEditor__resave_scripts(self.this, arg0)
}
#[inline]
pub unsafe fn _res_saved_callback(&mut self, arg0: Option<Resource>) -> () {
ScriptEditor__res_saved_callback(self.this, arg0)
}
#[inline]
pub unsafe fn _goto_script_line(&mut self, arg0: Option<Reference>, arg1: i64) -> () {
ScriptEditor__goto_script_line(self.this, arg0, arg1)
}
#[inline]
pub unsafe fn _goto_script_line2(&mut self, arg0: i64) -> () {
ScriptEditor__goto_script_line2(self.this, arg0)
}
#[inline]
pub unsafe fn _help_search(&mut self, arg0: GodotString) -> () {
ScriptEditor__help_search(self.this, arg0)
}
#[inline]
pub unsafe fn _help_index(&mut self, arg0: GodotString) -> () {
ScriptEditor__help_index(self.this, arg0)
}
#[inline]
pub unsafe fn _save_history(&mut self) -> () {
ScriptEditor__save_history(self.this)
}
#[inline]
pub unsafe fn _copy_script_path(&mut self) -> () {
ScriptEditor__copy_script_path(self.this)
}
#[inline]
pub unsafe fn _breaked(&mut self, arg0: bool, arg1: bool) -> () {
ScriptEditor__breaked(self.this, arg0, arg1)
}
#[inline]
pub unsafe fn _show_debugger(&mut self, arg0: bool) -> () {
ScriptEditor__show_debugger(self.this, arg0)
}
#[inline]
pub unsafe fn _get_debug_tooltip(&mut self, arg0: GodotString, arg1: Option<Object>) -> GodotString {
ScriptEditor__get_debug_tooltip(self.this, arg0, arg1)
}
#[inline]
pub unsafe fn _autosave_scripts(&mut self) -> () {
ScriptEditor__autosave_scripts(self.this)
}
#[inline]
pub unsafe fn _editor_settings_changed(&mut self) -> () {
ScriptEditor__editor_settings_changed(self.this)
}
#[inline]
pub unsafe fn _update_script_names(&mut self) -> () {
ScriptEditor__update_script_names(self.this)
}
#[inline]
pub unsafe fn _tree_changed(&mut self) -> () {
ScriptEditor__tree_changed(self.this)
}
#[inline]
pub unsafe fn _members_overview_selected(&mut self, arg0: i64) -> () {
ScriptEditor__members_overview_selected(self.this, arg0)
}
#[inline]
pub unsafe fn _help_overview_selected(&mut self, arg0: i64) -> () {
ScriptEditor__help_overview_selected(self.this, arg0)
}
#[inline]
pub unsafe fn _script_selected(&mut self, arg0: i64) -> () {
ScriptEditor__script_selected(self.this, arg0)
}
#[inline]
pub unsafe fn _script_created(&mut self, arg0: Option<Script>) -> () {
ScriptEditor__script_created(self.this, arg0)
}
#[inline]
pub unsafe fn _script_split_dragged(&mut self, arg0: f64) -> () {
ScriptEditor__script_split_dragged(self.this, arg0)
}
#[inline]
pub unsafe fn _help_class_open(&mut self, arg0: GodotString) -> () {
ScriptEditor__help_class_open(self.this, arg0)
}
#[inline]
pub unsafe fn _help_class_goto(&mut self, arg0: GodotString) -> () {
ScriptEditor__help_class_goto(self.this, arg0)
}
#[inline]
pub unsafe fn _request_help(&mut self, arg0: GodotString) -> () {
ScriptEditor__request_help(self.this, arg0)
}
#[inline]
pub unsafe fn _history_forward(&mut self) -> () {
ScriptEditor__history_forward(self.this)
}
#[inline]
pub unsafe fn _history_back(&mut self) -> () {
ScriptEditor__history_back(self.this)
}
#[inline]
pub unsafe fn _live_auto_reload_running_scripts(&mut self) -> () {
ScriptEditor__live_auto_reload_running_scripts(self.this)
}
#[inline]
pub unsafe fn _unhandled_input(&mut self, arg0: Option<InputEvent>) -> () {
ScriptEditor__unhandled_input(self.this, arg0)
}
#[inline]
pub unsafe fn _script_list_gui_input(&mut self, arg0: Option<InputEvent>) -> () {
ScriptEditor__script_list_gui_input(self.this, arg0)
}
#[inline]
pub unsafe fn _toggle_members_overview_alpha_sort(&mut self, arg0: bool) -> () {
ScriptEditor__toggle_members_overview_alpha_sort(self.this, arg0)
}
#[inline]
pub unsafe fn _update_members_overview(&mut self) -> () {
ScriptEditor__update_members_overview(self.this)
}
#[inline]
pub unsafe fn _script_changed(&mut self) -> () {
ScriptEditor__script_changed(self.this)
}
#[inline]
pub unsafe fn _update_recent_scripts(&mut self) -> () {
ScriptEditor__update_recent_scripts(self.this)
}
#[inline]
pub unsafe fn _on_find_in_files_requested(&mut self, arg0: GodotString) -> () {
ScriptEditor__on_find_in_files_requested(self.this, arg0)
}
#[inline]
pub unsafe fn _start_find_in_files(&mut self, arg0: bool) -> () {
ScriptEditor__start_find_in_files(self.this, arg0)
}
#[inline]
pub unsafe fn _on_find_in_files_result_selected(&mut self, arg0: GodotString, arg1: i64, arg2: i64, arg3: i64) -> () {
ScriptEditor__on_find_in_files_result_selected(self.this, arg0, arg1, arg2, arg3)
}
#[inline]
pub unsafe fn _on_find_in_files_modified_files(&mut self, arg0: StringArray) -> () {
ScriptEditor__on_find_in_files_modified_files(self.this, arg0)
}
#[inline]
pub unsafe fn get_drag_data_fw(&mut self, point: Vector2, from: Option<Object>) -> Variant {
ScriptEditor_get_drag_data_fw(self.this, point, from)
}
#[inline]
pub unsafe fn can_drop_data_fw(&self, point: Vector2, data: Variant, from: Option<Object>) -> bool {
ScriptEditor_can_drop_data_fw(self.this, point, data, from)
}
#[inline]
pub unsafe fn drop_data_fw(&mut self, point: Vector2, data: Variant, from: Option<Object>) -> () {
ScriptEditor_drop_data_fw(self.this, point, data, from)
}
#[inline]
pub unsafe fn get_current_script(&mut self) -> Option<Script> {
ScriptEditor_get_current_script(self.this)
}
#[inline]
pub unsafe fn get_open_scripts(&self) -> VariantArray {
ScriptEditor_get_open_scripts(self.this)
}
#[inline]
pub unsafe fn open_script_create_dialog(&mut self, base_name: GodotString, base_path: GodotString) -> () {
ScriptEditor_open_script_create_dialog(self.this, base_name, base_path)
}
#[inline]
pub unsafe fn _sort_children(&mut self) -> () {
Container__sort_children(self.this)
}
#[inline]
pub unsafe fn _child_minsize_changed(&mut self) -> () {
Container__child_minsize_changed(self.this)
}
#[inline]
pub unsafe fn queue_sort(&mut self) -> () {
Container_queue_sort(self.this)
}
#[inline]
pub unsafe fn fit_child_in_rect(&mut self, child: Option<Object>, rect: Rect2) -> () {
Container_fit_child_in_rect(self.this, child, rect)
}
#[inline]
pub unsafe fn _gui_input(&mut self, event: Option<InputEvent>) -> () {
Control__gui_input(self.this, event)
}
#[inline]
pub unsafe fn _get_minimum_size(&mut self) -> Vector2 {
Control__get_minimum_size(self.this)
}
#[inline]
pub unsafe fn get_drag_data(&mut self, position: Vector2) -> Option<Object> {
Control_get_drag_data(self.this, position)
}
#[inline]
pub unsafe fn can_drop_data(&mut self, position: Vector2, data: Variant) -> bool {
Control_can_drop_data(self.this, position, data)
}
#[inline]
pub unsafe fn drop_data(&mut self, position: Vector2, data: Variant) -> () {
Control_drop_data(self.this, position, data)
}
#[inline]
pub unsafe fn _make_custom_tooltip(&mut self, for_text: GodotString) -> Option<Object> {
Control__make_custom_tooltip(self.this, for_text)
}
#[inline]
pub unsafe fn has_point(&mut self, point: Vector2) -> bool {
Control_has_point(self.this, point)
}
#[inline]
pub unsafe fn _size_changed(&mut self) -> () {
Control__size_changed(self.this)
}
#[inline]
pub unsafe fn _update_minimum_size(&mut self) -> () {
Control__update_minimum_size(self.this)
}
#[inline]
pub unsafe fn accept_event(&mut self) -> () {
Control_accept_event(self.this)
}
#[inline]
pub unsafe fn get_minimum_size(&self) -> Vector2 {
Control_get_minimum_size(self.this)
}
#[inline]
pub unsafe fn get_combined_minimum_size(&self) -> Vector2 {
Control_get_combined_minimum_size(self.this)
}
#[inline]
pub unsafe fn set_anchors_preset(&mut self, preset: i64, keep_margin: bool) -> () {
Control_set_anchors_preset(self.this, preset, keep_margin)
}
#[inline]
pub unsafe fn set_margins_preset(&mut self, preset: i64, resize_mode: i64, margin: i64) -> () {
Control_set_margins_preset(self.this, preset, resize_mode, margin)
}
#[inline]
pub unsafe fn set_anchors_and_margins_preset(&mut self, preset: i64, resize_mode: i64, margin: i64) -> () {
Control_set_anchors_and_margins_preset(self.this, preset, resize_mode, margin)
}
#[inline]
pub unsafe fn set_anchor(&mut self, margin: i64, anchor: f64, keep_margin: bool, push_opposite_anchor: bool) -> () {
Control_set_anchor(self.this, margin, anchor, keep_margin, push_opposite_anchor)
}
#[inline]
pub unsafe fn _set_anchor(&mut self, margin: i64, anchor: f64) -> () {
Control__set_anchor(self.this, margin, anchor)
}
#[inline]
pub unsafe fn get_anchor(&self, margin: i64) -> f64 {
Control_get_anchor(self.this, margin)
}
#[inline]
pub unsafe fn set_margin(&mut self, margin: i64, offset: f64) -> () {
Control_set_margin(self.this, margin, offset)
}
#[inline]
pub unsafe fn set_anchor_and_margin(&mut self, margin: i64, anchor: f64, offset: f64, push_opposite_anchor: bool) -> () {
Control_set_anchor_and_margin(self.this, margin, anchor, offset, push_opposite_anchor)
}
#[inline]
pub unsafe fn set_begin(&mut self, position: Vector2) -> () {
Control_set_begin(self.this, position)
}
#[inline]
pub unsafe fn set_end(&mut self, position: Vector2) -> () {
Control_set_end(self.this, position)
}
#[inline]
pub unsafe fn set_position(&mut self, position: Vector2) -> () {
Control_set_position(self.this, position)
}
#[inline]
pub unsafe fn set_size(&mut self, size: Vector2) -> () {
Control_set_size(self.this, size)
}
#[inline]
pub unsafe fn set_custom_minimum_size(&mut self, size: Vector2) -> () {
Control_set_custom_minimum_size(self.this, size)
}
#[inline]
pub unsafe fn set_global_position(&mut self, position: Vector2) -> () {
Control_set_global_position(self.this, position)
}
#[inline]
pub unsafe fn set_rotation(&mut self, radians: f64) -> () {
Control_set_rotation(self.this, radians)
}
#[inline]
pub unsafe fn set_rotation_degrees(&mut self, degrees: f64) -> () {
Control_set_rotation_degrees(self.this, degrees)
}
#[inline]
pub unsafe fn set_scale(&mut self, scale: Vector2) -> () {
Control_set_scale(self.this, scale)
}
#[inline]
pub unsafe fn set_pivot_offset(&mut self, pivot_offset: Vector2) -> () {
Control_set_pivot_offset(self.this, pivot_offset)
}
#[inline]
pub unsafe fn get_margin(&self, margin: i64) -> f64 {
Control_get_margin(self.this, margin)
}
#[inline]
pub unsafe fn get_begin(&self) -> Vector2 {
Control_get_begin(self.this)
}
#[inline]
pub unsafe fn get_end(&self) -> Vector2 {
Control_get_end(self.this)
}
#[inline]
pub unsafe fn get_position(&self) -> Vector2 {
Control_get_position(self.this)
}
#[inline]
pub unsafe fn get_size(&self) -> Vector2 {
Control_get_size(self.this)
}
#[inline]
pub unsafe fn get_rotation(&self) -> f64 {
Control_get_rotation(self.this)
}
#[inline]
pub unsafe fn get_rotation_degrees(&self) -> f64 {
Control_get_rotation_degrees(self.this)
}
#[inline]
pub unsafe fn get_scale(&self) -> Vector2 {
Control_get_scale(self.this)
}
#[inline]
pub unsafe fn get_pivot_offset(&self) -> Vector2 {
Control_get_pivot_offset(self.this)
}
#[inline]
pub unsafe fn get_custom_minimum_size(&self) -> Vector2 {
Control_get_custom_minimum_size(self.this)
}
#[inline]
pub unsafe fn get_parent_area_size(&self) -> Vector2 {
Control_get_parent_area_size(self.this)
}
#[inline]
pub unsafe fn get_global_position(&self) -> Vector2 {
Control_get_global_position(self.this)
}
#[inline]
pub unsafe fn get_rect(&self) -> Rect2 {
Control_get_rect(self.this)
}
#[inline]
pub unsafe fn get_global_rect(&self) -> Rect2 {
Control_get_global_rect(self.this)
}
#[inline]
pub unsafe fn show_modal(&mut self, exclusive: bool) -> () {
Control_show_modal(self.this, exclusive)
}
#[inline]
pub unsafe fn set_focus_mode(&mut self, mode: i64) -> () {
Control_set_focus_mode(self.this, mode)
}
#[inline]
pub unsafe fn get_focus_mode(&self) -> ControlFocusMode {
Control_get_focus_mode(self.this)
}
#[inline]
pub unsafe fn has_focus(&self) -> bool {
Control_has_focus(self.this)
}
#[inline]
pub unsafe fn grab_focus(&mut self) -> () {
Control_grab_focus(self.this)
}
#[inline]
pub unsafe fn release_focus(&mut self) -> () {
Control_release_focus(self.this)
}
#[inline]
pub unsafe fn get_focus_owner(&self) -> Option<Control> {
Control_get_focus_owner(self.this)
}
#[inline]
pub unsafe fn set_h_size_flags(&mut self, flags: i64) -> () {
Control_set_h_size_flags(self.this, flags)
}
#[inline]
pub unsafe fn get_h_size_flags(&self) -> i64 {
Control_get_h_size_flags(self.this)
}
#[inline]
pub unsafe fn set_stretch_ratio(&mut self, ratio: f64) -> () {
Control_set_stretch_ratio(self.this, ratio)
}
#[inline]
pub unsafe fn get_stretch_ratio(&self) -> f64 {
Control_get_stretch_ratio(self.this)
}
#[inline]
pub unsafe fn set_v_size_flags(&mut self, flags: i64) -> () {
Control_set_v_size_flags(self.this, flags)
}
#[inline]
pub unsafe fn get_v_size_flags(&self) -> i64 {
Control_get_v_size_flags(self.this)
}
#[inline]
pub unsafe fn set_theme(&mut self, theme: Option<Theme>) -> () {
Control_set_theme(self.this, theme)
}
#[inline]
pub unsafe fn get_theme(&self) -> Option<Theme> {
Control_get_theme(self.this)
}
#[inline]
pub unsafe fn add_icon_override(&mut self, name: GodotString, texture: Option<Texture>) -> () {
Control_add_icon_override(self.this, name, texture)
}
#[inline]
pub unsafe fn add_shader_override(&mut self, name: GodotString, shader: Option<Shader>) -> () {
Control_add_shader_override(self.this, name, shader)
}
#[inline]
pub unsafe fn add_stylebox_override(&mut self, name: GodotString, stylebox: Option<StyleBox>) -> () {
Control_add_stylebox_override(self.this, name, stylebox)
}
#[inline]
pub unsafe fn add_font_override(&mut self, name: GodotString, font: Option<Font>) -> () {
Control_add_font_override(self.this, name, font)
}
#[inline]
pub unsafe fn add_color_override(&mut self, name: GodotString, color: Color) -> () {
Control_add_color_override(self.this, name, color)
}
#[inline]
pub unsafe fn add_constant_override(&mut self, name: GodotString, constant: i64) -> () {
Control_add_constant_override(self.this, name, constant)
}
#[inline]
pub unsafe fn get_icon(&self, name: GodotString, _type: GodotString) -> Option<Texture> {
Control_get_icon(self.this, name, _type)
}
#[inline]
pub unsafe fn get_stylebox(&self, name: GodotString, _type: GodotString) -> Option<StyleBox> {
Control_get_stylebox(self.this, name, _type)
}
#[inline]
pub unsafe fn get_font(&self, name: GodotString, _type: GodotString) -> Option<Font> {
Control_get_font(self.this, name, _type)
}
#[inline]
pub unsafe fn get_color(&self, name: GodotString, _type: GodotString) -> Color {
Control_get_color(self.this, name, _type)
}
#[inline]
pub unsafe fn get_constant(&self, name: GodotString, _type: GodotString) -> i64 {
Control_get_constant(self.this, name, _type)
}
#[inline]
pub unsafe fn has_icon_override(&self, name: GodotString) -> bool {
Control_has_icon_override(self.this, name)
}
#[inline]
pub unsafe fn has_shader_override(&self, name: GodotString) -> bool {
Control_has_shader_override(self.this, name)
}
#[inline]
pub unsafe fn has_stylebox_override(&self, name: GodotString) -> bool {
Control_has_stylebox_override(self.this, name)
}
#[inline]
pub unsafe fn has_font_override(&self, name: GodotString) -> bool {
Control_has_font_override(self.this, name)
}
#[inline]
pub unsafe fn has_color_override(&self, name: GodotString) -> bool {
Control_has_color_override(self.this, name)
}
#[inline]
pub unsafe fn has_constant_override(&self, name: GodotString) -> bool {
Control_has_constant_override(self.this, name)
}
#[inline]
pub unsafe fn has_icon(&self, name: GodotString, _type: GodotString) -> bool {
Control_has_icon(self.this, name, _type)
}
#[inline]
pub unsafe fn has_stylebox(&self, name: GodotString, _type: GodotString) -> bool {
Control_has_stylebox(self.this, name, _type)
}
#[inline]
pub unsafe fn has_font(&self, name: GodotString, _type: GodotString) -> bool {
Control_has_font(self.this, name, _type)
}
#[inline]
pub unsafe fn has_color(&self, name: GodotString, _type: GodotString) -> bool {
Control_has_color(self.this, name, _type)
}
#[inline]
pub unsafe fn has_constant(&self, name: GodotString, _type: GodotString) -> bool {
Control_has_constant(self.this, name, _type)
}
#[inline]
pub unsafe fn get_parent_control(&self) -> Option<Control> {
Control_get_parent_control(self.this)
}
#[inline]
pub unsafe fn set_h_grow_direction(&mut self, direction: i64) -> () {
Control_set_h_grow_direction(self.this, direction)
}
#[inline]
pub unsafe fn get_h_grow_direction(&self) -> ControlGrowDirection {
Control_get_h_grow_direction(self.this)
}
#[inline]
pub unsafe fn set_v_grow_direction(&mut self, direction: i64) -> () {
Control_set_v_grow_direction(self.this, direction)
}
#[inline]
pub unsafe fn get_v_grow_direction(&self) -> ControlGrowDirection {
Control_get_v_grow_direction(self.this)
}
#[inline]
pub unsafe fn set_tooltip(&mut self, tooltip: GodotString) -> () {
Control_set_tooltip(self.this, tooltip)
}
#[inline]
pub unsafe fn get_tooltip(&self, at_position: Vector2) -> GodotString {
Control_get_tooltip(self.this, at_position)
}
#[inline]
pub unsafe fn _get_tooltip(&self) -> GodotString {
Control__get_tooltip(self.this)
}
#[inline]
pub unsafe fn set_default_cursor_shape(&mut self, shape: i64) -> () {
Control_set_default_cursor_shape(self.this, shape)
}
#[inline]
pub unsafe fn get_default_cursor_shape(&self) -> ControlCursorShape {
Control_get_default_cursor_shape(self.this)
}
#[inline]
pub unsafe fn get_cursor_shape(&self, position: Vector2) -> ControlCursorShape {
Control_get_cursor_shape(self.this, position)
}
#[inline]
pub unsafe fn set_focus_neighbour(&mut self, margin: i64, neighbour: NodePath) -> () {
Control_set_focus_neighbour(self.this, margin, neighbour)
}
#[inline]
pub unsafe fn get_focus_neighbour(&self, margin: i64) -> NodePath {
Control_get_focus_neighbour(self.this, margin)
}
#[inline]
pub unsafe fn set_focus_next(&mut self, next: NodePath) -> () {
Control_set_focus_next(self.this, next)
}
#[inline]
pub unsafe fn get_focus_next(&self) -> NodePath {
Control_get_focus_next(self.this)
}
#[inline]
pub unsafe fn set_focus_previous(&mut self, previous: NodePath) -> () {
Control_set_focus_previous(self.this, previous)
}
#[inline]
pub unsafe fn get_focus_previous(&self) -> NodePath {
Control_get_focus_previous(self.this)
}
#[inline]
pub unsafe fn force_drag(&mut self, data: Variant, preview: Option<Object>) -> () {
Control_force_drag(self.this, data, preview)
}
#[inline]
pub unsafe fn set_mouse_filter(&mut self, filter: i64) -> () {
Control_set_mouse_filter(self.this, filter)
}
#[inline]
pub unsafe fn get_mouse_filter(&self) -> ControlMouseFilter {
Control_get_mouse_filter(self.this)
}
#[inline]
pub unsafe fn set_clip_contents(&mut self, enable: bool) -> () {
Control_set_clip_contents(self.this, enable)
}
#[inline]
pub unsafe fn is_clipping_contents(&mut self) -> bool {
Control_is_clipping_contents(self.this)
}
#[inline]
pub unsafe fn grab_click_focus(&mut self) -> () {
Control_grab_click_focus(self.this)
}
#[inline]
pub unsafe fn set_drag_forwarding(&mut self, target: Option<Object>) -> () {
Control_set_drag_forwarding(self.this, target)
}
#[inline]
pub unsafe fn set_drag_preview(&mut self, control: Option<Object>) -> () {
Control_set_drag_preview(self.this, control)
}
#[inline]
pub unsafe fn warp_mouse(&mut self, to_position: Vector2) -> () {
Control_warp_mouse(self.this, to_position)
}
#[inline]
pub unsafe fn minimum_size_changed(&mut self) -> () {
Control_minimum_size_changed(self.this)
}
#[inline]
pub unsafe fn _theme_changed(&mut self) -> () {
Control__theme_changed(self.this)
}
#[inline]
pub unsafe fn _font_changed(&mut self) -> () {
Control__font_changed(self.this)
}
#[inline]
pub unsafe fn _draw(&mut self) -> () {
CanvasItem__draw(self.this)
}
#[inline]
pub unsafe fn _toplevel_raise_self(&mut self) -> () {
CanvasItem__toplevel_raise_self(self.this)
}
#[inline]
pub unsafe fn _update_callback(&mut self) -> () {
CanvasItem__update_callback(self.this)
}
#[inline]
pub unsafe fn _edit_set_state(&mut self, state: Dictionary) -> () {
CanvasItem__edit_set_state(self.this, state)
}
#[inline]
pub unsafe fn _edit_get_state(&self) -> Dictionary {
CanvasItem__edit_get_state(self.this)
}
#[inline]
pub unsafe fn _edit_set_position(&mut self, position: Vector2) -> () {
CanvasItem__edit_set_position(self.this, position)
}
#[inline]
pub unsafe fn _edit_get_position(&self) -> Vector2 {
CanvasItem__edit_get_position(self.this)
}
#[inline]
pub unsafe fn _edit_set_scale(&mut self, scale: Vector2) -> () {
CanvasItem__edit_set_scale(self.this, scale)
}
#[inline]
pub unsafe fn _edit_get_scale(&self) -> Vector2 {
CanvasItem__edit_get_scale(self.this)
}
#[inline]
pub unsafe fn _edit_set_rect(&mut self, rect: Rect2) -> () {
CanvasItem__edit_set_rect(self.this, rect)
}
#[inline]
pub unsafe fn _edit_get_rect(&self) -> Rect2 {
CanvasItem__edit_get_rect(self.this)
}
#[inline]
pub unsafe fn _edit_use_rect(&self) -> bool {
CanvasItem__edit_use_rect(self.this)
}
#[inline]
pub unsafe fn _edit_set_rotation(&mut self, degrees: f64) -> () {
CanvasItem__edit_set_rotation(self.this, degrees)
}
#[inline]
pub unsafe fn _edit_get_rotation(&self) -> f64 {
CanvasItem__edit_get_rotation(self.this)
}
#[inline]
pub unsafe fn _edit_use_rotation(&self) -> bool {
CanvasItem__edit_use_rotation(self.this)
}
#[inline]
pub unsafe fn _edit_set_pivot(&mut self, pivot: Vector2) -> () {
CanvasItem__edit_set_pivot(self.this, pivot)
}
#[inline]
pub unsafe fn _edit_get_pivot(&self) -> Vector2 {
CanvasItem__edit_get_pivot(self.this)
}
#[inline]
pub unsafe fn _edit_use_pivot(&self) -> bool {
CanvasItem__edit_use_pivot(self.this)
}
#[inline]
pub unsafe fn get_canvas_item(&self) -> Rid {
CanvasItem_get_canvas_item(self.this)
}
#[inline]
pub unsafe fn set_visible(&mut self, visible: bool) -> () {
CanvasItem_set_visible(self.this, visible)
}
#[inline]
pub unsafe fn is_visible(&self) -> bool {
CanvasItem_is_visible(self.this)
}
#[inline]
pub unsafe fn is_visible_in_tree(&self) -> bool {
CanvasItem_is_visible_in_tree(self.this)
}
#[inline]
pub unsafe fn show(&mut self) -> () {
CanvasItem_show(self.this)
}
#[inline]
pub unsafe fn hide(&mut self) -> () {
CanvasItem_hide(self.this)
}
#[inline]
pub unsafe fn update(&mut self) -> () {
CanvasItem_update(self.this)
}
#[inline]
pub unsafe fn set_as_toplevel(&mut self, enable: bool) -> () {
CanvasItem_set_as_toplevel(self.this, enable)
}
#[inline]
pub unsafe fn is_set_as_toplevel(&self) -> bool {
CanvasItem_is_set_as_toplevel(self.this)
}
#[inline]
pub unsafe fn set_light_mask(&mut self, light_mask: i64) -> () {
CanvasItem_set_light_mask(self.this, light_mask)
}
#[inline]
pub unsafe fn get_light_mask(&self) -> i64 {
CanvasItem_get_light_mask(self.this)
}
#[inline]
pub unsafe fn set_modulate(&mut self, modulate: Color) -> () {
CanvasItem_set_modulate(self.this, modulate)
}
#[inline]
pub unsafe fn get_modulate(&self) -> Color {
CanvasItem_get_modulate(self.this)
}
#[inline]
pub unsafe fn set_self_modulate(&mut self, self_modulate: Color) -> () {
CanvasItem_set_self_modulate(self.this, self_modulate)
}
#[inline]
pub unsafe fn get_self_modulate(&self) -> Color {
CanvasItem_get_self_modulate(self.this)
}
#[inline]
pub unsafe fn set_draw_behind_parent(&mut self, enable: bool) -> () {
CanvasItem_set_draw_behind_parent(self.this, enable)
}
#[inline]
pub unsafe fn is_draw_behind_parent_enabled(&self) -> bool {
CanvasItem_is_draw_behind_parent_enabled(self.this)
}
#[inline]
pub unsafe fn _set_on_top(&mut self, on_top: bool) -> () {
CanvasItem__set_on_top(self.this, on_top)
}
#[inline]
pub unsafe fn _is_on_top(&self) -> bool {
CanvasItem__is_on_top(self.this)
}
#[inline]
pub unsafe fn draw_line(&mut self, from: Vector2, to: Vector2, color: Color, width: f64, antialiased: bool) -> () {
CanvasItem_draw_line(self.this, from, to, color, width, antialiased)
}
#[inline]
pub unsafe fn draw_polyline(&mut self, points: Vector2Array, color: Color, width: f64, antialiased: bool) -> () {
CanvasItem_draw_polyline(self.this, points, color, width, antialiased)
}
#[inline]
pub unsafe fn draw_polyline_colors(&mut self, points: Vector2Array, colors: ColorArray, width: f64, antialiased: bool) -> () {
CanvasItem_draw_polyline_colors(self.this, points, colors, width, antialiased)
}
#[inline]
pub unsafe fn draw_multiline(&mut self, points: Vector2Array, color: Color, width: f64, antialiased: bool) -> () {
CanvasItem_draw_multiline(self.this, points, color, width, antialiased)
}
#[inline]
pub unsafe fn draw_multiline_colors(&mut self, points: Vector2Array, colors: ColorArray, width: f64, antialiased: bool) -> () {
CanvasItem_draw_multiline_colors(self.this, points, colors, width, antialiased)
}
#[inline]
pub unsafe fn draw_rect(&mut self, rect: Rect2, color: Color, filled: bool) -> () {
CanvasItem_draw_rect(self.this, rect, color, filled)
}
#[inline]
pub unsafe fn draw_circle(&mut self, position: Vector2, radius: f64, color: Color) -> () {
CanvasItem_draw_circle(self.this, position, radius, color)
}
#[inline]
pub unsafe fn draw_texture(&mut self, texture: Option<Texture>, position: Vector2, modulate: Color, normal_map: Option<Texture>) -> () {
CanvasItem_draw_texture(self.this, texture, position, modulate, normal_map)
}
#[inline]
pub unsafe fn draw_texture_rect(&mut self, texture: Option<Texture>, rect: Rect2, tile: bool, modulate: Color, transpose: bool, normal_map: Option<Texture>) -> () {
CanvasItem_draw_texture_rect(self.this, texture, rect, tile, modulate, transpose, normal_map)
}
#[inline]
pub unsafe fn draw_texture_rect_region(&mut self, texture: Option<Texture>, rect: Rect2, src_rect: Rect2, modulate: Color, transpose: bool, normal_map: Option<Texture>, clip_uv: bool) -> () {
CanvasItem_draw_texture_rect_region(self.this, texture, rect, src_rect, modulate, transpose, normal_map, clip_uv)
}
#[inline]
pub unsafe fn draw_style_box(&mut self, style_box: Option<StyleBox>, rect: Rect2) -> () {
CanvasItem_draw_style_box(self.this, style_box, rect)
}
#[inline]
pub unsafe fn draw_primitive(&mut self, points: Vector2Array, colors: ColorArray, uvs: Vector2Array, texture: Option<Texture>, width: f64, normal_map: Option<Texture>) -> () {
CanvasItem_draw_primitive(self.this, points, colors, uvs, texture, width, normal_map)
}
#[inline]
pub unsafe fn draw_polygon(&mut self, points: Vector2Array, colors: ColorArray, uvs: Vector2Array, texture: Option<Texture>, normal_map: Option<Texture>, antialiased: bool) -> () {
CanvasItem_draw_polygon(self.this, points, colors, uvs, texture, normal_map, antialiased)
}
#[inline]
pub unsafe fn draw_colored_polygon(&mut self, points: Vector2Array, color: Color, uvs: Vector2Array, texture: Option<Texture>, normal_map: Option<Texture>, antialiased: bool) -> () {
CanvasItem_draw_colored_polygon(self.this, points, color, uvs, texture, normal_map, antialiased)
}
#[inline]
pub unsafe fn draw_string(&mut self, font: Option<Font>, position: Vector2, text: GodotString, modulate: Color, clip_w: i64) -> () {
CanvasItem_draw_string(self.this, font, position, text, modulate, clip_w)
}
#[inline]
pub unsafe fn draw_char(&mut self, font: Option<Font>, position: Vector2, char: GodotString, next: GodotString, modulate: Color) -> f64 {
CanvasItem_draw_char(self.this, font, position, char, next, modulate)
}
#[inline]
pub unsafe fn draw_mesh(&mut self, mesh: Option<Mesh>, texture: Option<Texture>, normal_map: Option<Texture>) -> () {
CanvasItem_draw_mesh(self.this, mesh, texture, normal_map)
}
#[inline]
pub unsafe fn draw_multimesh(&mut self, mesh: Option<Mesh>, texture: Option<Texture>, normal_map: Option<Texture>) -> () {
CanvasItem_draw_multimesh(self.this, mesh, texture, normal_map)
}
#[inline]
pub unsafe fn draw_set_transform(&mut self, position: Vector2, rotation: f64, scale: Vector2) -> () {
CanvasItem_draw_set_transform(self.this, position, rotation, scale)
}
#[inline]
pub unsafe fn draw_set_transform_matrix(&mut self, xform: Transform2D) -> () {
CanvasItem_draw_set_transform_matrix(self.this, xform)
}
#[inline]
pub unsafe fn get_transform(&self) -> Transform2D {
CanvasItem_get_transform(self.this)
}
#[inline]
pub unsafe fn get_global_transform(&self) -> Transform2D {
CanvasItem_get_global_transform(self.this)
}
#[inline]
pub unsafe fn get_global_transform_with_canvas(&self) -> Transform2D {
CanvasItem_get_global_transform_with_canvas(self.this)
}
#[inline]
pub unsafe fn get_viewport_transform(&self) -> Transform2D {
CanvasItem_get_viewport_transform(self.this)
}
#[inline]
pub unsafe fn get_viewport_rect(&self) -> Rect2 {
CanvasItem_get_viewport_rect(self.this)
}
#[inline]
pub unsafe fn get_canvas_transform(&self) -> Transform2D {
CanvasItem_get_canvas_transform(self.this)
}
#[inline]
pub unsafe fn get_local_mouse_position(&self) -> Vector2 {
CanvasItem_get_local_mouse_position(self.this)
}
#[inline]
pub unsafe fn get_global_mouse_position(&self) -> Vector2 {
CanvasItem_get_global_mouse_position(self.this)
}
#[inline]
pub unsafe fn get_canvas(&self) -> Rid {
CanvasItem_get_canvas(self.this)
}
#[inline]
pub unsafe fn get_world_2d(&self) -> Option<World2D> {
CanvasItem_get_world_2d(self.this)
}
#[inline]
pub unsafe fn set_material(&mut self, material: Option<Material>) -> () {
CanvasItem_set_material(self.this, material)
}
#[inline]
pub unsafe fn get_material(&self) -> Option<Material> {
CanvasItem_get_material(self.this)
}
#[inline]
pub unsafe fn set_use_parent_material(&mut self, enable: bool) -> () {
CanvasItem_set_use_parent_material(self.this, enable)
}
#[inline]
pub unsafe fn get_use_parent_material(&self) -> bool {
CanvasItem_get_use_parent_material(self.this)
}
#[inline]
pub unsafe fn set_notify_local_transform(&mut self, enable: bool) -> () {
CanvasItem_set_notify_local_transform(self.this, enable)
}
#[inline]
pub unsafe fn is_local_transform_notification_enabled(&self) -> bool {
CanvasItem_is_local_transform_notification_enabled(self.this)
}
#[inline]
pub unsafe fn set_notify_transform(&mut self, enable: bool) -> () {
CanvasItem_set_notify_transform(self.this, enable)
}
#[inline]
pub unsafe fn is_transform_notification_enabled(&self) -> bool {
CanvasItem_is_transform_notification_enabled(self.this)
}
#[inline]
pub unsafe fn make_canvas_position_local(&self, screen_point: Vector2) -> Vector2 {
CanvasItem_make_canvas_position_local(self.this, screen_point)
}
#[inline]
pub unsafe fn make_input_local(&self, event: Option<InputEvent>) -> Option<InputEvent> {
CanvasItem_make_input_local(self.this, event)
}
#[inline]
pub unsafe fn _process(&mut self, delta: f64) -> () {
Node__process(self.this, delta)
}
#[inline]
pub unsafe fn _physics_process(&mut self, delta: f64) -> () {
Node__physics_process(self.this, delta)
}
#[inline]
pub unsafe fn _enter_tree(&mut self) -> () {
Node__enter_tree(self.this)
}
#[inline]
pub unsafe fn _exit_tree(&mut self) -> () {
Node__exit_tree(self.this)
}
#[inline]
pub unsafe fn _ready(&mut self) -> () {
Node__ready(self.this)
}
#[inline]
pub unsafe fn _input(&mut self, event: Option<InputEvent>) -> () {
Node__input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_key_input(&mut self, event: Option<InputEventKey>) -> () {
Node__unhandled_key_input(self.this, event)
}
#[inline]
pub unsafe fn add_child_below_node(&mut self, node: Option<Object>, child_node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child_below_node(self.this, node, child_node, legible_unique_name)
}
#[inline]
pub unsafe fn set_name(&mut self, name: GodotString) -> () {
Node_set_name(self.this, name)
}
#[inline]
pub unsafe fn get_name(&self) -> GodotString {
Node_get_name(self.this)
}
#[inline]
pub unsafe fn add_child(&mut self, node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child(self.this, node, legible_unique_name)
}
#[inline]
pub unsafe fn remove_child(&mut self, node: Option<Object>) -> () {
Node_remove_child(self.this, node)
}
#[inline]
pub unsafe fn get_child_count(&self) -> i64 {
Node_get_child_count(self.this)
}
#[inline]
pub unsafe fn get_children(&self) -> VariantArray {
Node_get_children(self.this)
}
#[inline]
pub unsafe fn get_child(&self, idx: i64) -> Option<Node> {
Node_get_child(self.this, idx)
}
#[inline]
pub unsafe fn has_node(&self, path: NodePath) -> bool {
Node_has_node(self.this, path)
}
#[inline]
pub unsafe fn get_node(&self, path: NodePath) -> Option<Node> {
Node_get_node(self.this, path)
}
#[inline]
pub unsafe fn get_parent(&self) -> Option<Node> {
Node_get_parent(self.this)
}
#[inline]
pub unsafe fn find_node(&self, mask: GodotString, recursive: bool, owned: bool) -> Option<Node> {
Node_find_node(self.this, mask, recursive, owned)
}
#[inline]
pub unsafe fn has_node_and_resource(&self, path: NodePath) -> bool {
Node_has_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn get_node_and_resource(&mut self, path: NodePath) -> VariantArray {
Node_get_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn is_inside_tree(&self) -> bool {
Node_is_inside_tree(self.this)
}
#[inline]
pub unsafe fn is_a_parent_of(&self, node: Option<Object>) -> bool {
Node_is_a_parent_of(self.this, node)
}
#[inline]
pub unsafe fn is_greater_than(&self, node: Option<Object>) -> bool {
Node_is_greater_than(self.this, node)
}
#[inline]
pub unsafe fn get_path(&self) -> NodePath {
Node_get_path(self.this)
}
#[inline]
pub unsafe fn get_path_to(&self, node: Option<Object>) -> NodePath {
Node_get_path_to(self.this, node)
}
#[inline]
pub unsafe fn add_to_group(&mut self, group: GodotString, persistent: bool) -> () {
Node_add_to_group(self.this, group, persistent)
}
#[inline]
pub unsafe fn remove_from_group(&mut self, group: GodotString) -> () {
Node_remove_from_group(self.this, group)
}
#[inline]
pub unsafe fn is_in_group(&self, group: GodotString) -> bool {
Node_is_in_group(self.this, group)
}
#[inline]
pub unsafe fn move_child(&mut self, child_node: Option<Object>, to_position: i64) -> () {
Node_move_child(self.this, child_node, to_position)
}
#[inline]
pub unsafe fn get_groups(&self) -> VariantArray {
Node_get_groups(self.this)
}
#[inline]
pub unsafe fn raise(&mut self) -> () {
Node_raise(self.this)
}
#[inline]
pub unsafe fn set_owner(&mut self, owner: Option<Object>) -> () {
Node_set_owner(self.this, owner)
}
#[inline]
pub unsafe fn get_owner(&self) -> Option<Node> {
Node_get_owner(self.this)
}
#[inline]
pub unsafe fn remove_and_skip(&mut self) -> () {
Node_remove_and_skip(self.this)
}
#[inline]
pub unsafe fn get_index(&self) -> i64 {
Node_get_index(self.this)
}
#[inline]
pub unsafe fn print_tree(&mut self) -> () {
Node_print_tree(self.this)
}
#[inline]
pub unsafe fn print_tree_pretty(&mut self) -> () {
Node_print_tree_pretty(self.this)
}
#[inline]
pub unsafe fn set_filename(&mut self, filename: GodotString) -> () {
Node_set_filename(self.this, filename)
}
#[inline]
pub unsafe fn get_filename(&self) -> GodotString {
Node_get_filename(self.this)
}
#[inline]
pub unsafe fn propagate_notification(&mut self, what: i64) -> () {
Node_propagate_notification(self.this, what)
}
#[inline]
pub unsafe fn propagate_call(&mut self, method: GodotString, args: VariantArray, parent_first: bool) -> () {
Node_propagate_call(self.this, method, args, parent_first)
}
#[inline]
pub unsafe fn set_physics_process(&mut self, enable: bool) -> () {
Node_set_physics_process(self.this, enable)
}
#[inline]
pub unsafe fn get_physics_process_delta_time(&self) -> f64 {
Node_get_physics_process_delta_time(self.this)
}
#[inline]
pub unsafe fn is_physics_processing(&self) -> bool {
Node_is_physics_processing(self.this)
}
#[inline]
pub unsafe fn get_process_delta_time(&self) -> f64 {
Node_get_process_delta_time(self.this)
}
#[inline]
pub unsafe fn set_process(&mut self, enable: bool) -> () {
Node_set_process(self.this, enable)
}
#[inline]
pub unsafe fn set_process_priority(&mut self, priority: i64) -> () {
Node_set_process_priority(self.this, priority)
}
#[inline]
pub unsafe fn is_processing(&self) -> bool {
Node_is_processing(self.this)
}
#[inline]
pub unsafe fn set_process_input(&mut self, enable: bool) -> () {
Node_set_process_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_input(&self) -> bool {
Node_is_processing_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_input(&self) -> bool {
Node_is_processing_unhandled_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_key_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_key_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_key_input(&self) -> bool {
Node_is_processing_unhandled_key_input(self.this)
}
#[inline]
pub unsafe fn set_pause_mode(&mut self, mode: i64) -> () {
Node_set_pause_mode(self.this, mode)
}
#[inline]
pub unsafe fn get_pause_mode(&self) -> NodePauseMode {
Node_get_pause_mode(self.this)
}
#[inline]
pub unsafe fn can_process(&self) -> bool {
Node_can_process(self.this)
}
#[inline]
pub unsafe fn print_stray_nodes(&mut self) -> () {
Node_print_stray_nodes(self.this)
}
#[inline]
pub unsafe fn get_position_in_parent(&self) -> i64 {
Node_get_position_in_parent(self.this)
}
#[inline]
pub unsafe fn set_display_folded(&mut self, fold: bool) -> () {
Node_set_display_folded(self.this, fold)
}
#[inline]
pub unsafe fn is_displayed_folded(&self) -> bool {
Node_is_displayed_folded(self.this)
}
#[inline]
pub unsafe fn set_process_internal(&mut self, enable: bool) -> () {
Node_set_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_internal(&self) -> bool {
Node_is_processing_internal(self.this)
}
#[inline]
pub unsafe fn set_physics_process_internal(&mut self, enable: bool) -> () {
Node_set_physics_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_physics_processing_internal(&self) -> bool {
Node_is_physics_processing_internal(self.this)
}
#[inline]
pub unsafe fn get_tree(&self) -> Option<SceneTree> {
Node_get_tree(self.this)
}
#[inline]
pub unsafe fn duplicate(&self, flags: i64) -> Option<Node> {
Node_duplicate(self.this, flags)
}
#[inline]
pub unsafe fn replace_by(&mut self, node: Option<Object>, keep_data: bool) -> () {
Node_replace_by(self.this, node, keep_data)
}
#[inline]
pub unsafe fn set_scene_instance_load_placeholder(&mut self, load_placeholder: bool) -> () {
Node_set_scene_instance_load_placeholder(self.this, load_placeholder)
}
#[inline]
pub unsafe fn get_scene_instance_load_placeholder(&self) -> bool {
Node_get_scene_instance_load_placeholder(self.this)
}
#[inline]
pub unsafe fn get_viewport(&self) -> Option<Viewport> {
Node_get_viewport(self.this)
}
#[inline]
pub unsafe fn queue_free(&mut self) -> () {
Node_queue_free(self.this)
}
#[inline]
pub unsafe fn request_ready(&mut self) -> () {
Node_request_ready(self.this)
}
#[inline]
pub unsafe fn set_network_master(&mut self, id: i64, recursive: bool) -> () {
Node_set_network_master(self.this, id, recursive)
}
#[inline]
pub unsafe fn get_network_master(&self) -> i64 {
Node_get_network_master(self.this)
}
#[inline]
pub unsafe fn is_network_master(&self) -> bool {
Node_is_network_master(self.this)
}
#[inline]
pub unsafe fn get_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_multiplayer(self.this)
}
#[inline]
pub unsafe fn get_custom_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_custom_multiplayer(self.this)
}
#[inline]
pub unsafe fn set_custom_multiplayer(&mut self, api: Option<MultiplayerAPI>) -> () {
Node_set_custom_multiplayer(self.this, api)
}
#[inline]
pub unsafe fn rpc_config(&mut self, method: GodotString, mode: i64) -> () {
Node_rpc_config(self.this, method, mode)
}
#[inline]
pub unsafe fn rset_config(&mut self, property: GodotString, mode: i64) -> () {
Node_rset_config(self.this, property, mode)
}
#[inline]
pub unsafe fn _set_import_path(&mut self, import_path: NodePath) -> () {
Node__set_import_path(self.this, import_path)
}
#[inline]
pub unsafe fn _get_import_path(&self) -> NodePath {
Node__get_import_path(self.this)
}
#[inline]
pub unsafe fn rpc(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rset(&mut self, property: GodotString, value: Variant) -> () {
Node_rset(self.this, property, value)
}
#[inline]
pub unsafe fn rset_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn rset_unreliable(&mut self, property: GodotString, value: Variant) -> () {
Node_rset_unreliable(self.this, property, value)
}
#[inline]
pub unsafe fn rset_unreliable_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_unreliable_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn _notification(&mut self, what: i64) -> () {
Object__notification(self.this, what)
}
#[inline]
pub unsafe fn _set(&mut self, property: GodotString, value: Variant) -> bool {
Object__set(self.this, property, value)
}
#[inline]
pub unsafe fn _get(&mut self, property: GodotString) -> Variant {
Object__get(self.this, property)
}
#[inline]
pub unsafe fn _get_property_list(&mut self) -> VariantArray {
Object__get_property_list(self.this)
}
#[inline]
pub unsafe fn _init(&mut self) -> () {
Object__init(self.this)
}
#[inline]
pub unsafe fn get_class(&self) -> GodotString {
Object_get_class(self.this)
}
#[inline]
pub unsafe fn is_class(&self, _type: GodotString) -> bool {
Object_is_class(self.this, _type)
}
#[inline]
pub unsafe fn set(&mut self, property: GodotString, value: Variant) -> () {
Object_set(self.this, property, value)
}
#[inline]
pub unsafe fn get(&self, property: GodotString) -> Variant {
Object_get(self.this, property)
}
#[inline]
pub unsafe fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
Object_set_indexed(self.this, property, value)
}
#[inline]
pub unsafe fn get_indexed(&self, property: NodePath) -> Variant {
Object_get_indexed(self.this, property)
}
#[inline]
pub unsafe fn get_property_list(&self) -> VariantArray {
Object_get_property_list(self.this)
}
#[inline]
pub unsafe fn get_method_list(&self) -> VariantArray {
Object_get_method_list(self.this)
}
#[inline]
pub unsafe fn notification(&mut self, what: i64, reversed: bool) -> () {
Object_notification(self.this, what, reversed)
}
#[inline]
pub unsafe fn get_instance_id(&self) -> i64 {
Object_get_instance_id(self.this)
}
#[inline]
pub unsafe fn set_script(&mut self, script: Option<Reference>) -> () {
Object_set_script(self.this, script)
}
#[inline]
pub unsafe fn get_script(&self) -> Option<Reference> {
Object_get_script(self.this)
}
#[inline]
pub unsafe fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
Object_set_meta(self.this, name, value)
}
#[inline]
pub unsafe fn get_meta(&self, name: GodotString) -> Variant {
Object_get_meta(self.this, name)
}
#[inline]
pub unsafe fn has_meta(&self, name: GodotString) -> bool {
Object_has_meta(self.this, name)
}
#[inline]
pub unsafe fn get_meta_list(&self) -> StringArray {
Object_get_meta_list(self.this)
}
#[inline]
pub unsafe fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
Object_add_user_signal(self.this, signal, arguments)
}
#[inline]
pub unsafe fn has_user_signal(&self, signal: GodotString) -> bool {
Object_has_user_signal(self.this, signal)
}
#[inline]
pub unsafe fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
Object_emit_signal(self.this, signal, varargs)
}
#[inline]
pub unsafe fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call(self.this, method, varargs)
}
#[inline]
pub unsafe fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call_deferred(self.this, method, varargs)
}
#[inline]
pub unsafe fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
Object_callv(self.this, method, arg_array)
}
#[inline]
pub unsafe fn has_method(&self, method: GodotString) -> bool {
Object_has_method(self.this, method)
}
#[inline]
pub unsafe fn get_signal_list(&self) -> VariantArray {
Object_get_signal_list(self.this)
}
#[inline]
pub unsafe fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
Object_get_signal_connection_list(self.this, signal)
}
#[inline]
pub unsafe fn get_incoming_connections(&self) -> VariantArray {
Object_get_incoming_connections(self.this)
}
#[inline]
pub unsafe fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
Object_connect(self.this, signal, target, method, binds, flags)
}
#[inline]
pub unsafe fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
Object_disconnect(self.this, signal, target, method)
}
#[inline]
pub unsafe fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
Object_is_connected(self.this, signal, target, method)
}
#[inline]
pub unsafe fn set_block_signals(&mut self, enable: bool) -> () {
Object_set_block_signals(self.this, enable)
}
#[inline]
pub unsafe fn is_blocking_signals(&self) -> bool {
Object_is_blocking_signals(self.this)
}
#[inline]
pub unsafe fn property_list_changed_notify(&mut self) -> () {
Object_property_list_changed_notify(self.this)
}
#[inline]
pub unsafe fn set_message_translation(&mut self, enable: bool) -> () {
Object_set_message_translation(self.this, enable)
}
#[inline]
pub unsafe fn can_translate_messages(&self) -> bool {
Object_can_translate_messages(self.this)
}
#[inline]
pub unsafe fn tr(&self, message: GodotString) -> GodotString {
Object_tr(self.this, message)
}
#[inline]
pub unsafe fn is_queued_for_deletion(&self) -> bool {
Object_is_queued_for_deletion(self.this)
}
#[inline]
pub unsafe fn to_panel_container(&self) -> PanelContainer {
PanelContainer { this: self.this }
}
#[inline]
pub unsafe fn to_container(&self) -> Container {
Container { this: self.this }
}
#[inline]
pub unsafe fn to_control(&self) -> Control {
Control { this: self.this }
}
#[inline]
pub unsafe fn to_canvas_item(&self) -> CanvasItem {
CanvasItem { this: self.this }
}
#[inline]
pub unsafe fn to_node(&self) -> Node {
Node { this: self.this }
}
#[inline]
pub unsafe fn to_object(&self) -> Object {
Object { this: self.this }
}
pub unsafe fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
#[derive(Copy, Clone)]
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct EditorFileSystemDirectory {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for EditorFileSystemDirectory {
fn class_name() -> &'static str {
"EditorFileSystemDirectory"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for EditorFileSystemDirectory {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl Free for EditorFileSystemDirectory {
unsafe fn godot_free(self) { self.free() }
}
impl EditorFileSystemDirectory {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = EditorFileSystemDirectoryMethodTable::get(gd_api).class_constructor.unwrap();
let this = ctor();
EditorFileSystemDirectory {
this
}
}
}
#[inline]
pub unsafe fn free(self) {
(get_api().godot_object_destroy)(self.this);
}
#[inline]
pub unsafe fn get_subdir_count(&self) -> i64 {
EditorFileSystemDirectory_get_subdir_count(self.this)
}
#[inline]
pub unsafe fn get_subdir(&mut self, idx: i64) -> Option<EditorFileSystemDirectory> {
EditorFileSystemDirectory_get_subdir(self.this, idx)
}
#[inline]
pub unsafe fn get_file_count(&self) -> i64 {
EditorFileSystemDirectory_get_file_count(self.this)
}
#[inline]
pub unsafe fn get_file(&self, idx: i64) -> GodotString {
EditorFileSystemDirectory_get_file(self.this, idx)
}
#[inline]
pub unsafe fn get_file_path(&self, idx: i64) -> GodotString {
EditorFileSystemDirectory_get_file_path(self.this, idx)
}
#[inline]
pub unsafe fn get_file_type(&self, idx: i64) -> GodotString {
EditorFileSystemDirectory_get_file_type(self.this, idx)
}
#[inline]
pub unsafe fn get_file_script_class_name(&self, idx: i64) -> GodotString {
EditorFileSystemDirectory_get_file_script_class_name(self.this, idx)
}
#[inline]
pub unsafe fn get_file_script_class_extends(&self, idx: i64) -> GodotString {
EditorFileSystemDirectory_get_file_script_class_extends(self.this, idx)
}
#[inline]
pub unsafe fn get_file_import_is_valid(&self, idx: i64) -> bool {
EditorFileSystemDirectory_get_file_import_is_valid(self.this, idx)
}
#[inline]
pub unsafe fn get_name(&mut self) -> GodotString {
EditorFileSystemDirectory_get_name(self.this)
}
#[inline]
pub unsafe fn get_path(&self) -> GodotString {
EditorFileSystemDirectory_get_path(self.this)
}
#[inline]
pub unsafe fn get_parent(&mut self) -> Option<EditorFileSystemDirectory> {
EditorFileSystemDirectory_get_parent(self.this)
}
#[inline]
pub unsafe fn find_file_index(&self, name: GodotString) -> i64 {
EditorFileSystemDirectory_find_file_index(self.this, name)
}
#[inline]
pub unsafe fn find_dir_index(&self, name: GodotString) -> i64 {
EditorFileSystemDirectory_find_dir_index(self.this, name)
}
#[inline]
pub unsafe fn _notification(&mut self, what: i64) -> () {
Object__notification(self.this, what)
}
#[inline]
pub unsafe fn _set(&mut self, property: GodotString, value: Variant) -> bool {
Object__set(self.this, property, value)
}
#[inline]
pub unsafe fn _get(&mut self, property: GodotString) -> Variant {
Object__get(self.this, property)
}
#[inline]
pub unsafe fn _get_property_list(&mut self) -> VariantArray {
Object__get_property_list(self.this)
}
#[inline]
pub unsafe fn _init(&mut self) -> () {
Object__init(self.this)
}
#[inline]
pub unsafe fn get_class(&self) -> GodotString {
Object_get_class(self.this)
}
#[inline]
pub unsafe fn is_class(&self, _type: GodotString) -> bool {
Object_is_class(self.this, _type)
}
#[inline]
pub unsafe fn set(&mut self, property: GodotString, value: Variant) -> () {
Object_set(self.this, property, value)
}
#[inline]
pub unsafe fn get(&self, property: GodotString) -> Variant {
Object_get(self.this, property)
}
#[inline]
pub unsafe fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
Object_set_indexed(self.this, property, value)
}
#[inline]
pub unsafe fn get_indexed(&self, property: NodePath) -> Variant {
Object_get_indexed(self.this, property)
}
#[inline]
pub unsafe fn get_property_list(&self) -> VariantArray {
Object_get_property_list(self.this)
}
#[inline]
pub unsafe fn get_method_list(&self) -> VariantArray {
Object_get_method_list(self.this)
}
#[inline]
pub unsafe fn notification(&mut self, what: i64, reversed: bool) -> () {
Object_notification(self.this, what, reversed)
}
#[inline]
pub unsafe fn get_instance_id(&self) -> i64 {
Object_get_instance_id(self.this)
}
#[inline]
pub unsafe fn set_script(&mut self, script: Option<Reference>) -> () {
Object_set_script(self.this, script)
}
#[inline]
pub unsafe fn get_script(&self) -> Option<Reference> {
Object_get_script(self.this)
}
#[inline]
pub unsafe fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
Object_set_meta(self.this, name, value)
}
#[inline]
pub unsafe fn get_meta(&self, name: GodotString) -> Variant {
Object_get_meta(self.this, name)
}
#[inline]
pub unsafe fn has_meta(&self, name: GodotString) -> bool {
Object_has_meta(self.this, name)
}
#[inline]
pub unsafe fn get_meta_list(&self) -> StringArray {
Object_get_meta_list(self.this)
}
#[inline]
pub unsafe fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
Object_add_user_signal(self.this, signal, arguments)
}
#[inline]
pub unsafe fn has_user_signal(&self, signal: GodotString) -> bool {
Object_has_user_signal(self.this, signal)
}
#[inline]
pub unsafe fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
Object_emit_signal(self.this, signal, varargs)
}
#[inline]
pub unsafe fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call(self.this, method, varargs)
}
#[inline]
pub unsafe fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call_deferred(self.this, method, varargs)
}
#[inline]
pub unsafe fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
Object_callv(self.this, method, arg_array)
}
#[inline]
pub unsafe fn has_method(&self, method: GodotString) -> bool {
Object_has_method(self.this, method)
}
#[inline]
pub unsafe fn get_signal_list(&self) -> VariantArray {
Object_get_signal_list(self.this)
}
#[inline]
pub unsafe fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
Object_get_signal_connection_list(self.this, signal)
}
#[inline]
pub unsafe fn get_incoming_connections(&self) -> VariantArray {
Object_get_incoming_connections(self.this)
}
#[inline]
pub unsafe fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
Object_connect(self.this, signal, target, method, binds, flags)
}
#[inline]
pub unsafe fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
Object_disconnect(self.this, signal, target, method)
}
#[inline]
pub unsafe fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
Object_is_connected(self.this, signal, target, method)
}
#[inline]
pub unsafe fn set_block_signals(&mut self, enable: bool) -> () {
Object_set_block_signals(self.this, enable)
}
#[inline]
pub unsafe fn is_blocking_signals(&self) -> bool {
Object_is_blocking_signals(self.this)
}
#[inline]
pub unsafe fn property_list_changed_notify(&mut self) -> () {
Object_property_list_changed_notify(self.this)
}
#[inline]
pub unsafe fn set_message_translation(&mut self, enable: bool) -> () {
Object_set_message_translation(self.this, enable)
}
#[inline]
pub unsafe fn can_translate_messages(&self) -> bool {
Object_can_translate_messages(self.this)
}
#[inline]
pub unsafe fn tr(&self, message: GodotString) -> GodotString {
Object_tr(self.this, message)
}
#[inline]
pub unsafe fn is_queued_for_deletion(&self) -> bool {
Object_is_queued_for_deletion(self.this)
}
#[inline]
pub unsafe fn to_object(&self) -> Object {
Object { this: self.this }
}
pub unsafe fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct EditorExportPlugin {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for EditorExportPlugin {
fn class_name() -> &'static str {
"EditorExportPlugin"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
object::add_ref(obj);
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for EditorExportPlugin {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl EditorExportPlugin {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = EditorExportPluginMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
EditorExportPlugin {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn _export_file(&mut self, path: GodotString, _type: GodotString, features: StringArray) -> () {
unsafe { EditorExportPlugin__export_file(self.this, path, _type, features) }
}
#[inline]
pub fn _export_begin(&mut self, features: StringArray, is_debug: bool, path: GodotString, flags: i64) -> () {
unsafe { EditorExportPlugin__export_begin(self.this, features, is_debug, path, flags) }
}
#[inline]
pub fn add_shared_object(&mut self, path: GodotString, tags: StringArray) -> () {
unsafe { EditorExportPlugin_add_shared_object(self.this, path, tags) }
}
#[inline]
pub fn add_file(&mut self, path: GodotString, file: ByteArray, remap: bool) -> () {
unsafe { EditorExportPlugin_add_file(self.this, path, file, remap) }
}
#[inline]
pub fn add_ios_framework(&mut self, path: GodotString) -> () {
unsafe { EditorExportPlugin_add_ios_framework(self.this, path) }
}
#[inline]
pub fn add_ios_plist_content(&mut self, plist_content: GodotString) -> () {
unsafe { EditorExportPlugin_add_ios_plist_content(self.this, plist_content) }
}
#[inline]
pub fn add_ios_linker_flags(&mut self, flags: GodotString) -> () {
unsafe { EditorExportPlugin_add_ios_linker_flags(self.this, flags) }
}
#[inline]
pub fn add_ios_bundle_file(&mut self, path: GodotString) -> () {
unsafe { EditorExportPlugin_add_ios_bundle_file(self.this, path) }
}
#[inline]
pub fn add_ios_cpp_code(&mut self, code: GodotString) -> () {
unsafe { EditorExportPlugin_add_ios_cpp_code(self.this, code) }
}
#[inline]
pub fn skip(&mut self) -> () {
unsafe { EditorExportPlugin_skip(self.this) }
}
#[inline]
pub fn init_ref(&mut self) -> bool {
unsafe { Reference_init_ref(self.this) }
}
#[inline]
pub fn _notification(&mut self, what: i64) -> () {
unsafe { Object__notification(self.this, what) }
}
#[inline]
pub fn _set(&mut self, property: GodotString, value: Variant) -> bool {
unsafe { Object__set(self.this, property, value) }
}
#[inline]
pub fn _get(&mut self, property: GodotString) -> Variant {
unsafe { Object__get(self.this, property) }
}
#[inline]
pub fn _get_property_list(&mut self) -> VariantArray {
unsafe { Object__get_property_list(self.this) }
}
#[inline]
pub fn _init(&mut self) -> () {
unsafe { Object__init(self.this) }
}
#[inline]
pub fn get_class(&self) -> GodotString {
unsafe { Object_get_class(self.this) }
}
#[inline]
pub fn is_class(&self, _type: GodotString) -> bool {
unsafe { Object_is_class(self.this, _type) }
}
#[inline]
pub fn set(&mut self, property: GodotString, value: Variant) -> () {
unsafe { Object_set(self.this, property, value) }
}
#[inline]
pub fn get(&self, property: GodotString) -> Variant {
unsafe { Object_get(self.this, property) }
}
#[inline]
pub fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
unsafe { Object_set_indexed(self.this, property, value) }
}
#[inline]
pub fn get_indexed(&self, property: NodePath) -> Variant {
unsafe { Object_get_indexed(self.this, property) }
}
#[inline]
pub fn get_property_list(&self) -> VariantArray {
unsafe { Object_get_property_list(self.this) }
}
#[inline]
pub fn get_method_list(&self) -> VariantArray {
unsafe { Object_get_method_list(self.this) }
}
#[inline]
pub fn notification(&mut self, what: i64, reversed: bool) -> () {
unsafe { Object_notification(self.this, what, reversed) }
}
#[inline]
pub fn get_instance_id(&self) -> i64 {
unsafe { Object_get_instance_id(self.this) }
}
#[inline]
pub fn set_script(&mut self, script: Option<Reference>) -> () {
unsafe { Object_set_script(self.this, script) }
}
#[inline]
pub fn get_script(&self) -> Option<Reference> {
unsafe { Object_get_script(self.this) }
}
#[inline]
pub fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
unsafe { Object_set_meta(self.this, name, value) }
}
#[inline]
pub fn get_meta(&self, name: GodotString) -> Variant {
unsafe { Object_get_meta(self.this, name) }
}
#[inline]
pub fn has_meta(&self, name: GodotString) -> bool {
unsafe { Object_has_meta(self.this, name) }
}
#[inline]
pub fn get_meta_list(&self) -> StringArray {
unsafe { Object_get_meta_list(self.this) }
}
#[inline]
pub fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
unsafe { Object_add_user_signal(self.this, signal, arguments) }
}
#[inline]
pub fn has_user_signal(&self, signal: GodotString) -> bool {
unsafe { Object_has_user_signal(self.this, signal) }
}
#[inline]
pub fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_emit_signal(self.this, signal, varargs) }
}
#[inline]
pub fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call(self.this, method, varargs) }
}
#[inline]
pub fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call_deferred(self.this, method, varargs) }
}
#[inline]
pub fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
unsafe { Object_callv(self.this, method, arg_array) }
}
#[inline]
pub fn has_method(&self, method: GodotString) -> bool {
unsafe { Object_has_method(self.this, method) }
}
#[inline]
pub fn get_signal_list(&self) -> VariantArray {
unsafe { Object_get_signal_list(self.this) }
}
#[inline]
pub fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
unsafe { Object_get_signal_connection_list(self.this, signal) }
}
#[inline]
pub fn get_incoming_connections(&self) -> VariantArray {
unsafe { Object_get_incoming_connections(self.this) }
}
#[inline]
pub fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
unsafe { Object_connect(self.this, signal, target, method, binds, flags) }
}
#[inline]
pub fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
unsafe { Object_disconnect(self.this, signal, target, method) }
}
#[inline]
pub fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
unsafe { Object_is_connected(self.this, signal, target, method) }
}
#[inline]
pub fn set_block_signals(&mut self, enable: bool) -> () {
unsafe { Object_set_block_signals(self.this, enable) }
}
#[inline]
pub fn is_blocking_signals(&self) -> bool {
unsafe { Object_is_blocking_signals(self.this) }
}
#[inline]
pub fn property_list_changed_notify(&mut self) -> () {
unsafe { Object_property_list_changed_notify(self.this) }
}
#[inline]
pub fn set_message_translation(&mut self, enable: bool) -> () {
unsafe { Object_set_message_translation(self.this, enable) }
}
#[inline]
pub fn can_translate_messages(&self) -> bool {
unsafe { Object_can_translate_messages(self.this) }
}
#[inline]
pub fn tr(&self, message: GodotString) -> GodotString {
unsafe { Object_tr(self.this, message) }
}
#[inline]
pub fn is_queued_for_deletion(&self) -> bool {
unsafe { Object_is_queued_for_deletion(self.this) }
}
#[inline]
pub fn to_reference(&self) -> Reference {
unsafe {{ object::add_ref(self.this); }}
Reference { this: self.this }
}
#[inline]
pub fn to_object(&self) -> Object {
Object { this: self.this }
}
pub fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
impl Drop for EditorExportPlugin {
fn drop(&mut self) {
unsafe {
if object::unref(self.this) {
(get_api().godot_object_destroy)(self.this);
}
}
}
}
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct EditorResourceConversionPlugin {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for EditorResourceConversionPlugin {
fn class_name() -> &'static str {
"EditorResourceConversionPlugin"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
object::add_ref(obj);
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for EditorResourceConversionPlugin {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl EditorResourceConversionPlugin {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = EditorResourceConversionPluginMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
EditorResourceConversionPlugin {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn _convert(&mut self, resource: Option<Resource>) -> Option<Resource> {
unsafe { EditorResourceConversionPlugin__convert(self.this, resource) }
}
#[inline]
pub fn _converts_to(&mut self) -> GodotString {
unsafe { EditorResourceConversionPlugin__converts_to(self.this) }
}
#[inline]
pub fn init_ref(&mut self) -> bool {
unsafe { Reference_init_ref(self.this) }
}
#[inline]
pub fn _notification(&mut self, what: i64) -> () {
unsafe { Object__notification(self.this, what) }
}
#[inline]
pub fn _set(&mut self, property: GodotString, value: Variant) -> bool {
unsafe { Object__set(self.this, property, value) }
}
#[inline]
pub fn _get(&mut self, property: GodotString) -> Variant {
unsafe { Object__get(self.this, property) }
}
#[inline]
pub fn _get_property_list(&mut self) -> VariantArray {
unsafe { Object__get_property_list(self.this) }
}
#[inline]
pub fn _init(&mut self) -> () {
unsafe { Object__init(self.this) }
}
#[inline]
pub fn get_class(&self) -> GodotString {
unsafe { Object_get_class(self.this) }
}
#[inline]
pub fn is_class(&self, _type: GodotString) -> bool {
unsafe { Object_is_class(self.this, _type) }
}
#[inline]
pub fn set(&mut self, property: GodotString, value: Variant) -> () {
unsafe { Object_set(self.this, property, value) }
}
#[inline]
pub fn get(&self, property: GodotString) -> Variant {
unsafe { Object_get(self.this, property) }
}
#[inline]
pub fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
unsafe { Object_set_indexed(self.this, property, value) }
}
#[inline]
pub fn get_indexed(&self, property: NodePath) -> Variant {
unsafe { Object_get_indexed(self.this, property) }
}
#[inline]
pub fn get_property_list(&self) -> VariantArray {
unsafe { Object_get_property_list(self.this) }
}
#[inline]
pub fn get_method_list(&self) -> VariantArray {
unsafe { Object_get_method_list(self.this) }
}
#[inline]
pub fn notification(&mut self, what: i64, reversed: bool) -> () {
unsafe { Object_notification(self.this, what, reversed) }
}
#[inline]
pub fn get_instance_id(&self) -> i64 {
unsafe { Object_get_instance_id(self.this) }
}
#[inline]
pub fn set_script(&mut self, script: Option<Reference>) -> () {
unsafe { Object_set_script(self.this, script) }
}
#[inline]
pub fn get_script(&self) -> Option<Reference> {
unsafe { Object_get_script(self.this) }
}
#[inline]
pub fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
unsafe { Object_set_meta(self.this, name, value) }
}
#[inline]
pub fn get_meta(&self, name: GodotString) -> Variant {
unsafe { Object_get_meta(self.this, name) }
}
#[inline]
pub fn has_meta(&self, name: GodotString) -> bool {
unsafe { Object_has_meta(self.this, name) }
}
#[inline]
pub fn get_meta_list(&self) -> StringArray {
unsafe { Object_get_meta_list(self.this) }
}
#[inline]
pub fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
unsafe { Object_add_user_signal(self.this, signal, arguments) }
}
#[inline]
pub fn has_user_signal(&self, signal: GodotString) -> bool {
unsafe { Object_has_user_signal(self.this, signal) }
}
#[inline]
pub fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_emit_signal(self.this, signal, varargs) }
}
#[inline]
pub fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call(self.this, method, varargs) }
}
#[inline]
pub fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call_deferred(self.this, method, varargs) }
}
#[inline]
pub fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
unsafe { Object_callv(self.this, method, arg_array) }
}
#[inline]
pub fn has_method(&self, method: GodotString) -> bool {
unsafe { Object_has_method(self.this, method) }
}
#[inline]
pub fn get_signal_list(&self) -> VariantArray {
unsafe { Object_get_signal_list(self.this) }
}
#[inline]
pub fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
unsafe { Object_get_signal_connection_list(self.this, signal) }
}
#[inline]
pub fn get_incoming_connections(&self) -> VariantArray {
unsafe { Object_get_incoming_connections(self.this) }
}
#[inline]
pub fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
unsafe { Object_connect(self.this, signal, target, method, binds, flags) }
}
#[inline]
pub fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
unsafe { Object_disconnect(self.this, signal, target, method) }
}
#[inline]
pub fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
unsafe { Object_is_connected(self.this, signal, target, method) }
}
#[inline]
pub fn set_block_signals(&mut self, enable: bool) -> () {
unsafe { Object_set_block_signals(self.this, enable) }
}
#[inline]
pub fn is_blocking_signals(&self) -> bool {
unsafe { Object_is_blocking_signals(self.this) }
}
#[inline]
pub fn property_list_changed_notify(&mut self) -> () {
unsafe { Object_property_list_changed_notify(self.this) }
}
#[inline]
pub fn set_message_translation(&mut self, enable: bool) -> () {
unsafe { Object_set_message_translation(self.this, enable) }
}
#[inline]
pub fn can_translate_messages(&self) -> bool {
unsafe { Object_can_translate_messages(self.this) }
}
#[inline]
pub fn tr(&self, message: GodotString) -> GodotString {
unsafe { Object_tr(self.this, message) }
}
#[inline]
pub fn is_queued_for_deletion(&self) -> bool {
unsafe { Object_is_queued_for_deletion(self.this) }
}
#[inline]
pub fn to_reference(&self) -> Reference {
unsafe {{ object::add_ref(self.this); }}
Reference { this: self.this }
}
#[inline]
pub fn to_object(&self) -> Object {
Object { this: self.this }
}
pub fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
impl Drop for EditorResourceConversionPlugin {
fn drop(&mut self) {
unsafe {
if object::unref(self.this) {
(get_api().godot_object_destroy)(self.this);
}
}
}
}
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct EditorSceneImporter {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for EditorSceneImporter {
fn class_name() -> &'static str {
"EditorSceneImporter"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
object::add_ref(obj);
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for EditorSceneImporter {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl EditorSceneImporter {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = EditorSceneImporterMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
EditorSceneImporter {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn _get_import_flags(&mut self) -> i64 {
unsafe { EditorSceneImporter__get_import_flags(self.this) }
}
#[inline]
pub fn _get_extensions(&mut self) -> VariantArray {
unsafe { EditorSceneImporter__get_extensions(self.this) }
}
#[inline]
pub fn _import_scene(&mut self, path: GodotString, flags: i64, bake_fps: i64) -> Option<Node> {
unsafe { EditorSceneImporter__import_scene(self.this, path, flags, bake_fps) }
}
#[inline]
pub fn _import_animation(&mut self, path: GodotString, flags: i64, bake_fps: i64) -> Option<Animation> {
unsafe { EditorSceneImporter__import_animation(self.this, path, flags, bake_fps) }
}
#[inline]
pub fn import_scene_from_other_importer(&mut self, path: GodotString, flags: i64, bake_fps: i64) -> Option<Node> {
unsafe { EditorSceneImporter_import_scene_from_other_importer(self.this, path, flags, bake_fps) }
}
#[inline]
pub fn import_animation_from_other_importer(&mut self, path: GodotString, flags: i64, bake_fps: i64) -> Option<Animation> {
unsafe { EditorSceneImporter_import_animation_from_other_importer(self.this, path, flags, bake_fps) }
}
#[inline]
pub fn init_ref(&mut self) -> bool {
unsafe { Reference_init_ref(self.this) }
}
#[inline]
pub fn _notification(&mut self, what: i64) -> () {
unsafe { Object__notification(self.this, what) }
}
#[inline]
pub fn _set(&mut self, property: GodotString, value: Variant) -> bool {
unsafe { Object__set(self.this, property, value) }
}
#[inline]
pub fn _get(&mut self, property: GodotString) -> Variant {
unsafe { Object__get(self.this, property) }
}
#[inline]
pub fn _get_property_list(&mut self) -> VariantArray {
unsafe { Object__get_property_list(self.this) }
}
#[inline]
pub fn _init(&mut self) -> () {
unsafe { Object__init(self.this) }
}
#[inline]
pub fn get_class(&self) -> GodotString {
unsafe { Object_get_class(self.this) }
}
#[inline]
pub fn is_class(&self, _type: GodotString) -> bool {
unsafe { Object_is_class(self.this, _type) }
}
#[inline]
pub fn set(&mut self, property: GodotString, value: Variant) -> () {
unsafe { Object_set(self.this, property, value) }
}
#[inline]
pub fn get(&self, property: GodotString) -> Variant {
unsafe { Object_get(self.this, property) }
}
#[inline]
pub fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
unsafe { Object_set_indexed(self.this, property, value) }
}
#[inline]
pub fn get_indexed(&self, property: NodePath) -> Variant {
unsafe { Object_get_indexed(self.this, property) }
}
#[inline]
pub fn get_property_list(&self) -> VariantArray {
unsafe { Object_get_property_list(self.this) }
}
#[inline]
pub fn get_method_list(&self) -> VariantArray {
unsafe { Object_get_method_list(self.this) }
}
#[inline]
pub fn notification(&mut self, what: i64, reversed: bool) -> () {
unsafe { Object_notification(self.this, what, reversed) }
}
#[inline]
pub fn get_instance_id(&self) -> i64 {
unsafe { Object_get_instance_id(self.this) }
}
#[inline]
pub fn set_script(&mut self, script: Option<Reference>) -> () {
unsafe { Object_set_script(self.this, script) }
}
#[inline]
pub fn get_script(&self) -> Option<Reference> {
unsafe { Object_get_script(self.this) }
}
#[inline]
pub fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
unsafe { Object_set_meta(self.this, name, value) }
}
#[inline]
pub fn get_meta(&self, name: GodotString) -> Variant {
unsafe { Object_get_meta(self.this, name) }
}
#[inline]
pub fn has_meta(&self, name: GodotString) -> bool {
unsafe { Object_has_meta(self.this, name) }
}
#[inline]
pub fn get_meta_list(&self) -> StringArray {
unsafe { Object_get_meta_list(self.this) }
}
#[inline]
pub fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
unsafe { Object_add_user_signal(self.this, signal, arguments) }
}
#[inline]
pub fn has_user_signal(&self, signal: GodotString) -> bool {
unsafe { Object_has_user_signal(self.this, signal) }
}
#[inline]
pub fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_emit_signal(self.this, signal, varargs) }
}
#[inline]
pub fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call(self.this, method, varargs) }
}
#[inline]
pub fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call_deferred(self.this, method, varargs) }
}
#[inline]
pub fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
unsafe { Object_callv(self.this, method, arg_array) }
}
#[inline]
pub fn has_method(&self, method: GodotString) -> bool {
unsafe { Object_has_method(self.this, method) }
}
#[inline]
pub fn get_signal_list(&self) -> VariantArray {
unsafe { Object_get_signal_list(self.this) }
}
#[inline]
pub fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
unsafe { Object_get_signal_connection_list(self.this, signal) }
}
#[inline]
pub fn get_incoming_connections(&self) -> VariantArray {
unsafe { Object_get_incoming_connections(self.this) }
}
#[inline]
pub fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
unsafe { Object_connect(self.this, signal, target, method, binds, flags) }
}
#[inline]
pub fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
unsafe { Object_disconnect(self.this, signal, target, method) }
}
#[inline]
pub fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
unsafe { Object_is_connected(self.this, signal, target, method) }
}
#[inline]
pub fn set_block_signals(&mut self, enable: bool) -> () {
unsafe { Object_set_block_signals(self.this, enable) }
}
#[inline]
pub fn is_blocking_signals(&self) -> bool {
unsafe { Object_is_blocking_signals(self.this) }
}
#[inline]
pub fn property_list_changed_notify(&mut self) -> () {
unsafe { Object_property_list_changed_notify(self.this) }
}
#[inline]
pub fn set_message_translation(&mut self, enable: bool) -> () {
unsafe { Object_set_message_translation(self.this, enable) }
}
#[inline]
pub fn can_translate_messages(&self) -> bool {
unsafe { Object_can_translate_messages(self.this) }
}
#[inline]
pub fn tr(&self, message: GodotString) -> GodotString {
unsafe { Object_tr(self.this, message) }
}
#[inline]
pub fn is_queued_for_deletion(&self) -> bool {
unsafe { Object_is_queued_for_deletion(self.this) }
}
#[inline]
pub fn to_reference(&self) -> Reference {
unsafe {{ object::add_ref(self.this); }}
Reference { this: self.this }
}
#[inline]
pub fn to_object(&self) -> Object {
Object { this: self.this }
}
pub fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
impl Drop for EditorSceneImporter {
fn drop(&mut self) {
unsafe {
if object::unref(self.this) {
(get_api().godot_object_destroy)(self.this);
}
}
}
}
#[derive(Copy, Clone)]
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct EditorInterface {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for EditorInterface {
fn class_name() -> &'static str {
"EditorInterface"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for EditorInterface {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl QueueFree for EditorInterface {
unsafe fn godot_queue_free(&mut self) { self.queue_free() }
}
impl EditorInterface {
#[inline]
pub unsafe fn inspect_object(&mut self, object: Option<Object>, for_property: GodotString) -> () {
EditorInterface_inspect_object(self.this, object, for_property)
}
#[inline]
pub unsafe fn get_selection(&mut self) -> Option<EditorSelection> {
EditorInterface_get_selection(self.this)
}
#[inline]
pub unsafe fn get_editor_settings(&mut self) -> Option<EditorSettings> {
EditorInterface_get_editor_settings(self.this)
}
#[inline]
pub unsafe fn get_script_editor(&mut self) -> Option<ScriptEditor> {
EditorInterface_get_script_editor(self.this)
}
#[inline]
pub unsafe fn get_base_control(&mut self) -> Option<Control> {
EditorInterface_get_base_control(self.this)
}
#[inline]
pub unsafe fn edit_resource(&mut self, resource: Option<Resource>) -> () {
EditorInterface_edit_resource(self.this, resource)
}
#[inline]
pub unsafe fn open_scene_from_path(&mut self, scene_filepath: GodotString) -> () {
EditorInterface_open_scene_from_path(self.this, scene_filepath)
}
#[inline]
pub unsafe fn reload_scene_from_path(&mut self, scene_filepath: GodotString) -> () {
EditorInterface_reload_scene_from_path(self.this, scene_filepath)
}
#[inline]
pub unsafe fn get_open_scenes(&self) -> VariantArray {
EditorInterface_get_open_scenes(self.this)
}
#[inline]
pub unsafe fn get_edited_scene_root(&mut self) -> Option<Node> {
EditorInterface_get_edited_scene_root(self.this)
}
#[inline]
pub unsafe fn get_resource_previewer(&mut self) -> Option<EditorResourcePreview> {
EditorInterface_get_resource_previewer(self.this)
}
#[inline]
pub unsafe fn get_resource_filesystem(&mut self) -> Option<EditorFileSystem> {
EditorInterface_get_resource_filesystem(self.this)
}
#[inline]
pub unsafe fn get_editor_viewport(&mut self) -> Option<Control> {
EditorInterface_get_editor_viewport(self.this)
}
#[inline]
pub unsafe fn make_mesh_previews(&mut self, meshes: VariantArray, preview_size: i64) -> VariantArray {
EditorInterface_make_mesh_previews(self.this, meshes, preview_size)
}
#[inline]
pub unsafe fn select_file(&mut self, p_file: GodotString) -> () {
EditorInterface_select_file(self.this, p_file)
}
#[inline]
pub unsafe fn get_selected_path(&self) -> GodotString {
EditorInterface_get_selected_path(self.this)
}
#[inline]
pub unsafe fn set_plugin_enabled(&mut self, plugin: GodotString, enabled: bool) -> () {
EditorInterface_set_plugin_enabled(self.this, plugin, enabled)
}
#[inline]
pub unsafe fn is_plugin_enabled(&self, plugin: GodotString) -> bool {
EditorInterface_is_plugin_enabled(self.this, plugin)
}
#[inline]
pub unsafe fn save_scene(&mut self) -> GodotResult {
EditorInterface_save_scene(self.this)
}
#[inline]
pub unsafe fn save_scene_as(&mut self, path: GodotString, with_preview: bool) -> () {
EditorInterface_save_scene_as(self.this, path, with_preview)
}
#[inline]
pub unsafe fn _process(&mut self, delta: f64) -> () {
Node__process(self.this, delta)
}
#[inline]
pub unsafe fn _physics_process(&mut self, delta: f64) -> () {
Node__physics_process(self.this, delta)
}
#[inline]
pub unsafe fn _enter_tree(&mut self) -> () {
Node__enter_tree(self.this)
}
#[inline]
pub unsafe fn _exit_tree(&mut self) -> () {
Node__exit_tree(self.this)
}
#[inline]
pub unsafe fn _ready(&mut self) -> () {
Node__ready(self.this)
}
#[inline]
pub unsafe fn _input(&mut self, event: Option<InputEvent>) -> () {
Node__input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_input(&mut self, event: Option<InputEvent>) -> () {
Node__unhandled_input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_key_input(&mut self, event: Option<InputEventKey>) -> () {
Node__unhandled_key_input(self.this, event)
}
#[inline]
pub unsafe fn add_child_below_node(&mut self, node: Option<Object>, child_node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child_below_node(self.this, node, child_node, legible_unique_name)
}
#[inline]
pub unsafe fn set_name(&mut self, name: GodotString) -> () {
Node_set_name(self.this, name)
}
#[inline]
pub unsafe fn get_name(&self) -> GodotString {
Node_get_name(self.this)
}
#[inline]
pub unsafe fn add_child(&mut self, node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child(self.this, node, legible_unique_name)
}
#[inline]
pub unsafe fn remove_child(&mut self, node: Option<Object>) -> () {
Node_remove_child(self.this, node)
}
#[inline]
pub unsafe fn get_child_count(&self) -> i64 {
Node_get_child_count(self.this)
}
#[inline]
pub unsafe fn get_children(&self) -> VariantArray {
Node_get_children(self.this)
}
#[inline]
pub unsafe fn get_child(&self, idx: i64) -> Option<Node> {
Node_get_child(self.this, idx)
}
#[inline]
pub unsafe fn has_node(&self, path: NodePath) -> bool {
Node_has_node(self.this, path)
}
#[inline]
pub unsafe fn get_node(&self, path: NodePath) -> Option<Node> {
Node_get_node(self.this, path)
}
#[inline]
pub unsafe fn get_parent(&self) -> Option<Node> {
Node_get_parent(self.this)
}
#[inline]
pub unsafe fn find_node(&self, mask: GodotString, recursive: bool, owned: bool) -> Option<Node> {
Node_find_node(self.this, mask, recursive, owned)
}
#[inline]
pub unsafe fn has_node_and_resource(&self, path: NodePath) -> bool {
Node_has_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn get_node_and_resource(&mut self, path: NodePath) -> VariantArray {
Node_get_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn is_inside_tree(&self) -> bool {
Node_is_inside_tree(self.this)
}
#[inline]
pub unsafe fn is_a_parent_of(&self, node: Option<Object>) -> bool {
Node_is_a_parent_of(self.this, node)
}
#[inline]
pub unsafe fn is_greater_than(&self, node: Option<Object>) -> bool {
Node_is_greater_than(self.this, node)
}
#[inline]
pub unsafe fn get_path(&self) -> NodePath {
Node_get_path(self.this)
}
#[inline]
pub unsafe fn get_path_to(&self, node: Option<Object>) -> NodePath {
Node_get_path_to(self.this, node)
}
#[inline]
pub unsafe fn add_to_group(&mut self, group: GodotString, persistent: bool) -> () {
Node_add_to_group(self.this, group, persistent)
}
#[inline]
pub unsafe fn remove_from_group(&mut self, group: GodotString) -> () {
Node_remove_from_group(self.this, group)
}
#[inline]
pub unsafe fn is_in_group(&self, group: GodotString) -> bool {
Node_is_in_group(self.this, group)
}
#[inline]
pub unsafe fn move_child(&mut self, child_node: Option<Object>, to_position: i64) -> () {
Node_move_child(self.this, child_node, to_position)
}
#[inline]
pub unsafe fn get_groups(&self) -> VariantArray {
Node_get_groups(self.this)
}
#[inline]
pub unsafe fn raise(&mut self) -> () {
Node_raise(self.this)
}
#[inline]
pub unsafe fn set_owner(&mut self, owner: Option<Object>) -> () {
Node_set_owner(self.this, owner)
}
#[inline]
pub unsafe fn get_owner(&self) -> Option<Node> {
Node_get_owner(self.this)
}
#[inline]
pub unsafe fn remove_and_skip(&mut self) -> () {
Node_remove_and_skip(self.this)
}
#[inline]
pub unsafe fn get_index(&self) -> i64 {
Node_get_index(self.this)
}
#[inline]
pub unsafe fn print_tree(&mut self) -> () {
Node_print_tree(self.this)
}
#[inline]
pub unsafe fn print_tree_pretty(&mut self) -> () {
Node_print_tree_pretty(self.this)
}
#[inline]
pub unsafe fn set_filename(&mut self, filename: GodotString) -> () {
Node_set_filename(self.this, filename)
}
#[inline]
pub unsafe fn get_filename(&self) -> GodotString {
Node_get_filename(self.this)
}
#[inline]
pub unsafe fn propagate_notification(&mut self, what: i64) -> () {
Node_propagate_notification(self.this, what)
}
#[inline]
pub unsafe fn propagate_call(&mut self, method: GodotString, args: VariantArray, parent_first: bool) -> () {
Node_propagate_call(self.this, method, args, parent_first)
}
#[inline]
pub unsafe fn set_physics_process(&mut self, enable: bool) -> () {
Node_set_physics_process(self.this, enable)
}
#[inline]
pub unsafe fn get_physics_process_delta_time(&self) -> f64 {
Node_get_physics_process_delta_time(self.this)
}
#[inline]
pub unsafe fn is_physics_processing(&self) -> bool {
Node_is_physics_processing(self.this)
}
#[inline]
pub unsafe fn get_process_delta_time(&self) -> f64 {
Node_get_process_delta_time(self.this)
}
#[inline]
pub unsafe fn set_process(&mut self, enable: bool) -> () {
Node_set_process(self.this, enable)
}
#[inline]
pub unsafe fn set_process_priority(&mut self, priority: i64) -> () {
Node_set_process_priority(self.this, priority)
}
#[inline]
pub unsafe fn is_processing(&self) -> bool {
Node_is_processing(self.this)
}
#[inline]
pub unsafe fn set_process_input(&mut self, enable: bool) -> () {
Node_set_process_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_input(&self) -> bool {
Node_is_processing_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_input(&self) -> bool {
Node_is_processing_unhandled_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_key_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_key_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_key_input(&self) -> bool {
Node_is_processing_unhandled_key_input(self.this)
}
#[inline]
pub unsafe fn set_pause_mode(&mut self, mode: i64) -> () {
Node_set_pause_mode(self.this, mode)
}
#[inline]
pub unsafe fn get_pause_mode(&self) -> NodePauseMode {
Node_get_pause_mode(self.this)
}
#[inline]
pub unsafe fn can_process(&self) -> bool {
Node_can_process(self.this)
}
#[inline]
pub unsafe fn print_stray_nodes(&mut self) -> () {
Node_print_stray_nodes(self.this)
}
#[inline]
pub unsafe fn get_position_in_parent(&self) -> i64 {
Node_get_position_in_parent(self.this)
}
#[inline]
pub unsafe fn set_display_folded(&mut self, fold: bool) -> () {
Node_set_display_folded(self.this, fold)
}
#[inline]
pub unsafe fn is_displayed_folded(&self) -> bool {
Node_is_displayed_folded(self.this)
}
#[inline]
pub unsafe fn set_process_internal(&mut self, enable: bool) -> () {
Node_set_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_internal(&self) -> bool {
Node_is_processing_internal(self.this)
}
#[inline]
pub unsafe fn set_physics_process_internal(&mut self, enable: bool) -> () {
Node_set_physics_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_physics_processing_internal(&self) -> bool {
Node_is_physics_processing_internal(self.this)
}
#[inline]
pub unsafe fn get_tree(&self) -> Option<SceneTree> {
Node_get_tree(self.this)
}
#[inline]
pub unsafe fn duplicate(&self, flags: i64) -> Option<Node> {
Node_duplicate(self.this, flags)
}
#[inline]
pub unsafe fn replace_by(&mut self, node: Option<Object>, keep_data: bool) -> () {
Node_replace_by(self.this, node, keep_data)
}
#[inline]
pub unsafe fn set_scene_instance_load_placeholder(&mut self, load_placeholder: bool) -> () {
Node_set_scene_instance_load_placeholder(self.this, load_placeholder)
}
#[inline]
pub unsafe fn get_scene_instance_load_placeholder(&self) -> bool {
Node_get_scene_instance_load_placeholder(self.this)
}
#[inline]
pub unsafe fn get_viewport(&self) -> Option<Viewport> {
Node_get_viewport(self.this)
}
#[inline]
pub unsafe fn queue_free(&mut self) -> () {
Node_queue_free(self.this)
}
#[inline]
pub unsafe fn request_ready(&mut self) -> () {
Node_request_ready(self.this)
}
#[inline]
pub unsafe fn set_network_master(&mut self, id: i64, recursive: bool) -> () {
Node_set_network_master(self.this, id, recursive)
}
#[inline]
pub unsafe fn get_network_master(&self) -> i64 {
Node_get_network_master(self.this)
}
#[inline]
pub unsafe fn is_network_master(&self) -> bool {
Node_is_network_master(self.this)
}
#[inline]
pub unsafe fn get_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_multiplayer(self.this)
}
#[inline]
pub unsafe fn get_custom_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_custom_multiplayer(self.this)
}
#[inline]
pub unsafe fn set_custom_multiplayer(&mut self, api: Option<MultiplayerAPI>) -> () {
Node_set_custom_multiplayer(self.this, api)
}
#[inline]
pub unsafe fn rpc_config(&mut self, method: GodotString, mode: i64) -> () {
Node_rpc_config(self.this, method, mode)
}
#[inline]
pub unsafe fn rset_config(&mut self, property: GodotString, mode: i64) -> () {
Node_rset_config(self.this, property, mode)
}
#[inline]
pub unsafe fn _set_import_path(&mut self, import_path: NodePath) -> () {
Node__set_import_path(self.this, import_path)
}
#[inline]
pub unsafe fn _get_import_path(&self) -> NodePath {
Node__get_import_path(self.this)
}
#[inline]
pub unsafe fn rpc(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rset(&mut self, property: GodotString, value: Variant) -> () {
Node_rset(self.this, property, value)
}
#[inline]
pub unsafe fn rset_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn rset_unreliable(&mut self, property: GodotString, value: Variant) -> () {
Node_rset_unreliable(self.this, property, value)
}
#[inline]
pub unsafe fn rset_unreliable_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_unreliable_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn _notification(&mut self, what: i64) -> () {
Object__notification(self.this, what)
}
#[inline]
pub unsafe fn _set(&mut self, property: GodotString, value: Variant) -> bool {
Object__set(self.this, property, value)
}
#[inline]
pub unsafe fn _get(&mut self, property: GodotString) -> Variant {
Object__get(self.this, property)
}
#[inline]
pub unsafe fn _get_property_list(&mut self) -> VariantArray {
Object__get_property_list(self.this)
}
#[inline]
pub unsafe fn _init(&mut self) -> () {
Object__init(self.this)
}
#[inline]
pub unsafe fn get_class(&self) -> GodotString {
Object_get_class(self.this)
}
#[inline]
pub unsafe fn is_class(&self, _type: GodotString) -> bool {
Object_is_class(self.this, _type)
}
#[inline]
pub unsafe fn set(&mut self, property: GodotString, value: Variant) -> () {
Object_set(self.this, property, value)
}
#[inline]
pub unsafe fn get(&self, property: GodotString) -> Variant {
Object_get(self.this, property)
}
#[inline]
pub unsafe fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
Object_set_indexed(self.this, property, value)
}
#[inline]
pub unsafe fn get_indexed(&self, property: NodePath) -> Variant {
Object_get_indexed(self.this, property)
}
#[inline]
pub unsafe fn get_property_list(&self) -> VariantArray {
Object_get_property_list(self.this)
}
#[inline]
pub unsafe fn get_method_list(&self) -> VariantArray {
Object_get_method_list(self.this)
}
#[inline]
pub unsafe fn notification(&mut self, what: i64, reversed: bool) -> () {
Object_notification(self.this, what, reversed)
}
#[inline]
pub unsafe fn get_instance_id(&self) -> i64 {
Object_get_instance_id(self.this)
}
#[inline]
pub unsafe fn set_script(&mut self, script: Option<Reference>) -> () {
Object_set_script(self.this, script)
}
#[inline]
pub unsafe fn get_script(&self) -> Option<Reference> {
Object_get_script(self.this)
}
#[inline]
pub unsafe fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
Object_set_meta(self.this, name, value)
}
#[inline]
pub unsafe fn get_meta(&self, name: GodotString) -> Variant {
Object_get_meta(self.this, name)
}
#[inline]
pub unsafe fn has_meta(&self, name: GodotString) -> bool {
Object_has_meta(self.this, name)
}
#[inline]
pub unsafe fn get_meta_list(&self) -> StringArray {
Object_get_meta_list(self.this)
}
#[inline]
pub unsafe fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
Object_add_user_signal(self.this, signal, arguments)
}
#[inline]
pub unsafe fn has_user_signal(&self, signal: GodotString) -> bool {
Object_has_user_signal(self.this, signal)
}
#[inline]
pub unsafe fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
Object_emit_signal(self.this, signal, varargs)
}
#[inline]
pub unsafe fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call(self.this, method, varargs)
}
#[inline]
pub unsafe fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call_deferred(self.this, method, varargs)
}
#[inline]
pub unsafe fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
Object_callv(self.this, method, arg_array)
}
#[inline]
pub unsafe fn has_method(&self, method: GodotString) -> bool {
Object_has_method(self.this, method)
}
#[inline]
pub unsafe fn get_signal_list(&self) -> VariantArray {
Object_get_signal_list(self.this)
}
#[inline]
pub unsafe fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
Object_get_signal_connection_list(self.this, signal)
}
#[inline]
pub unsafe fn get_incoming_connections(&self) -> VariantArray {
Object_get_incoming_connections(self.this)
}
#[inline]
pub unsafe fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
Object_connect(self.this, signal, target, method, binds, flags)
}
#[inline]
pub unsafe fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
Object_disconnect(self.this, signal, target, method)
}
#[inline]
pub unsafe fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
Object_is_connected(self.this, signal, target, method)
}
#[inline]
pub unsafe fn set_block_signals(&mut self, enable: bool) -> () {
Object_set_block_signals(self.this, enable)
}
#[inline]
pub unsafe fn is_blocking_signals(&self) -> bool {
Object_is_blocking_signals(self.this)
}
#[inline]
pub unsafe fn property_list_changed_notify(&mut self) -> () {
Object_property_list_changed_notify(self.this)
}
#[inline]
pub unsafe fn set_message_translation(&mut self, enable: bool) -> () {
Object_set_message_translation(self.this, enable)
}
#[inline]
pub unsafe fn can_translate_messages(&self) -> bool {
Object_can_translate_messages(self.this)
}
#[inline]
pub unsafe fn tr(&self, message: GodotString) -> GodotString {
Object_tr(self.this, message)
}
#[inline]
pub unsafe fn is_queued_for_deletion(&self) -> bool {
Object_is_queued_for_deletion(self.this)
}
#[inline]
pub unsafe fn to_node(&self) -> Node {
Node { this: self.this }
}
#[inline]
pub unsafe fn to_object(&self) -> Object {
Object { this: self.this }
}
pub unsafe fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct EditorInspectorPlugin {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for EditorInspectorPlugin {
fn class_name() -> &'static str {
"EditorInspectorPlugin"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
object::add_ref(obj);
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for EditorInspectorPlugin {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl EditorInspectorPlugin {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = EditorInspectorPluginMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
EditorInspectorPlugin {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn can_handle(&mut self, object: Option<Object>) -> bool {
unsafe { EditorInspectorPlugin_can_handle(self.this, object) }
}
#[inline]
pub fn parse_begin(&mut self, object: Option<Object>) -> () {
unsafe { EditorInspectorPlugin_parse_begin(self.this, object) }
}
#[inline]
pub fn parse_category(&mut self, object: Option<Object>, category: GodotString) -> () {
unsafe { EditorInspectorPlugin_parse_category(self.this, object, category) }
}
#[inline]
pub fn parse_property(&mut self, object: Option<Object>, _type: i64, path: GodotString, hint: i64, hint_text: GodotString, usage: i64) -> bool {
unsafe { EditorInspectorPlugin_parse_property(self.this, object, _type, path, hint, hint_text, usage) }
}
#[inline]
pub fn parse_end(&mut self) -> () {
unsafe { EditorInspectorPlugin_parse_end(self.this) }
}
#[inline]
pub fn add_custom_control(&mut self, control: Option<Object>) -> () {
unsafe { EditorInspectorPlugin_add_custom_control(self.this, control) }
}
#[inline]
pub fn add_property_editor(&mut self, property: GodotString, editor: Option<Object>) -> () {
unsafe { EditorInspectorPlugin_add_property_editor(self.this, property, editor) }
}
#[inline]
pub fn add_property_editor_for_multiple_properties(&mut self, label: GodotString, properties: StringArray, editor: Option<Object>) -> () {
unsafe { EditorInspectorPlugin_add_property_editor_for_multiple_properties(self.this, label, properties, editor) }
}
#[inline]
pub fn init_ref(&mut self) -> bool {
unsafe { Reference_init_ref(self.this) }
}
#[inline]
pub fn _notification(&mut self, what: i64) -> () {
unsafe { Object__notification(self.this, what) }
}
#[inline]
pub fn _set(&mut self, property: GodotString, value: Variant) -> bool {
unsafe { Object__set(self.this, property, value) }
}
#[inline]
pub fn _get(&mut self, property: GodotString) -> Variant {
unsafe { Object__get(self.this, property) }
}
#[inline]
pub fn _get_property_list(&mut self) -> VariantArray {
unsafe { Object__get_property_list(self.this) }
}
#[inline]
pub fn _init(&mut self) -> () {
unsafe { Object__init(self.this) }
}
#[inline]
pub fn get_class(&self) -> GodotString {
unsafe { Object_get_class(self.this) }
}
#[inline]
pub fn is_class(&self, _type: GodotString) -> bool {
unsafe { Object_is_class(self.this, _type) }
}
#[inline]
pub fn set(&mut self, property: GodotString, value: Variant) -> () {
unsafe { Object_set(self.this, property, value) }
}
#[inline]
pub fn get(&self, property: GodotString) -> Variant {
unsafe { Object_get(self.this, property) }
}
#[inline]
pub fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
unsafe { Object_set_indexed(self.this, property, value) }
}
#[inline]
pub fn get_indexed(&self, property: NodePath) -> Variant {
unsafe { Object_get_indexed(self.this, property) }
}
#[inline]
pub fn get_property_list(&self) -> VariantArray {
unsafe { Object_get_property_list(self.this) }
}
#[inline]
pub fn get_method_list(&self) -> VariantArray {
unsafe { Object_get_method_list(self.this) }
}
#[inline]
pub fn notification(&mut self, what: i64, reversed: bool) -> () {
unsafe { Object_notification(self.this, what, reversed) }
}
#[inline]
pub fn get_instance_id(&self) -> i64 {
unsafe { Object_get_instance_id(self.this) }
}
#[inline]
pub fn set_script(&mut self, script: Option<Reference>) -> () {
unsafe { Object_set_script(self.this, script) }
}
#[inline]
pub fn get_script(&self) -> Option<Reference> {
unsafe { Object_get_script(self.this) }
}
#[inline]
pub fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
unsafe { Object_set_meta(self.this, name, value) }
}
#[inline]
pub fn get_meta(&self, name: GodotString) -> Variant {
unsafe { Object_get_meta(self.this, name) }
}
#[inline]
pub fn has_meta(&self, name: GodotString) -> bool {
unsafe { Object_has_meta(self.this, name) }
}
#[inline]
pub fn get_meta_list(&self) -> StringArray {
unsafe { Object_get_meta_list(self.this) }
}
#[inline]
pub fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
unsafe { Object_add_user_signal(self.this, signal, arguments) }
}
#[inline]
pub fn has_user_signal(&self, signal: GodotString) -> bool {
unsafe { Object_has_user_signal(self.this, signal) }
}
#[inline]
pub fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_emit_signal(self.this, signal, varargs) }
}
#[inline]
pub fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call(self.this, method, varargs) }
}
#[inline]
pub fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call_deferred(self.this, method, varargs) }
}
#[inline]
pub fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
unsafe { Object_callv(self.this, method, arg_array) }
}
#[inline]
pub fn has_method(&self, method: GodotString) -> bool {
unsafe { Object_has_method(self.this, method) }
}
#[inline]
pub fn get_signal_list(&self) -> VariantArray {
unsafe { Object_get_signal_list(self.this) }
}
#[inline]
pub fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
unsafe { Object_get_signal_connection_list(self.this, signal) }
}
#[inline]
pub fn get_incoming_connections(&self) -> VariantArray {
unsafe { Object_get_incoming_connections(self.this) }
}
#[inline]
pub fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
unsafe { Object_connect(self.this, signal, target, method, binds, flags) }
}
#[inline]
pub fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
unsafe { Object_disconnect(self.this, signal, target, method) }
}
#[inline]
pub fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
unsafe { Object_is_connected(self.this, signal, target, method) }
}
#[inline]
pub fn set_block_signals(&mut self, enable: bool) -> () {
unsafe { Object_set_block_signals(self.this, enable) }
}
#[inline]
pub fn is_blocking_signals(&self) -> bool {
unsafe { Object_is_blocking_signals(self.this) }
}
#[inline]
pub fn property_list_changed_notify(&mut self) -> () {
unsafe { Object_property_list_changed_notify(self.this) }
}
#[inline]
pub fn set_message_translation(&mut self, enable: bool) -> () {
unsafe { Object_set_message_translation(self.this, enable) }
}
#[inline]
pub fn can_translate_messages(&self) -> bool {
unsafe { Object_can_translate_messages(self.this) }
}
#[inline]
pub fn tr(&self, message: GodotString) -> GodotString {
unsafe { Object_tr(self.this, message) }
}
#[inline]
pub fn is_queued_for_deletion(&self) -> bool {
unsafe { Object_is_queued_for_deletion(self.this) }
}
#[inline]
pub fn to_reference(&self) -> Reference {
unsafe {{ object::add_ref(self.this); }}
Reference { this: self.this }
}
#[inline]
pub fn to_object(&self) -> Object {
Object { this: self.this }
}
pub fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
impl Drop for EditorInspectorPlugin {
fn drop(&mut self) {
unsafe {
if object::unref(self.this) {
(get_api().godot_object_destroy)(self.this);
}
}
}
}
#[derive(Copy, Clone)]
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct EditorProperty {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for EditorProperty {
fn class_name() -> &'static str {
"EditorProperty"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for EditorProperty {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl Free for EditorProperty {
unsafe fn godot_free(self) { self.free() }
}
impl QueueFree for EditorProperty {
unsafe fn godot_queue_free(&mut self) { self.queue_free() }
}
impl EditorProperty {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = EditorPropertyMethodTable::get(gd_api).class_constructor.unwrap();
let this = ctor();
EditorProperty {
this
}
}
}
#[inline]
pub unsafe fn free(self) {
(get_api().godot_object_destroy)(self.this);
}
#[inline]
pub unsafe fn update_property(&mut self) -> () {
EditorProperty_update_property(self.this)
}
#[inline]
pub unsafe fn set_label(&mut self, text: GodotString) -> () {
EditorProperty_set_label(self.this, text)
}
#[inline]
pub unsafe fn get_label(&self) -> GodotString {
EditorProperty_get_label(self.this)
}
#[inline]
pub unsafe fn set_read_only(&mut self, read_only: bool) -> () {
EditorProperty_set_read_only(self.this, read_only)
}
#[inline]
pub unsafe fn is_read_only(&self) -> bool {
EditorProperty_is_read_only(self.this)
}
#[inline]
pub unsafe fn set_checkable(&mut self, checkable: bool) -> () {
EditorProperty_set_checkable(self.this, checkable)
}
#[inline]
pub unsafe fn is_checkable(&self) -> bool {
EditorProperty_is_checkable(self.this)
}
#[inline]
pub unsafe fn set_checked(&mut self, checked: bool) -> () {
EditorProperty_set_checked(self.this, checked)
}
#[inline]
pub unsafe fn is_checked(&self) -> bool {
EditorProperty_is_checked(self.this)
}
#[inline]
pub unsafe fn set_draw_red(&mut self, draw_red: bool) -> () {
EditorProperty_set_draw_red(self.this, draw_red)
}
#[inline]
pub unsafe fn is_draw_red(&self) -> bool {
EditorProperty_is_draw_red(self.this)
}
#[inline]
pub unsafe fn set_keying(&mut self, keying: bool) -> () {
EditorProperty_set_keying(self.this, keying)
}
#[inline]
pub unsafe fn is_keying(&self) -> bool {
EditorProperty_is_keying(self.this)
}
#[inline]
pub unsafe fn get_edited_property(&mut self) -> GodotString {
EditorProperty_get_edited_property(self.this)
}
#[inline]
pub unsafe fn get_edited_object(&mut self) -> Option<Object> {
EditorProperty_get_edited_object(self.this)
}
#[inline]
pub unsafe fn _gui_input(&mut self, arg0: Option<InputEvent>) -> () {
EditorProperty__gui_input(self.this, arg0)
}
#[inline]
pub unsafe fn _focusable_focused(&mut self, arg0: i64) -> () {
EditorProperty__focusable_focused(self.this, arg0)
}
#[inline]
pub unsafe fn get_tooltip_text(&self) -> GodotString {
EditorProperty_get_tooltip_text(self.this)
}
#[inline]
pub unsafe fn _sort_children(&mut self) -> () {
Container__sort_children(self.this)
}
#[inline]
pub unsafe fn _child_minsize_changed(&mut self) -> () {
Container__child_minsize_changed(self.this)
}
#[inline]
pub unsafe fn queue_sort(&mut self) -> () {
Container_queue_sort(self.this)
}
#[inline]
pub unsafe fn fit_child_in_rect(&mut self, child: Option<Object>, rect: Rect2) -> () {
Container_fit_child_in_rect(self.this, child, rect)
}
#[inline]
pub unsafe fn _get_minimum_size(&mut self) -> Vector2 {
Control__get_minimum_size(self.this)
}
#[inline]
pub unsafe fn get_drag_data(&mut self, position: Vector2) -> Option<Object> {
Control_get_drag_data(self.this, position)
}
#[inline]
pub unsafe fn can_drop_data(&mut self, position: Vector2, data: Variant) -> bool {
Control_can_drop_data(self.this, position, data)
}
#[inline]
pub unsafe fn drop_data(&mut self, position: Vector2, data: Variant) -> () {
Control_drop_data(self.this, position, data)
}
#[inline]
pub unsafe fn _make_custom_tooltip(&mut self, for_text: GodotString) -> Option<Object> {
Control__make_custom_tooltip(self.this, for_text)
}
#[inline]
pub unsafe fn has_point(&mut self, point: Vector2) -> bool {
Control_has_point(self.this, point)
}
#[inline]
pub unsafe fn _size_changed(&mut self) -> () {
Control__size_changed(self.this)
}
#[inline]
pub unsafe fn _update_minimum_size(&mut self) -> () {
Control__update_minimum_size(self.this)
}
#[inline]
pub unsafe fn accept_event(&mut self) -> () {
Control_accept_event(self.this)
}
#[inline]
pub unsafe fn get_minimum_size(&self) -> Vector2 {
Control_get_minimum_size(self.this)
}
#[inline]
pub unsafe fn get_combined_minimum_size(&self) -> Vector2 {
Control_get_combined_minimum_size(self.this)
}
#[inline]
pub unsafe fn set_anchors_preset(&mut self, preset: i64, keep_margin: bool) -> () {
Control_set_anchors_preset(self.this, preset, keep_margin)
}
#[inline]
pub unsafe fn set_margins_preset(&mut self, preset: i64, resize_mode: i64, margin: i64) -> () {
Control_set_margins_preset(self.this, preset, resize_mode, margin)
}
#[inline]
pub unsafe fn set_anchors_and_margins_preset(&mut self, preset: i64, resize_mode: i64, margin: i64) -> () {
Control_set_anchors_and_margins_preset(self.this, preset, resize_mode, margin)
}
#[inline]
pub unsafe fn set_anchor(&mut self, margin: i64, anchor: f64, keep_margin: bool, push_opposite_anchor: bool) -> () {
Control_set_anchor(self.this, margin, anchor, keep_margin, push_opposite_anchor)
}
#[inline]
pub unsafe fn _set_anchor(&mut self, margin: i64, anchor: f64) -> () {
Control__set_anchor(self.this, margin, anchor)
}
#[inline]
pub unsafe fn get_anchor(&self, margin: i64) -> f64 {
Control_get_anchor(self.this, margin)
}
#[inline]
pub unsafe fn set_margin(&mut self, margin: i64, offset: f64) -> () {
Control_set_margin(self.this, margin, offset)
}
#[inline]
pub unsafe fn set_anchor_and_margin(&mut self, margin: i64, anchor: f64, offset: f64, push_opposite_anchor: bool) -> () {
Control_set_anchor_and_margin(self.this, margin, anchor, offset, push_opposite_anchor)
}
#[inline]
pub unsafe fn set_begin(&mut self, position: Vector2) -> () {
Control_set_begin(self.this, position)
}
#[inline]
pub unsafe fn set_end(&mut self, position: Vector2) -> () {
Control_set_end(self.this, position)
}
#[inline]
pub unsafe fn set_position(&mut self, position: Vector2) -> () {
Control_set_position(self.this, position)
}
#[inline]
pub unsafe fn set_size(&mut self, size: Vector2) -> () {
Control_set_size(self.this, size)
}
#[inline]
pub unsafe fn set_custom_minimum_size(&mut self, size: Vector2) -> () {
Control_set_custom_minimum_size(self.this, size)
}
#[inline]
pub unsafe fn set_global_position(&mut self, position: Vector2) -> () {
Control_set_global_position(self.this, position)
}
#[inline]
pub unsafe fn set_rotation(&mut self, radians: f64) -> () {
Control_set_rotation(self.this, radians)
}
#[inline]
pub unsafe fn set_rotation_degrees(&mut self, degrees: f64) -> () {
Control_set_rotation_degrees(self.this, degrees)
}
#[inline]
pub unsafe fn set_scale(&mut self, scale: Vector2) -> () {
Control_set_scale(self.this, scale)
}
#[inline]
pub unsafe fn set_pivot_offset(&mut self, pivot_offset: Vector2) -> () {
Control_set_pivot_offset(self.this, pivot_offset)
}
#[inline]
pub unsafe fn get_margin(&self, margin: i64) -> f64 {
Control_get_margin(self.this, margin)
}
#[inline]
pub unsafe fn get_begin(&self) -> Vector2 {
Control_get_begin(self.this)
}
#[inline]
pub unsafe fn get_end(&self) -> Vector2 {
Control_get_end(self.this)
}
#[inline]
pub unsafe fn get_position(&self) -> Vector2 {
Control_get_position(self.this)
}
#[inline]
pub unsafe fn get_size(&self) -> Vector2 {
Control_get_size(self.this)
}
#[inline]
pub unsafe fn get_rotation(&self) -> f64 {
Control_get_rotation(self.this)
}
#[inline]
pub unsafe fn get_rotation_degrees(&self) -> f64 {
Control_get_rotation_degrees(self.this)
}
#[inline]
pub unsafe fn get_scale(&self) -> Vector2 {
Control_get_scale(self.this)
}
#[inline]
pub unsafe fn get_pivot_offset(&self) -> Vector2 {
Control_get_pivot_offset(self.this)
}
#[inline]
pub unsafe fn get_custom_minimum_size(&self) -> Vector2 {
Control_get_custom_minimum_size(self.this)
}
#[inline]
pub unsafe fn get_parent_area_size(&self) -> Vector2 {
Control_get_parent_area_size(self.this)
}
#[inline]
pub unsafe fn get_global_position(&self) -> Vector2 {
Control_get_global_position(self.this)
}
#[inline]
pub unsafe fn get_rect(&self) -> Rect2 {
Control_get_rect(self.this)
}
#[inline]
pub unsafe fn get_global_rect(&self) -> Rect2 {
Control_get_global_rect(self.this)
}
#[inline]
pub unsafe fn show_modal(&mut self, exclusive: bool) -> () {
Control_show_modal(self.this, exclusive)
}
#[inline]
pub unsafe fn set_focus_mode(&mut self, mode: i64) -> () {
Control_set_focus_mode(self.this, mode)
}
#[inline]
pub unsafe fn get_focus_mode(&self) -> ControlFocusMode {
Control_get_focus_mode(self.this)
}
#[inline]
pub unsafe fn has_focus(&self) -> bool {
Control_has_focus(self.this)
}
#[inline]
pub unsafe fn grab_focus(&mut self) -> () {
Control_grab_focus(self.this)
}
#[inline]
pub unsafe fn release_focus(&mut self) -> () {
Control_release_focus(self.this)
}
#[inline]
pub unsafe fn get_focus_owner(&self) -> Option<Control> {
Control_get_focus_owner(self.this)
}
#[inline]
pub unsafe fn set_h_size_flags(&mut self, flags: i64) -> () {
Control_set_h_size_flags(self.this, flags)
}
#[inline]
pub unsafe fn get_h_size_flags(&self) -> i64 {
Control_get_h_size_flags(self.this)
}
#[inline]
pub unsafe fn set_stretch_ratio(&mut self, ratio: f64) -> () {
Control_set_stretch_ratio(self.this, ratio)
}
#[inline]
pub unsafe fn get_stretch_ratio(&self) -> f64 {
Control_get_stretch_ratio(self.this)
}
#[inline]
pub unsafe fn set_v_size_flags(&mut self, flags: i64) -> () {
Control_set_v_size_flags(self.this, flags)
}
#[inline]
pub unsafe fn get_v_size_flags(&self) -> i64 {
Control_get_v_size_flags(self.this)
}
#[inline]
pub unsafe fn set_theme(&mut self, theme: Option<Theme>) -> () {
Control_set_theme(self.this, theme)
}
#[inline]
pub unsafe fn get_theme(&self) -> Option<Theme> {
Control_get_theme(self.this)
}
#[inline]
pub unsafe fn add_icon_override(&mut self, name: GodotString, texture: Option<Texture>) -> () {
Control_add_icon_override(self.this, name, texture)
}
#[inline]
pub unsafe fn add_shader_override(&mut self, name: GodotString, shader: Option<Shader>) -> () {
Control_add_shader_override(self.this, name, shader)
}
#[inline]
pub unsafe fn add_stylebox_override(&mut self, name: GodotString, stylebox: Option<StyleBox>) -> () {
Control_add_stylebox_override(self.this, name, stylebox)
}
#[inline]
pub unsafe fn add_font_override(&mut self, name: GodotString, font: Option<Font>) -> () {
Control_add_font_override(self.this, name, font)
}
#[inline]
pub unsafe fn add_color_override(&mut self, name: GodotString, color: Color) -> () {
Control_add_color_override(self.this, name, color)
}
#[inline]
pub unsafe fn add_constant_override(&mut self, name: GodotString, constant: i64) -> () {
Control_add_constant_override(self.this, name, constant)
}
#[inline]
pub unsafe fn get_icon(&self, name: GodotString, _type: GodotString) -> Option<Texture> {
Control_get_icon(self.this, name, _type)
}
#[inline]
pub unsafe fn get_stylebox(&self, name: GodotString, _type: GodotString) -> Option<StyleBox> {
Control_get_stylebox(self.this, name, _type)
}
#[inline]
pub unsafe fn get_font(&self, name: GodotString, _type: GodotString) -> Option<Font> {
Control_get_font(self.this, name, _type)
}
#[inline]
pub unsafe fn get_color(&self, name: GodotString, _type: GodotString) -> Color {
Control_get_color(self.this, name, _type)
}
#[inline]
pub unsafe fn get_constant(&self, name: GodotString, _type: GodotString) -> i64 {
Control_get_constant(self.this, name, _type)
}
#[inline]
pub unsafe fn has_icon_override(&self, name: GodotString) -> bool {
Control_has_icon_override(self.this, name)
}
#[inline]
pub unsafe fn has_shader_override(&self, name: GodotString) -> bool {
Control_has_shader_override(self.this, name)
}
#[inline]
pub unsafe fn has_stylebox_override(&self, name: GodotString) -> bool {
Control_has_stylebox_override(self.this, name)
}
#[inline]
pub unsafe fn has_font_override(&self, name: GodotString) -> bool {
Control_has_font_override(self.this, name)
}
#[inline]
pub unsafe fn has_color_override(&self, name: GodotString) -> bool {
Control_has_color_override(self.this, name)
}
#[inline]
pub unsafe fn has_constant_override(&self, name: GodotString) -> bool {
Control_has_constant_override(self.this, name)
}
#[inline]
pub unsafe fn has_icon(&self, name: GodotString, _type: GodotString) -> bool {
Control_has_icon(self.this, name, _type)
}
#[inline]
pub unsafe fn has_stylebox(&self, name: GodotString, _type: GodotString) -> bool {
Control_has_stylebox(self.this, name, _type)
}
#[inline]
pub unsafe fn has_font(&self, name: GodotString, _type: GodotString) -> bool {
Control_has_font(self.this, name, _type)
}
#[inline]
pub unsafe fn has_color(&self, name: GodotString, _type: GodotString) -> bool {
Control_has_color(self.this, name, _type)
}
#[inline]
pub unsafe fn has_constant(&self, name: GodotString, _type: GodotString) -> bool {
Control_has_constant(self.this, name, _type)
}
#[inline]
pub unsafe fn get_parent_control(&self) -> Option<Control> {
Control_get_parent_control(self.this)
}
#[inline]
pub unsafe fn set_h_grow_direction(&mut self, direction: i64) -> () {
Control_set_h_grow_direction(self.this, direction)
}
#[inline]
pub unsafe fn get_h_grow_direction(&self) -> ControlGrowDirection {
Control_get_h_grow_direction(self.this)
}
#[inline]
pub unsafe fn set_v_grow_direction(&mut self, direction: i64) -> () {
Control_set_v_grow_direction(self.this, direction)
}
#[inline]
pub unsafe fn get_v_grow_direction(&self) -> ControlGrowDirection {
Control_get_v_grow_direction(self.this)
}
#[inline]
pub unsafe fn set_tooltip(&mut self, tooltip: GodotString) -> () {
Control_set_tooltip(self.this, tooltip)
}
#[inline]
pub unsafe fn get_tooltip(&self, at_position: Vector2) -> GodotString {
Control_get_tooltip(self.this, at_position)
}
#[inline]
pub unsafe fn _get_tooltip(&self) -> GodotString {
Control__get_tooltip(self.this)
}
#[inline]
pub unsafe fn set_default_cursor_shape(&mut self, shape: i64) -> () {
Control_set_default_cursor_shape(self.this, shape)
}
#[inline]
pub unsafe fn get_default_cursor_shape(&self) -> ControlCursorShape {
Control_get_default_cursor_shape(self.this)
}
#[inline]
pub unsafe fn get_cursor_shape(&self, position: Vector2) -> ControlCursorShape {
Control_get_cursor_shape(self.this, position)
}
#[inline]
pub unsafe fn set_focus_neighbour(&mut self, margin: i64, neighbour: NodePath) -> () {
Control_set_focus_neighbour(self.this, margin, neighbour)
}
#[inline]
pub unsafe fn get_focus_neighbour(&self, margin: i64) -> NodePath {
Control_get_focus_neighbour(self.this, margin)
}
#[inline]
pub unsafe fn set_focus_next(&mut self, next: NodePath) -> () {
Control_set_focus_next(self.this, next)
}
#[inline]
pub unsafe fn get_focus_next(&self) -> NodePath {
Control_get_focus_next(self.this)
}
#[inline]
pub unsafe fn set_focus_previous(&mut self, previous: NodePath) -> () {
Control_set_focus_previous(self.this, previous)
}
#[inline]
pub unsafe fn get_focus_previous(&self) -> NodePath {
Control_get_focus_previous(self.this)
}
#[inline]
pub unsafe fn force_drag(&mut self, data: Variant, preview: Option<Object>) -> () {
Control_force_drag(self.this, data, preview)
}
#[inline]
pub unsafe fn set_mouse_filter(&mut self, filter: i64) -> () {
Control_set_mouse_filter(self.this, filter)
}
#[inline]
pub unsafe fn get_mouse_filter(&self) -> ControlMouseFilter {
Control_get_mouse_filter(self.this)
}
#[inline]
pub unsafe fn set_clip_contents(&mut self, enable: bool) -> () {
Control_set_clip_contents(self.this, enable)
}
#[inline]
pub unsafe fn is_clipping_contents(&mut self) -> bool {
Control_is_clipping_contents(self.this)
}
#[inline]
pub unsafe fn grab_click_focus(&mut self) -> () {
Control_grab_click_focus(self.this)
}
#[inline]
pub unsafe fn set_drag_forwarding(&mut self, target: Option<Object>) -> () {
Control_set_drag_forwarding(self.this, target)
}
#[inline]
pub unsafe fn set_drag_preview(&mut self, control: Option<Object>) -> () {
Control_set_drag_preview(self.this, control)
}
#[inline]
pub unsafe fn warp_mouse(&mut self, to_position: Vector2) -> () {
Control_warp_mouse(self.this, to_position)
}
#[inline]
pub unsafe fn minimum_size_changed(&mut self) -> () {
Control_minimum_size_changed(self.this)
}
#[inline]
pub unsafe fn _theme_changed(&mut self) -> () {
Control__theme_changed(self.this)
}
#[inline]
pub unsafe fn _font_changed(&mut self) -> () {
Control__font_changed(self.this)
}
#[inline]
pub unsafe fn _draw(&mut self) -> () {
CanvasItem__draw(self.this)
}
#[inline]
pub unsafe fn _toplevel_raise_self(&mut self) -> () {
CanvasItem__toplevel_raise_self(self.this)
}
#[inline]
pub unsafe fn _update_callback(&mut self) -> () {
CanvasItem__update_callback(self.this)
}
#[inline]
pub unsafe fn _edit_set_state(&mut self, state: Dictionary) -> () {
CanvasItem__edit_set_state(self.this, state)
}
#[inline]
pub unsafe fn _edit_get_state(&self) -> Dictionary {
CanvasItem__edit_get_state(self.this)
}
#[inline]
pub unsafe fn _edit_set_position(&mut self, position: Vector2) -> () {
CanvasItem__edit_set_position(self.this, position)
}
#[inline]
pub unsafe fn _edit_get_position(&self) -> Vector2 {
CanvasItem__edit_get_position(self.this)
}
#[inline]
pub unsafe fn _edit_set_scale(&mut self, scale: Vector2) -> () {
CanvasItem__edit_set_scale(self.this, scale)
}
#[inline]
pub unsafe fn _edit_get_scale(&self) -> Vector2 {
CanvasItem__edit_get_scale(self.this)
}
#[inline]
pub unsafe fn _edit_set_rect(&mut self, rect: Rect2) -> () {
CanvasItem__edit_set_rect(self.this, rect)
}
#[inline]
pub unsafe fn _edit_get_rect(&self) -> Rect2 {
CanvasItem__edit_get_rect(self.this)
}
#[inline]
pub unsafe fn _edit_use_rect(&self) -> bool {
CanvasItem__edit_use_rect(self.this)
}
#[inline]
pub unsafe fn _edit_set_rotation(&mut self, degrees: f64) -> () {
CanvasItem__edit_set_rotation(self.this, degrees)
}
#[inline]
pub unsafe fn _edit_get_rotation(&self) -> f64 {
CanvasItem__edit_get_rotation(self.this)
}
#[inline]
pub unsafe fn _edit_use_rotation(&self) -> bool {
CanvasItem__edit_use_rotation(self.this)
}
#[inline]
pub unsafe fn _edit_set_pivot(&mut self, pivot: Vector2) -> () {
CanvasItem__edit_set_pivot(self.this, pivot)
}
#[inline]
pub unsafe fn _edit_get_pivot(&self) -> Vector2 {
CanvasItem__edit_get_pivot(self.this)
}
#[inline]
pub unsafe fn _edit_use_pivot(&self) -> bool {
CanvasItem__edit_use_pivot(self.this)
}
#[inline]
pub unsafe fn get_canvas_item(&self) -> Rid {
CanvasItem_get_canvas_item(self.this)
}
#[inline]
pub unsafe fn set_visible(&mut self, visible: bool) -> () {
CanvasItem_set_visible(self.this, visible)
}
#[inline]
pub unsafe fn is_visible(&self) -> bool {
CanvasItem_is_visible(self.this)
}
#[inline]
pub unsafe fn is_visible_in_tree(&self) -> bool {
CanvasItem_is_visible_in_tree(self.this)
}
#[inline]
pub unsafe fn show(&mut self) -> () {
CanvasItem_show(self.this)
}
#[inline]
pub unsafe fn hide(&mut self) -> () {
CanvasItem_hide(self.this)
}
#[inline]
pub unsafe fn update(&mut self) -> () {
CanvasItem_update(self.this)
}
#[inline]
pub unsafe fn set_as_toplevel(&mut self, enable: bool) -> () {
CanvasItem_set_as_toplevel(self.this, enable)
}
#[inline]
pub unsafe fn is_set_as_toplevel(&self) -> bool {
CanvasItem_is_set_as_toplevel(self.this)
}
#[inline]
pub unsafe fn set_light_mask(&mut self, light_mask: i64) -> () {
CanvasItem_set_light_mask(self.this, light_mask)
}
#[inline]
pub unsafe fn get_light_mask(&self) -> i64 {
CanvasItem_get_light_mask(self.this)
}
#[inline]
pub unsafe fn set_modulate(&mut self, modulate: Color) -> () {
CanvasItem_set_modulate(self.this, modulate)
}
#[inline]
pub unsafe fn get_modulate(&self) -> Color {
CanvasItem_get_modulate(self.this)
}
#[inline]
pub unsafe fn set_self_modulate(&mut self, self_modulate: Color) -> () {
CanvasItem_set_self_modulate(self.this, self_modulate)
}
#[inline]
pub unsafe fn get_self_modulate(&self) -> Color {
CanvasItem_get_self_modulate(self.this)
}
#[inline]
pub unsafe fn set_draw_behind_parent(&mut self, enable: bool) -> () {
CanvasItem_set_draw_behind_parent(self.this, enable)
}
#[inline]
pub unsafe fn is_draw_behind_parent_enabled(&self) -> bool {
CanvasItem_is_draw_behind_parent_enabled(self.this)
}
#[inline]
pub unsafe fn _set_on_top(&mut self, on_top: bool) -> () {
CanvasItem__set_on_top(self.this, on_top)
}
#[inline]
pub unsafe fn _is_on_top(&self) -> bool {
CanvasItem__is_on_top(self.this)
}
#[inline]
pub unsafe fn draw_line(&mut self, from: Vector2, to: Vector2, color: Color, width: f64, antialiased: bool) -> () {
CanvasItem_draw_line(self.this, from, to, color, width, antialiased)
}
#[inline]
pub unsafe fn draw_polyline(&mut self, points: Vector2Array, color: Color, width: f64, antialiased: bool) -> () {
CanvasItem_draw_polyline(self.this, points, color, width, antialiased)
}
#[inline]
pub unsafe fn draw_polyline_colors(&mut self, points: Vector2Array, colors: ColorArray, width: f64, antialiased: bool) -> () {
CanvasItem_draw_polyline_colors(self.this, points, colors, width, antialiased)
}
#[inline]
pub unsafe fn draw_multiline(&mut self, points: Vector2Array, color: Color, width: f64, antialiased: bool) -> () {
CanvasItem_draw_multiline(self.this, points, color, width, antialiased)
}
#[inline]
pub unsafe fn draw_multiline_colors(&mut self, points: Vector2Array, colors: ColorArray, width: f64, antialiased: bool) -> () {
CanvasItem_draw_multiline_colors(self.this, points, colors, width, antialiased)
}
#[inline]
pub unsafe fn draw_rect(&mut self, rect: Rect2, color: Color, filled: bool) -> () {
CanvasItem_draw_rect(self.this, rect, color, filled)
}
#[inline]
pub unsafe fn draw_circle(&mut self, position: Vector2, radius: f64, color: Color) -> () {
CanvasItem_draw_circle(self.this, position, radius, color)
}
#[inline]
pub unsafe fn draw_texture(&mut self, texture: Option<Texture>, position: Vector2, modulate: Color, normal_map: Option<Texture>) -> () {
CanvasItem_draw_texture(self.this, texture, position, modulate, normal_map)
}
#[inline]
pub unsafe fn draw_texture_rect(&mut self, texture: Option<Texture>, rect: Rect2, tile: bool, modulate: Color, transpose: bool, normal_map: Option<Texture>) -> () {
CanvasItem_draw_texture_rect(self.this, texture, rect, tile, modulate, transpose, normal_map)
}
#[inline]
pub unsafe fn draw_texture_rect_region(&mut self, texture: Option<Texture>, rect: Rect2, src_rect: Rect2, modulate: Color, transpose: bool, normal_map: Option<Texture>, clip_uv: bool) -> () {
CanvasItem_draw_texture_rect_region(self.this, texture, rect, src_rect, modulate, transpose, normal_map, clip_uv)
}
#[inline]
pub unsafe fn draw_style_box(&mut self, style_box: Option<StyleBox>, rect: Rect2) -> () {
CanvasItem_draw_style_box(self.this, style_box, rect)
}
#[inline]
pub unsafe fn draw_primitive(&mut self, points: Vector2Array, colors: ColorArray, uvs: Vector2Array, texture: Option<Texture>, width: f64, normal_map: Option<Texture>) -> () {
CanvasItem_draw_primitive(self.this, points, colors, uvs, texture, width, normal_map)
}
#[inline]
pub unsafe fn draw_polygon(&mut self, points: Vector2Array, colors: ColorArray, uvs: Vector2Array, texture: Option<Texture>, normal_map: Option<Texture>, antialiased: bool) -> () {
CanvasItem_draw_polygon(self.this, points, colors, uvs, texture, normal_map, antialiased)
}
#[inline]
pub unsafe fn draw_colored_polygon(&mut self, points: Vector2Array, color: Color, uvs: Vector2Array, texture: Option<Texture>, normal_map: Option<Texture>, antialiased: bool) -> () {
CanvasItem_draw_colored_polygon(self.this, points, color, uvs, texture, normal_map, antialiased)
}
#[inline]
pub unsafe fn draw_string(&mut self, font: Option<Font>, position: Vector2, text: GodotString, modulate: Color, clip_w: i64) -> () {
CanvasItem_draw_string(self.this, font, position, text, modulate, clip_w)
}
#[inline]
pub unsafe fn draw_char(&mut self, font: Option<Font>, position: Vector2, char: GodotString, next: GodotString, modulate: Color) -> f64 {
CanvasItem_draw_char(self.this, font, position, char, next, modulate)
}
#[inline]
pub unsafe fn draw_mesh(&mut self, mesh: Option<Mesh>, texture: Option<Texture>, normal_map: Option<Texture>) -> () {
CanvasItem_draw_mesh(self.this, mesh, texture, normal_map)
}
#[inline]
pub unsafe fn draw_multimesh(&mut self, mesh: Option<Mesh>, texture: Option<Texture>, normal_map: Option<Texture>) -> () {
CanvasItem_draw_multimesh(self.this, mesh, texture, normal_map)
}
#[inline]
pub unsafe fn draw_set_transform(&mut self, position: Vector2, rotation: f64, scale: Vector2) -> () {
CanvasItem_draw_set_transform(self.this, position, rotation, scale)
}
#[inline]
pub unsafe fn draw_set_transform_matrix(&mut self, xform: Transform2D) -> () {
CanvasItem_draw_set_transform_matrix(self.this, xform)
}
#[inline]
pub unsafe fn get_transform(&self) -> Transform2D {
CanvasItem_get_transform(self.this)
}
#[inline]
pub unsafe fn get_global_transform(&self) -> Transform2D {
CanvasItem_get_global_transform(self.this)
}
#[inline]
pub unsafe fn get_global_transform_with_canvas(&self) -> Transform2D {
CanvasItem_get_global_transform_with_canvas(self.this)
}
#[inline]
pub unsafe fn get_viewport_transform(&self) -> Transform2D {
CanvasItem_get_viewport_transform(self.this)
}
#[inline]
pub unsafe fn get_viewport_rect(&self) -> Rect2 {
CanvasItem_get_viewport_rect(self.this)
}
#[inline]
pub unsafe fn get_canvas_transform(&self) -> Transform2D {
CanvasItem_get_canvas_transform(self.this)
}
#[inline]
pub unsafe fn get_local_mouse_position(&self) -> Vector2 {
CanvasItem_get_local_mouse_position(self.this)
}
#[inline]
pub unsafe fn get_global_mouse_position(&self) -> Vector2 {
CanvasItem_get_global_mouse_position(self.this)
}
#[inline]
pub unsafe fn get_canvas(&self) -> Rid {
CanvasItem_get_canvas(self.this)
}
#[inline]
pub unsafe fn get_world_2d(&self) -> Option<World2D> {
CanvasItem_get_world_2d(self.this)
}
#[inline]
pub unsafe fn set_material(&mut self, material: Option<Material>) -> () {
CanvasItem_set_material(self.this, material)
}
#[inline]
pub unsafe fn get_material(&self) -> Option<Material> {
CanvasItem_get_material(self.this)
}
#[inline]
pub unsafe fn set_use_parent_material(&mut self, enable: bool) -> () {
CanvasItem_set_use_parent_material(self.this, enable)
}
#[inline]
pub unsafe fn get_use_parent_material(&self) -> bool {
CanvasItem_get_use_parent_material(self.this)
}
#[inline]
pub unsafe fn set_notify_local_transform(&mut self, enable: bool) -> () {
CanvasItem_set_notify_local_transform(self.this, enable)
}
#[inline]
pub unsafe fn is_local_transform_notification_enabled(&self) -> bool {
CanvasItem_is_local_transform_notification_enabled(self.this)
}
#[inline]
pub unsafe fn set_notify_transform(&mut self, enable: bool) -> () {
CanvasItem_set_notify_transform(self.this, enable)
}
#[inline]
pub unsafe fn is_transform_notification_enabled(&self) -> bool {
CanvasItem_is_transform_notification_enabled(self.this)
}
#[inline]
pub unsafe fn make_canvas_position_local(&self, screen_point: Vector2) -> Vector2 {
CanvasItem_make_canvas_position_local(self.this, screen_point)
}
#[inline]
pub unsafe fn make_input_local(&self, event: Option<InputEvent>) -> Option<InputEvent> {
CanvasItem_make_input_local(self.this, event)
}
#[inline]
pub unsafe fn _process(&mut self, delta: f64) -> () {
Node__process(self.this, delta)
}
#[inline]
pub unsafe fn _physics_process(&mut self, delta: f64) -> () {
Node__physics_process(self.this, delta)
}
#[inline]
pub unsafe fn _enter_tree(&mut self) -> () {
Node__enter_tree(self.this)
}
#[inline]
pub unsafe fn _exit_tree(&mut self) -> () {
Node__exit_tree(self.this)
}
#[inline]
pub unsafe fn _ready(&mut self) -> () {
Node__ready(self.this)
}
#[inline]
pub unsafe fn _input(&mut self, event: Option<InputEvent>) -> () {
Node__input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_input(&mut self, event: Option<InputEvent>) -> () {
Node__unhandled_input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_key_input(&mut self, event: Option<InputEventKey>) -> () {
Node__unhandled_key_input(self.this, event)
}
#[inline]
pub unsafe fn add_child_below_node(&mut self, node: Option<Object>, child_node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child_below_node(self.this, node, child_node, legible_unique_name)
}
#[inline]
pub unsafe fn set_name(&mut self, name: GodotString) -> () {
Node_set_name(self.this, name)
}
#[inline]
pub unsafe fn get_name(&self) -> GodotString {
Node_get_name(self.this)
}
#[inline]
pub unsafe fn add_child(&mut self, node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child(self.this, node, legible_unique_name)
}
#[inline]
pub unsafe fn remove_child(&mut self, node: Option<Object>) -> () {
Node_remove_child(self.this, node)
}
#[inline]
pub unsafe fn get_child_count(&self) -> i64 {
Node_get_child_count(self.this)
}
#[inline]
pub unsafe fn get_children(&self) -> VariantArray {
Node_get_children(self.this)
}
#[inline]
pub unsafe fn get_child(&self, idx: i64) -> Option<Node> {
Node_get_child(self.this, idx)
}
#[inline]
pub unsafe fn has_node(&self, path: NodePath) -> bool {
Node_has_node(self.this, path)
}
#[inline]
pub unsafe fn get_node(&self, path: NodePath) -> Option<Node> {
Node_get_node(self.this, path)
}
#[inline]
pub unsafe fn get_parent(&self) -> Option<Node> {
Node_get_parent(self.this)
}
#[inline]
pub unsafe fn find_node(&self, mask: GodotString, recursive: bool, owned: bool) -> Option<Node> {
Node_find_node(self.this, mask, recursive, owned)
}
#[inline]
pub unsafe fn has_node_and_resource(&self, path: NodePath) -> bool {
Node_has_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn get_node_and_resource(&mut self, path: NodePath) -> VariantArray {
Node_get_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn is_inside_tree(&self) -> bool {
Node_is_inside_tree(self.this)
}
#[inline]
pub unsafe fn is_a_parent_of(&self, node: Option<Object>) -> bool {
Node_is_a_parent_of(self.this, node)
}
#[inline]
pub unsafe fn is_greater_than(&self, node: Option<Object>) -> bool {
Node_is_greater_than(self.this, node)
}
#[inline]
pub unsafe fn get_path(&self) -> NodePath {
Node_get_path(self.this)
}
#[inline]
pub unsafe fn get_path_to(&self, node: Option<Object>) -> NodePath {
Node_get_path_to(self.this, node)
}
#[inline]
pub unsafe fn add_to_group(&mut self, group: GodotString, persistent: bool) -> () {
Node_add_to_group(self.this, group, persistent)
}
#[inline]
pub unsafe fn remove_from_group(&mut self, group: GodotString) -> () {
Node_remove_from_group(self.this, group)
}
#[inline]
pub unsafe fn is_in_group(&self, group: GodotString) -> bool {
Node_is_in_group(self.this, group)
}
#[inline]
pub unsafe fn move_child(&mut self, child_node: Option<Object>, to_position: i64) -> () {
Node_move_child(self.this, child_node, to_position)
}
#[inline]
pub unsafe fn get_groups(&self) -> VariantArray {
Node_get_groups(self.this)
}
#[inline]
pub unsafe fn raise(&mut self) -> () {
Node_raise(self.this)
}
#[inline]
pub unsafe fn set_owner(&mut self, owner: Option<Object>) -> () {
Node_set_owner(self.this, owner)
}
#[inline]
pub unsafe fn get_owner(&self) -> Option<Node> {
Node_get_owner(self.this)
}
#[inline]
pub unsafe fn remove_and_skip(&mut self) -> () {
Node_remove_and_skip(self.this)
}
#[inline]
pub unsafe fn get_index(&self) -> i64 {
Node_get_index(self.this)
}
#[inline]
pub unsafe fn print_tree(&mut self) -> () {
Node_print_tree(self.this)
}
#[inline]
pub unsafe fn print_tree_pretty(&mut self) -> () {
Node_print_tree_pretty(self.this)
}
#[inline]
pub unsafe fn set_filename(&mut self, filename: GodotString) -> () {
Node_set_filename(self.this, filename)
}
#[inline]
pub unsafe fn get_filename(&self) -> GodotString {
Node_get_filename(self.this)
}
#[inline]
pub unsafe fn propagate_notification(&mut self, what: i64) -> () {
Node_propagate_notification(self.this, what)
}
#[inline]
pub unsafe fn propagate_call(&mut self, method: GodotString, args: VariantArray, parent_first: bool) -> () {
Node_propagate_call(self.this, method, args, parent_first)
}
#[inline]
pub unsafe fn set_physics_process(&mut self, enable: bool) -> () {
Node_set_physics_process(self.this, enable)
}
#[inline]
pub unsafe fn get_physics_process_delta_time(&self) -> f64 {
Node_get_physics_process_delta_time(self.this)
}
#[inline]
pub unsafe fn is_physics_processing(&self) -> bool {
Node_is_physics_processing(self.this)
}
#[inline]
pub unsafe fn get_process_delta_time(&self) -> f64 {
Node_get_process_delta_time(self.this)
}
#[inline]
pub unsafe fn set_process(&mut self, enable: bool) -> () {
Node_set_process(self.this, enable)
}
#[inline]
pub unsafe fn set_process_priority(&mut self, priority: i64) -> () {
Node_set_process_priority(self.this, priority)
}
#[inline]
pub unsafe fn is_processing(&self) -> bool {
Node_is_processing(self.this)
}
#[inline]
pub unsafe fn set_process_input(&mut self, enable: bool) -> () {
Node_set_process_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_input(&self) -> bool {
Node_is_processing_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_input(&self) -> bool {
Node_is_processing_unhandled_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_key_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_key_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_key_input(&self) -> bool {
Node_is_processing_unhandled_key_input(self.this)
}
#[inline]
pub unsafe fn set_pause_mode(&mut self, mode: i64) -> () {
Node_set_pause_mode(self.this, mode)
}
#[inline]
pub unsafe fn get_pause_mode(&self) -> NodePauseMode {
Node_get_pause_mode(self.this)
}
#[inline]
pub unsafe fn can_process(&self) -> bool {
Node_can_process(self.this)
}
#[inline]
pub unsafe fn print_stray_nodes(&mut self) -> () {
Node_print_stray_nodes(self.this)
}
#[inline]
pub unsafe fn get_position_in_parent(&self) -> i64 {
Node_get_position_in_parent(self.this)
}
#[inline]
pub unsafe fn set_display_folded(&mut self, fold: bool) -> () {
Node_set_display_folded(self.this, fold)
}
#[inline]
pub unsafe fn is_displayed_folded(&self) -> bool {
Node_is_displayed_folded(self.this)
}
#[inline]
pub unsafe fn set_process_internal(&mut self, enable: bool) -> () {
Node_set_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_internal(&self) -> bool {
Node_is_processing_internal(self.this)
}
#[inline]
pub unsafe fn set_physics_process_internal(&mut self, enable: bool) -> () {
Node_set_physics_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_physics_processing_internal(&self) -> bool {
Node_is_physics_processing_internal(self.this)
}
#[inline]
pub unsafe fn get_tree(&self) -> Option<SceneTree> {
Node_get_tree(self.this)
}
#[inline]
pub unsafe fn duplicate(&self, flags: i64) -> Option<Node> {
Node_duplicate(self.this, flags)
}
#[inline]
pub unsafe fn replace_by(&mut self, node: Option<Object>, keep_data: bool) -> () {
Node_replace_by(self.this, node, keep_data)
}
#[inline]
pub unsafe fn set_scene_instance_load_placeholder(&mut self, load_placeholder: bool) -> () {
Node_set_scene_instance_load_placeholder(self.this, load_placeholder)
}
#[inline]
pub unsafe fn get_scene_instance_load_placeholder(&self) -> bool {
Node_get_scene_instance_load_placeholder(self.this)
}
#[inline]
pub unsafe fn get_viewport(&self) -> Option<Viewport> {
Node_get_viewport(self.this)
}
#[inline]
pub unsafe fn queue_free(&mut self) -> () {
Node_queue_free(self.this)
}
#[inline]
pub unsafe fn request_ready(&mut self) -> () {
Node_request_ready(self.this)
}
#[inline]
pub unsafe fn set_network_master(&mut self, id: i64, recursive: bool) -> () {
Node_set_network_master(self.this, id, recursive)
}
#[inline]
pub unsafe fn get_network_master(&self) -> i64 {
Node_get_network_master(self.this)
}
#[inline]
pub unsafe fn is_network_master(&self) -> bool {
Node_is_network_master(self.this)
}
#[inline]
pub unsafe fn get_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_multiplayer(self.this)
}
#[inline]
pub unsafe fn get_custom_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_custom_multiplayer(self.this)
}
#[inline]
pub unsafe fn set_custom_multiplayer(&mut self, api: Option<MultiplayerAPI>) -> () {
Node_set_custom_multiplayer(self.this, api)
}
#[inline]
pub unsafe fn rpc_config(&mut self, method: GodotString, mode: i64) -> () {
Node_rpc_config(self.this, method, mode)
}
#[inline]
pub unsafe fn rset_config(&mut self, property: GodotString, mode: i64) -> () {
Node_rset_config(self.this, property, mode)
}
#[inline]
pub unsafe fn _set_import_path(&mut self, import_path: NodePath) -> () {
Node__set_import_path(self.this, import_path)
}
#[inline]
pub unsafe fn _get_import_path(&self) -> NodePath {
Node__get_import_path(self.this)
}
#[inline]
pub unsafe fn rpc(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rset(&mut self, property: GodotString, value: Variant) -> () {
Node_rset(self.this, property, value)
}
#[inline]
pub unsafe fn rset_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn rset_unreliable(&mut self, property: GodotString, value: Variant) -> () {
Node_rset_unreliable(self.this, property, value)
}
#[inline]
pub unsafe fn rset_unreliable_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_unreliable_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn _notification(&mut self, what: i64) -> () {
Object__notification(self.this, what)
}
#[inline]
pub unsafe fn _set(&mut self, property: GodotString, value: Variant) -> bool {
Object__set(self.this, property, value)
}
#[inline]
pub unsafe fn _get(&mut self, property: GodotString) -> Variant {
Object__get(self.this, property)
}
#[inline]
pub unsafe fn _get_property_list(&mut self) -> VariantArray {
Object__get_property_list(self.this)
}
#[inline]
pub unsafe fn _init(&mut self) -> () {
Object__init(self.this)
}
#[inline]
pub unsafe fn get_class(&self) -> GodotString {
Object_get_class(self.this)
}
#[inline]
pub unsafe fn is_class(&self, _type: GodotString) -> bool {
Object_is_class(self.this, _type)
}
#[inline]
pub unsafe fn set(&mut self, property: GodotString, value: Variant) -> () {
Object_set(self.this, property, value)
}
#[inline]
pub unsafe fn get(&self, property: GodotString) -> Variant {
Object_get(self.this, property)
}
#[inline]
pub unsafe fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
Object_set_indexed(self.this, property, value)
}
#[inline]
pub unsafe fn get_indexed(&self, property: NodePath) -> Variant {
Object_get_indexed(self.this, property)
}
#[inline]
pub unsafe fn get_property_list(&self) -> VariantArray {
Object_get_property_list(self.this)
}
#[inline]
pub unsafe fn get_method_list(&self) -> VariantArray {
Object_get_method_list(self.this)
}
#[inline]
pub unsafe fn notification(&mut self, what: i64, reversed: bool) -> () {
Object_notification(self.this, what, reversed)
}
#[inline]
pub unsafe fn get_instance_id(&self) -> i64 {
Object_get_instance_id(self.this)
}
#[inline]
pub unsafe fn set_script(&mut self, script: Option<Reference>) -> () {
Object_set_script(self.this, script)
}
#[inline]
pub unsafe fn get_script(&self) -> Option<Reference> {
Object_get_script(self.this)
}
#[inline]
pub unsafe fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
Object_set_meta(self.this, name, value)
}
#[inline]
pub unsafe fn get_meta(&self, name: GodotString) -> Variant {
Object_get_meta(self.this, name)
}
#[inline]
pub unsafe fn has_meta(&self, name: GodotString) -> bool {
Object_has_meta(self.this, name)
}
#[inline]
pub unsafe fn get_meta_list(&self) -> StringArray {
Object_get_meta_list(self.this)
}
#[inline]
pub unsafe fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
Object_add_user_signal(self.this, signal, arguments)
}
#[inline]
pub unsafe fn has_user_signal(&self, signal: GodotString) -> bool {
Object_has_user_signal(self.this, signal)
}
#[inline]
pub unsafe fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
Object_emit_signal(self.this, signal, varargs)
}
#[inline]
pub unsafe fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call(self.this, method, varargs)
}
#[inline]
pub unsafe fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call_deferred(self.this, method, varargs)
}
#[inline]
pub unsafe fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
Object_callv(self.this, method, arg_array)
}
#[inline]
pub unsafe fn has_method(&self, method: GodotString) -> bool {
Object_has_method(self.this, method)
}
#[inline]
pub unsafe fn get_signal_list(&self) -> VariantArray {
Object_get_signal_list(self.this)
}
#[inline]
pub unsafe fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
Object_get_signal_connection_list(self.this, signal)
}
#[inline]
pub unsafe fn get_incoming_connections(&self) -> VariantArray {
Object_get_incoming_connections(self.this)
}
#[inline]
pub unsafe fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
Object_connect(self.this, signal, target, method, binds, flags)
}
#[inline]
pub unsafe fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
Object_disconnect(self.this, signal, target, method)
}
#[inline]
pub unsafe fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
Object_is_connected(self.this, signal, target, method)
}
#[inline]
pub unsafe fn set_block_signals(&mut self, enable: bool) -> () {
Object_set_block_signals(self.this, enable)
}
#[inline]
pub unsafe fn is_blocking_signals(&self) -> bool {
Object_is_blocking_signals(self.this)
}
#[inline]
pub unsafe fn property_list_changed_notify(&mut self) -> () {
Object_property_list_changed_notify(self.this)
}
#[inline]
pub unsafe fn set_message_translation(&mut self, enable: bool) -> () {
Object_set_message_translation(self.this, enable)
}
#[inline]
pub unsafe fn can_translate_messages(&self) -> bool {
Object_can_translate_messages(self.this)
}
#[inline]
pub unsafe fn tr(&self, message: GodotString) -> GodotString {
Object_tr(self.this, message)
}
#[inline]
pub unsafe fn is_queued_for_deletion(&self) -> bool {
Object_is_queued_for_deletion(self.this)
}
#[inline]
pub unsafe fn to_container(&self) -> Container {
Container { this: self.this }
}
#[inline]
pub unsafe fn to_control(&self) -> Control {
Control { this: self.this }
}
#[inline]
pub unsafe fn to_canvas_item(&self) -> CanvasItem {
CanvasItem { this: self.this }
}
#[inline]
pub unsafe fn to_node(&self) -> Node {
Node { this: self.this }
}
#[inline]
pub unsafe fn to_object(&self) -> Object {
Object { this: self.this }
}
pub unsafe fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
#[derive(Copy, Clone)]
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct EditorInspector {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for EditorInspector {
fn class_name() -> &'static str {
"EditorInspector"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for EditorInspector {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl Free for EditorInspector {
unsafe fn godot_free(self) { self.free() }
}
impl QueueFree for EditorInspector {
unsafe fn godot_queue_free(&mut self) { self.queue_free() }
}
impl EditorInspector {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = EditorInspectorMethodTable::get(gd_api).class_constructor.unwrap();
let this = ctor();
EditorInspector {
this
}
}
}
#[inline]
pub unsafe fn free(self) {
(get_api().godot_object_destroy)(self.this);
}
#[inline]
pub unsafe fn _property_changed(&mut self, arg0: GodotString, arg1: Variant, arg2: bool) -> () {
EditorInspector__property_changed(self.this, arg0, arg1, arg2)
}
#[inline]
pub unsafe fn _multiple_properties_changed(&mut self, arg0: StringArray, arg1: VariantArray) -> () {
EditorInspector__multiple_properties_changed(self.this, arg0, arg1)
}
#[inline]
pub unsafe fn _property_changed_update_all(&mut self, arg0: GodotString, arg1: Variant) -> () {
EditorInspector__property_changed_update_all(self.this, arg0, arg1)
}
#[inline]
pub unsafe fn _edit_request_change(&mut self, arg0: Option<Object>, arg1: GodotString) -> () {
EditorInspector__edit_request_change(self.this, arg0, arg1)
}
#[inline]
pub unsafe fn _node_removed(&mut self, arg0: Option<Object>) -> () {
EditorInspector__node_removed(self.this, arg0)
}
#[inline]
pub unsafe fn _filter_changed(&mut self, arg0: GodotString) -> () {
EditorInspector__filter_changed(self.this, arg0)
}
#[inline]
pub unsafe fn _property_keyed(&mut self, arg0: GodotString) -> () {
EditorInspector__property_keyed(self.this, arg0)
}
#[inline]
pub unsafe fn _property_keyed_with_value(&mut self, arg0: GodotString, arg1: Variant) -> () {
EditorInspector__property_keyed_with_value(self.this, arg0, arg1)
}
#[inline]
pub unsafe fn _property_checked(&mut self, arg0: GodotString, arg1: bool) -> () {
EditorInspector__property_checked(self.this, arg0, arg1)
}
#[inline]
pub unsafe fn _property_selected(&mut self, arg0: GodotString, arg1: i64) -> () {
EditorInspector__property_selected(self.this, arg0, arg1)
}
#[inline]
pub unsafe fn _resource_selected(&mut self, arg0: GodotString, arg1: Option<Resource>) -> () {
EditorInspector__resource_selected(self.this, arg0, arg1)
}
#[inline]
pub unsafe fn _object_id_selected(&mut self, arg0: GodotString, arg1: i64) -> () {
EditorInspector__object_id_selected(self.this, arg0, arg1)
}
#[inline]
pub unsafe fn _vscroll_changed(&mut self, arg0: f64) -> () {
EditorInspector__vscroll_changed(self.this, arg0)
}
#[inline]
pub unsafe fn refresh(&mut self) -> () {
EditorInspector_refresh(self.this)
}
#[inline]
pub unsafe fn _scroll_moved(&mut self, arg0: f64) -> () {
ScrollContainer__scroll_moved(self.this, arg0)
}
#[inline]
pub unsafe fn _gui_input(&mut self, arg0: Option<InputEvent>) -> () {
ScrollContainer__gui_input(self.this, arg0)
}
#[inline]
pub unsafe fn set_enable_h_scroll(&mut self, enable: bool) -> () {
ScrollContainer_set_enable_h_scroll(self.this, enable)
}
#[inline]
pub unsafe fn is_h_scroll_enabled(&self) -> bool {
ScrollContainer_is_h_scroll_enabled(self.this)
}
#[inline]
pub unsafe fn set_enable_v_scroll(&mut self, enable: bool) -> () {
ScrollContainer_set_enable_v_scroll(self.this, enable)
}
#[inline]
pub unsafe fn is_v_scroll_enabled(&self) -> bool {
ScrollContainer_is_v_scroll_enabled(self.this)
}
#[inline]
pub unsafe fn _update_scrollbar_position(&mut self) -> () {
ScrollContainer__update_scrollbar_position(self.this)
}
#[inline]
pub unsafe fn set_h_scroll(&mut self, value: i64) -> () {
ScrollContainer_set_h_scroll(self.this, value)
}
#[inline]
pub unsafe fn get_h_scroll(&self) -> i64 {
ScrollContainer_get_h_scroll(self.this)
}
#[inline]
pub unsafe fn set_v_scroll(&mut self, value: i64) -> () {
ScrollContainer_set_v_scroll(self.this, value)
}
#[inline]
pub unsafe fn get_v_scroll(&self) -> i64 {
ScrollContainer_get_v_scroll(self.this)
}
#[inline]
pub unsafe fn set_deadzone(&mut self, deadzone: i64) -> () {
ScrollContainer_set_deadzone(self.this, deadzone)
}
#[inline]
pub unsafe fn get_deadzone(&self) -> i64 {
ScrollContainer_get_deadzone(self.this)
}
#[inline]
pub unsafe fn get_h_scrollbar(&mut self) -> Option<HScrollBar> {
ScrollContainer_get_h_scrollbar(self.this)
}
#[inline]
pub unsafe fn get_v_scrollbar(&mut self) -> Option<VScrollBar> {
ScrollContainer_get_v_scrollbar(self.this)
}
#[inline]
pub unsafe fn _sort_children(&mut self) -> () {
Container__sort_children(self.this)
}
#[inline]
pub unsafe fn _child_minsize_changed(&mut self) -> () {
Container__child_minsize_changed(self.this)
}
#[inline]
pub unsafe fn queue_sort(&mut self) -> () {
Container_queue_sort(self.this)
}
#[inline]
pub unsafe fn fit_child_in_rect(&mut self, child: Option<Object>, rect: Rect2) -> () {
Container_fit_child_in_rect(self.this, child, rect)
}
#[inline]
pub unsafe fn _get_minimum_size(&mut self) -> Vector2 {
Control__get_minimum_size(self.this)
}
#[inline]
pub unsafe fn get_drag_data(&mut self, position: Vector2) -> Option<Object> {
Control_get_drag_data(self.this, position)
}
#[inline]
pub unsafe fn can_drop_data(&mut self, position: Vector2, data: Variant) -> bool {
Control_can_drop_data(self.this, position, data)
}
#[inline]
pub unsafe fn drop_data(&mut self, position: Vector2, data: Variant) -> () {
Control_drop_data(self.this, position, data)
}
#[inline]
pub unsafe fn _make_custom_tooltip(&mut self, for_text: GodotString) -> Option<Object> {
Control__make_custom_tooltip(self.this, for_text)
}
#[inline]
pub unsafe fn has_point(&mut self, point: Vector2) -> bool {
Control_has_point(self.this, point)
}
#[inline]
pub unsafe fn _size_changed(&mut self) -> () {
Control__size_changed(self.this)
}
#[inline]
pub unsafe fn _update_minimum_size(&mut self) -> () {
Control__update_minimum_size(self.this)
}
#[inline]
pub unsafe fn accept_event(&mut self) -> () {
Control_accept_event(self.this)
}
#[inline]
pub unsafe fn get_minimum_size(&self) -> Vector2 {
Control_get_minimum_size(self.this)
}
#[inline]
pub unsafe fn get_combined_minimum_size(&self) -> Vector2 {
Control_get_combined_minimum_size(self.this)
}
#[inline]
pub unsafe fn set_anchors_preset(&mut self, preset: i64, keep_margin: bool) -> () {
Control_set_anchors_preset(self.this, preset, keep_margin)
}
#[inline]
pub unsafe fn set_margins_preset(&mut self, preset: i64, resize_mode: i64, margin: i64) -> () {
Control_set_margins_preset(self.this, preset, resize_mode, margin)
}
#[inline]
pub unsafe fn set_anchors_and_margins_preset(&mut self, preset: i64, resize_mode: i64, margin: i64) -> () {
Control_set_anchors_and_margins_preset(self.this, preset, resize_mode, margin)
}
#[inline]
pub unsafe fn set_anchor(&mut self, margin: i64, anchor: f64, keep_margin: bool, push_opposite_anchor: bool) -> () {
Control_set_anchor(self.this, margin, anchor, keep_margin, push_opposite_anchor)
}
#[inline]
pub unsafe fn _set_anchor(&mut self, margin: i64, anchor: f64) -> () {
Control__set_anchor(self.this, margin, anchor)
}
#[inline]
pub unsafe fn get_anchor(&self, margin: i64) -> f64 {
Control_get_anchor(self.this, margin)
}
#[inline]
pub unsafe fn set_margin(&mut self, margin: i64, offset: f64) -> () {
Control_set_margin(self.this, margin, offset)
}
#[inline]
pub unsafe fn set_anchor_and_margin(&mut self, margin: i64, anchor: f64, offset: f64, push_opposite_anchor: bool) -> () {
Control_set_anchor_and_margin(self.this, margin, anchor, offset, push_opposite_anchor)
}
#[inline]
pub unsafe fn set_begin(&mut self, position: Vector2) -> () {
Control_set_begin(self.this, position)
}
#[inline]
pub unsafe fn set_end(&mut self, position: Vector2) -> () {
Control_set_end(self.this, position)
}
#[inline]
pub unsafe fn set_position(&mut self, position: Vector2) -> () {
Control_set_position(self.this, position)
}
#[inline]
pub unsafe fn set_size(&mut self, size: Vector2) -> () {
Control_set_size(self.this, size)
}
#[inline]
pub unsafe fn set_custom_minimum_size(&mut self, size: Vector2) -> () {
Control_set_custom_minimum_size(self.this, size)
}
#[inline]
pub unsafe fn set_global_position(&mut self, position: Vector2) -> () {
Control_set_global_position(self.this, position)
}
#[inline]
pub unsafe fn set_rotation(&mut self, radians: f64) -> () {
Control_set_rotation(self.this, radians)
}
#[inline]
pub unsafe fn set_rotation_degrees(&mut self, degrees: f64) -> () {
Control_set_rotation_degrees(self.this, degrees)
}
#[inline]
pub unsafe fn set_scale(&mut self, scale: Vector2) -> () {
Control_set_scale(self.this, scale)
}
#[inline]
pub unsafe fn set_pivot_offset(&mut self, pivot_offset: Vector2) -> () {
Control_set_pivot_offset(self.this, pivot_offset)
}
#[inline]
pub unsafe fn get_margin(&self, margin: i64) -> f64 {
Control_get_margin(self.this, margin)
}
#[inline]
pub unsafe fn get_begin(&self) -> Vector2 {
Control_get_begin(self.this)
}
#[inline]
pub unsafe fn get_end(&self) -> Vector2 {
Control_get_end(self.this)
}
#[inline]
pub unsafe fn get_position(&self) -> Vector2 {
Control_get_position(self.this)
}
#[inline]
pub unsafe fn get_size(&self) -> Vector2 {
Control_get_size(self.this)
}
#[inline]
pub unsafe fn get_rotation(&self) -> f64 {
Control_get_rotation(self.this)
}
#[inline]
pub unsafe fn get_rotation_degrees(&self) -> f64 {
Control_get_rotation_degrees(self.this)
}
#[inline]
pub unsafe fn get_scale(&self) -> Vector2 {
Control_get_scale(self.this)
}
#[inline]
pub unsafe fn get_pivot_offset(&self) -> Vector2 {
Control_get_pivot_offset(self.this)
}
#[inline]
pub unsafe fn get_custom_minimum_size(&self) -> Vector2 {
Control_get_custom_minimum_size(self.this)
}
#[inline]
pub unsafe fn get_parent_area_size(&self) -> Vector2 {
Control_get_parent_area_size(self.this)
}
#[inline]
pub unsafe fn get_global_position(&self) -> Vector2 {
Control_get_global_position(self.this)
}
#[inline]
pub unsafe fn get_rect(&self) -> Rect2 {
Control_get_rect(self.this)
}
#[inline]
pub unsafe fn get_global_rect(&self) -> Rect2 {
Control_get_global_rect(self.this)
}
#[inline]
pub unsafe fn show_modal(&mut self, exclusive: bool) -> () {
Control_show_modal(self.this, exclusive)
}
#[inline]
pub unsafe fn set_focus_mode(&mut self, mode: i64) -> () {
Control_set_focus_mode(self.this, mode)
}
#[inline]
pub unsafe fn get_focus_mode(&self) -> ControlFocusMode {
Control_get_focus_mode(self.this)
}
#[inline]
pub unsafe fn has_focus(&self) -> bool {
Control_has_focus(self.this)
}
#[inline]
pub unsafe fn grab_focus(&mut self) -> () {
Control_grab_focus(self.this)
}
#[inline]
pub unsafe fn release_focus(&mut self) -> () {
Control_release_focus(self.this)
}
#[inline]
pub unsafe fn get_focus_owner(&self) -> Option<Control> {
Control_get_focus_owner(self.this)
}
#[inline]
pub unsafe fn set_h_size_flags(&mut self, flags: i64) -> () {
Control_set_h_size_flags(self.this, flags)
}
#[inline]
pub unsafe fn get_h_size_flags(&self) -> i64 {
Control_get_h_size_flags(self.this)
}
#[inline]
pub unsafe fn set_stretch_ratio(&mut self, ratio: f64) -> () {
Control_set_stretch_ratio(self.this, ratio)
}
#[inline]
pub unsafe fn get_stretch_ratio(&self) -> f64 {
Control_get_stretch_ratio(self.this)
}
#[inline]
pub unsafe fn set_v_size_flags(&mut self, flags: i64) -> () {
Control_set_v_size_flags(self.this, flags)
}
#[inline]
pub unsafe fn get_v_size_flags(&self) -> i64 {
Control_get_v_size_flags(self.this)
}
#[inline]
pub unsafe fn set_theme(&mut self, theme: Option<Theme>) -> () {
Control_set_theme(self.this, theme)
}
#[inline]
pub unsafe fn get_theme(&self) -> Option<Theme> {
Control_get_theme(self.this)
}
#[inline]
pub unsafe fn add_icon_override(&mut self, name: GodotString, texture: Option<Texture>) -> () {
Control_add_icon_override(self.this, name, texture)
}
#[inline]
pub unsafe fn add_shader_override(&mut self, name: GodotString, shader: Option<Shader>) -> () {
Control_add_shader_override(self.this, name, shader)
}
#[inline]
pub unsafe fn add_stylebox_override(&mut self, name: GodotString, stylebox: Option<StyleBox>) -> () {
Control_add_stylebox_override(self.this, name, stylebox)
}
#[inline]
pub unsafe fn add_font_override(&mut self, name: GodotString, font: Option<Font>) -> () {
Control_add_font_override(self.this, name, font)
}
#[inline]
pub unsafe fn add_color_override(&mut self, name: GodotString, color: Color) -> () {
Control_add_color_override(self.this, name, color)
}
#[inline]
pub unsafe fn add_constant_override(&mut self, name: GodotString, constant: i64) -> () {
Control_add_constant_override(self.this, name, constant)
}
#[inline]
pub unsafe fn get_icon(&self, name: GodotString, _type: GodotString) -> Option<Texture> {
Control_get_icon(self.this, name, _type)
}
#[inline]
pub unsafe fn get_stylebox(&self, name: GodotString, _type: GodotString) -> Option<StyleBox> {
Control_get_stylebox(self.this, name, _type)
}
#[inline]
pub unsafe fn get_font(&self, name: GodotString, _type: GodotString) -> Option<Font> {
Control_get_font(self.this, name, _type)
}
#[inline]
pub unsafe fn get_color(&self, name: GodotString, _type: GodotString) -> Color {
Control_get_color(self.this, name, _type)
}
#[inline]
pub unsafe fn get_constant(&self, name: GodotString, _type: GodotString) -> i64 {
Control_get_constant(self.this, name, _type)
}
#[inline]
pub unsafe fn has_icon_override(&self, name: GodotString) -> bool {
Control_has_icon_override(self.this, name)
}
#[inline]
pub unsafe fn has_shader_override(&self, name: GodotString) -> bool {
Control_has_shader_override(self.this, name)
}
#[inline]
pub unsafe fn has_stylebox_override(&self, name: GodotString) -> bool {
Control_has_stylebox_override(self.this, name)
}
#[inline]
pub unsafe fn has_font_override(&self, name: GodotString) -> bool {
Control_has_font_override(self.this, name)
}
#[inline]
pub unsafe fn has_color_override(&self, name: GodotString) -> bool {
Control_has_color_override(self.this, name)
}
#[inline]
pub unsafe fn has_constant_override(&self, name: GodotString) -> bool {
Control_has_constant_override(self.this, name)
}
#[inline]
pub unsafe fn has_icon(&self, name: GodotString, _type: GodotString) -> bool {
Control_has_icon(self.this, name, _type)
}
#[inline]
pub unsafe fn has_stylebox(&self, name: GodotString, _type: GodotString) -> bool {
Control_has_stylebox(self.this, name, _type)
}
#[inline]
pub unsafe fn has_font(&self, name: GodotString, _type: GodotString) -> bool {
Control_has_font(self.this, name, _type)
}
#[inline]
pub unsafe fn has_color(&self, name: GodotString, _type: GodotString) -> bool {
Control_has_color(self.this, name, _type)
}
#[inline]
pub unsafe fn has_constant(&self, name: GodotString, _type: GodotString) -> bool {
Control_has_constant(self.this, name, _type)
}
#[inline]
pub unsafe fn get_parent_control(&self) -> Option<Control> {
Control_get_parent_control(self.this)
}
#[inline]
pub unsafe fn set_h_grow_direction(&mut self, direction: i64) -> () {
Control_set_h_grow_direction(self.this, direction)
}
#[inline]
pub unsafe fn get_h_grow_direction(&self) -> ControlGrowDirection {
Control_get_h_grow_direction(self.this)
}
#[inline]
pub unsafe fn set_v_grow_direction(&mut self, direction: i64) -> () {
Control_set_v_grow_direction(self.this, direction)
}
#[inline]
pub unsafe fn get_v_grow_direction(&self) -> ControlGrowDirection {
Control_get_v_grow_direction(self.this)
}
#[inline]
pub unsafe fn set_tooltip(&mut self, tooltip: GodotString) -> () {
Control_set_tooltip(self.this, tooltip)
}
#[inline]
pub unsafe fn get_tooltip(&self, at_position: Vector2) -> GodotString {
Control_get_tooltip(self.this, at_position)
}
#[inline]
pub unsafe fn _get_tooltip(&self) -> GodotString {
Control__get_tooltip(self.this)
}
#[inline]
pub unsafe fn set_default_cursor_shape(&mut self, shape: i64) -> () {
Control_set_default_cursor_shape(self.this, shape)
}
#[inline]
pub unsafe fn get_default_cursor_shape(&self) -> ControlCursorShape {
Control_get_default_cursor_shape(self.this)
}
#[inline]
pub unsafe fn get_cursor_shape(&self, position: Vector2) -> ControlCursorShape {
Control_get_cursor_shape(self.this, position)
}
#[inline]
pub unsafe fn set_focus_neighbour(&mut self, margin: i64, neighbour: NodePath) -> () {
Control_set_focus_neighbour(self.this, margin, neighbour)
}
#[inline]
pub unsafe fn get_focus_neighbour(&self, margin: i64) -> NodePath {
Control_get_focus_neighbour(self.this, margin)
}
#[inline]
pub unsafe fn set_focus_next(&mut self, next: NodePath) -> () {
Control_set_focus_next(self.this, next)
}
#[inline]
pub unsafe fn get_focus_next(&self) -> NodePath {
Control_get_focus_next(self.this)
}
#[inline]
pub unsafe fn set_focus_previous(&mut self, previous: NodePath) -> () {
Control_set_focus_previous(self.this, previous)
}
#[inline]
pub unsafe fn get_focus_previous(&self) -> NodePath {
Control_get_focus_previous(self.this)
}
#[inline]
pub unsafe fn force_drag(&mut self, data: Variant, preview: Option<Object>) -> () {
Control_force_drag(self.this, data, preview)
}
#[inline]
pub unsafe fn set_mouse_filter(&mut self, filter: i64) -> () {
Control_set_mouse_filter(self.this, filter)
}
#[inline]
pub unsafe fn get_mouse_filter(&self) -> ControlMouseFilter {
Control_get_mouse_filter(self.this)
}
#[inline]
pub unsafe fn set_clip_contents(&mut self, enable: bool) -> () {
Control_set_clip_contents(self.this, enable)
}
#[inline]
pub unsafe fn is_clipping_contents(&mut self) -> bool {
Control_is_clipping_contents(self.this)
}
#[inline]
pub unsafe fn grab_click_focus(&mut self) -> () {
Control_grab_click_focus(self.this)
}
#[inline]
pub unsafe fn set_drag_forwarding(&mut self, target: Option<Object>) -> () {
Control_set_drag_forwarding(self.this, target)
}
#[inline]
pub unsafe fn set_drag_preview(&mut self, control: Option<Object>) -> () {
Control_set_drag_preview(self.this, control)
}
#[inline]
pub unsafe fn warp_mouse(&mut self, to_position: Vector2) -> () {
Control_warp_mouse(self.this, to_position)
}
#[inline]
pub unsafe fn minimum_size_changed(&mut self) -> () {
Control_minimum_size_changed(self.this)
}
#[inline]
pub unsafe fn _theme_changed(&mut self) -> () {
Control__theme_changed(self.this)
}
#[inline]
pub unsafe fn _font_changed(&mut self) -> () {
Control__font_changed(self.this)
}
#[inline]
pub unsafe fn _draw(&mut self) -> () {
CanvasItem__draw(self.this)
}
#[inline]
pub unsafe fn _toplevel_raise_self(&mut self) -> () {
CanvasItem__toplevel_raise_self(self.this)
}
#[inline]
pub unsafe fn _update_callback(&mut self) -> () {
CanvasItem__update_callback(self.this)
}
#[inline]
pub unsafe fn _edit_set_state(&mut self, state: Dictionary) -> () {
CanvasItem__edit_set_state(self.this, state)
}
#[inline]
pub unsafe fn _edit_get_state(&self) -> Dictionary {
CanvasItem__edit_get_state(self.this)
}
#[inline]
pub unsafe fn _edit_set_position(&mut self, position: Vector2) -> () {
CanvasItem__edit_set_position(self.this, position)
}
#[inline]
pub unsafe fn _edit_get_position(&self) -> Vector2 {
CanvasItem__edit_get_position(self.this)
}
#[inline]
pub unsafe fn _edit_set_scale(&mut self, scale: Vector2) -> () {
CanvasItem__edit_set_scale(self.this, scale)
}
#[inline]
pub unsafe fn _edit_get_scale(&self) -> Vector2 {
CanvasItem__edit_get_scale(self.this)
}
#[inline]
pub unsafe fn _edit_set_rect(&mut self, rect: Rect2) -> () {
CanvasItem__edit_set_rect(self.this, rect)
}
#[inline]
pub unsafe fn _edit_get_rect(&self) -> Rect2 {
CanvasItem__edit_get_rect(self.this)
}
#[inline]
pub unsafe fn _edit_use_rect(&self) -> bool {
CanvasItem__edit_use_rect(self.this)
}
#[inline]
pub unsafe fn _edit_set_rotation(&mut self, degrees: f64) -> () {
CanvasItem__edit_set_rotation(self.this, degrees)
}
#[inline]
pub unsafe fn _edit_get_rotation(&self) -> f64 {
CanvasItem__edit_get_rotation(self.this)
}
#[inline]
pub unsafe fn _edit_use_rotation(&self) -> bool {
CanvasItem__edit_use_rotation(self.this)
}
#[inline]
pub unsafe fn _edit_set_pivot(&mut self, pivot: Vector2) -> () {
CanvasItem__edit_set_pivot(self.this, pivot)
}
#[inline]
pub unsafe fn _edit_get_pivot(&self) -> Vector2 {
CanvasItem__edit_get_pivot(self.this)
}
#[inline]
pub unsafe fn _edit_use_pivot(&self) -> bool {
CanvasItem__edit_use_pivot(self.this)
}
#[inline]
pub unsafe fn get_canvas_item(&self) -> Rid {
CanvasItem_get_canvas_item(self.this)
}
#[inline]
pub unsafe fn set_visible(&mut self, visible: bool) -> () {
CanvasItem_set_visible(self.this, visible)
}
#[inline]
pub unsafe fn is_visible(&self) -> bool {
CanvasItem_is_visible(self.this)
}
#[inline]
pub unsafe fn is_visible_in_tree(&self) -> bool {
CanvasItem_is_visible_in_tree(self.this)
}
#[inline]
pub unsafe fn show(&mut self) -> () {
CanvasItem_show(self.this)
}
#[inline]
pub unsafe fn hide(&mut self) -> () {
CanvasItem_hide(self.this)
}
#[inline]
pub unsafe fn update(&mut self) -> () {
CanvasItem_update(self.this)
}
#[inline]
pub unsafe fn set_as_toplevel(&mut self, enable: bool) -> () {
CanvasItem_set_as_toplevel(self.this, enable)
}
#[inline]
pub unsafe fn is_set_as_toplevel(&self) -> bool {
CanvasItem_is_set_as_toplevel(self.this)
}
#[inline]
pub unsafe fn set_light_mask(&mut self, light_mask: i64) -> () {
CanvasItem_set_light_mask(self.this, light_mask)
}
#[inline]
pub unsafe fn get_light_mask(&self) -> i64 {
CanvasItem_get_light_mask(self.this)
}
#[inline]
pub unsafe fn set_modulate(&mut self, modulate: Color) -> () {
CanvasItem_set_modulate(self.this, modulate)
}
#[inline]
pub unsafe fn get_modulate(&self) -> Color {
CanvasItem_get_modulate(self.this)
}
#[inline]
pub unsafe fn set_self_modulate(&mut self, self_modulate: Color) -> () {
CanvasItem_set_self_modulate(self.this, self_modulate)
}
#[inline]
pub unsafe fn get_self_modulate(&self) -> Color {
CanvasItem_get_self_modulate(self.this)
}
#[inline]
pub unsafe fn set_draw_behind_parent(&mut self, enable: bool) -> () {
CanvasItem_set_draw_behind_parent(self.this, enable)
}
#[inline]
pub unsafe fn is_draw_behind_parent_enabled(&self) -> bool {
CanvasItem_is_draw_behind_parent_enabled(self.this)
}
#[inline]
pub unsafe fn _set_on_top(&mut self, on_top: bool) -> () {
CanvasItem__set_on_top(self.this, on_top)
}
#[inline]
pub unsafe fn _is_on_top(&self) -> bool {
CanvasItem__is_on_top(self.this)
}
#[inline]
pub unsafe fn draw_line(&mut self, from: Vector2, to: Vector2, color: Color, width: f64, antialiased: bool) -> () {
CanvasItem_draw_line(self.this, from, to, color, width, antialiased)
}
#[inline]
pub unsafe fn draw_polyline(&mut self, points: Vector2Array, color: Color, width: f64, antialiased: bool) -> () {
CanvasItem_draw_polyline(self.this, points, color, width, antialiased)
}
#[inline]
pub unsafe fn draw_polyline_colors(&mut self, points: Vector2Array, colors: ColorArray, width: f64, antialiased: bool) -> () {
CanvasItem_draw_polyline_colors(self.this, points, colors, width, antialiased)
}
#[inline]
pub unsafe fn draw_multiline(&mut self, points: Vector2Array, color: Color, width: f64, antialiased: bool) -> () {
CanvasItem_draw_multiline(self.this, points, color, width, antialiased)
}
#[inline]
pub unsafe fn draw_multiline_colors(&mut self, points: Vector2Array, colors: ColorArray, width: f64, antialiased: bool) -> () {
CanvasItem_draw_multiline_colors(self.this, points, colors, width, antialiased)
}
#[inline]
pub unsafe fn draw_rect(&mut self, rect: Rect2, color: Color, filled: bool) -> () {
CanvasItem_draw_rect(self.this, rect, color, filled)
}
#[inline]
pub unsafe fn draw_circle(&mut self, position: Vector2, radius: f64, color: Color) -> () {
CanvasItem_draw_circle(self.this, position, radius, color)
}
#[inline]
pub unsafe fn draw_texture(&mut self, texture: Option<Texture>, position: Vector2, modulate: Color, normal_map: Option<Texture>) -> () {
CanvasItem_draw_texture(self.this, texture, position, modulate, normal_map)
}
#[inline]
pub unsafe fn draw_texture_rect(&mut self, texture: Option<Texture>, rect: Rect2, tile: bool, modulate: Color, transpose: bool, normal_map: Option<Texture>) -> () {
CanvasItem_draw_texture_rect(self.this, texture, rect, tile, modulate, transpose, normal_map)
}
#[inline]
pub unsafe fn draw_texture_rect_region(&mut self, texture: Option<Texture>, rect: Rect2, src_rect: Rect2, modulate: Color, transpose: bool, normal_map: Option<Texture>, clip_uv: bool) -> () {
CanvasItem_draw_texture_rect_region(self.this, texture, rect, src_rect, modulate, transpose, normal_map, clip_uv)
}
#[inline]
pub unsafe fn draw_style_box(&mut self, style_box: Option<StyleBox>, rect: Rect2) -> () {
CanvasItem_draw_style_box(self.this, style_box, rect)
}
#[inline]
pub unsafe fn draw_primitive(&mut self, points: Vector2Array, colors: ColorArray, uvs: Vector2Array, texture: Option<Texture>, width: f64, normal_map: Option<Texture>) -> () {
CanvasItem_draw_primitive(self.this, points, colors, uvs, texture, width, normal_map)
}
#[inline]
pub unsafe fn draw_polygon(&mut self, points: Vector2Array, colors: ColorArray, uvs: Vector2Array, texture: Option<Texture>, normal_map: Option<Texture>, antialiased: bool) -> () {
CanvasItem_draw_polygon(self.this, points, colors, uvs, texture, normal_map, antialiased)
}
#[inline]
pub unsafe fn draw_colored_polygon(&mut self, points: Vector2Array, color: Color, uvs: Vector2Array, texture: Option<Texture>, normal_map: Option<Texture>, antialiased: bool) -> () {
CanvasItem_draw_colored_polygon(self.this, points, color, uvs, texture, normal_map, antialiased)
}
#[inline]
pub unsafe fn draw_string(&mut self, font: Option<Font>, position: Vector2, text: GodotString, modulate: Color, clip_w: i64) -> () {
CanvasItem_draw_string(self.this, font, position, text, modulate, clip_w)
}
#[inline]
pub unsafe fn draw_char(&mut self, font: Option<Font>, position: Vector2, char: GodotString, next: GodotString, modulate: Color) -> f64 {
CanvasItem_draw_char(self.this, font, position, char, next, modulate)
}
#[inline]
pub unsafe fn draw_mesh(&mut self, mesh: Option<Mesh>, texture: Option<Texture>, normal_map: Option<Texture>) -> () {
CanvasItem_draw_mesh(self.this, mesh, texture, normal_map)
}
#[inline]
pub unsafe fn draw_multimesh(&mut self, mesh: Option<Mesh>, texture: Option<Texture>, normal_map: Option<Texture>) -> () {
CanvasItem_draw_multimesh(self.this, mesh, texture, normal_map)
}
#[inline]
pub unsafe fn draw_set_transform(&mut self, position: Vector2, rotation: f64, scale: Vector2) -> () {
CanvasItem_draw_set_transform(self.this, position, rotation, scale)
}
#[inline]
pub unsafe fn draw_set_transform_matrix(&mut self, xform: Transform2D) -> () {
CanvasItem_draw_set_transform_matrix(self.this, xform)
}
#[inline]
pub unsafe fn get_transform(&self) -> Transform2D {
CanvasItem_get_transform(self.this)
}
#[inline]
pub unsafe fn get_global_transform(&self) -> Transform2D {
CanvasItem_get_global_transform(self.this)
}
#[inline]
pub unsafe fn get_global_transform_with_canvas(&self) -> Transform2D {
CanvasItem_get_global_transform_with_canvas(self.this)
}
#[inline]
pub unsafe fn get_viewport_transform(&self) -> Transform2D {
CanvasItem_get_viewport_transform(self.this)
}
#[inline]
pub unsafe fn get_viewport_rect(&self) -> Rect2 {
CanvasItem_get_viewport_rect(self.this)
}
#[inline]
pub unsafe fn get_canvas_transform(&self) -> Transform2D {
CanvasItem_get_canvas_transform(self.this)
}
#[inline]
pub unsafe fn get_local_mouse_position(&self) -> Vector2 {
CanvasItem_get_local_mouse_position(self.this)
}
#[inline]
pub unsafe fn get_global_mouse_position(&self) -> Vector2 {
CanvasItem_get_global_mouse_position(self.this)
}
#[inline]
pub unsafe fn get_canvas(&self) -> Rid {
CanvasItem_get_canvas(self.this)
}
#[inline]
pub unsafe fn get_world_2d(&self) -> Option<World2D> {
CanvasItem_get_world_2d(self.this)
}
#[inline]
pub unsafe fn set_material(&mut self, material: Option<Material>) -> () {
CanvasItem_set_material(self.this, material)
}
#[inline]
pub unsafe fn get_material(&self) -> Option<Material> {
CanvasItem_get_material(self.this)
}
#[inline]
pub unsafe fn set_use_parent_material(&mut self, enable: bool) -> () {
CanvasItem_set_use_parent_material(self.this, enable)
}
#[inline]
pub unsafe fn get_use_parent_material(&self) -> bool {
CanvasItem_get_use_parent_material(self.this)
}
#[inline]
pub unsafe fn set_notify_local_transform(&mut self, enable: bool) -> () {
CanvasItem_set_notify_local_transform(self.this, enable)
}
#[inline]
pub unsafe fn is_local_transform_notification_enabled(&self) -> bool {
CanvasItem_is_local_transform_notification_enabled(self.this)
}
#[inline]
pub unsafe fn set_notify_transform(&mut self, enable: bool) -> () {
CanvasItem_set_notify_transform(self.this, enable)
}
#[inline]
pub unsafe fn is_transform_notification_enabled(&self) -> bool {
CanvasItem_is_transform_notification_enabled(self.this)
}
#[inline]
pub unsafe fn make_canvas_position_local(&self, screen_point: Vector2) -> Vector2 {
CanvasItem_make_canvas_position_local(self.this, screen_point)
}
#[inline]
pub unsafe fn make_input_local(&self, event: Option<InputEvent>) -> Option<InputEvent> {
CanvasItem_make_input_local(self.this, event)
}
#[inline]
pub unsafe fn _process(&mut self, delta: f64) -> () {
Node__process(self.this, delta)
}
#[inline]
pub unsafe fn _physics_process(&mut self, delta: f64) -> () {
Node__physics_process(self.this, delta)
}
#[inline]
pub unsafe fn _enter_tree(&mut self) -> () {
Node__enter_tree(self.this)
}
#[inline]
pub unsafe fn _exit_tree(&mut self) -> () {
Node__exit_tree(self.this)
}
#[inline]
pub unsafe fn _ready(&mut self) -> () {
Node__ready(self.this)
}
#[inline]
pub unsafe fn _input(&mut self, event: Option<InputEvent>) -> () {
Node__input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_input(&mut self, event: Option<InputEvent>) -> () {
Node__unhandled_input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_key_input(&mut self, event: Option<InputEventKey>) -> () {
Node__unhandled_key_input(self.this, event)
}
#[inline]
pub unsafe fn add_child_below_node(&mut self, node: Option<Object>, child_node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child_below_node(self.this, node, child_node, legible_unique_name)
}
#[inline]
pub unsafe fn set_name(&mut self, name: GodotString) -> () {
Node_set_name(self.this, name)
}
#[inline]
pub unsafe fn get_name(&self) -> GodotString {
Node_get_name(self.this)
}
#[inline]
pub unsafe fn add_child(&mut self, node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child(self.this, node, legible_unique_name)
}
#[inline]
pub unsafe fn remove_child(&mut self, node: Option<Object>) -> () {
Node_remove_child(self.this, node)
}
#[inline]
pub unsafe fn get_child_count(&self) -> i64 {
Node_get_child_count(self.this)
}
#[inline]
pub unsafe fn get_children(&self) -> VariantArray {
Node_get_children(self.this)
}
#[inline]
pub unsafe fn get_child(&self, idx: i64) -> Option<Node> {
Node_get_child(self.this, idx)
}
#[inline]
pub unsafe fn has_node(&self, path: NodePath) -> bool {
Node_has_node(self.this, path)
}
#[inline]
pub unsafe fn get_node(&self, path: NodePath) -> Option<Node> {
Node_get_node(self.this, path)
}
#[inline]
pub unsafe fn get_parent(&self) -> Option<Node> {
Node_get_parent(self.this)
}
#[inline]
pub unsafe fn find_node(&self, mask: GodotString, recursive: bool, owned: bool) -> Option<Node> {
Node_find_node(self.this, mask, recursive, owned)
}
#[inline]
pub unsafe fn has_node_and_resource(&self, path: NodePath) -> bool {
Node_has_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn get_node_and_resource(&mut self, path: NodePath) -> VariantArray {
Node_get_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn is_inside_tree(&self) -> bool {
Node_is_inside_tree(self.this)
}
#[inline]
pub unsafe fn is_a_parent_of(&self, node: Option<Object>) -> bool {
Node_is_a_parent_of(self.this, node)
}
#[inline]
pub unsafe fn is_greater_than(&self, node: Option<Object>) -> bool {
Node_is_greater_than(self.this, node)
}
#[inline]
pub unsafe fn get_path(&self) -> NodePath {
Node_get_path(self.this)
}
#[inline]
pub unsafe fn get_path_to(&self, node: Option<Object>) -> NodePath {
Node_get_path_to(self.this, node)
}
#[inline]
pub unsafe fn add_to_group(&mut self, group: GodotString, persistent: bool) -> () {
Node_add_to_group(self.this, group, persistent)
}
#[inline]
pub unsafe fn remove_from_group(&mut self, group: GodotString) -> () {
Node_remove_from_group(self.this, group)
}
#[inline]
pub unsafe fn is_in_group(&self, group: GodotString) -> bool {
Node_is_in_group(self.this, group)
}
#[inline]
pub unsafe fn move_child(&mut self, child_node: Option<Object>, to_position: i64) -> () {
Node_move_child(self.this, child_node, to_position)
}
#[inline]
pub unsafe fn get_groups(&self) -> VariantArray {
Node_get_groups(self.this)
}
#[inline]
pub unsafe fn raise(&mut self) -> () {
Node_raise(self.this)
}
#[inline]
pub unsafe fn set_owner(&mut self, owner: Option<Object>) -> () {
Node_set_owner(self.this, owner)
}
#[inline]
pub unsafe fn get_owner(&self) -> Option<Node> {
Node_get_owner(self.this)
}
#[inline]
pub unsafe fn remove_and_skip(&mut self) -> () {
Node_remove_and_skip(self.this)
}
#[inline]
pub unsafe fn get_index(&self) -> i64 {
Node_get_index(self.this)
}
#[inline]
pub unsafe fn print_tree(&mut self) -> () {
Node_print_tree(self.this)
}
#[inline]
pub unsafe fn print_tree_pretty(&mut self) -> () {
Node_print_tree_pretty(self.this)
}
#[inline]
pub unsafe fn set_filename(&mut self, filename: GodotString) -> () {
Node_set_filename(self.this, filename)
}
#[inline]
pub unsafe fn get_filename(&self) -> GodotString {
Node_get_filename(self.this)
}
#[inline]
pub unsafe fn propagate_notification(&mut self, what: i64) -> () {
Node_propagate_notification(self.this, what)
}
#[inline]
pub unsafe fn propagate_call(&mut self, method: GodotString, args: VariantArray, parent_first: bool) -> () {
Node_propagate_call(self.this, method, args, parent_first)
}
#[inline]
pub unsafe fn set_physics_process(&mut self, enable: bool) -> () {
Node_set_physics_process(self.this, enable)
}
#[inline]
pub unsafe fn get_physics_process_delta_time(&self) -> f64 {
Node_get_physics_process_delta_time(self.this)
}
#[inline]
pub unsafe fn is_physics_processing(&self) -> bool {
Node_is_physics_processing(self.this)
}
#[inline]
pub unsafe fn get_process_delta_time(&self) -> f64 {
Node_get_process_delta_time(self.this)
}
#[inline]
pub unsafe fn set_process(&mut self, enable: bool) -> () {
Node_set_process(self.this, enable)
}
#[inline]
pub unsafe fn set_process_priority(&mut self, priority: i64) -> () {
Node_set_process_priority(self.this, priority)
}
#[inline]
pub unsafe fn is_processing(&self) -> bool {
Node_is_processing(self.this)
}
#[inline]
pub unsafe fn set_process_input(&mut self, enable: bool) -> () {
Node_set_process_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_input(&self) -> bool {
Node_is_processing_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_input(&self) -> bool {
Node_is_processing_unhandled_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_key_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_key_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_key_input(&self) -> bool {
Node_is_processing_unhandled_key_input(self.this)
}
#[inline]
pub unsafe fn set_pause_mode(&mut self, mode: i64) -> () {
Node_set_pause_mode(self.this, mode)
}
#[inline]
pub unsafe fn get_pause_mode(&self) -> NodePauseMode {
Node_get_pause_mode(self.this)
}
#[inline]
pub unsafe fn can_process(&self) -> bool {
Node_can_process(self.this)
}
#[inline]
pub unsafe fn print_stray_nodes(&mut self) -> () {
Node_print_stray_nodes(self.this)
}
#[inline]
pub unsafe fn get_position_in_parent(&self) -> i64 {
Node_get_position_in_parent(self.this)
}
#[inline]
pub unsafe fn set_display_folded(&mut self, fold: bool) -> () {
Node_set_display_folded(self.this, fold)
}
#[inline]
pub unsafe fn is_displayed_folded(&self) -> bool {
Node_is_displayed_folded(self.this)
}
#[inline]
pub unsafe fn set_process_internal(&mut self, enable: bool) -> () {
Node_set_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_internal(&self) -> bool {
Node_is_processing_internal(self.this)
}
#[inline]
pub unsafe fn set_physics_process_internal(&mut self, enable: bool) -> () {
Node_set_physics_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_physics_processing_internal(&self) -> bool {
Node_is_physics_processing_internal(self.this)
}
#[inline]
pub unsafe fn get_tree(&self) -> Option<SceneTree> {
Node_get_tree(self.this)
}
#[inline]
pub unsafe fn duplicate(&self, flags: i64) -> Option<Node> {
Node_duplicate(self.this, flags)
}
#[inline]
pub unsafe fn replace_by(&mut self, node: Option<Object>, keep_data: bool) -> () {
Node_replace_by(self.this, node, keep_data)
}
#[inline]
pub unsafe fn set_scene_instance_load_placeholder(&mut self, load_placeholder: bool) -> () {
Node_set_scene_instance_load_placeholder(self.this, load_placeholder)
}
#[inline]
pub unsafe fn get_scene_instance_load_placeholder(&self) -> bool {
Node_get_scene_instance_load_placeholder(self.this)
}
#[inline]
pub unsafe fn get_viewport(&self) -> Option<Viewport> {
Node_get_viewport(self.this)
}
#[inline]
pub unsafe fn queue_free(&mut self) -> () {
Node_queue_free(self.this)
}
#[inline]
pub unsafe fn request_ready(&mut self) -> () {
Node_request_ready(self.this)
}
#[inline]
pub unsafe fn set_network_master(&mut self, id: i64, recursive: bool) -> () {
Node_set_network_master(self.this, id, recursive)
}
#[inline]
pub unsafe fn get_network_master(&self) -> i64 {
Node_get_network_master(self.this)
}
#[inline]
pub unsafe fn is_network_master(&self) -> bool {
Node_is_network_master(self.this)
}
#[inline]
pub unsafe fn get_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_multiplayer(self.this)
}
#[inline]
pub unsafe fn get_custom_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_custom_multiplayer(self.this)
}
#[inline]
pub unsafe fn set_custom_multiplayer(&mut self, api: Option<MultiplayerAPI>) -> () {
Node_set_custom_multiplayer(self.this, api)
}
#[inline]
pub unsafe fn rpc_config(&mut self, method: GodotString, mode: i64) -> () {
Node_rpc_config(self.this, method, mode)
}
#[inline]
pub unsafe fn rset_config(&mut self, property: GodotString, mode: i64) -> () {
Node_rset_config(self.this, property, mode)
}
#[inline]
pub unsafe fn _set_import_path(&mut self, import_path: NodePath) -> () {
Node__set_import_path(self.this, import_path)
}
#[inline]
pub unsafe fn _get_import_path(&self) -> NodePath {
Node__get_import_path(self.this)
}
#[inline]
pub unsafe fn rpc(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rset(&mut self, property: GodotString, value: Variant) -> () {
Node_rset(self.this, property, value)
}
#[inline]
pub unsafe fn rset_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn rset_unreliable(&mut self, property: GodotString, value: Variant) -> () {
Node_rset_unreliable(self.this, property, value)
}
#[inline]
pub unsafe fn rset_unreliable_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_unreliable_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn _notification(&mut self, what: i64) -> () {
Object__notification(self.this, what)
}
#[inline]
pub unsafe fn _set(&mut self, property: GodotString, value: Variant) -> bool {
Object__set(self.this, property, value)
}
#[inline]
pub unsafe fn _get(&mut self, property: GodotString) -> Variant {
Object__get(self.this, property)
}
#[inline]
pub unsafe fn _get_property_list(&mut self) -> VariantArray {
Object__get_property_list(self.this)
}
#[inline]
pub unsafe fn _init(&mut self) -> () {
Object__init(self.this)
}
#[inline]
pub unsafe fn get_class(&self) -> GodotString {
Object_get_class(self.this)
}
#[inline]
pub unsafe fn is_class(&self, _type: GodotString) -> bool {
Object_is_class(self.this, _type)
}
#[inline]
pub unsafe fn set(&mut self, property: GodotString, value: Variant) -> () {
Object_set(self.this, property, value)
}
#[inline]
pub unsafe fn get(&self, property: GodotString) -> Variant {
Object_get(self.this, property)
}
#[inline]
pub unsafe fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
Object_set_indexed(self.this, property, value)
}
#[inline]
pub unsafe fn get_indexed(&self, property: NodePath) -> Variant {
Object_get_indexed(self.this, property)
}
#[inline]
pub unsafe fn get_property_list(&self) -> VariantArray {
Object_get_property_list(self.this)
}
#[inline]
pub unsafe fn get_method_list(&self) -> VariantArray {
Object_get_method_list(self.this)
}
#[inline]
pub unsafe fn notification(&mut self, what: i64, reversed: bool) -> () {
Object_notification(self.this, what, reversed)
}
#[inline]
pub unsafe fn get_instance_id(&self) -> i64 {
Object_get_instance_id(self.this)
}
#[inline]
pub unsafe fn set_script(&mut self, script: Option<Reference>) -> () {
Object_set_script(self.this, script)
}
#[inline]
pub unsafe fn get_script(&self) -> Option<Reference> {
Object_get_script(self.this)
}
#[inline]
pub unsafe fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
Object_set_meta(self.this, name, value)
}
#[inline]
pub unsafe fn get_meta(&self, name: GodotString) -> Variant {
Object_get_meta(self.this, name)
}
#[inline]
pub unsafe fn has_meta(&self, name: GodotString) -> bool {
Object_has_meta(self.this, name)
}
#[inline]
pub unsafe fn get_meta_list(&self) -> StringArray {
Object_get_meta_list(self.this)
}
#[inline]
pub unsafe fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
Object_add_user_signal(self.this, signal, arguments)
}
#[inline]
pub unsafe fn has_user_signal(&self, signal: GodotString) -> bool {
Object_has_user_signal(self.this, signal)
}
#[inline]
pub unsafe fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
Object_emit_signal(self.this, signal, varargs)
}
#[inline]
pub unsafe fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call(self.this, method, varargs)
}
#[inline]
pub unsafe fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call_deferred(self.this, method, varargs)
}
#[inline]
pub unsafe fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
Object_callv(self.this, method, arg_array)
}
#[inline]
pub unsafe fn has_method(&self, method: GodotString) -> bool {
Object_has_method(self.this, method)
}
#[inline]
pub unsafe fn get_signal_list(&self) -> VariantArray {
Object_get_signal_list(self.this)
}
#[inline]
pub unsafe fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
Object_get_signal_connection_list(self.this, signal)
}
#[inline]
pub unsafe fn get_incoming_connections(&self) -> VariantArray {
Object_get_incoming_connections(self.this)
}
#[inline]
pub unsafe fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
Object_connect(self.this, signal, target, method, binds, flags)
}
#[inline]
pub unsafe fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
Object_disconnect(self.this, signal, target, method)
}
#[inline]
pub unsafe fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
Object_is_connected(self.this, signal, target, method)
}
#[inline]
pub unsafe fn set_block_signals(&mut self, enable: bool) -> () {
Object_set_block_signals(self.this, enable)
}
#[inline]
pub unsafe fn is_blocking_signals(&self) -> bool {
Object_is_blocking_signals(self.this)
}
#[inline]
pub unsafe fn property_list_changed_notify(&mut self) -> () {
Object_property_list_changed_notify(self.this)
}
#[inline]
pub unsafe fn set_message_translation(&mut self, enable: bool) -> () {
Object_set_message_translation(self.this, enable)
}
#[inline]
pub unsafe fn can_translate_messages(&self) -> bool {
Object_can_translate_messages(self.this)
}
#[inline]
pub unsafe fn tr(&self, message: GodotString) -> GodotString {
Object_tr(self.this, message)
}
#[inline]
pub unsafe fn is_queued_for_deletion(&self) -> bool {
Object_is_queued_for_deletion(self.this)
}
#[inline]
pub unsafe fn to_scroll_container(&self) -> ScrollContainer {
ScrollContainer { this: self.this }
}
#[inline]
pub unsafe fn to_container(&self) -> Container {
Container { this: self.this }
}
#[inline]
pub unsafe fn to_control(&self) -> Control {
Control { this: self.this }
}
#[inline]
pub unsafe fn to_canvas_item(&self) -> CanvasItem {
CanvasItem { this: self.this }
}
#[inline]
pub unsafe fn to_node(&self) -> Node {
Node { this: self.this }
}
#[inline]
pub unsafe fn to_object(&self) -> Object {
Object { this: self.this }
}
pub unsafe fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
#[derive(Copy, Clone)]
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct ScriptCreateDialog {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for ScriptCreateDialog {
fn class_name() -> &'static str {
"ScriptCreateDialog"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for ScriptCreateDialog {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl Free for ScriptCreateDialog {
unsafe fn godot_free(self) { self.free() }
}
impl QueueFree for ScriptCreateDialog {
unsafe fn godot_queue_free(&mut self) { self.queue_free() }
}
impl ScriptCreateDialog {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = ScriptCreateDialogMethodTable::get(gd_api).class_constructor.unwrap();
let this = ctor();
ScriptCreateDialog {
this
}
}
}
#[inline]
pub unsafe fn free(self) {
(get_api().godot_object_destroy)(self.this);
}
#[inline]
pub unsafe fn _class_name_changed(&mut self, arg0: GodotString) -> () {
ScriptCreateDialog__class_name_changed(self.this, arg0)
}
#[inline]
pub unsafe fn _parent_name_changed(&mut self, arg0: GodotString) -> () {
ScriptCreateDialog__parent_name_changed(self.this, arg0)
}
#[inline]
pub unsafe fn _lang_changed(&mut self, arg0: i64) -> () {
ScriptCreateDialog__lang_changed(self.this, arg0)
}
#[inline]
pub unsafe fn _built_in_pressed(&mut self) -> () {
ScriptCreateDialog__built_in_pressed(self.this)
}
#[inline]
pub unsafe fn _browse_path(&mut self, arg0: bool, arg1: bool) -> () {
ScriptCreateDialog__browse_path(self.this, arg0, arg1)
}
#[inline]
pub unsafe fn _file_selected(&mut self, arg0: GodotString) -> () {
ScriptCreateDialog__file_selected(self.this, arg0)
}
#[inline]
pub unsafe fn _path_changed(&mut self, arg0: GodotString) -> () {
ScriptCreateDialog__path_changed(self.this, arg0)
}
#[inline]
pub unsafe fn _path_entered(&mut self, arg0: GodotString) -> () {
ScriptCreateDialog__path_entered(self.this, arg0)
}
#[inline]
pub unsafe fn _template_changed(&mut self, arg0: i64) -> () {
ScriptCreateDialog__template_changed(self.this, arg0)
}
#[inline]
pub unsafe fn config(&mut self, inherits: GodotString, path: GodotString) -> () {
ScriptCreateDialog_config(self.this, inherits, path)
}
#[inline]
pub unsafe fn get_cancel(&mut self) -> Option<Button> {
ConfirmationDialog_get_cancel(self.this)
}
#[inline]
pub unsafe fn _ok(&mut self) -> () {
AcceptDialog__ok(self.this)
}
#[inline]
pub unsafe fn get_ok(&mut self) -> Option<Button> {
AcceptDialog_get_ok(self.this)
}
#[inline]
pub unsafe fn get_label(&mut self) -> Option<Label> {
AcceptDialog_get_label(self.this)
}
#[inline]
pub unsafe fn set_hide_on_ok(&mut self, enabled: bool) -> () {
AcceptDialog_set_hide_on_ok(self.this, enabled)
}
#[inline]
pub unsafe fn get_hide_on_ok(&self) -> bool {
AcceptDialog_get_hide_on_ok(self.this)
}
#[inline]
pub unsafe fn add_button(&mut self, text: GodotString, right: bool, action: GodotString) -> Option<Button> {
AcceptDialog_add_button(self.this, text, right, action)
}
#[inline]
pub unsafe fn add_cancel(&mut self, name: GodotString) -> Option<Button> {
AcceptDialog_add_cancel(self.this, name)
}
#[inline]
pub unsafe fn _builtin_text_entered(&mut self, arg0: GodotString) -> () {
AcceptDialog__builtin_text_entered(self.this, arg0)
}
#[inline]
pub unsafe fn register_text_enter(&mut self, line_edit: Option<Object>) -> () {
AcceptDialog_register_text_enter(self.this, line_edit)
}
#[inline]
pub unsafe fn _custom_action(&mut self, arg0: GodotString) -> () {
AcceptDialog__custom_action(self.this, arg0)
}
#[inline]
pub unsafe fn set_text(&mut self, text: GodotString) -> () {
AcceptDialog_set_text(self.this, text)
}
#[inline]
pub unsafe fn get_text(&self) -> GodotString {
AcceptDialog_get_text(self.this)
}
#[inline]
pub unsafe fn _gui_input(&mut self, arg0: Option<InputEvent>) -> () {
WindowDialog__gui_input(self.this, arg0)
}
#[inline]
pub unsafe fn set_title(&mut self, title: GodotString) -> () {
WindowDialog_set_title(self.this, title)
}
#[inline]
pub unsafe fn get_title(&self) -> GodotString {
WindowDialog_get_title(self.this)
}
#[inline]
pub unsafe fn set_resizable(&mut self, resizable: bool) -> () {
WindowDialog_set_resizable(self.this, resizable)
}
#[inline]
pub unsafe fn get_resizable(&self) -> bool {
WindowDialog_get_resizable(self.this)
}
#[inline]
pub unsafe fn _closed(&mut self) -> () {
WindowDialog__closed(self.this)
}
#[inline]
pub unsafe fn get_close_button(&mut self) -> Option<TextureButton> {
WindowDialog_get_close_button(self.this)
}
#[inline]
pub unsafe fn popup_centered(&mut self, size: Vector2) -> () {
Popup_popup_centered(self.this, size)
}
#[inline]
pub unsafe fn popup_centered_ratio(&mut self, ratio: f64) -> () {
Popup_popup_centered_ratio(self.this, ratio)
}
#[inline]
pub unsafe fn popup_centered_minsize(&mut self, minsize: Vector2) -> () {
Popup_popup_centered_minsize(self.this, minsize)
}
#[inline]
pub unsafe fn popup(&mut self, bounds: Rect2) -> () {
Popup_popup(self.this, bounds)
}
#[inline]
pub unsafe fn set_exclusive(&mut self, enable: bool) -> () {
Popup_set_exclusive(self.this, enable)
}
#[inline]
pub unsafe fn is_exclusive(&self) -> bool {
Popup_is_exclusive(self.this)
}
#[inline]
pub unsafe fn _get_minimum_size(&mut self) -> Vector2 {
Control__get_minimum_size(self.this)
}
#[inline]
pub unsafe fn get_drag_data(&mut self, position: Vector2) -> Option<Object> {
Control_get_drag_data(self.this, position)
}
#[inline]
pub unsafe fn can_drop_data(&mut self, position: Vector2, data: Variant) -> bool {
Control_can_drop_data(self.this, position, data)
}
#[inline]
pub unsafe fn drop_data(&mut self, position: Vector2, data: Variant) -> () {
Control_drop_data(self.this, position, data)
}
#[inline]
pub unsafe fn _make_custom_tooltip(&mut self, for_text: GodotString) -> Option<Object> {
Control__make_custom_tooltip(self.this, for_text)
}
#[inline]
pub unsafe fn has_point(&mut self, point: Vector2) -> bool {
Control_has_point(self.this, point)
}
#[inline]
pub unsafe fn _size_changed(&mut self) -> () {
Control__size_changed(self.this)
}
#[inline]
pub unsafe fn _update_minimum_size(&mut self) -> () {
Control__update_minimum_size(self.this)
}
#[inline]
pub unsafe fn accept_event(&mut self) -> () {
Control_accept_event(self.this)
}
#[inline]
pub unsafe fn get_minimum_size(&self) -> Vector2 {
Control_get_minimum_size(self.this)
}
#[inline]
pub unsafe fn get_combined_minimum_size(&self) -> Vector2 {
Control_get_combined_minimum_size(self.this)
}
#[inline]
pub unsafe fn set_anchors_preset(&mut self, preset: i64, keep_margin: bool) -> () {
Control_set_anchors_preset(self.this, preset, keep_margin)
}
#[inline]
pub unsafe fn set_margins_preset(&mut self, preset: i64, resize_mode: i64, margin: i64) -> () {
Control_set_margins_preset(self.this, preset, resize_mode, margin)
}
#[inline]
pub unsafe fn set_anchors_and_margins_preset(&mut self, preset: i64, resize_mode: i64, margin: i64) -> () {
Control_set_anchors_and_margins_preset(self.this, preset, resize_mode, margin)
}
#[inline]
pub unsafe fn set_anchor(&mut self, margin: i64, anchor: f64, keep_margin: bool, push_opposite_anchor: bool) -> () {
Control_set_anchor(self.this, margin, anchor, keep_margin, push_opposite_anchor)
}
#[inline]
pub unsafe fn _set_anchor(&mut self, margin: i64, anchor: f64) -> () {
Control__set_anchor(self.this, margin, anchor)
}
#[inline]
pub unsafe fn get_anchor(&self, margin: i64) -> f64 {
Control_get_anchor(self.this, margin)
}
#[inline]
pub unsafe fn set_margin(&mut self, margin: i64, offset: f64) -> () {
Control_set_margin(self.this, margin, offset)
}
#[inline]
pub unsafe fn set_anchor_and_margin(&mut self, margin: i64, anchor: f64, offset: f64, push_opposite_anchor: bool) -> () {
Control_set_anchor_and_margin(self.this, margin, anchor, offset, push_opposite_anchor)
}
#[inline]
pub unsafe fn set_begin(&mut self, position: Vector2) -> () {
Control_set_begin(self.this, position)
}
#[inline]
pub unsafe fn set_end(&mut self, position: Vector2) -> () {
Control_set_end(self.this, position)
}
#[inline]
pub unsafe fn set_position(&mut self, position: Vector2) -> () {
Control_set_position(self.this, position)
}
#[inline]
pub unsafe fn set_size(&mut self, size: Vector2) -> () {
Control_set_size(self.this, size)
}
#[inline]
pub unsafe fn set_custom_minimum_size(&mut self, size: Vector2) -> () {
Control_set_custom_minimum_size(self.this, size)
}
#[inline]
pub unsafe fn set_global_position(&mut self, position: Vector2) -> () {
Control_set_global_position(self.this, position)
}
#[inline]
pub unsafe fn set_rotation(&mut self, radians: f64) -> () {
Control_set_rotation(self.this, radians)
}
#[inline]
pub unsafe fn set_rotation_degrees(&mut self, degrees: f64) -> () {
Control_set_rotation_degrees(self.this, degrees)
}
#[inline]
pub unsafe fn set_scale(&mut self, scale: Vector2) -> () {
Control_set_scale(self.this, scale)
}
#[inline]
pub unsafe fn set_pivot_offset(&mut self, pivot_offset: Vector2) -> () {
Control_set_pivot_offset(self.this, pivot_offset)
}
#[inline]
pub unsafe fn get_margin(&self, margin: i64) -> f64 {
Control_get_margin(self.this, margin)
}
#[inline]
pub unsafe fn get_begin(&self) -> Vector2 {
Control_get_begin(self.this)
}
#[inline]
pub unsafe fn get_end(&self) -> Vector2 {
Control_get_end(self.this)
}
#[inline]
pub unsafe fn get_position(&self) -> Vector2 {
Control_get_position(self.this)
}
#[inline]
pub unsafe fn get_size(&self) -> Vector2 {
Control_get_size(self.this)
}
#[inline]
pub unsafe fn get_rotation(&self) -> f64 {
Control_get_rotation(self.this)
}
#[inline]
pub unsafe fn get_rotation_degrees(&self) -> f64 {
Control_get_rotation_degrees(self.this)
}
#[inline]
pub unsafe fn get_scale(&self) -> Vector2 {
Control_get_scale(self.this)
}
#[inline]
pub unsafe fn get_pivot_offset(&self) -> Vector2 {
Control_get_pivot_offset(self.this)
}
#[inline]
pub unsafe fn get_custom_minimum_size(&self) -> Vector2 {
Control_get_custom_minimum_size(self.this)
}
#[inline]
pub unsafe fn get_parent_area_size(&self) -> Vector2 {
Control_get_parent_area_size(self.this)
}
#[inline]
pub unsafe fn get_global_position(&self) -> Vector2 {
Control_get_global_position(self.this)
}
#[inline]
pub unsafe fn get_rect(&self) -> Rect2 {
Control_get_rect(self.this)
}
#[inline]
pub unsafe fn get_global_rect(&self) -> Rect2 {
Control_get_global_rect(self.this)
}
#[inline]
pub unsafe fn show_modal(&mut self, exclusive: bool) -> () {
Control_show_modal(self.this, exclusive)
}
#[inline]
pub unsafe fn set_focus_mode(&mut self, mode: i64) -> () {
Control_set_focus_mode(self.this, mode)
}
#[inline]
pub unsafe fn get_focus_mode(&self) -> ControlFocusMode {
Control_get_focus_mode(self.this)
}
#[inline]
pub unsafe fn has_focus(&self) -> bool {
Control_has_focus(self.this)
}
#[inline]
pub unsafe fn grab_focus(&mut self) -> () {
Control_grab_focus(self.this)
}
#[inline]
pub unsafe fn release_focus(&mut self) -> () {
Control_release_focus(self.this)
}
#[inline]
pub unsafe fn get_focus_owner(&self) -> Option<Control> {
Control_get_focus_owner(self.this)
}
#[inline]
pub unsafe fn set_h_size_flags(&mut self, flags: i64) -> () {
Control_set_h_size_flags(self.this, flags)
}
#[inline]
pub unsafe fn get_h_size_flags(&self) -> i64 {
Control_get_h_size_flags(self.this)
}
#[inline]
pub unsafe fn set_stretch_ratio(&mut self, ratio: f64) -> () {
Control_set_stretch_ratio(self.this, ratio)
}
#[inline]
pub unsafe fn get_stretch_ratio(&self) -> f64 {
Control_get_stretch_ratio(self.this)
}
#[inline]
pub unsafe fn set_v_size_flags(&mut self, flags: i64) -> () {
Control_set_v_size_flags(self.this, flags)
}
#[inline]
pub unsafe fn get_v_size_flags(&self) -> i64 {
Control_get_v_size_flags(self.this)
}
#[inline]
pub unsafe fn set_theme(&mut self, theme: Option<Theme>) -> () {
Control_set_theme(self.this, theme)
}
#[inline]
pub unsafe fn get_theme(&self) -> Option<Theme> {
Control_get_theme(self.this)
}
#[inline]
pub unsafe fn add_icon_override(&mut self, name: GodotString, texture: Option<Texture>) -> () {
Control_add_icon_override(self.this, name, texture)
}
#[inline]
pub unsafe fn add_shader_override(&mut self, name: GodotString, shader: Option<Shader>) -> () {
Control_add_shader_override(self.this, name, shader)
}
#[inline]
pub unsafe fn add_stylebox_override(&mut self, name: GodotString, stylebox: Option<StyleBox>) -> () {
Control_add_stylebox_override(self.this, name, stylebox)
}
#[inline]
pub unsafe fn add_font_override(&mut self, name: GodotString, font: Option<Font>) -> () {
Control_add_font_override(self.this, name, font)
}
#[inline]
pub unsafe fn add_color_override(&mut self, name: GodotString, color: Color) -> () {
Control_add_color_override(self.this, name, color)
}
#[inline]
pub unsafe fn add_constant_override(&mut self, name: GodotString, constant: i64) -> () {
Control_add_constant_override(self.this, name, constant)
}
#[inline]
pub unsafe fn get_icon(&self, name: GodotString, _type: GodotString) -> Option<Texture> {
Control_get_icon(self.this, name, _type)
}
#[inline]
pub unsafe fn get_stylebox(&self, name: GodotString, _type: GodotString) -> Option<StyleBox> {
Control_get_stylebox(self.this, name, _type)
}
#[inline]
pub unsafe fn get_font(&self, name: GodotString, _type: GodotString) -> Option<Font> {
Control_get_font(self.this, name, _type)
}
#[inline]
pub unsafe fn get_color(&self, name: GodotString, _type: GodotString) -> Color {
Control_get_color(self.this, name, _type)
}
#[inline]
pub unsafe fn get_constant(&self, name: GodotString, _type: GodotString) -> i64 {
Control_get_constant(self.this, name, _type)
}
#[inline]
pub unsafe fn has_icon_override(&self, name: GodotString) -> bool {
Control_has_icon_override(self.this, name)
}
#[inline]
pub unsafe fn has_shader_override(&self, name: GodotString) -> bool {
Control_has_shader_override(self.this, name)
}
#[inline]
pub unsafe fn has_stylebox_override(&self, name: GodotString) -> bool {
Control_has_stylebox_override(self.this, name)
}
#[inline]
pub unsafe fn has_font_override(&self, name: GodotString) -> bool {
Control_has_font_override(self.this, name)
}
#[inline]
pub unsafe fn has_color_override(&self, name: GodotString) -> bool {
Control_has_color_override(self.this, name)
}
#[inline]
pub unsafe fn has_constant_override(&self, name: GodotString) -> bool {
Control_has_constant_override(self.this, name)
}
#[inline]
pub unsafe fn has_icon(&self, name: GodotString, _type: GodotString) -> bool {
Control_has_icon(self.this, name, _type)
}
#[inline]
pub unsafe fn has_stylebox(&self, name: GodotString, _type: GodotString) -> bool {
Control_has_stylebox(self.this, name, _type)
}
#[inline]
pub unsafe fn has_font(&self, name: GodotString, _type: GodotString) -> bool {
Control_has_font(self.this, name, _type)
}
#[inline]
pub unsafe fn has_color(&self, name: GodotString, _type: GodotString) -> bool {
Control_has_color(self.this, name, _type)
}
#[inline]
pub unsafe fn has_constant(&self, name: GodotString, _type: GodotString) -> bool {
Control_has_constant(self.this, name, _type)
}
#[inline]
pub unsafe fn get_parent_control(&self) -> Option<Control> {
Control_get_parent_control(self.this)
}
#[inline]
pub unsafe fn set_h_grow_direction(&mut self, direction: i64) -> () {
Control_set_h_grow_direction(self.this, direction)
}
#[inline]
pub unsafe fn get_h_grow_direction(&self) -> ControlGrowDirection {
Control_get_h_grow_direction(self.this)
}
#[inline]
pub unsafe fn set_v_grow_direction(&mut self, direction: i64) -> () {
Control_set_v_grow_direction(self.this, direction)
}
#[inline]
pub unsafe fn get_v_grow_direction(&self) -> ControlGrowDirection {
Control_get_v_grow_direction(self.this)
}
#[inline]
pub unsafe fn set_tooltip(&mut self, tooltip: GodotString) -> () {
Control_set_tooltip(self.this, tooltip)
}
#[inline]
pub unsafe fn get_tooltip(&self, at_position: Vector2) -> GodotString {
Control_get_tooltip(self.this, at_position)
}
#[inline]
pub unsafe fn _get_tooltip(&self) -> GodotString {
Control__get_tooltip(self.this)
}
#[inline]
pub unsafe fn set_default_cursor_shape(&mut self, shape: i64) -> () {
Control_set_default_cursor_shape(self.this, shape)
}
#[inline]
pub unsafe fn get_default_cursor_shape(&self) -> ControlCursorShape {
Control_get_default_cursor_shape(self.this)
}
#[inline]
pub unsafe fn get_cursor_shape(&self, position: Vector2) -> ControlCursorShape {
Control_get_cursor_shape(self.this, position)
}
#[inline]
pub unsafe fn set_focus_neighbour(&mut self, margin: i64, neighbour: NodePath) -> () {
Control_set_focus_neighbour(self.this, margin, neighbour)
}
#[inline]
pub unsafe fn get_focus_neighbour(&self, margin: i64) -> NodePath {
Control_get_focus_neighbour(self.this, margin)
}
#[inline]
pub unsafe fn set_focus_next(&mut self, next: NodePath) -> () {
Control_set_focus_next(self.this, next)
}
#[inline]
pub unsafe fn get_focus_next(&self) -> NodePath {
Control_get_focus_next(self.this)
}
#[inline]
pub unsafe fn set_focus_previous(&mut self, previous: NodePath) -> () {
Control_set_focus_previous(self.this, previous)
}
#[inline]
pub unsafe fn get_focus_previous(&self) -> NodePath {
Control_get_focus_previous(self.this)
}
#[inline]
pub unsafe fn force_drag(&mut self, data: Variant, preview: Option<Object>) -> () {
Control_force_drag(self.this, data, preview)
}
#[inline]
pub unsafe fn set_mouse_filter(&mut self, filter: i64) -> () {
Control_set_mouse_filter(self.this, filter)
}
#[inline]
pub unsafe fn get_mouse_filter(&self) -> ControlMouseFilter {
Control_get_mouse_filter(self.this)
}
#[inline]
pub unsafe fn set_clip_contents(&mut self, enable: bool) -> () {
Control_set_clip_contents(self.this, enable)
}
#[inline]
pub unsafe fn is_clipping_contents(&mut self) -> bool {
Control_is_clipping_contents(self.this)
}
#[inline]
pub unsafe fn grab_click_focus(&mut self) -> () {
Control_grab_click_focus(self.this)
}
#[inline]
pub unsafe fn set_drag_forwarding(&mut self, target: Option<Object>) -> () {
Control_set_drag_forwarding(self.this, target)
}
#[inline]
pub unsafe fn set_drag_preview(&mut self, control: Option<Object>) -> () {
Control_set_drag_preview(self.this, control)
}
#[inline]
pub unsafe fn warp_mouse(&mut self, to_position: Vector2) -> () {
Control_warp_mouse(self.this, to_position)
}
#[inline]
pub unsafe fn minimum_size_changed(&mut self) -> () {
Control_minimum_size_changed(self.this)
}
#[inline]
pub unsafe fn _theme_changed(&mut self) -> () {
Control__theme_changed(self.this)
}
#[inline]
pub unsafe fn _font_changed(&mut self) -> () {
Control__font_changed(self.this)
}
#[inline]
pub unsafe fn _draw(&mut self) -> () {
CanvasItem__draw(self.this)
}
#[inline]
pub unsafe fn _toplevel_raise_self(&mut self) -> () {
CanvasItem__toplevel_raise_self(self.this)
}
#[inline]
pub unsafe fn _update_callback(&mut self) -> () {
CanvasItem__update_callback(self.this)
}
#[inline]
pub unsafe fn _edit_set_state(&mut self, state: Dictionary) -> () {
CanvasItem__edit_set_state(self.this, state)
}
#[inline]
pub unsafe fn _edit_get_state(&self) -> Dictionary {
CanvasItem__edit_get_state(self.this)
}
#[inline]
pub unsafe fn _edit_set_position(&mut self, position: Vector2) -> () {
CanvasItem__edit_set_position(self.this, position)
}
#[inline]
pub unsafe fn _edit_get_position(&self) -> Vector2 {
CanvasItem__edit_get_position(self.this)
}
#[inline]
pub unsafe fn _edit_set_scale(&mut self, scale: Vector2) -> () {
CanvasItem__edit_set_scale(self.this, scale)
}
#[inline]
pub unsafe fn _edit_get_scale(&self) -> Vector2 {
CanvasItem__edit_get_scale(self.this)
}
#[inline]
pub unsafe fn _edit_set_rect(&mut self, rect: Rect2) -> () {
CanvasItem__edit_set_rect(self.this, rect)
}
#[inline]
pub unsafe fn _edit_get_rect(&self) -> Rect2 {
CanvasItem__edit_get_rect(self.this)
}
#[inline]
pub unsafe fn _edit_use_rect(&self) -> bool {
CanvasItem__edit_use_rect(self.this)
}
#[inline]
pub unsafe fn _edit_set_rotation(&mut self, degrees: f64) -> () {
CanvasItem__edit_set_rotation(self.this, degrees)
}
#[inline]
pub unsafe fn _edit_get_rotation(&self) -> f64 {
CanvasItem__edit_get_rotation(self.this)
}
#[inline]
pub unsafe fn _edit_use_rotation(&self) -> bool {
CanvasItem__edit_use_rotation(self.this)
}
#[inline]
pub unsafe fn _edit_set_pivot(&mut self, pivot: Vector2) -> () {
CanvasItem__edit_set_pivot(self.this, pivot)
}
#[inline]
pub unsafe fn _edit_get_pivot(&self) -> Vector2 {
CanvasItem__edit_get_pivot(self.this)
}
#[inline]
pub unsafe fn _edit_use_pivot(&self) -> bool {
CanvasItem__edit_use_pivot(self.this)
}
#[inline]
pub unsafe fn get_canvas_item(&self) -> Rid {
CanvasItem_get_canvas_item(self.this)
}
#[inline]
pub unsafe fn set_visible(&mut self, visible: bool) -> () {
CanvasItem_set_visible(self.this, visible)
}
#[inline]
pub unsafe fn is_visible(&self) -> bool {
CanvasItem_is_visible(self.this)
}
#[inline]
pub unsafe fn is_visible_in_tree(&self) -> bool {
CanvasItem_is_visible_in_tree(self.this)
}
#[inline]
pub unsafe fn show(&mut self) -> () {
CanvasItem_show(self.this)
}
#[inline]
pub unsafe fn hide(&mut self) -> () {
CanvasItem_hide(self.this)
}
#[inline]
pub unsafe fn update(&mut self) -> () {
CanvasItem_update(self.this)
}
#[inline]
pub unsafe fn set_as_toplevel(&mut self, enable: bool) -> () {
CanvasItem_set_as_toplevel(self.this, enable)
}
#[inline]
pub unsafe fn is_set_as_toplevel(&self) -> bool {
CanvasItem_is_set_as_toplevel(self.this)
}
#[inline]
pub unsafe fn set_light_mask(&mut self, light_mask: i64) -> () {
CanvasItem_set_light_mask(self.this, light_mask)
}
#[inline]
pub unsafe fn get_light_mask(&self) -> i64 {
CanvasItem_get_light_mask(self.this)
}
#[inline]
pub unsafe fn set_modulate(&mut self, modulate: Color) -> () {
CanvasItem_set_modulate(self.this, modulate)
}
#[inline]
pub unsafe fn get_modulate(&self) -> Color {
CanvasItem_get_modulate(self.this)
}
#[inline]
pub unsafe fn set_self_modulate(&mut self, self_modulate: Color) -> () {
CanvasItem_set_self_modulate(self.this, self_modulate)
}
#[inline]
pub unsafe fn get_self_modulate(&self) -> Color {
CanvasItem_get_self_modulate(self.this)
}
#[inline]
pub unsafe fn set_draw_behind_parent(&mut self, enable: bool) -> () {
CanvasItem_set_draw_behind_parent(self.this, enable)
}
#[inline]
pub unsafe fn is_draw_behind_parent_enabled(&self) -> bool {
CanvasItem_is_draw_behind_parent_enabled(self.this)
}
#[inline]
pub unsafe fn _set_on_top(&mut self, on_top: bool) -> () {
CanvasItem__set_on_top(self.this, on_top)
}
#[inline]
pub unsafe fn _is_on_top(&self) -> bool {
CanvasItem__is_on_top(self.this)
}
#[inline]
pub unsafe fn draw_line(&mut self, from: Vector2, to: Vector2, color: Color, width: f64, antialiased: bool) -> () {
CanvasItem_draw_line(self.this, from, to, color, width, antialiased)
}
#[inline]
pub unsafe fn draw_polyline(&mut self, points: Vector2Array, color: Color, width: f64, antialiased: bool) -> () {
CanvasItem_draw_polyline(self.this, points, color, width, antialiased)
}
#[inline]
pub unsafe fn draw_polyline_colors(&mut self, points: Vector2Array, colors: ColorArray, width: f64, antialiased: bool) -> () {
CanvasItem_draw_polyline_colors(self.this, points, colors, width, antialiased)
}
#[inline]
pub unsafe fn draw_multiline(&mut self, points: Vector2Array, color: Color, width: f64, antialiased: bool) -> () {
CanvasItem_draw_multiline(self.this, points, color, width, antialiased)
}
#[inline]
pub unsafe fn draw_multiline_colors(&mut self, points: Vector2Array, colors: ColorArray, width: f64, antialiased: bool) -> () {
CanvasItem_draw_multiline_colors(self.this, points, colors, width, antialiased)
}
#[inline]
pub unsafe fn draw_rect(&mut self, rect: Rect2, color: Color, filled: bool) -> () {
CanvasItem_draw_rect(self.this, rect, color, filled)
}
#[inline]
pub unsafe fn draw_circle(&mut self, position: Vector2, radius: f64, color: Color) -> () {
CanvasItem_draw_circle(self.this, position, radius, color)
}
#[inline]
pub unsafe fn draw_texture(&mut self, texture: Option<Texture>, position: Vector2, modulate: Color, normal_map: Option<Texture>) -> () {
CanvasItem_draw_texture(self.this, texture, position, modulate, normal_map)
}
#[inline]
pub unsafe fn draw_texture_rect(&mut self, texture: Option<Texture>, rect: Rect2, tile: bool, modulate: Color, transpose: bool, normal_map: Option<Texture>) -> () {
CanvasItem_draw_texture_rect(self.this, texture, rect, tile, modulate, transpose, normal_map)
}
#[inline]
pub unsafe fn draw_texture_rect_region(&mut self, texture: Option<Texture>, rect: Rect2, src_rect: Rect2, modulate: Color, transpose: bool, normal_map: Option<Texture>, clip_uv: bool) -> () {
CanvasItem_draw_texture_rect_region(self.this, texture, rect, src_rect, modulate, transpose, normal_map, clip_uv)
}
#[inline]
pub unsafe fn draw_style_box(&mut self, style_box: Option<StyleBox>, rect: Rect2) -> () {
CanvasItem_draw_style_box(self.this, style_box, rect)
}
#[inline]
pub unsafe fn draw_primitive(&mut self, points: Vector2Array, colors: ColorArray, uvs: Vector2Array, texture: Option<Texture>, width: f64, normal_map: Option<Texture>) -> () {
CanvasItem_draw_primitive(self.this, points, colors, uvs, texture, width, normal_map)
}
#[inline]
pub unsafe fn draw_polygon(&mut self, points: Vector2Array, colors: ColorArray, uvs: Vector2Array, texture: Option<Texture>, normal_map: Option<Texture>, antialiased: bool) -> () {
CanvasItem_draw_polygon(self.this, points, colors, uvs, texture, normal_map, antialiased)
}
#[inline]
pub unsafe fn draw_colored_polygon(&mut self, points: Vector2Array, color: Color, uvs: Vector2Array, texture: Option<Texture>, normal_map: Option<Texture>, antialiased: bool) -> () {
CanvasItem_draw_colored_polygon(self.this, points, color, uvs, texture, normal_map, antialiased)
}
#[inline]
pub unsafe fn draw_string(&mut self, font: Option<Font>, position: Vector2, text: GodotString, modulate: Color, clip_w: i64) -> () {
CanvasItem_draw_string(self.this, font, position, text, modulate, clip_w)
}
#[inline]
pub unsafe fn draw_char(&mut self, font: Option<Font>, position: Vector2, char: GodotString, next: GodotString, modulate: Color) -> f64 {
CanvasItem_draw_char(self.this, font, position, char, next, modulate)
}
#[inline]
pub unsafe fn draw_mesh(&mut self, mesh: Option<Mesh>, texture: Option<Texture>, normal_map: Option<Texture>) -> () {
CanvasItem_draw_mesh(self.this, mesh, texture, normal_map)
}
#[inline]
pub unsafe fn draw_multimesh(&mut self, mesh: Option<Mesh>, texture: Option<Texture>, normal_map: Option<Texture>) -> () {
CanvasItem_draw_multimesh(self.this, mesh, texture, normal_map)
}
#[inline]
pub unsafe fn draw_set_transform(&mut self, position: Vector2, rotation: f64, scale: Vector2) -> () {
CanvasItem_draw_set_transform(self.this, position, rotation, scale)
}
#[inline]
pub unsafe fn draw_set_transform_matrix(&mut self, xform: Transform2D) -> () {
CanvasItem_draw_set_transform_matrix(self.this, xform)
}
#[inline]
pub unsafe fn get_transform(&self) -> Transform2D {
CanvasItem_get_transform(self.this)
}
#[inline]
pub unsafe fn get_global_transform(&self) -> Transform2D {
CanvasItem_get_global_transform(self.this)
}
#[inline]
pub unsafe fn get_global_transform_with_canvas(&self) -> Transform2D {
CanvasItem_get_global_transform_with_canvas(self.this)
}
#[inline]
pub unsafe fn get_viewport_transform(&self) -> Transform2D {
CanvasItem_get_viewport_transform(self.this)
}
#[inline]
pub unsafe fn get_viewport_rect(&self) -> Rect2 {
CanvasItem_get_viewport_rect(self.this)
}
#[inline]
pub unsafe fn get_canvas_transform(&self) -> Transform2D {
CanvasItem_get_canvas_transform(self.this)
}
#[inline]
pub unsafe fn get_local_mouse_position(&self) -> Vector2 {
CanvasItem_get_local_mouse_position(self.this)
}
#[inline]
pub unsafe fn get_global_mouse_position(&self) -> Vector2 {
CanvasItem_get_global_mouse_position(self.this)
}
#[inline]
pub unsafe fn get_canvas(&self) -> Rid {
CanvasItem_get_canvas(self.this)
}
#[inline]
pub unsafe fn get_world_2d(&self) -> Option<World2D> {
CanvasItem_get_world_2d(self.this)
}
#[inline]
pub unsafe fn set_material(&mut self, material: Option<Material>) -> () {
CanvasItem_set_material(self.this, material)
}
#[inline]
pub unsafe fn get_material(&self) -> Option<Material> {
CanvasItem_get_material(self.this)
}
#[inline]
pub unsafe fn set_use_parent_material(&mut self, enable: bool) -> () {
CanvasItem_set_use_parent_material(self.this, enable)
}
#[inline]
pub unsafe fn get_use_parent_material(&self) -> bool {
CanvasItem_get_use_parent_material(self.this)
}
#[inline]
pub unsafe fn set_notify_local_transform(&mut self, enable: bool) -> () {
CanvasItem_set_notify_local_transform(self.this, enable)
}
#[inline]
pub unsafe fn is_local_transform_notification_enabled(&self) -> bool {
CanvasItem_is_local_transform_notification_enabled(self.this)
}
#[inline]
pub unsafe fn set_notify_transform(&mut self, enable: bool) -> () {
CanvasItem_set_notify_transform(self.this, enable)
}
#[inline]
pub unsafe fn is_transform_notification_enabled(&self) -> bool {
CanvasItem_is_transform_notification_enabled(self.this)
}
#[inline]
pub unsafe fn make_canvas_position_local(&self, screen_point: Vector2) -> Vector2 {
CanvasItem_make_canvas_position_local(self.this, screen_point)
}
#[inline]
pub unsafe fn make_input_local(&self, event: Option<InputEvent>) -> Option<InputEvent> {
CanvasItem_make_input_local(self.this, event)
}
#[inline]
pub unsafe fn _process(&mut self, delta: f64) -> () {
Node__process(self.this, delta)
}
#[inline]
pub unsafe fn _physics_process(&mut self, delta: f64) -> () {
Node__physics_process(self.this, delta)
}
#[inline]
pub unsafe fn _enter_tree(&mut self) -> () {
Node__enter_tree(self.this)
}
#[inline]
pub unsafe fn _exit_tree(&mut self) -> () {
Node__exit_tree(self.this)
}
#[inline]
pub unsafe fn _ready(&mut self) -> () {
Node__ready(self.this)
}
#[inline]
pub unsafe fn _input(&mut self, event: Option<InputEvent>) -> () {
Node__input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_input(&mut self, event: Option<InputEvent>) -> () {
Node__unhandled_input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_key_input(&mut self, event: Option<InputEventKey>) -> () {
Node__unhandled_key_input(self.this, event)
}
#[inline]
pub unsafe fn add_child_below_node(&mut self, node: Option<Object>, child_node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child_below_node(self.this, node, child_node, legible_unique_name)
}
#[inline]
pub unsafe fn set_name(&mut self, name: GodotString) -> () {
Node_set_name(self.this, name)
}
#[inline]
pub unsafe fn get_name(&self) -> GodotString {
Node_get_name(self.this)
}
#[inline]
pub unsafe fn add_child(&mut self, node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child(self.this, node, legible_unique_name)
}
#[inline]
pub unsafe fn remove_child(&mut self, node: Option<Object>) -> () {
Node_remove_child(self.this, node)
}
#[inline]
pub unsafe fn get_child_count(&self) -> i64 {
Node_get_child_count(self.this)
}
#[inline]
pub unsafe fn get_children(&self) -> VariantArray {
Node_get_children(self.this)
}
#[inline]
pub unsafe fn get_child(&self, idx: i64) -> Option<Node> {
Node_get_child(self.this, idx)
}
#[inline]
pub unsafe fn has_node(&self, path: NodePath) -> bool {
Node_has_node(self.this, path)
}
#[inline]
pub unsafe fn get_node(&self, path: NodePath) -> Option<Node> {
Node_get_node(self.this, path)
}
#[inline]
pub unsafe fn get_parent(&self) -> Option<Node> {
Node_get_parent(self.this)
}
#[inline]
pub unsafe fn find_node(&self, mask: GodotString, recursive: bool, owned: bool) -> Option<Node> {
Node_find_node(self.this, mask, recursive, owned)
}
#[inline]
pub unsafe fn has_node_and_resource(&self, path: NodePath) -> bool {
Node_has_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn get_node_and_resource(&mut self, path: NodePath) -> VariantArray {
Node_get_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn is_inside_tree(&self) -> bool {
Node_is_inside_tree(self.this)
}
#[inline]
pub unsafe fn is_a_parent_of(&self, node: Option<Object>) -> bool {
Node_is_a_parent_of(self.this, node)
}
#[inline]
pub unsafe fn is_greater_than(&self, node: Option<Object>) -> bool {
Node_is_greater_than(self.this, node)
}
#[inline]
pub unsafe fn get_path(&self) -> NodePath {
Node_get_path(self.this)
}
#[inline]
pub unsafe fn get_path_to(&self, node: Option<Object>) -> NodePath {
Node_get_path_to(self.this, node)
}
#[inline]
pub unsafe fn add_to_group(&mut self, group: GodotString, persistent: bool) -> () {
Node_add_to_group(self.this, group, persistent)
}
#[inline]
pub unsafe fn remove_from_group(&mut self, group: GodotString) -> () {
Node_remove_from_group(self.this, group)
}
#[inline]
pub unsafe fn is_in_group(&self, group: GodotString) -> bool {
Node_is_in_group(self.this, group)
}
#[inline]
pub unsafe fn move_child(&mut self, child_node: Option<Object>, to_position: i64) -> () {
Node_move_child(self.this, child_node, to_position)
}
#[inline]
pub unsafe fn get_groups(&self) -> VariantArray {
Node_get_groups(self.this)
}
#[inline]
pub unsafe fn raise(&mut self) -> () {
Node_raise(self.this)
}
#[inline]
pub unsafe fn set_owner(&mut self, owner: Option<Object>) -> () {
Node_set_owner(self.this, owner)
}
#[inline]
pub unsafe fn get_owner(&self) -> Option<Node> {
Node_get_owner(self.this)
}
#[inline]
pub unsafe fn remove_and_skip(&mut self) -> () {
Node_remove_and_skip(self.this)
}
#[inline]
pub unsafe fn get_index(&self) -> i64 {
Node_get_index(self.this)
}
#[inline]
pub unsafe fn print_tree(&mut self) -> () {
Node_print_tree(self.this)
}
#[inline]
pub unsafe fn print_tree_pretty(&mut self) -> () {
Node_print_tree_pretty(self.this)
}
#[inline]
pub unsafe fn set_filename(&mut self, filename: GodotString) -> () {
Node_set_filename(self.this, filename)
}
#[inline]
pub unsafe fn get_filename(&self) -> GodotString {
Node_get_filename(self.this)
}
#[inline]
pub unsafe fn propagate_notification(&mut self, what: i64) -> () {
Node_propagate_notification(self.this, what)
}
#[inline]
pub unsafe fn propagate_call(&mut self, method: GodotString, args: VariantArray, parent_first: bool) -> () {
Node_propagate_call(self.this, method, args, parent_first)
}
#[inline]
pub unsafe fn set_physics_process(&mut self, enable: bool) -> () {
Node_set_physics_process(self.this, enable)
}
#[inline]
pub unsafe fn get_physics_process_delta_time(&self) -> f64 {
Node_get_physics_process_delta_time(self.this)
}
#[inline]
pub unsafe fn is_physics_processing(&self) -> bool {
Node_is_physics_processing(self.this)
}
#[inline]
pub unsafe fn get_process_delta_time(&self) -> f64 {
Node_get_process_delta_time(self.this)
}
#[inline]
pub unsafe fn set_process(&mut self, enable: bool) -> () {
Node_set_process(self.this, enable)
}
#[inline]
pub unsafe fn set_process_priority(&mut self, priority: i64) -> () {
Node_set_process_priority(self.this, priority)
}
#[inline]
pub unsafe fn is_processing(&self) -> bool {
Node_is_processing(self.this)
}
#[inline]
pub unsafe fn set_process_input(&mut self, enable: bool) -> () {
Node_set_process_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_input(&self) -> bool {
Node_is_processing_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_input(&self) -> bool {
Node_is_processing_unhandled_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_key_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_key_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_key_input(&self) -> bool {
Node_is_processing_unhandled_key_input(self.this)
}
#[inline]
pub unsafe fn set_pause_mode(&mut self, mode: i64) -> () {
Node_set_pause_mode(self.this, mode)
}
#[inline]
pub unsafe fn get_pause_mode(&self) -> NodePauseMode {
Node_get_pause_mode(self.this)
}
#[inline]
pub unsafe fn can_process(&self) -> bool {
Node_can_process(self.this)
}
#[inline]
pub unsafe fn print_stray_nodes(&mut self) -> () {
Node_print_stray_nodes(self.this)
}
#[inline]
pub unsafe fn get_position_in_parent(&self) -> i64 {
Node_get_position_in_parent(self.this)
}
#[inline]
pub unsafe fn set_display_folded(&mut self, fold: bool) -> () {
Node_set_display_folded(self.this, fold)
}
#[inline]
pub unsafe fn is_displayed_folded(&self) -> bool {
Node_is_displayed_folded(self.this)
}
#[inline]
pub unsafe fn set_process_internal(&mut self, enable: bool) -> () {
Node_set_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_internal(&self) -> bool {
Node_is_processing_internal(self.this)
}
#[inline]
pub unsafe fn set_physics_process_internal(&mut self, enable: bool) -> () {
Node_set_physics_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_physics_processing_internal(&self) -> bool {
Node_is_physics_processing_internal(self.this)
}
#[inline]
pub unsafe fn get_tree(&self) -> Option<SceneTree> {
Node_get_tree(self.this)
}
#[inline]
pub unsafe fn duplicate(&self, flags: i64) -> Option<Node> {
Node_duplicate(self.this, flags)
}
#[inline]
pub unsafe fn replace_by(&mut self, node: Option<Object>, keep_data: bool) -> () {
Node_replace_by(self.this, node, keep_data)
}
#[inline]
pub unsafe fn set_scene_instance_load_placeholder(&mut self, load_placeholder: bool) -> () {
Node_set_scene_instance_load_placeholder(self.this, load_placeholder)
}
#[inline]
pub unsafe fn get_scene_instance_load_placeholder(&self) -> bool {
Node_get_scene_instance_load_placeholder(self.this)
}
#[inline]
pub unsafe fn get_viewport(&self) -> Option<Viewport> {
Node_get_viewport(self.this)
}
#[inline]
pub unsafe fn queue_free(&mut self) -> () {
Node_queue_free(self.this)
}
#[inline]
pub unsafe fn request_ready(&mut self) -> () {
Node_request_ready(self.this)
}
#[inline]
pub unsafe fn set_network_master(&mut self, id: i64, recursive: bool) -> () {
Node_set_network_master(self.this, id, recursive)
}
#[inline]
pub unsafe fn get_network_master(&self) -> i64 {
Node_get_network_master(self.this)
}
#[inline]
pub unsafe fn is_network_master(&self) -> bool {
Node_is_network_master(self.this)
}
#[inline]
pub unsafe fn get_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_multiplayer(self.this)
}
#[inline]
pub unsafe fn get_custom_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_custom_multiplayer(self.this)
}
#[inline]
pub unsafe fn set_custom_multiplayer(&mut self, api: Option<MultiplayerAPI>) -> () {
Node_set_custom_multiplayer(self.this, api)
}
#[inline]
pub unsafe fn rpc_config(&mut self, method: GodotString, mode: i64) -> () {
Node_rpc_config(self.this, method, mode)
}
#[inline]
pub unsafe fn rset_config(&mut self, property: GodotString, mode: i64) -> () {
Node_rset_config(self.this, property, mode)
}
#[inline]
pub unsafe fn _set_import_path(&mut self, import_path: NodePath) -> () {
Node__set_import_path(self.this, import_path)
}
#[inline]
pub unsafe fn _get_import_path(&self) -> NodePath {
Node__get_import_path(self.this)
}
#[inline]
pub unsafe fn rpc(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rset(&mut self, property: GodotString, value: Variant) -> () {
Node_rset(self.this, property, value)
}
#[inline]
pub unsafe fn rset_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn rset_unreliable(&mut self, property: GodotString, value: Variant) -> () {
Node_rset_unreliable(self.this, property, value)
}
#[inline]
pub unsafe fn rset_unreliable_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_unreliable_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn _notification(&mut self, what: i64) -> () {
Object__notification(self.this, what)
}
#[inline]
pub unsafe fn _set(&mut self, property: GodotString, value: Variant) -> bool {
Object__set(self.this, property, value)
}
#[inline]
pub unsafe fn _get(&mut self, property: GodotString) -> Variant {
Object__get(self.this, property)
}
#[inline]
pub unsafe fn _get_property_list(&mut self) -> VariantArray {
Object__get_property_list(self.this)
}
#[inline]
pub unsafe fn _init(&mut self) -> () {
Object__init(self.this)
}
#[inline]
pub unsafe fn get_class(&self) -> GodotString {
Object_get_class(self.this)
}
#[inline]
pub unsafe fn is_class(&self, _type: GodotString) -> bool {
Object_is_class(self.this, _type)
}
#[inline]
pub unsafe fn set(&mut self, property: GodotString, value: Variant) -> () {
Object_set(self.this, property, value)
}
#[inline]
pub unsafe fn get(&self, property: GodotString) -> Variant {
Object_get(self.this, property)
}
#[inline]
pub unsafe fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
Object_set_indexed(self.this, property, value)
}
#[inline]
pub unsafe fn get_indexed(&self, property: NodePath) -> Variant {
Object_get_indexed(self.this, property)
}
#[inline]
pub unsafe fn get_property_list(&self) -> VariantArray {
Object_get_property_list(self.this)
}
#[inline]
pub unsafe fn get_method_list(&self) -> VariantArray {
Object_get_method_list(self.this)
}
#[inline]
pub unsafe fn notification(&mut self, what: i64, reversed: bool) -> () {
Object_notification(self.this, what, reversed)
}
#[inline]
pub unsafe fn get_instance_id(&self) -> i64 {
Object_get_instance_id(self.this)
}
#[inline]
pub unsafe fn set_script(&mut self, script: Option<Reference>) -> () {
Object_set_script(self.this, script)
}
#[inline]
pub unsafe fn get_script(&self) -> Option<Reference> {
Object_get_script(self.this)
}
#[inline]
pub unsafe fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
Object_set_meta(self.this, name, value)
}
#[inline]
pub unsafe fn get_meta(&self, name: GodotString) -> Variant {
Object_get_meta(self.this, name)
}
#[inline]
pub unsafe fn has_meta(&self, name: GodotString) -> bool {
Object_has_meta(self.this, name)
}
#[inline]
pub unsafe fn get_meta_list(&self) -> StringArray {
Object_get_meta_list(self.this)
}
#[inline]
pub unsafe fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
Object_add_user_signal(self.this, signal, arguments)
}
#[inline]
pub unsafe fn has_user_signal(&self, signal: GodotString) -> bool {
Object_has_user_signal(self.this, signal)
}
#[inline]
pub unsafe fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
Object_emit_signal(self.this, signal, varargs)
}
#[inline]
pub unsafe fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call(self.this, method, varargs)
}
#[inline]
pub unsafe fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call_deferred(self.this, method, varargs)
}
#[inline]
pub unsafe fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
Object_callv(self.this, method, arg_array)
}
#[inline]
pub unsafe fn has_method(&self, method: GodotString) -> bool {
Object_has_method(self.this, method)
}
#[inline]
pub unsafe fn get_signal_list(&self) -> VariantArray {
Object_get_signal_list(self.this)
}
#[inline]
pub unsafe fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
Object_get_signal_connection_list(self.this, signal)
}
#[inline]
pub unsafe fn get_incoming_connections(&self) -> VariantArray {
Object_get_incoming_connections(self.this)
}
#[inline]
pub unsafe fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
Object_connect(self.this, signal, target, method, binds, flags)
}
#[inline]
pub unsafe fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
Object_disconnect(self.this, signal, target, method)
}
#[inline]
pub unsafe fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
Object_is_connected(self.this, signal, target, method)
}
#[inline]
pub unsafe fn set_block_signals(&mut self, enable: bool) -> () {
Object_set_block_signals(self.this, enable)
}
#[inline]
pub unsafe fn is_blocking_signals(&self) -> bool {
Object_is_blocking_signals(self.this)
}
#[inline]
pub unsafe fn property_list_changed_notify(&mut self) -> () {
Object_property_list_changed_notify(self.this)
}
#[inline]
pub unsafe fn set_message_translation(&mut self, enable: bool) -> () {
Object_set_message_translation(self.this, enable)
}
#[inline]
pub unsafe fn can_translate_messages(&self) -> bool {
Object_can_translate_messages(self.this)
}
#[inline]
pub unsafe fn tr(&self, message: GodotString) -> GodotString {
Object_tr(self.this, message)
}
#[inline]
pub unsafe fn is_queued_for_deletion(&self) -> bool {
Object_is_queued_for_deletion(self.this)
}
#[inline]
pub unsafe fn to_confirmation_dialog(&self) -> ConfirmationDialog {
ConfirmationDialog { this: self.this }
}
#[inline]
pub unsafe fn to_accept_dialog(&self) -> AcceptDialog {
AcceptDialog { this: self.this }
}
#[inline]
pub unsafe fn to_window_dialog(&self) -> WindowDialog {
WindowDialog { this: self.this }
}
#[inline]
pub unsafe fn to_popup(&self) -> Popup {
Popup { this: self.this }
}
#[inline]
pub unsafe fn to_control(&self) -> Control {
Control { this: self.this }
}
#[inline]
pub unsafe fn to_canvas_item(&self) -> CanvasItem {
CanvasItem { this: self.this }
}
#[inline]
pub unsafe fn to_node(&self) -> Node {
Node { this: self.this }
}
#[inline]
pub unsafe fn to_object(&self) -> Object {
Object { this: self.this }
}
pub unsafe fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct EditorScenePostImport {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for EditorScenePostImport {
fn class_name() -> &'static str {
"EditorScenePostImport"
}
unsafe fn from_sys(obj: *mut sys::godot_object) -> Self {
object::add_ref(obj);
Self { this: obj, }
}
unsafe fn to_sys(&self) -> *mut sys::godot_object {
self.this
}
}
impl ToVariant for EditorScenePostImport {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl EditorScenePostImport {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = EditorScenePostImportMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
EditorScenePostImport {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn post_import(&mut self, scene: Option<Object>) -> Option<Object> {
unsafe { EditorScenePostImport_post_import(self.this, scene) }
}
#[inline]
pub fn get_source_folder(&self) -> GodotString {
unsafe { EditorScenePostImport_get_source_folder(self.this) }
}
#[inline]
pub fn get_source_file(&self) -> GodotString {
unsafe { EditorScenePostImport_get_source_file(self.this) }
}
#[inline]
pub fn init_ref(&mut self) -> bool {
unsafe { Reference_init_ref(self.this) }
}
#[inline]
pub fn _notification(&mut self, what: i64) -> () {
unsafe { Object__notification(self.this, what) }
}
#[inline]
pub fn _set(&mut self, property: GodotString, value: Variant) -> bool {
unsafe { Object__set(self.this, property, value) }
}
#[inline]
pub fn _get(&mut self, property: GodotString) -> Variant {
unsafe { Object__get(self.this, property) }
}
#[inline]
pub fn _get_property_list(&mut self) -> VariantArray {
unsafe { Object__get_property_list(self.this) }
}
#[inline]
pub fn _init(&mut self) -> () {
unsafe { Object__init(self.this) }
}
#[inline]
pub fn get_class(&self) -> GodotString {
unsafe { Object_get_class(self.this) }
}
#[inline]
pub fn is_class(&self, _type: GodotString) -> bool {
unsafe { Object_is_class(self.this, _type) }
}
#[inline]
pub fn set(&mut self, property: GodotString, value: Variant) -> () {
unsafe { Object_set(self.this, property, value) }
}
#[inline]
pub fn get(&self, property: GodotString) -> Variant {
unsafe { Object_get(self.this, property) }
}
#[inline]
pub fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
unsafe { Object_set_indexed(self.this, property, value) }
}
#[inline]
pub fn get_indexed(&self, property: NodePath) -> Variant {
unsafe { Object_get_indexed(self.this, property) }
}
#[inline]
pub fn get_property_list(&self) -> VariantArray {
unsafe { Object_get_property_list(self.this) }
}
#[inline]
pub fn get_method_list(&self) -> VariantArray {
unsafe { Object_get_method_list(self.this) }
}
#[inline]
pub fn notification(&mut self, what: i64, reversed: bool) -> () {
unsafe { Object_notification(self.this, what, reversed) }
}
#[inline]
pub fn get_instance_id(&self) -> i64 {
unsafe { Object_get_instance_id(self.this) }
}
#[inline]
pub fn set_script(&mut self, script: Option<Reference>) -> () {
unsafe { Object_set_script(self.this, script) }
}
#[inline]
pub fn get_script(&self) -> Option<Reference> {
unsafe { Object_get_script(self.this) }
}
#[inline]
pub fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
unsafe { Object_set_meta(self.this, name, value) }
}
#[inline]
pub fn get_meta(&self, name: GodotString) -> Variant {
unsafe { Object_get_meta(self.this, name) }
}
#[inline]
pub fn has_meta(&self, name: GodotString) -> bool {
unsafe { Object_has_meta(self.this, name) }
}
#[inline]
pub fn get_meta_list(&self) -> StringArray {
unsafe { Object_get_meta_list(self.this) }
}
#[inline]
pub fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
unsafe { Object_add_user_signal(self.this, signal, arguments) }
}
#[inline]
pub fn has_user_signal(&self, signal: GodotString) -> bool {
unsafe { Object_has_user_signal(self.this, signal) }
}
#[inline]
pub fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_emit_signal(self.this, signal, varargs) }
}
#[inline]
pub fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call(self.this, method, varargs) }
}
#[inline]
pub fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
unsafe { Object_call_deferred(self.this, method, varargs) }
}
#[inline]
pub fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
unsafe { Object_callv(self.this, method, arg_array) }
}
#[inline]
pub fn has_method(&self, method: GodotString) -> bool {
unsafe { Object_has_method(self.this, method) }
}
#[inline]
pub fn get_signal_list(&self) -> VariantArray {
unsafe { Object_get_signal_list(self.this) }
}
#[inline]
pub fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
unsafe { Object_get_signal_connection_list(self.this, signal) }
}
#[inline]
pub fn get_incoming_connections(&self) -> VariantArray {
unsafe { Object_get_incoming_connections(self.this) }
}
#[inline]
pub fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
unsafe { Object_connect(self.this, signal, target, method, binds, flags) }
}
#[inline]
pub fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
unsafe { Object_disconnect(self.this, signal, target, method) }
}
#[inline]
pub fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
unsafe { Object_is_connected(self.this, signal, target, method) }
}
#[inline]
pub fn set_block_signals(&mut self, enable: bool) -> () {
unsafe { Object_set_block_signals(self.this, enable) }
}
#[inline]
pub fn is_blocking_signals(&self) -> bool {
unsafe { Object_is_blocking_signals(self.this) }
}
#[inline]
pub fn property_list_changed_notify(&mut self) -> () {
unsafe { Object_property_list_changed_notify(self.this) }
}
#[inline]
pub fn set_message_translation(&mut self, enable: bool) -> () {
unsafe { Object_set_message_translation(self.this, enable) }
}
#[inline]
pub fn can_translate_messages(&self) -> bool {
unsafe { Object_can_translate_messages(self.this) }
}
#[inline]
pub fn tr(&self, message: GodotString) -> GodotString {
unsafe { Object_tr(self.this, message) }
}
#[inline]
pub fn is_queued_for_deletion(&self) -> bool {
unsafe { Object_is_queued_for_deletion(self.this) }
}
#[inline]
pub fn to_reference(&self) -> Reference {
unsafe {{ object::add_ref(self.this); }}
Reference { this: self.this }
}
#[inline]
pub fn to_object(&self) -> Object {
Object { this: self.this }
}
pub fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
impl Drop for EditorScenePostImport {
fn drop(&mut self) {
unsafe {
if object::unref(self.this) {
(get_api().godot_object_destroy)(self.this);
}
}
}
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct UndoRedoMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub create_action: *mut sys::godot_method_bind,
pub commit_action: *mut sys::godot_method_bind,
pub add_do_method: *mut sys::godot_method_bind,
pub add_undo_method: *mut sys::godot_method_bind,
pub add_do_property: *mut sys::godot_method_bind,
pub add_undo_property: *mut sys::godot_method_bind,
pub add_do_reference: *mut sys::godot_method_bind,
pub add_undo_reference: *mut sys::godot_method_bind,
pub clear_history: *mut sys::godot_method_bind,
pub get_current_action_name: *mut sys::godot_method_bind,
pub get_version: *mut sys::godot_method_bind,
pub redo: *mut sys::godot_method_bind,
pub undo: *mut sys::godot_method_bind,
}
impl UndoRedoMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: UndoRedoMethodTable = UndoRedoMethodTable {
class_constructor: None,
create_action: 0 as *mut sys::godot_method_bind,
commit_action: 0 as *mut sys::godot_method_bind,
add_do_method: 0 as *mut sys::godot_method_bind,
add_undo_method: 0 as *mut sys::godot_method_bind,
add_do_property: 0 as *mut sys::godot_method_bind,
add_undo_property: 0 as *mut sys::godot_method_bind,
add_do_reference: 0 as *mut sys::godot_method_bind,
add_undo_reference: 0 as *mut sys::godot_method_bind,
clear_history: 0 as *mut sys::godot_method_bind,
get_current_action_name: 0 as *mut sys::godot_method_bind,
get_version: 0 as *mut sys::godot_method_bind,
redo: 0 as *mut sys::godot_method_bind,
undo: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
UndoRedoMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"UndoRedo\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.create_action = (gd_api.godot_method_bind_get_method)(class_name, "create_action\0".as_ptr() as *const c_char );
table.commit_action = (gd_api.godot_method_bind_get_method)(class_name, "commit_action\0".as_ptr() as *const c_char );
table.add_do_method = (gd_api.godot_method_bind_get_method)(class_name, "add_do_method\0".as_ptr() as *const c_char );
table.add_undo_method = (gd_api.godot_method_bind_get_method)(class_name, "add_undo_method\0".as_ptr() as *const c_char );
table.add_do_property = (gd_api.godot_method_bind_get_method)(class_name, "add_do_property\0".as_ptr() as *const c_char );
table.add_undo_property = (gd_api.godot_method_bind_get_method)(class_name, "add_undo_property\0".as_ptr() as *const c_char );
table.add_do_reference = (gd_api.godot_method_bind_get_method)(class_name, "add_do_reference\0".as_ptr() as *const c_char );
table.add_undo_reference = (gd_api.godot_method_bind_get_method)(class_name, "add_undo_reference\0".as_ptr() as *const c_char );
table.clear_history = (gd_api.godot_method_bind_get_method)(class_name, "clear_history\0".as_ptr() as *const c_char );
table.get_current_action_name = (gd_api.godot_method_bind_get_method)(class_name, "get_current_action_name\0".as_ptr() as *const c_char );
table.get_version = (gd_api.godot_method_bind_get_method)(class_name, "get_version\0".as_ptr() as *const c_char );
table.redo = (gd_api.godot_method_bind_get_method)(class_name, "redo\0".as_ptr() as *const c_char );
table.undo = (gd_api.godot_method_bind_get_method)(class_name, "undo\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn UndoRedo_create_action(obj_ptr: *mut sys::godot_object, name: GodotString, merge_mode: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = UndoRedoMethodTable::get(gd_api).create_action;
let mut argument_buffer : [*const libc::c_void; 2] = [
name.sys() as *const _ as *const _,
(&merge_mode) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn UndoRedo_commit_action(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = UndoRedoMethodTable::get(gd_api).commit_action;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn UndoRedo_add_do_method(obj_ptr: *mut sys::godot_object, object: Option<Object>, method: GodotString, varargs: &[Variant]) -> Variant {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = UndoRedoMethodTable::get(gd_api).add_do_method;
let mut argument_buffer: Vec<*const sys::godot_variant> = Vec::with_capacity(2 + varargs.len());
let object: Variant = if let Some(o) = object {
o.into()
} else { Variant::new() };
argument_buffer.push(object.sys());
let method: Variant = Variant::from_godot_string(&method);
argument_buffer.push(method.sys());
for arg in varargs {
argument_buffer.push(arg.sys() as *const _);
}
let ret = Variant::from_sys((gd_api.godot_method_bind_call)(method_bind, obj_ptr, argument_buffer.as_mut_ptr(), argument_buffer.len() as _, ptr::null_mut()));
ret.into()
}
#[doc(hidden)]
pub unsafe fn UndoRedo_add_undo_method(obj_ptr: *mut sys::godot_object, object: Option<Object>, method: GodotString, varargs: &[Variant]) -> Variant {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = UndoRedoMethodTable::get(gd_api).add_undo_method;
let mut argument_buffer: Vec<*const sys::godot_variant> = Vec::with_capacity(2 + varargs.len());
let object: Variant = if let Some(o) = object {
o.into()
} else { Variant::new() };
argument_buffer.push(object.sys());
let method: Variant = Variant::from_godot_string(&method);
argument_buffer.push(method.sys());
for arg in varargs {
argument_buffer.push(arg.sys() as *const _);
}
let ret = Variant::from_sys((gd_api.godot_method_bind_call)(method_bind, obj_ptr, argument_buffer.as_mut_ptr(), argument_buffer.len() as _, ptr::null_mut()));
ret.into()
}
#[doc(hidden)]
pub unsafe fn UndoRedo_add_do_property(obj_ptr: *mut sys::godot_object, object: Option<Object>, property: GodotString, value: Variant) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = UndoRedoMethodTable::get(gd_api).add_do_property;
let mut argument_buffer : [*const libc::c_void; 3] = [
if let Some(arg) = object { arg.this as *const _ as *const _ } else { ptr::null() },
property.sys() as *const _ as *const _,
value.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn UndoRedo_add_undo_property(obj_ptr: *mut sys::godot_object, object: Option<Object>, property: GodotString, value: Variant) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = UndoRedoMethodTable::get(gd_api).add_undo_property;
let mut argument_buffer : [*const libc::c_void; 3] = [
if let Some(arg) = object { arg.this as *const _ as *const _ } else { ptr::null() },
property.sys() as *const _ as *const _,
value.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn UndoRedo_add_do_reference(obj_ptr: *mut sys::godot_object, object: Option<Object>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = UndoRedoMethodTable::get(gd_api).add_do_reference;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = object { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn UndoRedo_add_undo_reference(obj_ptr: *mut sys::godot_object, object: Option<Object>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = UndoRedoMethodTable::get(gd_api).add_undo_reference;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = object { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn UndoRedo_clear_history(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = UndoRedoMethodTable::get(gd_api).clear_history;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn UndoRedo_get_current_action_name(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = UndoRedoMethodTable::get(gd_api).get_current_action_name;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn UndoRedo_get_version(obj_ptr: *mut sys::godot_object) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = UndoRedoMethodTable::get(gd_api).get_version;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0i64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn UndoRedo_redo(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = UndoRedoMethodTable::get(gd_api).redo;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn UndoRedo_undo(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = UndoRedoMethodTable::get(gd_api).undo;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct EditorPluginMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub forward_canvas_gui_input: *mut sys::godot_method_bind,
pub forward_draw_over_viewport: *mut sys::godot_method_bind,
pub forward_force_draw_over_viewport: *mut sys::godot_method_bind,
pub forward_spatial_gui_input: *mut sys::godot_method_bind,
pub create_spatial_gizmo: *mut sys::godot_method_bind,
pub get_plugin_name: *mut sys::godot_method_bind,
pub get_plugin_icon: *mut sys::godot_method_bind,
pub has_main_screen: *mut sys::godot_method_bind,
pub make_visible: *mut sys::godot_method_bind,
pub edit: *mut sys::godot_method_bind,
pub handles: *mut sys::godot_method_bind,
pub get_state: *mut sys::godot_method_bind,
pub set_state: *mut sys::godot_method_bind,
pub clear: *mut sys::godot_method_bind,
pub save_external_data: *mut sys::godot_method_bind,
pub apply_changes: *mut sys::godot_method_bind,
pub get_breakpoints: *mut sys::godot_method_bind,
pub set_window_layout: *mut sys::godot_method_bind,
pub get_window_layout: *mut sys::godot_method_bind,
pub build: *mut sys::godot_method_bind,
pub add_control_to_container: *mut sys::godot_method_bind,
pub add_control_to_bottom_panel: *mut sys::godot_method_bind,
pub add_control_to_dock: *mut sys::godot_method_bind,
pub remove_control_from_docks: *mut sys::godot_method_bind,
pub remove_control_from_bottom_panel: *mut sys::godot_method_bind,
pub remove_control_from_container: *mut sys::godot_method_bind,
pub add_tool_menu_item: *mut sys::godot_method_bind,
pub add_tool_submenu_item: *mut sys::godot_method_bind,
pub remove_tool_menu_item: *mut sys::godot_method_bind,
pub add_custom_type: *mut sys::godot_method_bind,
pub remove_custom_type: *mut sys::godot_method_bind,
pub add_autoload_singleton: *mut sys::godot_method_bind,
pub remove_autoload_singleton: *mut sys::godot_method_bind,
pub update_overlays: *mut sys::godot_method_bind,
pub make_bottom_panel_item_visible: *mut sys::godot_method_bind,
pub hide_bottom_panel: *mut sys::godot_method_bind,
pub get_undo_redo: *mut sys::godot_method_bind,
pub queue_save_layout: *mut sys::godot_method_bind,
pub add_import_plugin: *mut sys::godot_method_bind,
pub remove_import_plugin: *mut sys::godot_method_bind,
pub add_scene_import_plugin: *mut sys::godot_method_bind,
pub remove_scene_import_plugin: *mut sys::godot_method_bind,
pub add_export_plugin: *mut sys::godot_method_bind,
pub remove_export_plugin: *mut sys::godot_method_bind,
pub add_inspector_plugin: *mut sys::godot_method_bind,
pub remove_inspector_plugin: *mut sys::godot_method_bind,
pub set_input_event_forwarding_always_enabled: *mut sys::godot_method_bind,
pub set_force_draw_over_forwarding_enabled: *mut sys::godot_method_bind,
pub get_editor_interface: *mut sys::godot_method_bind,
pub get_script_create_dialog: *mut sys::godot_method_bind,
}
impl EditorPluginMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: EditorPluginMethodTable = EditorPluginMethodTable {
class_constructor: None,
forward_canvas_gui_input: 0 as *mut sys::godot_method_bind,
forward_draw_over_viewport: 0 as *mut sys::godot_method_bind,
forward_force_draw_over_viewport: 0 as *mut sys::godot_method_bind,
forward_spatial_gui_input: 0 as *mut sys::godot_method_bind,
create_spatial_gizmo: 0 as *mut sys::godot_method_bind,
get_plugin_name: 0 as *mut sys::godot_method_bind,
get_plugin_icon: 0 as *mut sys::godot_method_bind,
has_main_screen: 0 as *mut sys::godot_method_bind,
make_visible: 0 as *mut sys::godot_method_bind,
edit: 0 as *mut sys::godot_method_bind,
handles: 0 as *mut sys::godot_method_bind,
get_state: 0 as *mut sys::godot_method_bind,
set_state: 0 as *mut sys::godot_method_bind,
clear: 0 as *mut sys::godot_method_bind,
save_external_data: 0 as *mut sys::godot_method_bind,
apply_changes: 0 as *mut sys::godot_method_bind,
get_breakpoints: 0 as *mut sys::godot_method_bind,
set_window_layout: 0 as *mut sys::godot_method_bind,
get_window_layout: 0 as *mut sys::godot_method_bind,
build: 0 as *mut sys::godot_method_bind,
add_control_to_container: 0 as *mut sys::godot_method_bind,
add_control_to_bottom_panel: 0 as *mut sys::godot_method_bind,
add_control_to_dock: 0 as *mut sys::godot_method_bind,
remove_control_from_docks: 0 as *mut sys::godot_method_bind,
remove_control_from_bottom_panel: 0 as *mut sys::godot_method_bind,
remove_control_from_container: 0 as *mut sys::godot_method_bind,
add_tool_menu_item: 0 as *mut sys::godot_method_bind,
add_tool_submenu_item: 0 as *mut sys::godot_method_bind,
remove_tool_menu_item: 0 as *mut sys::godot_method_bind,
add_custom_type: 0 as *mut sys::godot_method_bind,
remove_custom_type: 0 as *mut sys::godot_method_bind,
add_autoload_singleton: 0 as *mut sys::godot_method_bind,
remove_autoload_singleton: 0 as *mut sys::godot_method_bind,
update_overlays: 0 as *mut sys::godot_method_bind,
make_bottom_panel_item_visible: 0 as *mut sys::godot_method_bind,
hide_bottom_panel: 0 as *mut sys::godot_method_bind,
get_undo_redo: 0 as *mut sys::godot_method_bind,
queue_save_layout: 0 as *mut sys::godot_method_bind,
add_import_plugin: 0 as *mut sys::godot_method_bind,
remove_import_plugin: 0 as *mut sys::godot_method_bind,
add_scene_import_plugin: 0 as *mut sys::godot_method_bind,
remove_scene_import_plugin: 0 as *mut sys::godot_method_bind,
add_export_plugin: 0 as *mut sys::godot_method_bind,
remove_export_plugin: 0 as *mut sys::godot_method_bind,
add_inspector_plugin: 0 as *mut sys::godot_method_bind,
remove_inspector_plugin: 0 as *mut sys::godot_method_bind,
set_input_event_forwarding_always_enabled: 0 as *mut sys::godot_method_bind,
set_force_draw_over_forwarding_enabled: 0 as *mut sys::godot_method_bind,
get_editor_interface: 0 as *mut sys::godot_method_bind,
get_script_create_dialog: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
EditorPluginMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"EditorPlugin\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.forward_canvas_gui_input = (gd_api.godot_method_bind_get_method)(class_name, "forward_canvas_gui_input\0".as_ptr() as *const c_char );
table.forward_draw_over_viewport = (gd_api.godot_method_bind_get_method)(class_name, "forward_draw_over_viewport\0".as_ptr() as *const c_char );
table.forward_force_draw_over_viewport = (gd_api.godot_method_bind_get_method)(class_name, "forward_force_draw_over_viewport\0".as_ptr() as *const c_char );
table.forward_spatial_gui_input = (gd_api.godot_method_bind_get_method)(class_name, "forward_spatial_gui_input\0".as_ptr() as *const c_char );
table.create_spatial_gizmo = (gd_api.godot_method_bind_get_method)(class_name, "create_spatial_gizmo\0".as_ptr() as *const c_char );
table.get_plugin_name = (gd_api.godot_method_bind_get_method)(class_name, "get_plugin_name\0".as_ptr() as *const c_char );
table.get_plugin_icon = (gd_api.godot_method_bind_get_method)(class_name, "get_plugin_icon\0".as_ptr() as *const c_char );
table.has_main_screen = (gd_api.godot_method_bind_get_method)(class_name, "has_main_screen\0".as_ptr() as *const c_char );
table.make_visible = (gd_api.godot_method_bind_get_method)(class_name, "make_visible\0".as_ptr() as *const c_char );
table.edit = (gd_api.godot_method_bind_get_method)(class_name, "edit\0".as_ptr() as *const c_char );
table.handles = (gd_api.godot_method_bind_get_method)(class_name, "handles\0".as_ptr() as *const c_char );
table.get_state = (gd_api.godot_method_bind_get_method)(class_name, "get_state\0".as_ptr() as *const c_char );
table.set_state = (gd_api.godot_method_bind_get_method)(class_name, "set_state\0".as_ptr() as *const c_char );
table.clear = (gd_api.godot_method_bind_get_method)(class_name, "clear\0".as_ptr() as *const c_char );
table.save_external_data = (gd_api.godot_method_bind_get_method)(class_name, "save_external_data\0".as_ptr() as *const c_char );
table.apply_changes = (gd_api.godot_method_bind_get_method)(class_name, "apply_changes\0".as_ptr() as *const c_char );
table.get_breakpoints = (gd_api.godot_method_bind_get_method)(class_name, "get_breakpoints\0".as_ptr() as *const c_char );
table.set_window_layout = (gd_api.godot_method_bind_get_method)(class_name, "set_window_layout\0".as_ptr() as *const c_char );
table.get_window_layout = (gd_api.godot_method_bind_get_method)(class_name, "get_window_layout\0".as_ptr() as *const c_char );
table.build = (gd_api.godot_method_bind_get_method)(class_name, "build\0".as_ptr() as *const c_char );
table.add_control_to_container = (gd_api.godot_method_bind_get_method)(class_name, "add_control_to_container\0".as_ptr() as *const c_char );
table.add_control_to_bottom_panel = (gd_api.godot_method_bind_get_method)(class_name, "add_control_to_bottom_panel\0".as_ptr() as *const c_char );
table.add_control_to_dock = (gd_api.godot_method_bind_get_method)(class_name, "add_control_to_dock\0".as_ptr() as *const c_char );
table.remove_control_from_docks = (gd_api.godot_method_bind_get_method)(class_name, "remove_control_from_docks\0".as_ptr() as *const c_char );
table.remove_control_from_bottom_panel = (gd_api.godot_method_bind_get_method)(class_name, "remove_control_from_bottom_panel\0".as_ptr() as *const c_char );
table.remove_control_from_container = (gd_api.godot_method_bind_get_method)(class_name, "remove_control_from_container\0".as_ptr() as *const c_char );
table.add_tool_menu_item = (gd_api.godot_method_bind_get_method)(class_name, "add_tool_menu_item\0".as_ptr() as *const c_char );
table.add_tool_submenu_item = (gd_api.godot_method_bind_get_method)(class_name, "add_tool_submenu_item\0".as_ptr() as *const c_char );
table.remove_tool_menu_item = (gd_api.godot_method_bind_get_method)(class_name, "remove_tool_menu_item\0".as_ptr() as *const c_char );
table.add_custom_type = (gd_api.godot_method_bind_get_method)(class_name, "add_custom_type\0".as_ptr() as *const c_char );
table.remove_custom_type = (gd_api.godot_method_bind_get_method)(class_name, "remove_custom_type\0".as_ptr() as *const c_char );
table.add_autoload_singleton = (gd_api.godot_method_bind_get_method)(class_name, "add_autoload_singleton\0".as_ptr() as *const c_char );
table.remove_autoload_singleton = (gd_api.godot_method_bind_get_method)(class_name, "remove_autoload_singleton\0".as_ptr() as *const c_char );
table.update_overlays = (gd_api.godot_method_bind_get_method)(class_name, "update_overlays\0".as_ptr() as *const c_char );
table.make_bottom_panel_item_visible = (gd_api.godot_method_bind_get_method)(class_name, "make_bottom_panel_item_visible\0".as_ptr() as *const c_char );
table.hide_bottom_panel = (gd_api.godot_method_bind_get_method)(class_name, "hide_bottom_panel\0".as_ptr() as *const c_char );
table.get_undo_redo = (gd_api.godot_method_bind_get_method)(class_name, "get_undo_redo\0".as_ptr() as *const c_char );
table.queue_save_layout = (gd_api.godot_method_bind_get_method)(class_name, "queue_save_layout\0".as_ptr() as *const c_char );
table.add_import_plugin = (gd_api.godot_method_bind_get_method)(class_name, "add_import_plugin\0".as_ptr() as *const c_char );
table.remove_import_plugin = (gd_api.godot_method_bind_get_method)(class_name, "remove_import_plugin\0".as_ptr() as *const c_char );
table.add_scene_import_plugin = (gd_api.godot_method_bind_get_method)(class_name, "add_scene_import_plugin\0".as_ptr() as *const c_char );
table.remove_scene_import_plugin = (gd_api.godot_method_bind_get_method)(class_name, "remove_scene_import_plugin\0".as_ptr() as *const c_char );
table.add_export_plugin = (gd_api.godot_method_bind_get_method)(class_name, "add_export_plugin\0".as_ptr() as *const c_char );
table.remove_export_plugin = (gd_api.godot_method_bind_get_method)(class_name, "remove_export_plugin\0".as_ptr() as *const c_char );
table.add_inspector_plugin = (gd_api.godot_method_bind_get_method)(class_name, "add_inspector_plugin\0".as_ptr() as *const c_char );
table.remove_inspector_plugin = (gd_api.godot_method_bind_get_method)(class_name, "remove_inspector_plugin\0".as_ptr() as *const c_char );
table.set_input_event_forwarding_always_enabled = (gd_api.godot_method_bind_get_method)(class_name, "set_input_event_forwarding_always_enabled\0".as_ptr() as *const c_char );
table.set_force_draw_over_forwarding_enabled = (gd_api.godot_method_bind_get_method)(class_name, "set_force_draw_over_forwarding_enabled\0".as_ptr() as *const c_char );
table.get_editor_interface = (gd_api.godot_method_bind_get_method)(class_name, "get_editor_interface\0".as_ptr() as *const c_char );
table.get_script_create_dialog = (gd_api.godot_method_bind_get_method)(class_name, "get_script_create_dialog\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_forward_canvas_gui_input(obj_ptr: *mut sys::godot_object, event: Option<InputEvent>) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).forward_canvas_gui_input;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = event { arg.this as *const _ as *const _ } else { ptr::null() },
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_forward_draw_over_viewport(obj_ptr: *mut sys::godot_object, overlay: Option<Control>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).forward_draw_over_viewport;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = overlay { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_forward_force_draw_over_viewport(obj_ptr: *mut sys::godot_object, overlay: Option<Control>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).forward_force_draw_over_viewport;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = overlay { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_forward_spatial_gui_input(obj_ptr: *mut sys::godot_object, camera: Option<Camera>, event: Option<InputEvent>) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).forward_spatial_gui_input;
let mut argument_buffer : [*const libc::c_void; 2] = [
if let Some(arg) = camera { arg.this as *const _ as *const _ } else { ptr::null() },
if let Some(arg) = event { arg.this as *const _ as *const _ } else { ptr::null() },
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_create_spatial_gizmo(obj_ptr: *mut sys::godot_object, for_spatial: Option<Spatial>) -> Option<EditorSpatialGizmo> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).create_spatial_gizmo;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = for_spatial { arg.this as *const _ as *const _ } else { ptr::null() },
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(EditorSpatialGizmo::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_get_plugin_name(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).get_plugin_name;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_get_plugin_icon(obj_ptr: *mut sys::godot_object) -> Option<Object> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).get_plugin_icon;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(Object::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_has_main_screen(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).has_main_screen;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_make_visible(obj_ptr: *mut sys::godot_object, visible: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).make_visible;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&visible) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_edit(obj_ptr: *mut sys::godot_object, object: Option<Object>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).edit;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = object { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_handles(obj_ptr: *mut sys::godot_object, object: Option<Object>) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).handles;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = object { arg.this as *const _ as *const _ } else { ptr::null() },
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_get_state(obj_ptr: *mut sys::godot_object) -> Dictionary {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).get_state;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_dictionary::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
Dictionary::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_set_state(obj_ptr: *mut sys::godot_object, state: Dictionary) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).set_state;
let mut argument_buffer : [*const libc::c_void; 1] = [
state.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_clear(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).clear;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_save_external_data(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).save_external_data;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_apply_changes(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).apply_changes;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_get_breakpoints(obj_ptr: *mut sys::godot_object) -> StringArray {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).get_breakpoints;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_pool_string_array::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
StringArray::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_set_window_layout(obj_ptr: *mut sys::godot_object, layout: Option<ConfigFile>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).set_window_layout;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = layout { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_get_window_layout(obj_ptr: *mut sys::godot_object, layout: Option<ConfigFile>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).get_window_layout;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = layout { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_build(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).build;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_add_control_to_container(obj_ptr: *mut sys::godot_object, container: i64, control: Option<Object>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).add_control_to_container;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&container) as *const _ as *const _,
if let Some(arg) = control { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_add_control_to_bottom_panel(obj_ptr: *mut sys::godot_object, control: Option<Object>, title: GodotString) -> Option<ToolButton> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).add_control_to_bottom_panel;
let mut argument_buffer : [*const libc::c_void; 2] = [
if let Some(arg) = control { arg.this as *const _ as *const _ } else { ptr::null() },
title.sys() as *const _ as *const _,
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(ToolButton::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_add_control_to_dock(obj_ptr: *mut sys::godot_object, slot: i64, control: Option<Object>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).add_control_to_dock;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&slot) as *const _ as *const _,
if let Some(arg) = control { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_remove_control_from_docks(obj_ptr: *mut sys::godot_object, control: Option<Object>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).remove_control_from_docks;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = control { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_remove_control_from_bottom_panel(obj_ptr: *mut sys::godot_object, control: Option<Object>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).remove_control_from_bottom_panel;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = control { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_remove_control_from_container(obj_ptr: *mut sys::godot_object, container: i64, control: Option<Object>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).remove_control_from_container;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&container) as *const _ as *const _,
if let Some(arg) = control { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_add_tool_menu_item(obj_ptr: *mut sys::godot_object, name: GodotString, handler: Option<Object>, callback: GodotString, ud: Variant) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).add_tool_menu_item;
let mut argument_buffer : [*const libc::c_void; 4] = [
name.sys() as *const _ as *const _,
if let Some(arg) = handler { arg.this as *const _ as *const _ } else { ptr::null() },
callback.sys() as *const _ as *const _,
ud.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_add_tool_submenu_item(obj_ptr: *mut sys::godot_object, name: GodotString, submenu: Option<Object>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).add_tool_submenu_item;
let mut argument_buffer : [*const libc::c_void; 2] = [
name.sys() as *const _ as *const _,
if let Some(arg) = submenu { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_remove_tool_menu_item(obj_ptr: *mut sys::godot_object, name: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).remove_tool_menu_item;
let mut argument_buffer : [*const libc::c_void; 1] = [
name.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_add_custom_type(obj_ptr: *mut sys::godot_object, _type: GodotString, base: GodotString, script: Option<Script>, icon: Option<Texture>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).add_custom_type;
let mut argument_buffer : [*const libc::c_void; 4] = [
_type.sys() as *const _ as *const _,
base.sys() as *const _ as *const _,
if let Some(arg) = script { arg.this as *const _ as *const _ } else { ptr::null() },
if let Some(arg) = icon { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_remove_custom_type(obj_ptr: *mut sys::godot_object, _type: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).remove_custom_type;
let mut argument_buffer : [*const libc::c_void; 1] = [
_type.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_add_autoload_singleton(obj_ptr: *mut sys::godot_object, name: GodotString, path: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).add_autoload_singleton;
let mut argument_buffer : [*const libc::c_void; 2] = [
name.sys() as *const _ as *const _,
path.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_remove_autoload_singleton(obj_ptr: *mut sys::godot_object, name: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).remove_autoload_singleton;
let mut argument_buffer : [*const libc::c_void; 1] = [
name.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_update_overlays(obj_ptr: *mut sys::godot_object) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).update_overlays;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0i64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_make_bottom_panel_item_visible(obj_ptr: *mut sys::godot_object, item: Option<Object>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).make_bottom_panel_item_visible;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = item { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_hide_bottom_panel(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).hide_bottom_panel;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_get_undo_redo(obj_ptr: *mut sys::godot_object) -> Option<UndoRedo> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).get_undo_redo;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(UndoRedo::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_queue_save_layout(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).queue_save_layout;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_add_import_plugin(obj_ptr: *mut sys::godot_object, importer: Option<EditorImportPlugin>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).add_import_plugin;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = importer { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_remove_import_plugin(obj_ptr: *mut sys::godot_object, importer: Option<EditorImportPlugin>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).remove_import_plugin;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = importer { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_add_scene_import_plugin(obj_ptr: *mut sys::godot_object, scene_importer: Option<EditorSceneImporter>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).add_scene_import_plugin;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = scene_importer { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_remove_scene_import_plugin(obj_ptr: *mut sys::godot_object, scene_importer: Option<EditorSceneImporter>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).remove_scene_import_plugin;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = scene_importer { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_add_export_plugin(obj_ptr: *mut sys::godot_object, plugin: Option<EditorExportPlugin>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).add_export_plugin;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = plugin { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_remove_export_plugin(obj_ptr: *mut sys::godot_object, plugin: Option<EditorExportPlugin>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).remove_export_plugin;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = plugin { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_add_inspector_plugin(obj_ptr: *mut sys::godot_object, plugin: Option<EditorInspectorPlugin>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).add_inspector_plugin;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = plugin { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_remove_inspector_plugin(obj_ptr: *mut sys::godot_object, plugin: Option<EditorInspectorPlugin>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).remove_inspector_plugin;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = plugin { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_set_input_event_forwarding_always_enabled(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).set_input_event_forwarding_always_enabled;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_set_force_draw_over_forwarding_enabled(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).set_force_draw_over_forwarding_enabled;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_get_editor_interface(obj_ptr: *mut sys::godot_object) -> Option<EditorInterface> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).get_editor_interface;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(EditorInterface::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn EditorPlugin_get_script_create_dialog(obj_ptr: *mut sys::godot_object) -> Option<ScriptCreateDialog> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPluginMethodTable::get(gd_api).get_script_create_dialog;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(ScriptCreateDialog::from_sys(ret))
}
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct EditorFileDialogMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub _unhandled_input: *mut sys::godot_method_bind,
pub _item_selected: *mut sys::godot_method_bind,
pub _multi_selected: *mut sys::godot_method_bind,
pub _items_clear_selection: *mut sys::godot_method_bind,
pub _item_list_item_rmb_selected: *mut sys::godot_method_bind,
pub _item_list_rmb_clicked: *mut sys::godot_method_bind,
pub _item_menu_id_pressed: *mut sys::godot_method_bind,
pub _item_db_selected: *mut sys::godot_method_bind,
pub _dir_entered: *mut sys::godot_method_bind,
pub _file_entered: *mut sys::godot_method_bind,
pub _action_pressed: *mut sys::godot_method_bind,
pub _cancel_pressed: *mut sys::godot_method_bind,
pub _filter_selected: *mut sys::godot_method_bind,
pub _save_confirm_pressed: *mut sys::godot_method_bind,
pub clear_filters: *mut sys::godot_method_bind,
pub add_filter: *mut sys::godot_method_bind,
pub get_current_dir: *mut sys::godot_method_bind,
pub get_current_file: *mut sys::godot_method_bind,
pub get_current_path: *mut sys::godot_method_bind,
pub set_current_dir: *mut sys::godot_method_bind,
pub set_current_file: *mut sys::godot_method_bind,
pub set_current_path: *mut sys::godot_method_bind,
pub set_mode: *mut sys::godot_method_bind,
pub get_mode: *mut sys::godot_method_bind,
pub get_vbox: *mut sys::godot_method_bind,
pub set_access: *mut sys::godot_method_bind,
pub get_access: *mut sys::godot_method_bind,
pub set_show_hidden_files: *mut sys::godot_method_bind,
pub is_showing_hidden_files: *mut sys::godot_method_bind,
pub _select_drive: *mut sys::godot_method_bind,
pub _make_dir: *mut sys::godot_method_bind,
pub _make_dir_confirm: *mut sys::godot_method_bind,
pub _update_file_list: *mut sys::godot_method_bind,
pub _update_dir: *mut sys::godot_method_bind,
pub _thumbnail_done: *mut sys::godot_method_bind,
pub set_display_mode: *mut sys::godot_method_bind,
pub get_display_mode: *mut sys::godot_method_bind,
pub _thumbnail_result: *mut sys::godot_method_bind,
pub set_disable_overwrite_warning: *mut sys::godot_method_bind,
pub is_overwrite_warning_disabled: *mut sys::godot_method_bind,
pub _recent_selected: *mut sys::godot_method_bind,
pub _go_back: *mut sys::godot_method_bind,
pub _go_forward: *mut sys::godot_method_bind,
pub _go_up: *mut sys::godot_method_bind,
pub _favorite_toggled: *mut sys::godot_method_bind,
pub _favorite_selected: *mut sys::godot_method_bind,
pub _favorite_move_up: *mut sys::godot_method_bind,
pub _favorite_move_down: *mut sys::godot_method_bind,
pub invalidate: *mut sys::godot_method_bind,
}
impl EditorFileDialogMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: EditorFileDialogMethodTable = EditorFileDialogMethodTable {
class_constructor: None,
_unhandled_input: 0 as *mut sys::godot_method_bind,
_item_selected: 0 as *mut sys::godot_method_bind,
_multi_selected: 0 as *mut sys::godot_method_bind,
_items_clear_selection: 0 as *mut sys::godot_method_bind,
_item_list_item_rmb_selected: 0 as *mut sys::godot_method_bind,
_item_list_rmb_clicked: 0 as *mut sys::godot_method_bind,
_item_menu_id_pressed: 0 as *mut sys::godot_method_bind,
_item_db_selected: 0 as *mut sys::godot_method_bind,
_dir_entered: 0 as *mut sys::godot_method_bind,
_file_entered: 0 as *mut sys::godot_method_bind,
_action_pressed: 0 as *mut sys::godot_method_bind,
_cancel_pressed: 0 as *mut sys::godot_method_bind,
_filter_selected: 0 as *mut sys::godot_method_bind,
_save_confirm_pressed: 0 as *mut sys::godot_method_bind,
clear_filters: 0 as *mut sys::godot_method_bind,
add_filter: 0 as *mut sys::godot_method_bind,
get_current_dir: 0 as *mut sys::godot_method_bind,
get_current_file: 0 as *mut sys::godot_method_bind,
get_current_path: 0 as *mut sys::godot_method_bind,
set_current_dir: 0 as *mut sys::godot_method_bind,
set_current_file: 0 as *mut sys::godot_method_bind,
set_current_path: 0 as *mut sys::godot_method_bind,
set_mode: 0 as *mut sys::godot_method_bind,
get_mode: 0 as *mut sys::godot_method_bind,
get_vbox: 0 as *mut sys::godot_method_bind,
set_access: 0 as *mut sys::godot_method_bind,
get_access: 0 as *mut sys::godot_method_bind,
set_show_hidden_files: 0 as *mut sys::godot_method_bind,
is_showing_hidden_files: 0 as *mut sys::godot_method_bind,
_select_drive: 0 as *mut sys::godot_method_bind,
_make_dir: 0 as *mut sys::godot_method_bind,
_make_dir_confirm: 0 as *mut sys::godot_method_bind,
_update_file_list: 0 as *mut sys::godot_method_bind,
_update_dir: 0 as *mut sys::godot_method_bind,
_thumbnail_done: 0 as *mut sys::godot_method_bind,
set_display_mode: 0 as *mut sys::godot_method_bind,
get_display_mode: 0 as *mut sys::godot_method_bind,
_thumbnail_result: 0 as *mut sys::godot_method_bind,
set_disable_overwrite_warning: 0 as *mut sys::godot_method_bind,
is_overwrite_warning_disabled: 0 as *mut sys::godot_method_bind,
_recent_selected: 0 as *mut sys::godot_method_bind,
_go_back: 0 as *mut sys::godot_method_bind,
_go_forward: 0 as *mut sys::godot_method_bind,
_go_up: 0 as *mut sys::godot_method_bind,
_favorite_toggled: 0 as *mut sys::godot_method_bind,
_favorite_selected: 0 as *mut sys::godot_method_bind,
_favorite_move_up: 0 as *mut sys::godot_method_bind,
_favorite_move_down: 0 as *mut sys::godot_method_bind,
invalidate: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
EditorFileDialogMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"EditorFileDialog\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table._unhandled_input = (gd_api.godot_method_bind_get_method)(class_name, "_unhandled_input\0".as_ptr() as *const c_char );
table._item_selected = (gd_api.godot_method_bind_get_method)(class_name, "_item_selected\0".as_ptr() as *const c_char );
table._multi_selected = (gd_api.godot_method_bind_get_method)(class_name, "_multi_selected\0".as_ptr() as *const c_char );
table._items_clear_selection = (gd_api.godot_method_bind_get_method)(class_name, "_items_clear_selection\0".as_ptr() as *const c_char );
table._item_list_item_rmb_selected = (gd_api.godot_method_bind_get_method)(class_name, "_item_list_item_rmb_selected\0".as_ptr() as *const c_char );
table._item_list_rmb_clicked = (gd_api.godot_method_bind_get_method)(class_name, "_item_list_rmb_clicked\0".as_ptr() as *const c_char );
table._item_menu_id_pressed = (gd_api.godot_method_bind_get_method)(class_name, "_item_menu_id_pressed\0".as_ptr() as *const c_char );
table._item_db_selected = (gd_api.godot_method_bind_get_method)(class_name, "_item_db_selected\0".as_ptr() as *const c_char );
table._dir_entered = (gd_api.godot_method_bind_get_method)(class_name, "_dir_entered\0".as_ptr() as *const c_char );
table._file_entered = (gd_api.godot_method_bind_get_method)(class_name, "_file_entered\0".as_ptr() as *const c_char );
table._action_pressed = (gd_api.godot_method_bind_get_method)(class_name, "_action_pressed\0".as_ptr() as *const c_char );
table._cancel_pressed = (gd_api.godot_method_bind_get_method)(class_name, "_cancel_pressed\0".as_ptr() as *const c_char );
table._filter_selected = (gd_api.godot_method_bind_get_method)(class_name, "_filter_selected\0".as_ptr() as *const c_char );
table._save_confirm_pressed = (gd_api.godot_method_bind_get_method)(class_name, "_save_confirm_pressed\0".as_ptr() as *const c_char );
table.clear_filters = (gd_api.godot_method_bind_get_method)(class_name, "clear_filters\0".as_ptr() as *const c_char );
table.add_filter = (gd_api.godot_method_bind_get_method)(class_name, "add_filter\0".as_ptr() as *const c_char );
table.get_current_dir = (gd_api.godot_method_bind_get_method)(class_name, "get_current_dir\0".as_ptr() as *const c_char );
table.get_current_file = (gd_api.godot_method_bind_get_method)(class_name, "get_current_file\0".as_ptr() as *const c_char );
table.get_current_path = (gd_api.godot_method_bind_get_method)(class_name, "get_current_path\0".as_ptr() as *const c_char );
table.set_current_dir = (gd_api.godot_method_bind_get_method)(class_name, "set_current_dir\0".as_ptr() as *const c_char );
table.set_current_file = (gd_api.godot_method_bind_get_method)(class_name, "set_current_file\0".as_ptr() as *const c_char );
table.set_current_path = (gd_api.godot_method_bind_get_method)(class_name, "set_current_path\0".as_ptr() as *const c_char );
table.set_mode = (gd_api.godot_method_bind_get_method)(class_name, "set_mode\0".as_ptr() as *const c_char );
table.get_mode = (gd_api.godot_method_bind_get_method)(class_name, "get_mode\0".as_ptr() as *const c_char );
table.get_vbox = (gd_api.godot_method_bind_get_method)(class_name, "get_vbox\0".as_ptr() as *const c_char );
table.set_access = (gd_api.godot_method_bind_get_method)(class_name, "set_access\0".as_ptr() as *const c_char );
table.get_access = (gd_api.godot_method_bind_get_method)(class_name, "get_access\0".as_ptr() as *const c_char );
table.set_show_hidden_files = (gd_api.godot_method_bind_get_method)(class_name, "set_show_hidden_files\0".as_ptr() as *const c_char );
table.is_showing_hidden_files = (gd_api.godot_method_bind_get_method)(class_name, "is_showing_hidden_files\0".as_ptr() as *const c_char );
table._select_drive = (gd_api.godot_method_bind_get_method)(class_name, "_select_drive\0".as_ptr() as *const c_char );
table._make_dir = (gd_api.godot_method_bind_get_method)(class_name, "_make_dir\0".as_ptr() as *const c_char );
table._make_dir_confirm = (gd_api.godot_method_bind_get_method)(class_name, "_make_dir_confirm\0".as_ptr() as *const c_char );
table._update_file_list = (gd_api.godot_method_bind_get_method)(class_name, "_update_file_list\0".as_ptr() as *const c_char );
table._update_dir = (gd_api.godot_method_bind_get_method)(class_name, "_update_dir\0".as_ptr() as *const c_char );
table._thumbnail_done = (gd_api.godot_method_bind_get_method)(class_name, "_thumbnail_done\0".as_ptr() as *const c_char );
table.set_display_mode = (gd_api.godot_method_bind_get_method)(class_name, "set_display_mode\0".as_ptr() as *const c_char );
table.get_display_mode = (gd_api.godot_method_bind_get_method)(class_name, "get_display_mode\0".as_ptr() as *const c_char );
table._thumbnail_result = (gd_api.godot_method_bind_get_method)(class_name, "_thumbnail_result\0".as_ptr() as *const c_char );
table.set_disable_overwrite_warning = (gd_api.godot_method_bind_get_method)(class_name, "set_disable_overwrite_warning\0".as_ptr() as *const c_char );
table.is_overwrite_warning_disabled = (gd_api.godot_method_bind_get_method)(class_name, "is_overwrite_warning_disabled\0".as_ptr() as *const c_char );
table._recent_selected = (gd_api.godot_method_bind_get_method)(class_name, "_recent_selected\0".as_ptr() as *const c_char );
table._go_back = (gd_api.godot_method_bind_get_method)(class_name, "_go_back\0".as_ptr() as *const c_char );
table._go_forward = (gd_api.godot_method_bind_get_method)(class_name, "_go_forward\0".as_ptr() as *const c_char );
table._go_up = (gd_api.godot_method_bind_get_method)(class_name, "_go_up\0".as_ptr() as *const c_char );
table._favorite_toggled = (gd_api.godot_method_bind_get_method)(class_name, "_favorite_toggled\0".as_ptr() as *const c_char );
table._favorite_selected = (gd_api.godot_method_bind_get_method)(class_name, "_favorite_selected\0".as_ptr() as *const c_char );
table._favorite_move_up = (gd_api.godot_method_bind_get_method)(class_name, "_favorite_move_up\0".as_ptr() as *const c_char );
table._favorite_move_down = (gd_api.godot_method_bind_get_method)(class_name, "_favorite_move_down\0".as_ptr() as *const c_char );
table.invalidate = (gd_api.godot_method_bind_get_method)(class_name, "invalidate\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog__unhandled_input(obj_ptr: *mut sys::godot_object, arg0: Option<InputEvent>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api)._unhandled_input;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = arg0 { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog__item_selected(obj_ptr: *mut sys::godot_object, arg0: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api)._item_selected;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&arg0) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog__multi_selected(obj_ptr: *mut sys::godot_object, arg0: i64, arg1: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api)._multi_selected;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&arg0) as *const _ as *const _,
(&arg1) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog__items_clear_selection(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api)._items_clear_selection;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog__item_list_item_rmb_selected(obj_ptr: *mut sys::godot_object, arg0: i64, arg1: Vector2) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api)._item_list_item_rmb_selected;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&arg0) as *const _ as *const _,
(&arg1) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog__item_list_rmb_clicked(obj_ptr: *mut sys::godot_object, arg0: Vector2) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api)._item_list_rmb_clicked;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&arg0) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog__item_menu_id_pressed(obj_ptr: *mut sys::godot_object, arg0: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api)._item_menu_id_pressed;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&arg0) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog__item_db_selected(obj_ptr: *mut sys::godot_object, arg0: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api)._item_db_selected;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&arg0) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog__dir_entered(obj_ptr: *mut sys::godot_object, arg0: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api)._dir_entered;
let mut argument_buffer : [*const libc::c_void; 1] = [
arg0.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog__file_entered(obj_ptr: *mut sys::godot_object, arg0: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api)._file_entered;
let mut argument_buffer : [*const libc::c_void; 1] = [
arg0.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog__action_pressed(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api)._action_pressed;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog__cancel_pressed(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api)._cancel_pressed;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog__filter_selected(obj_ptr: *mut sys::godot_object, arg0: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api)._filter_selected;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&arg0) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog__save_confirm_pressed(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api)._save_confirm_pressed;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog_clear_filters(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api).clear_filters;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog_add_filter(obj_ptr: *mut sys::godot_object, filter: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api).add_filter;
let mut argument_buffer : [*const libc::c_void; 1] = [
filter.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog_get_current_dir(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api).get_current_dir;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog_get_current_file(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api).get_current_file;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog_get_current_path(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api).get_current_path;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog_set_current_dir(obj_ptr: *mut sys::godot_object, dir: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api).set_current_dir;
let mut argument_buffer : [*const libc::c_void; 1] = [
dir.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog_set_current_file(obj_ptr: *mut sys::godot_object, file: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api).set_current_file;
let mut argument_buffer : [*const libc::c_void; 1] = [
file.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog_set_current_path(obj_ptr: *mut sys::godot_object, path: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api).set_current_path;
let mut argument_buffer : [*const libc::c_void; 1] = [
path.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog_set_mode(obj_ptr: *mut sys::godot_object, mode: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api).set_mode;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&mode) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog_get_mode(obj_ptr: *mut sys::godot_object) -> EditorFileDialogMode {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api).get_mode;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: EditorFileDialogMode = mem::transmute(0);
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog_get_vbox(obj_ptr: *mut sys::godot_object) -> Option<VBoxContainer> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api).get_vbox;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(VBoxContainer::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog_set_access(obj_ptr: *mut sys::godot_object, access: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api).set_access;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&access) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog_get_access(obj_ptr: *mut sys::godot_object) -> EditorFileDialogAccess {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api).get_access;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: EditorFileDialogAccess = mem::transmute(0);
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog_set_show_hidden_files(obj_ptr: *mut sys::godot_object, show: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api).set_show_hidden_files;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&show) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog_is_showing_hidden_files(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api).is_showing_hidden_files;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog__select_drive(obj_ptr: *mut sys::godot_object, arg0: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api)._select_drive;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&arg0) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog__make_dir(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api)._make_dir;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog__make_dir_confirm(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api)._make_dir_confirm;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog__update_file_list(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api)._update_file_list;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog__update_dir(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api)._update_dir;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog__thumbnail_done(obj_ptr: *mut sys::godot_object, arg0: GodotString, arg1: Option<Texture>, arg2: Variant) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api)._thumbnail_done;
let mut argument_buffer : [*const libc::c_void; 3] = [
arg0.sys() as *const _ as *const _,
if let Some(arg) = arg1 { arg.this as *const _ as *const _ } else { ptr::null() },
arg2.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog_set_display_mode(obj_ptr: *mut sys::godot_object, mode: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api).set_display_mode;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&mode) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog_get_display_mode(obj_ptr: *mut sys::godot_object) -> EditorFileDialogDisplayMode {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api).get_display_mode;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: EditorFileDialogDisplayMode = mem::transmute(0);
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog__thumbnail_result(obj_ptr: *mut sys::godot_object, arg0: GodotString, arg1: Option<Texture>, arg2: Variant) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api)._thumbnail_result;
let mut argument_buffer : [*const libc::c_void; 3] = [
arg0.sys() as *const _ as *const _,
if let Some(arg) = arg1 { arg.this as *const _ as *const _ } else { ptr::null() },
arg2.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog_set_disable_overwrite_warning(obj_ptr: *mut sys::godot_object, disable: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api).set_disable_overwrite_warning;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&disable) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog_is_overwrite_warning_disabled(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api).is_overwrite_warning_disabled;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog__recent_selected(obj_ptr: *mut sys::godot_object, arg0: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api)._recent_selected;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&arg0) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog__go_back(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api)._go_back;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog__go_forward(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api)._go_forward;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog__go_up(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api)._go_up;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog__favorite_toggled(obj_ptr: *mut sys::godot_object, arg0: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api)._favorite_toggled;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&arg0) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog__favorite_selected(obj_ptr: *mut sys::godot_object, arg0: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api)._favorite_selected;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&arg0) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog__favorite_move_up(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api)._favorite_move_up;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog__favorite_move_down(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api)._favorite_move_down;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileDialog_invalidate(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileDialogMethodTable::get(gd_api).invalidate;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct EditorScriptMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub _run: *mut sys::godot_method_bind,
pub add_root_node: *mut sys::godot_method_bind,
pub get_scene: *mut sys::godot_method_bind,
pub get_editor_interface: *mut sys::godot_method_bind,
}
impl EditorScriptMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: EditorScriptMethodTable = EditorScriptMethodTable {
class_constructor: None,
_run: 0 as *mut sys::godot_method_bind,
add_root_node: 0 as *mut sys::godot_method_bind,
get_scene: 0 as *mut sys::godot_method_bind,
get_editor_interface: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
EditorScriptMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"EditorScript\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table._run = (gd_api.godot_method_bind_get_method)(class_name, "_run\0".as_ptr() as *const c_char );
table.add_root_node = (gd_api.godot_method_bind_get_method)(class_name, "add_root_node\0".as_ptr() as *const c_char );
table.get_scene = (gd_api.godot_method_bind_get_method)(class_name, "get_scene\0".as_ptr() as *const c_char );
table.get_editor_interface = (gd_api.godot_method_bind_get_method)(class_name, "get_editor_interface\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn EditorScript__run(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorScriptMethodTable::get(gd_api)._run;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorScript_add_root_node(obj_ptr: *mut sys::godot_object, node: Option<Object>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorScriptMethodTable::get(gd_api).add_root_node;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = node { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorScript_get_scene(obj_ptr: *mut sys::godot_object) -> Option<Node> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorScriptMethodTable::get(gd_api).get_scene;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(Node::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn EditorScript_get_editor_interface(obj_ptr: *mut sys::godot_object) -> Option<EditorInterface> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorScriptMethodTable::get(gd_api).get_editor_interface;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(EditorInterface::from_sys(ret))
}
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct EditorSelectionMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub _node_removed: *mut sys::godot_method_bind,
pub clear: *mut sys::godot_method_bind,
pub add_node: *mut sys::godot_method_bind,
pub remove_node: *mut sys::godot_method_bind,
pub get_selected_nodes: *mut sys::godot_method_bind,
pub get_transformable_selected_nodes: *mut sys::godot_method_bind,
pub _emit_change: *mut sys::godot_method_bind,
}
impl EditorSelectionMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: EditorSelectionMethodTable = EditorSelectionMethodTable {
class_constructor: None,
_node_removed: 0 as *mut sys::godot_method_bind,
clear: 0 as *mut sys::godot_method_bind,
add_node: 0 as *mut sys::godot_method_bind,
remove_node: 0 as *mut sys::godot_method_bind,
get_selected_nodes: 0 as *mut sys::godot_method_bind,
get_transformable_selected_nodes: 0 as *mut sys::godot_method_bind,
_emit_change: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
EditorSelectionMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"EditorSelection\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table._node_removed = (gd_api.godot_method_bind_get_method)(class_name, "_node_removed\0".as_ptr() as *const c_char );
table.clear = (gd_api.godot_method_bind_get_method)(class_name, "clear\0".as_ptr() as *const c_char );
table.add_node = (gd_api.godot_method_bind_get_method)(class_name, "add_node\0".as_ptr() as *const c_char );
table.remove_node = (gd_api.godot_method_bind_get_method)(class_name, "remove_node\0".as_ptr() as *const c_char );
table.get_selected_nodes = (gd_api.godot_method_bind_get_method)(class_name, "get_selected_nodes\0".as_ptr() as *const c_char );
table.get_transformable_selected_nodes = (gd_api.godot_method_bind_get_method)(class_name, "get_transformable_selected_nodes\0".as_ptr() as *const c_char );
table._emit_change = (gd_api.godot_method_bind_get_method)(class_name, "_emit_change\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn EditorSelection__node_removed(obj_ptr: *mut sys::godot_object, arg0: Option<Object>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSelectionMethodTable::get(gd_api)._node_removed;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = arg0 { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorSelection_clear(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSelectionMethodTable::get(gd_api).clear;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorSelection_add_node(obj_ptr: *mut sys::godot_object, node: Option<Object>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSelectionMethodTable::get(gd_api).add_node;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = node { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorSelection_remove_node(obj_ptr: *mut sys::godot_object, node: Option<Object>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSelectionMethodTable::get(gd_api).remove_node;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = node { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorSelection_get_selected_nodes(obj_ptr: *mut sys::godot_object) -> VariantArray {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSelectionMethodTable::get(gd_api).get_selected_nodes;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_array::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
VariantArray::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorSelection_get_transformable_selected_nodes(obj_ptr: *mut sys::godot_object) -> VariantArray {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSelectionMethodTable::get(gd_api).get_transformable_selected_nodes;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_array::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
VariantArray::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorSelection__emit_change(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSelectionMethodTable::get(gd_api)._emit_change;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct EditorImportPluginMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub get_importer_name: *mut sys::godot_method_bind,
pub get_visible_name: *mut sys::godot_method_bind,
pub get_preset_count: *mut sys::godot_method_bind,
pub get_preset_name: *mut sys::godot_method_bind,
pub get_recognized_extensions: *mut sys::godot_method_bind,
pub get_import_options: *mut sys::godot_method_bind,
pub get_save_extension: *mut sys::godot_method_bind,
pub get_resource_type: *mut sys::godot_method_bind,
pub get_priority: *mut sys::godot_method_bind,
pub get_import_order: *mut sys::godot_method_bind,
pub get_option_visibility: *mut sys::godot_method_bind,
pub import: *mut sys::godot_method_bind,
}
impl EditorImportPluginMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: EditorImportPluginMethodTable = EditorImportPluginMethodTable {
class_constructor: None,
get_importer_name: 0 as *mut sys::godot_method_bind,
get_visible_name: 0 as *mut sys::godot_method_bind,
get_preset_count: 0 as *mut sys::godot_method_bind,
get_preset_name: 0 as *mut sys::godot_method_bind,
get_recognized_extensions: 0 as *mut sys::godot_method_bind,
get_import_options: 0 as *mut sys::godot_method_bind,
get_save_extension: 0 as *mut sys::godot_method_bind,
get_resource_type: 0 as *mut sys::godot_method_bind,
get_priority: 0 as *mut sys::godot_method_bind,
get_import_order: 0 as *mut sys::godot_method_bind,
get_option_visibility: 0 as *mut sys::godot_method_bind,
import: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
EditorImportPluginMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"EditorImportPlugin\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.get_importer_name = (gd_api.godot_method_bind_get_method)(class_name, "get_importer_name\0".as_ptr() as *const c_char );
table.get_visible_name = (gd_api.godot_method_bind_get_method)(class_name, "get_visible_name\0".as_ptr() as *const c_char );
table.get_preset_count = (gd_api.godot_method_bind_get_method)(class_name, "get_preset_count\0".as_ptr() as *const c_char );
table.get_preset_name = (gd_api.godot_method_bind_get_method)(class_name, "get_preset_name\0".as_ptr() as *const c_char );
table.get_recognized_extensions = (gd_api.godot_method_bind_get_method)(class_name, "get_recognized_extensions\0".as_ptr() as *const c_char );
table.get_import_options = (gd_api.godot_method_bind_get_method)(class_name, "get_import_options\0".as_ptr() as *const c_char );
table.get_save_extension = (gd_api.godot_method_bind_get_method)(class_name, "get_save_extension\0".as_ptr() as *const c_char );
table.get_resource_type = (gd_api.godot_method_bind_get_method)(class_name, "get_resource_type\0".as_ptr() as *const c_char );
table.get_priority = (gd_api.godot_method_bind_get_method)(class_name, "get_priority\0".as_ptr() as *const c_char );
table.get_import_order = (gd_api.godot_method_bind_get_method)(class_name, "get_import_order\0".as_ptr() as *const c_char );
table.get_option_visibility = (gd_api.godot_method_bind_get_method)(class_name, "get_option_visibility\0".as_ptr() as *const c_char );
table.import = (gd_api.godot_method_bind_get_method)(class_name, "import\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn EditorImportPlugin_get_importer_name(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorImportPluginMethodTable::get(gd_api).get_importer_name;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorImportPlugin_get_visible_name(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorImportPluginMethodTable::get(gd_api).get_visible_name;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorImportPlugin_get_preset_count(obj_ptr: *mut sys::godot_object) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorImportPluginMethodTable::get(gd_api).get_preset_count;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0i64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn EditorImportPlugin_get_preset_name(obj_ptr: *mut sys::godot_object, preset: i64) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorImportPluginMethodTable::get(gd_api).get_preset_name;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&preset) as *const _ as *const _,
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorImportPlugin_get_recognized_extensions(obj_ptr: *mut sys::godot_object) -> VariantArray {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorImportPluginMethodTable::get(gd_api).get_recognized_extensions;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_array::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
VariantArray::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorImportPlugin_get_import_options(obj_ptr: *mut sys::godot_object, preset: i64) -> VariantArray {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorImportPluginMethodTable::get(gd_api).get_import_options;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&preset) as *const _ as *const _,
];
let mut ret = sys::godot_array::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
VariantArray::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorImportPlugin_get_save_extension(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorImportPluginMethodTable::get(gd_api).get_save_extension;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorImportPlugin_get_resource_type(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorImportPluginMethodTable::get(gd_api).get_resource_type;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorImportPlugin_get_priority(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorImportPluginMethodTable::get(gd_api).get_priority;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn EditorImportPlugin_get_import_order(obj_ptr: *mut sys::godot_object) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorImportPluginMethodTable::get(gd_api).get_import_order;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0i64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn EditorImportPlugin_get_option_visibility(obj_ptr: *mut sys::godot_object, option: GodotString, options: Dictionary) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorImportPluginMethodTable::get(gd_api).get_option_visibility;
let mut argument_buffer : [*const libc::c_void; 2] = [
option.sys() as *const _ as *const _,
options.sys() as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn EditorImportPlugin_import(obj_ptr: *mut sys::godot_object, source_file: GodotString, save_path: GodotString, options: Dictionary, r_platform_variants: VariantArray, r_gen_files: VariantArray) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorImportPluginMethodTable::get(gd_api).import;
let mut argument_buffer : [*const libc::c_void; 5] = [
source_file.sys() as *const _ as *const _,
save_path.sys() as *const _ as *const _,
options.sys() as *const _ as *const _,
r_platform_variants.sys() as *const _ as *const _,
r_gen_files.sys() as *const _ as *const _,
];
let mut ret = 0i64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct EditorSpatialGizmoMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub redraw: *mut sys::godot_method_bind,
pub get_handle_name: *mut sys::godot_method_bind,
pub get_handle_value: *mut sys::godot_method_bind,
pub set_handle: *mut sys::godot_method_bind,
pub commit_handle: *mut sys::godot_method_bind,
pub add_lines: *mut sys::godot_method_bind,
pub add_mesh: *mut sys::godot_method_bind,
pub add_collision_segments: *mut sys::godot_method_bind,
pub add_collision_triangles: *mut sys::godot_method_bind,
pub add_unscaled_billboard: *mut sys::godot_method_bind,
pub add_handles: *mut sys::godot_method_bind,
pub set_spatial_node: *mut sys::godot_method_bind,
pub clear: *mut sys::godot_method_bind,
}
impl EditorSpatialGizmoMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: EditorSpatialGizmoMethodTable = EditorSpatialGizmoMethodTable {
class_constructor: None,
redraw: 0 as *mut sys::godot_method_bind,
get_handle_name: 0 as *mut sys::godot_method_bind,
get_handle_value: 0 as *mut sys::godot_method_bind,
set_handle: 0 as *mut sys::godot_method_bind,
commit_handle: 0 as *mut sys::godot_method_bind,
add_lines: 0 as *mut sys::godot_method_bind,
add_mesh: 0 as *mut sys::godot_method_bind,
add_collision_segments: 0 as *mut sys::godot_method_bind,
add_collision_triangles: 0 as *mut sys::godot_method_bind,
add_unscaled_billboard: 0 as *mut sys::godot_method_bind,
add_handles: 0 as *mut sys::godot_method_bind,
set_spatial_node: 0 as *mut sys::godot_method_bind,
clear: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
EditorSpatialGizmoMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"EditorSpatialGizmo\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.redraw = (gd_api.godot_method_bind_get_method)(class_name, "redraw\0".as_ptr() as *const c_char );
table.get_handle_name = (gd_api.godot_method_bind_get_method)(class_name, "get_handle_name\0".as_ptr() as *const c_char );
table.get_handle_value = (gd_api.godot_method_bind_get_method)(class_name, "get_handle_value\0".as_ptr() as *const c_char );
table.set_handle = (gd_api.godot_method_bind_get_method)(class_name, "set_handle\0".as_ptr() as *const c_char );
table.commit_handle = (gd_api.godot_method_bind_get_method)(class_name, "commit_handle\0".as_ptr() as *const c_char );
table.add_lines = (gd_api.godot_method_bind_get_method)(class_name, "add_lines\0".as_ptr() as *const c_char );
table.add_mesh = (gd_api.godot_method_bind_get_method)(class_name, "add_mesh\0".as_ptr() as *const c_char );
table.add_collision_segments = (gd_api.godot_method_bind_get_method)(class_name, "add_collision_segments\0".as_ptr() as *const c_char );
table.add_collision_triangles = (gd_api.godot_method_bind_get_method)(class_name, "add_collision_triangles\0".as_ptr() as *const c_char );
table.add_unscaled_billboard = (gd_api.godot_method_bind_get_method)(class_name, "add_unscaled_billboard\0".as_ptr() as *const c_char );
table.add_handles = (gd_api.godot_method_bind_get_method)(class_name, "add_handles\0".as_ptr() as *const c_char );
table.set_spatial_node = (gd_api.godot_method_bind_get_method)(class_name, "set_spatial_node\0".as_ptr() as *const c_char );
table.clear = (gd_api.godot_method_bind_get_method)(class_name, "clear\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn EditorSpatialGizmo_redraw(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSpatialGizmoMethodTable::get(gd_api).redraw;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorSpatialGizmo_get_handle_name(obj_ptr: *mut sys::godot_object, index: i64) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSpatialGizmoMethodTable::get(gd_api).get_handle_name;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&index) as *const _ as *const _,
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorSpatialGizmo_get_handle_value(obj_ptr: *mut sys::godot_object, index: i64) -> Variant {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSpatialGizmoMethodTable::get(gd_api).get_handle_value;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&index) as *const _ as *const _,
];
let mut ret = sys::godot_variant::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
Variant::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorSpatialGizmo_set_handle(obj_ptr: *mut sys::godot_object, index: i64, camera: Option<Camera>, point: Vector2) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSpatialGizmoMethodTable::get(gd_api).set_handle;
let mut argument_buffer : [*const libc::c_void; 3] = [
(&index) as *const _ as *const _,
if let Some(arg) = camera { arg.this as *const _ as *const _ } else { ptr::null() },
(&point) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorSpatialGizmo_commit_handle(obj_ptr: *mut sys::godot_object, index: i64, restore: Variant, cancel: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSpatialGizmoMethodTable::get(gd_api).commit_handle;
let mut argument_buffer : [*const libc::c_void; 3] = [
(&index) as *const _ as *const _,
restore.sys() as *const _ as *const _,
(&cancel) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorSpatialGizmo_add_lines(obj_ptr: *mut sys::godot_object, lines: Vector3Array, material: Option<Material>, billboard: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSpatialGizmoMethodTable::get(gd_api).add_lines;
let mut argument_buffer : [*const libc::c_void; 3] = [
lines.sys() as *const _ as *const _,
if let Some(arg) = material { arg.this as *const _ as *const _ } else { ptr::null() },
(&billboard) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorSpatialGizmo_add_mesh(obj_ptr: *mut sys::godot_object, mesh: Option<ArrayMesh>, billboard: bool, skeleton: Rid) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSpatialGizmoMethodTable::get(gd_api).add_mesh;
let mut argument_buffer : [*const libc::c_void; 3] = [
if let Some(arg) = mesh { arg.this as *const _ as *const _ } else { ptr::null() },
(&billboard) as *const _ as *const _,
skeleton.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorSpatialGizmo_add_collision_segments(obj_ptr: *mut sys::godot_object, segments: Vector3Array) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSpatialGizmoMethodTable::get(gd_api).add_collision_segments;
let mut argument_buffer : [*const libc::c_void; 1] = [
segments.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorSpatialGizmo_add_collision_triangles(obj_ptr: *mut sys::godot_object, triangles: Option<TriangleMesh>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSpatialGizmoMethodTable::get(gd_api).add_collision_triangles;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = triangles { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorSpatialGizmo_add_unscaled_billboard(obj_ptr: *mut sys::godot_object, material: Option<Material>, default_scale: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSpatialGizmoMethodTable::get(gd_api).add_unscaled_billboard;
let mut argument_buffer : [*const libc::c_void; 2] = [
if let Some(arg) = material { arg.this as *const _ as *const _ } else { ptr::null() },
(&default_scale) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorSpatialGizmo_add_handles(obj_ptr: *mut sys::godot_object, handles: Vector3Array, billboard: bool, secondary: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSpatialGizmoMethodTable::get(gd_api).add_handles;
let mut argument_buffer : [*const libc::c_void; 3] = [
handles.sys() as *const _ as *const _,
(&billboard) as *const _ as *const _,
(&secondary) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorSpatialGizmo_set_spatial_node(obj_ptr: *mut sys::godot_object, node: Option<Object>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSpatialGizmoMethodTable::get(gd_api).set_spatial_node;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = node { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorSpatialGizmo_clear(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSpatialGizmoMethodTable::get(gd_api).clear;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct EditorResourcePreviewGeneratorMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub handles: *mut sys::godot_method_bind,
pub generate: *mut sys::godot_method_bind,
pub generate_from_path: *mut sys::godot_method_bind,
}
impl EditorResourcePreviewGeneratorMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: EditorResourcePreviewGeneratorMethodTable = EditorResourcePreviewGeneratorMethodTable {
class_constructor: None,
handles: 0 as *mut sys::godot_method_bind,
generate: 0 as *mut sys::godot_method_bind,
generate_from_path: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
EditorResourcePreviewGeneratorMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"EditorResourcePreviewGenerator\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.handles = (gd_api.godot_method_bind_get_method)(class_name, "handles\0".as_ptr() as *const c_char );
table.generate = (gd_api.godot_method_bind_get_method)(class_name, "generate\0".as_ptr() as *const c_char );
table.generate_from_path = (gd_api.godot_method_bind_get_method)(class_name, "generate_from_path\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn EditorResourcePreviewGenerator_handles(obj_ptr: *mut sys::godot_object, _type: GodotString) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorResourcePreviewGeneratorMethodTable::get(gd_api).handles;
let mut argument_buffer : [*const libc::c_void; 1] = [
_type.sys() as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn EditorResourcePreviewGenerator_generate(obj_ptr: *mut sys::godot_object, from: Option<Resource>) -> Option<Texture> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorResourcePreviewGeneratorMethodTable::get(gd_api).generate;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = from { arg.this as *const _ as *const _ } else { ptr::null() },
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(Texture::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn EditorResourcePreviewGenerator_generate_from_path(obj_ptr: *mut sys::godot_object, path: GodotString) -> Option<Texture> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorResourcePreviewGeneratorMethodTable::get(gd_api).generate_from_path;
let mut argument_buffer : [*const libc::c_void; 1] = [
path.sys() as *const _ as *const _,
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(Texture::from_sys(ret))
}
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct EditorFileSystemMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub get_filesystem: *mut sys::godot_method_bind,
pub is_scanning: *mut sys::godot_method_bind,
pub get_scanning_progress: *mut sys::godot_method_bind,
pub scan: *mut sys::godot_method_bind,
pub scan_sources: *mut sys::godot_method_bind,
pub update_file: *mut sys::godot_method_bind,
pub get_filesystem_path: *mut sys::godot_method_bind,
pub get_file_type: *mut sys::godot_method_bind,
pub update_script_classes: *mut sys::godot_method_bind,
}
impl EditorFileSystemMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: EditorFileSystemMethodTable = EditorFileSystemMethodTable {
class_constructor: None,
get_filesystem: 0 as *mut sys::godot_method_bind,
is_scanning: 0 as *mut sys::godot_method_bind,
get_scanning_progress: 0 as *mut sys::godot_method_bind,
scan: 0 as *mut sys::godot_method_bind,
scan_sources: 0 as *mut sys::godot_method_bind,
update_file: 0 as *mut sys::godot_method_bind,
get_filesystem_path: 0 as *mut sys::godot_method_bind,
get_file_type: 0 as *mut sys::godot_method_bind,
update_script_classes: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
EditorFileSystemMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"EditorFileSystem\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.get_filesystem = (gd_api.godot_method_bind_get_method)(class_name, "get_filesystem\0".as_ptr() as *const c_char );
table.is_scanning = (gd_api.godot_method_bind_get_method)(class_name, "is_scanning\0".as_ptr() as *const c_char );
table.get_scanning_progress = (gd_api.godot_method_bind_get_method)(class_name, "get_scanning_progress\0".as_ptr() as *const c_char );
table.scan = (gd_api.godot_method_bind_get_method)(class_name, "scan\0".as_ptr() as *const c_char );
table.scan_sources = (gd_api.godot_method_bind_get_method)(class_name, "scan_sources\0".as_ptr() as *const c_char );
table.update_file = (gd_api.godot_method_bind_get_method)(class_name, "update_file\0".as_ptr() as *const c_char );
table.get_filesystem_path = (gd_api.godot_method_bind_get_method)(class_name, "get_filesystem_path\0".as_ptr() as *const c_char );
table.get_file_type = (gd_api.godot_method_bind_get_method)(class_name, "get_file_type\0".as_ptr() as *const c_char );
table.update_script_classes = (gd_api.godot_method_bind_get_method)(class_name, "update_script_classes\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn EditorFileSystem_get_filesystem(obj_ptr: *mut sys::godot_object) -> Option<EditorFileSystemDirectory> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileSystemMethodTable::get(gd_api).get_filesystem;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(EditorFileSystemDirectory::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn EditorFileSystem_is_scanning(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileSystemMethodTable::get(gd_api).is_scanning;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn EditorFileSystem_get_scanning_progress(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileSystemMethodTable::get(gd_api).get_scanning_progress;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn EditorFileSystem_scan(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileSystemMethodTable::get(gd_api).scan;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileSystem_scan_sources(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileSystemMethodTable::get(gd_api).scan_sources;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileSystem_update_file(obj_ptr: *mut sys::godot_object, path: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileSystemMethodTable::get(gd_api).update_file;
let mut argument_buffer : [*const libc::c_void; 1] = [
path.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorFileSystem_get_filesystem_path(obj_ptr: *mut sys::godot_object, path: GodotString) -> Option<EditorFileSystemDirectory> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileSystemMethodTable::get(gd_api).get_filesystem_path;
let mut argument_buffer : [*const libc::c_void; 1] = [
path.sys() as *const _ as *const _,
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(EditorFileSystemDirectory::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn EditorFileSystem_get_file_type(obj_ptr: *mut sys::godot_object, path: GodotString) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileSystemMethodTable::get(gd_api).get_file_type;
let mut argument_buffer : [*const libc::c_void; 1] = [
path.sys() as *const _ as *const _,
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorFileSystem_update_script_classes(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileSystemMethodTable::get(gd_api).update_script_classes;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct EditorSettingsMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub has_setting: *mut sys::godot_method_bind,
pub set_setting: *mut sys::godot_method_bind,
pub get_setting: *mut sys::godot_method_bind,
pub erase: *mut sys::godot_method_bind,
pub set_initial_value: *mut sys::godot_method_bind,
pub property_can_revert: *mut sys::godot_method_bind,
pub property_get_revert: *mut sys::godot_method_bind,
pub add_property_info: *mut sys::godot_method_bind,
pub get_settings_dir: *mut sys::godot_method_bind,
pub get_project_settings_dir: *mut sys::godot_method_bind,
pub set_project_metadata: *mut sys::godot_method_bind,
pub get_project_metadata: *mut sys::godot_method_bind,
pub set_favorite_dirs: *mut sys::godot_method_bind,
pub get_favorite_dirs: *mut sys::godot_method_bind,
pub set_recent_dirs: *mut sys::godot_method_bind,
pub get_recent_dirs: *mut sys::godot_method_bind,
}
impl EditorSettingsMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: EditorSettingsMethodTable = EditorSettingsMethodTable {
class_constructor: None,
has_setting: 0 as *mut sys::godot_method_bind,
set_setting: 0 as *mut sys::godot_method_bind,
get_setting: 0 as *mut sys::godot_method_bind,
erase: 0 as *mut sys::godot_method_bind,
set_initial_value: 0 as *mut sys::godot_method_bind,
property_can_revert: 0 as *mut sys::godot_method_bind,
property_get_revert: 0 as *mut sys::godot_method_bind,
add_property_info: 0 as *mut sys::godot_method_bind,
get_settings_dir: 0 as *mut sys::godot_method_bind,
get_project_settings_dir: 0 as *mut sys::godot_method_bind,
set_project_metadata: 0 as *mut sys::godot_method_bind,
get_project_metadata: 0 as *mut sys::godot_method_bind,
set_favorite_dirs: 0 as *mut sys::godot_method_bind,
get_favorite_dirs: 0 as *mut sys::godot_method_bind,
set_recent_dirs: 0 as *mut sys::godot_method_bind,
get_recent_dirs: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
EditorSettingsMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"EditorSettings\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.has_setting = (gd_api.godot_method_bind_get_method)(class_name, "has_setting\0".as_ptr() as *const c_char );
table.set_setting = (gd_api.godot_method_bind_get_method)(class_name, "set_setting\0".as_ptr() as *const c_char );
table.get_setting = (gd_api.godot_method_bind_get_method)(class_name, "get_setting\0".as_ptr() as *const c_char );
table.erase = (gd_api.godot_method_bind_get_method)(class_name, "erase\0".as_ptr() as *const c_char );
table.set_initial_value = (gd_api.godot_method_bind_get_method)(class_name, "set_initial_value\0".as_ptr() as *const c_char );
table.property_can_revert = (gd_api.godot_method_bind_get_method)(class_name, "property_can_revert\0".as_ptr() as *const c_char );
table.property_get_revert = (gd_api.godot_method_bind_get_method)(class_name, "property_get_revert\0".as_ptr() as *const c_char );
table.add_property_info = (gd_api.godot_method_bind_get_method)(class_name, "add_property_info\0".as_ptr() as *const c_char );
table.get_settings_dir = (gd_api.godot_method_bind_get_method)(class_name, "get_settings_dir\0".as_ptr() as *const c_char );
table.get_project_settings_dir = (gd_api.godot_method_bind_get_method)(class_name, "get_project_settings_dir\0".as_ptr() as *const c_char );
table.set_project_metadata = (gd_api.godot_method_bind_get_method)(class_name, "set_project_metadata\0".as_ptr() as *const c_char );
table.get_project_metadata = (gd_api.godot_method_bind_get_method)(class_name, "get_project_metadata\0".as_ptr() as *const c_char );
table.set_favorite_dirs = (gd_api.godot_method_bind_get_method)(class_name, "set_favorite_dirs\0".as_ptr() as *const c_char );
table.get_favorite_dirs = (gd_api.godot_method_bind_get_method)(class_name, "get_favorite_dirs\0".as_ptr() as *const c_char );
table.set_recent_dirs = (gd_api.godot_method_bind_get_method)(class_name, "set_recent_dirs\0".as_ptr() as *const c_char );
table.get_recent_dirs = (gd_api.godot_method_bind_get_method)(class_name, "get_recent_dirs\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn EditorSettings_has_setting(obj_ptr: *mut sys::godot_object, name: GodotString) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSettingsMethodTable::get(gd_api).has_setting;
let mut argument_buffer : [*const libc::c_void; 1] = [
name.sys() as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn EditorSettings_set_setting(obj_ptr: *mut sys::godot_object, name: GodotString, value: Variant) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSettingsMethodTable::get(gd_api).set_setting;
let mut argument_buffer : [*const libc::c_void; 2] = [
name.sys() as *const _ as *const _,
value.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorSettings_get_setting(obj_ptr: *mut sys::godot_object, name: GodotString) -> Variant {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSettingsMethodTable::get(gd_api).get_setting;
let mut argument_buffer : [*const libc::c_void; 1] = [
name.sys() as *const _ as *const _,
];
let mut ret = sys::godot_variant::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
Variant::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorSettings_erase(obj_ptr: *mut sys::godot_object, property: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSettingsMethodTable::get(gd_api).erase;
let mut argument_buffer : [*const libc::c_void; 1] = [
property.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorSettings_set_initial_value(obj_ptr: *mut sys::godot_object, name: GodotString, value: Variant, update_current: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSettingsMethodTable::get(gd_api).set_initial_value;
let mut argument_buffer : [*const libc::c_void; 3] = [
name.sys() as *const _ as *const _,
value.sys() as *const _ as *const _,
(&update_current) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorSettings_property_can_revert(obj_ptr: *mut sys::godot_object, name: GodotString) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSettingsMethodTable::get(gd_api).property_can_revert;
let mut argument_buffer : [*const libc::c_void; 1] = [
name.sys() as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn EditorSettings_property_get_revert(obj_ptr: *mut sys::godot_object, name: GodotString) -> Variant {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSettingsMethodTable::get(gd_api).property_get_revert;
let mut argument_buffer : [*const libc::c_void; 1] = [
name.sys() as *const _ as *const _,
];
let mut ret = sys::godot_variant::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
Variant::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorSettings_add_property_info(obj_ptr: *mut sys::godot_object, info: Dictionary) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSettingsMethodTable::get(gd_api).add_property_info;
let mut argument_buffer : [*const libc::c_void; 1] = [
info.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorSettings_get_settings_dir(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSettingsMethodTable::get(gd_api).get_settings_dir;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorSettings_get_project_settings_dir(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSettingsMethodTable::get(gd_api).get_project_settings_dir;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorSettings_set_project_metadata(obj_ptr: *mut sys::godot_object, section: GodotString, key: GodotString, data: Variant) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSettingsMethodTable::get(gd_api).set_project_metadata;
let mut argument_buffer : [*const libc::c_void; 3] = [
section.sys() as *const _ as *const _,
key.sys() as *const _ as *const _,
data.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorSettings_get_project_metadata(obj_ptr: *mut sys::godot_object, section: GodotString, key: GodotString, default: Variant) -> Variant {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSettingsMethodTable::get(gd_api).get_project_metadata;
let mut argument_buffer : [*const libc::c_void; 3] = [
section.sys() as *const _ as *const _,
key.sys() as *const _ as *const _,
default.sys() as *const _ as *const _,
];
let mut ret = sys::godot_variant::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
Variant::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorSettings_set_favorite_dirs(obj_ptr: *mut sys::godot_object, dirs: StringArray) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSettingsMethodTable::get(gd_api).set_favorite_dirs;
let mut argument_buffer : [*const libc::c_void; 1] = [
dirs.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorSettings_get_favorite_dirs(obj_ptr: *mut sys::godot_object) -> StringArray {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSettingsMethodTable::get(gd_api).get_favorite_dirs;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_pool_string_array::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
StringArray::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorSettings_set_recent_dirs(obj_ptr: *mut sys::godot_object, dirs: StringArray) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSettingsMethodTable::get(gd_api).set_recent_dirs;
let mut argument_buffer : [*const libc::c_void; 1] = [
dirs.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorSettings_get_recent_dirs(obj_ptr: *mut sys::godot_object) -> StringArray {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSettingsMethodTable::get(gd_api).get_recent_dirs;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_pool_string_array::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
StringArray::from_sys(ret)
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct EditorResourcePreviewMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub _preview_ready: *mut sys::godot_method_bind,
pub queue_resource_preview: *mut sys::godot_method_bind,
pub queue_edited_resource_preview: *mut sys::godot_method_bind,
pub add_preview_generator: *mut sys::godot_method_bind,
pub remove_preview_generator: *mut sys::godot_method_bind,
pub check_for_invalidation: *mut sys::godot_method_bind,
}
impl EditorResourcePreviewMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: EditorResourcePreviewMethodTable = EditorResourcePreviewMethodTable {
class_constructor: None,
_preview_ready: 0 as *mut sys::godot_method_bind,
queue_resource_preview: 0 as *mut sys::godot_method_bind,
queue_edited_resource_preview: 0 as *mut sys::godot_method_bind,
add_preview_generator: 0 as *mut sys::godot_method_bind,
remove_preview_generator: 0 as *mut sys::godot_method_bind,
check_for_invalidation: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
EditorResourcePreviewMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"EditorResourcePreview\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table._preview_ready = (gd_api.godot_method_bind_get_method)(class_name, "_preview_ready\0".as_ptr() as *const c_char );
table.queue_resource_preview = (gd_api.godot_method_bind_get_method)(class_name, "queue_resource_preview\0".as_ptr() as *const c_char );
table.queue_edited_resource_preview = (gd_api.godot_method_bind_get_method)(class_name, "queue_edited_resource_preview\0".as_ptr() as *const c_char );
table.add_preview_generator = (gd_api.godot_method_bind_get_method)(class_name, "add_preview_generator\0".as_ptr() as *const c_char );
table.remove_preview_generator = (gd_api.godot_method_bind_get_method)(class_name, "remove_preview_generator\0".as_ptr() as *const c_char );
table.check_for_invalidation = (gd_api.godot_method_bind_get_method)(class_name, "check_for_invalidation\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn EditorResourcePreview__preview_ready(obj_ptr: *mut sys::godot_object, arg0: GodotString, arg1: Option<Texture>, arg2: i64, arg3: GodotString, arg4: Variant) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorResourcePreviewMethodTable::get(gd_api)._preview_ready;
let mut argument_buffer : [*const libc::c_void; 5] = [
arg0.sys() as *const _ as *const _,
if let Some(arg) = arg1 { arg.this as *const _ as *const _ } else { ptr::null() },
(&arg2) as *const _ as *const _,
arg3.sys() as *const _ as *const _,
arg4.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorResourcePreview_queue_resource_preview(obj_ptr: *mut sys::godot_object, path: GodotString, receiver: Option<Object>, receiver_func: GodotString, userdata: Variant) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorResourcePreviewMethodTable::get(gd_api).queue_resource_preview;
let mut argument_buffer : [*const libc::c_void; 4] = [
path.sys() as *const _ as *const _,
if let Some(arg) = receiver { arg.this as *const _ as *const _ } else { ptr::null() },
receiver_func.sys() as *const _ as *const _,
userdata.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorResourcePreview_queue_edited_resource_preview(obj_ptr: *mut sys::godot_object, resource: Option<Resource>, receiver: Option<Object>, receiver_func: GodotString, userdata: Variant) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorResourcePreviewMethodTable::get(gd_api).queue_edited_resource_preview;
let mut argument_buffer : [*const libc::c_void; 4] = [
if let Some(arg) = resource { arg.this as *const _ as *const _ } else { ptr::null() },
if let Some(arg) = receiver { arg.this as *const _ as *const _ } else { ptr::null() },
receiver_func.sys() as *const _ as *const _,
userdata.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorResourcePreview_add_preview_generator(obj_ptr: *mut sys::godot_object, generator: Option<EditorResourcePreviewGenerator>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorResourcePreviewMethodTable::get(gd_api).add_preview_generator;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = generator { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorResourcePreview_remove_preview_generator(obj_ptr: *mut sys::godot_object, generator: Option<EditorResourcePreviewGenerator>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorResourcePreviewMethodTable::get(gd_api).remove_preview_generator;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = generator { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorResourcePreview_check_for_invalidation(obj_ptr: *mut sys::godot_object, path: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorResourcePreviewMethodTable::get(gd_api).check_for_invalidation;
let mut argument_buffer : [*const libc::c_void; 1] = [
path.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct ScriptEditorMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub _file_dialog_action: *mut sys::godot_method_bind,
pub _tab_changed: *mut sys::godot_method_bind,
pub _menu_option: *mut sys::godot_method_bind,
pub _close_current_tab: *mut sys::godot_method_bind,
pub _close_discard_current_tab: *mut sys::godot_method_bind,
pub _close_docs_tab: *mut sys::godot_method_bind,
pub _close_all_tabs: *mut sys::godot_method_bind,
pub _close_other_tabs: *mut sys::godot_method_bind,
pub _open_recent_script: *mut sys::godot_method_bind,
pub _theme_option: *mut sys::godot_method_bind,
pub _editor_play: *mut sys::godot_method_bind,
pub _editor_pause: *mut sys::godot_method_bind,
pub _editor_stop: *mut sys::godot_method_bind,
pub _add_callback: *mut sys::godot_method_bind,
pub _reload_scripts: *mut sys::godot_method_bind,
pub _resave_scripts: *mut sys::godot_method_bind,
pub _res_saved_callback: *mut sys::godot_method_bind,
pub _goto_script_line: *mut sys::godot_method_bind,
pub _goto_script_line2: *mut sys::godot_method_bind,
pub _help_search: *mut sys::godot_method_bind,
pub _help_index: *mut sys::godot_method_bind,
pub _save_history: *mut sys::godot_method_bind,
pub _copy_script_path: *mut sys::godot_method_bind,
pub _breaked: *mut sys::godot_method_bind,
pub _show_debugger: *mut sys::godot_method_bind,
pub _get_debug_tooltip: *mut sys::godot_method_bind,
pub _autosave_scripts: *mut sys::godot_method_bind,
pub _editor_settings_changed: *mut sys::godot_method_bind,
pub _update_script_names: *mut sys::godot_method_bind,
pub _tree_changed: *mut sys::godot_method_bind,
pub _members_overview_selected: *mut sys::godot_method_bind,
pub _help_overview_selected: *mut sys::godot_method_bind,
pub _script_selected: *mut sys::godot_method_bind,
pub _script_created: *mut sys::godot_method_bind,
pub _script_split_dragged: *mut sys::godot_method_bind,
pub _help_class_open: *mut sys::godot_method_bind,
pub _help_class_goto: *mut sys::godot_method_bind,
pub _request_help: *mut sys::godot_method_bind,
pub _history_forward: *mut sys::godot_method_bind,
pub _history_back: *mut sys::godot_method_bind,
pub _live_auto_reload_running_scripts: *mut sys::godot_method_bind,
pub _unhandled_input: *mut sys::godot_method_bind,
pub _script_list_gui_input: *mut sys::godot_method_bind,
pub _toggle_members_overview_alpha_sort: *mut sys::godot_method_bind,
pub _update_members_overview: *mut sys::godot_method_bind,
pub _script_changed: *mut sys::godot_method_bind,
pub _update_recent_scripts: *mut sys::godot_method_bind,
pub _on_find_in_files_requested: *mut sys::godot_method_bind,
pub _start_find_in_files: *mut sys::godot_method_bind,
pub _on_find_in_files_result_selected: *mut sys::godot_method_bind,
pub _on_find_in_files_modified_files: *mut sys::godot_method_bind,
pub get_drag_data_fw: *mut sys::godot_method_bind,
pub can_drop_data_fw: *mut sys::godot_method_bind,
pub drop_data_fw: *mut sys::godot_method_bind,
pub get_current_script: *mut sys::godot_method_bind,
pub get_open_scripts: *mut sys::godot_method_bind,
pub open_script_create_dialog: *mut sys::godot_method_bind,
}
impl ScriptEditorMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: ScriptEditorMethodTable = ScriptEditorMethodTable {
class_constructor: None,
_file_dialog_action: 0 as *mut sys::godot_method_bind,
_tab_changed: 0 as *mut sys::godot_method_bind,
_menu_option: 0 as *mut sys::godot_method_bind,
_close_current_tab: 0 as *mut sys::godot_method_bind,
_close_discard_current_tab: 0 as *mut sys::godot_method_bind,
_close_docs_tab: 0 as *mut sys::godot_method_bind,
_close_all_tabs: 0 as *mut sys::godot_method_bind,
_close_other_tabs: 0 as *mut sys::godot_method_bind,
_open_recent_script: 0 as *mut sys::godot_method_bind,
_theme_option: 0 as *mut sys::godot_method_bind,
_editor_play: 0 as *mut sys::godot_method_bind,
_editor_pause: 0 as *mut sys::godot_method_bind,
_editor_stop: 0 as *mut sys::godot_method_bind,
_add_callback: 0 as *mut sys::godot_method_bind,
_reload_scripts: 0 as *mut sys::godot_method_bind,
_resave_scripts: 0 as *mut sys::godot_method_bind,
_res_saved_callback: 0 as *mut sys::godot_method_bind,
_goto_script_line: 0 as *mut sys::godot_method_bind,
_goto_script_line2: 0 as *mut sys::godot_method_bind,
_help_search: 0 as *mut sys::godot_method_bind,
_help_index: 0 as *mut sys::godot_method_bind,
_save_history: 0 as *mut sys::godot_method_bind,
_copy_script_path: 0 as *mut sys::godot_method_bind,
_breaked: 0 as *mut sys::godot_method_bind,
_show_debugger: 0 as *mut sys::godot_method_bind,
_get_debug_tooltip: 0 as *mut sys::godot_method_bind,
_autosave_scripts: 0 as *mut sys::godot_method_bind,
_editor_settings_changed: 0 as *mut sys::godot_method_bind,
_update_script_names: 0 as *mut sys::godot_method_bind,
_tree_changed: 0 as *mut sys::godot_method_bind,
_members_overview_selected: 0 as *mut sys::godot_method_bind,
_help_overview_selected: 0 as *mut sys::godot_method_bind,
_script_selected: 0 as *mut sys::godot_method_bind,
_script_created: 0 as *mut sys::godot_method_bind,
_script_split_dragged: 0 as *mut sys::godot_method_bind,
_help_class_open: 0 as *mut sys::godot_method_bind,
_help_class_goto: 0 as *mut sys::godot_method_bind,
_request_help: 0 as *mut sys::godot_method_bind,
_history_forward: 0 as *mut sys::godot_method_bind,
_history_back: 0 as *mut sys::godot_method_bind,
_live_auto_reload_running_scripts: 0 as *mut sys::godot_method_bind,
_unhandled_input: 0 as *mut sys::godot_method_bind,
_script_list_gui_input: 0 as *mut sys::godot_method_bind,
_toggle_members_overview_alpha_sort: 0 as *mut sys::godot_method_bind,
_update_members_overview: 0 as *mut sys::godot_method_bind,
_script_changed: 0 as *mut sys::godot_method_bind,
_update_recent_scripts: 0 as *mut sys::godot_method_bind,
_on_find_in_files_requested: 0 as *mut sys::godot_method_bind,
_start_find_in_files: 0 as *mut sys::godot_method_bind,
_on_find_in_files_result_selected: 0 as *mut sys::godot_method_bind,
_on_find_in_files_modified_files: 0 as *mut sys::godot_method_bind,
get_drag_data_fw: 0 as *mut sys::godot_method_bind,
can_drop_data_fw: 0 as *mut sys::godot_method_bind,
drop_data_fw: 0 as *mut sys::godot_method_bind,
get_current_script: 0 as *mut sys::godot_method_bind,
get_open_scripts: 0 as *mut sys::godot_method_bind,
open_script_create_dialog: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
ScriptEditorMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"ScriptEditor\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table._file_dialog_action = (gd_api.godot_method_bind_get_method)(class_name, "_file_dialog_action\0".as_ptr() as *const c_char );
table._tab_changed = (gd_api.godot_method_bind_get_method)(class_name, "_tab_changed\0".as_ptr() as *const c_char );
table._menu_option = (gd_api.godot_method_bind_get_method)(class_name, "_menu_option\0".as_ptr() as *const c_char );
table._close_current_tab = (gd_api.godot_method_bind_get_method)(class_name, "_close_current_tab\0".as_ptr() as *const c_char );
table._close_discard_current_tab = (gd_api.godot_method_bind_get_method)(class_name, "_close_discard_current_tab\0".as_ptr() as *const c_char );
table._close_docs_tab = (gd_api.godot_method_bind_get_method)(class_name, "_close_docs_tab\0".as_ptr() as *const c_char );
table._close_all_tabs = (gd_api.godot_method_bind_get_method)(class_name, "_close_all_tabs\0".as_ptr() as *const c_char );
table._close_other_tabs = (gd_api.godot_method_bind_get_method)(class_name, "_close_other_tabs\0".as_ptr() as *const c_char );
table._open_recent_script = (gd_api.godot_method_bind_get_method)(class_name, "_open_recent_script\0".as_ptr() as *const c_char );
table._theme_option = (gd_api.godot_method_bind_get_method)(class_name, "_theme_option\0".as_ptr() as *const c_char );
table._editor_play = (gd_api.godot_method_bind_get_method)(class_name, "_editor_play\0".as_ptr() as *const c_char );
table._editor_pause = (gd_api.godot_method_bind_get_method)(class_name, "_editor_pause\0".as_ptr() as *const c_char );
table._editor_stop = (gd_api.godot_method_bind_get_method)(class_name, "_editor_stop\0".as_ptr() as *const c_char );
table._add_callback = (gd_api.godot_method_bind_get_method)(class_name, "_add_callback\0".as_ptr() as *const c_char );
table._reload_scripts = (gd_api.godot_method_bind_get_method)(class_name, "_reload_scripts\0".as_ptr() as *const c_char );
table._resave_scripts = (gd_api.godot_method_bind_get_method)(class_name, "_resave_scripts\0".as_ptr() as *const c_char );
table._res_saved_callback = (gd_api.godot_method_bind_get_method)(class_name, "_res_saved_callback\0".as_ptr() as *const c_char );
table._goto_script_line = (gd_api.godot_method_bind_get_method)(class_name, "_goto_script_line\0".as_ptr() as *const c_char );
table._goto_script_line2 = (gd_api.godot_method_bind_get_method)(class_name, "_goto_script_line2\0".as_ptr() as *const c_char );
table._help_search = (gd_api.godot_method_bind_get_method)(class_name, "_help_search\0".as_ptr() as *const c_char );
table._help_index = (gd_api.godot_method_bind_get_method)(class_name, "_help_index\0".as_ptr() as *const c_char );
table._save_history = (gd_api.godot_method_bind_get_method)(class_name, "_save_history\0".as_ptr() as *const c_char );
table._copy_script_path = (gd_api.godot_method_bind_get_method)(class_name, "_copy_script_path\0".as_ptr() as *const c_char );
table._breaked = (gd_api.godot_method_bind_get_method)(class_name, "_breaked\0".as_ptr() as *const c_char );
table._show_debugger = (gd_api.godot_method_bind_get_method)(class_name, "_show_debugger\0".as_ptr() as *const c_char );
table._get_debug_tooltip = (gd_api.godot_method_bind_get_method)(class_name, "_get_debug_tooltip\0".as_ptr() as *const c_char );
table._autosave_scripts = (gd_api.godot_method_bind_get_method)(class_name, "_autosave_scripts\0".as_ptr() as *const c_char );
table._editor_settings_changed = (gd_api.godot_method_bind_get_method)(class_name, "_editor_settings_changed\0".as_ptr() as *const c_char );
table._update_script_names = (gd_api.godot_method_bind_get_method)(class_name, "_update_script_names\0".as_ptr() as *const c_char );
table._tree_changed = (gd_api.godot_method_bind_get_method)(class_name, "_tree_changed\0".as_ptr() as *const c_char );
table._members_overview_selected = (gd_api.godot_method_bind_get_method)(class_name, "_members_overview_selected\0".as_ptr() as *const c_char );
table._help_overview_selected = (gd_api.godot_method_bind_get_method)(class_name, "_help_overview_selected\0".as_ptr() as *const c_char );
table._script_selected = (gd_api.godot_method_bind_get_method)(class_name, "_script_selected\0".as_ptr() as *const c_char );
table._script_created = (gd_api.godot_method_bind_get_method)(class_name, "_script_created\0".as_ptr() as *const c_char );
table._script_split_dragged = (gd_api.godot_method_bind_get_method)(class_name, "_script_split_dragged\0".as_ptr() as *const c_char );
table._help_class_open = (gd_api.godot_method_bind_get_method)(class_name, "_help_class_open\0".as_ptr() as *const c_char );
table._help_class_goto = (gd_api.godot_method_bind_get_method)(class_name, "_help_class_goto\0".as_ptr() as *const c_char );
table._request_help = (gd_api.godot_method_bind_get_method)(class_name, "_request_help\0".as_ptr() as *const c_char );
table._history_forward = (gd_api.godot_method_bind_get_method)(class_name, "_history_forward\0".as_ptr() as *const c_char );
table._history_back = (gd_api.godot_method_bind_get_method)(class_name, "_history_back\0".as_ptr() as *const c_char );
table._live_auto_reload_running_scripts = (gd_api.godot_method_bind_get_method)(class_name, "_live_auto_reload_running_scripts\0".as_ptr() as *const c_char );
table._unhandled_input = (gd_api.godot_method_bind_get_method)(class_name, "_unhandled_input\0".as_ptr() as *const c_char );
table._script_list_gui_input = (gd_api.godot_method_bind_get_method)(class_name, "_script_list_gui_input\0".as_ptr() as *const c_char );
table._toggle_members_overview_alpha_sort = (gd_api.godot_method_bind_get_method)(class_name, "_toggle_members_overview_alpha_sort\0".as_ptr() as *const c_char );
table._update_members_overview = (gd_api.godot_method_bind_get_method)(class_name, "_update_members_overview\0".as_ptr() as *const c_char );
table._script_changed = (gd_api.godot_method_bind_get_method)(class_name, "_script_changed\0".as_ptr() as *const c_char );
table._update_recent_scripts = (gd_api.godot_method_bind_get_method)(class_name, "_update_recent_scripts\0".as_ptr() as *const c_char );
table._on_find_in_files_requested = (gd_api.godot_method_bind_get_method)(class_name, "_on_find_in_files_requested\0".as_ptr() as *const c_char );
table._start_find_in_files = (gd_api.godot_method_bind_get_method)(class_name, "_start_find_in_files\0".as_ptr() as *const c_char );
table._on_find_in_files_result_selected = (gd_api.godot_method_bind_get_method)(class_name, "_on_find_in_files_result_selected\0".as_ptr() as *const c_char );
table._on_find_in_files_modified_files = (gd_api.godot_method_bind_get_method)(class_name, "_on_find_in_files_modified_files\0".as_ptr() as *const c_char );
table.get_drag_data_fw = (gd_api.godot_method_bind_get_method)(class_name, "get_drag_data_fw\0".as_ptr() as *const c_char );
table.can_drop_data_fw = (gd_api.godot_method_bind_get_method)(class_name, "can_drop_data_fw\0".as_ptr() as *const c_char );
table.drop_data_fw = (gd_api.godot_method_bind_get_method)(class_name, "drop_data_fw\0".as_ptr() as *const c_char );
table.get_current_script = (gd_api.godot_method_bind_get_method)(class_name, "get_current_script\0".as_ptr() as *const c_char );
table.get_open_scripts = (gd_api.godot_method_bind_get_method)(class_name, "get_open_scripts\0".as_ptr() as *const c_char );
table.open_script_create_dialog = (gd_api.godot_method_bind_get_method)(class_name, "open_script_create_dialog\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__file_dialog_action(obj_ptr: *mut sys::godot_object, arg0: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._file_dialog_action;
let mut argument_buffer : [*const libc::c_void; 1] = [
arg0.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__tab_changed(obj_ptr: *mut sys::godot_object, arg0: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._tab_changed;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&arg0) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__menu_option(obj_ptr: *mut sys::godot_object, arg0: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._menu_option;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&arg0) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__close_current_tab(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._close_current_tab;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__close_discard_current_tab(obj_ptr: *mut sys::godot_object, arg0: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._close_discard_current_tab;
let mut argument_buffer : [*const libc::c_void; 1] = [
arg0.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__close_docs_tab(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._close_docs_tab;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__close_all_tabs(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._close_all_tabs;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__close_other_tabs(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._close_other_tabs;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__open_recent_script(obj_ptr: *mut sys::godot_object, arg0: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._open_recent_script;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&arg0) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__theme_option(obj_ptr: *mut sys::godot_object, arg0: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._theme_option;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&arg0) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__editor_play(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._editor_play;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__editor_pause(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._editor_pause;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__editor_stop(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._editor_stop;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__add_callback(obj_ptr: *mut sys::godot_object, arg0: Option<Object>, arg1: GodotString, arg2: StringArray) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._add_callback;
let mut argument_buffer : [*const libc::c_void; 3] = [
if let Some(arg) = arg0 { arg.this as *const _ as *const _ } else { ptr::null() },
arg1.sys() as *const _ as *const _,
arg2.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__reload_scripts(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._reload_scripts;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__resave_scripts(obj_ptr: *mut sys::godot_object, arg0: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._resave_scripts;
let mut argument_buffer : [*const libc::c_void; 1] = [
arg0.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__res_saved_callback(obj_ptr: *mut sys::godot_object, arg0: Option<Resource>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._res_saved_callback;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = arg0 { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__goto_script_line(obj_ptr: *mut sys::godot_object, arg0: Option<Reference>, arg1: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._goto_script_line;
let mut argument_buffer : [*const libc::c_void; 2] = [
if let Some(arg) = arg0 { arg.this as *const _ as *const _ } else { ptr::null() },
(&arg1) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__goto_script_line2(obj_ptr: *mut sys::godot_object, arg0: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._goto_script_line2;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&arg0) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__help_search(obj_ptr: *mut sys::godot_object, arg0: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._help_search;
let mut argument_buffer : [*const libc::c_void; 1] = [
arg0.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__help_index(obj_ptr: *mut sys::godot_object, arg0: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._help_index;
let mut argument_buffer : [*const libc::c_void; 1] = [
arg0.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__save_history(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._save_history;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__copy_script_path(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._copy_script_path;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__breaked(obj_ptr: *mut sys::godot_object, arg0: bool, arg1: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._breaked;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&arg0) as *const _ as *const _,
(&arg1) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__show_debugger(obj_ptr: *mut sys::godot_object, arg0: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._show_debugger;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&arg0) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__get_debug_tooltip(obj_ptr: *mut sys::godot_object, arg0: GodotString, arg1: Option<Object>) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._get_debug_tooltip;
let mut argument_buffer : [*const libc::c_void; 2] = [
arg0.sys() as *const _ as *const _,
if let Some(arg) = arg1 { arg.this as *const _ as *const _ } else { ptr::null() },
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__autosave_scripts(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._autosave_scripts;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__editor_settings_changed(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._editor_settings_changed;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__update_script_names(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._update_script_names;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__tree_changed(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._tree_changed;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__members_overview_selected(obj_ptr: *mut sys::godot_object, arg0: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._members_overview_selected;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&arg0) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__help_overview_selected(obj_ptr: *mut sys::godot_object, arg0: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._help_overview_selected;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&arg0) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__script_selected(obj_ptr: *mut sys::godot_object, arg0: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._script_selected;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&arg0) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__script_created(obj_ptr: *mut sys::godot_object, arg0: Option<Script>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._script_created;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = arg0 { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__script_split_dragged(obj_ptr: *mut sys::godot_object, arg0: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._script_split_dragged;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&arg0) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__help_class_open(obj_ptr: *mut sys::godot_object, arg0: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._help_class_open;
let mut argument_buffer : [*const libc::c_void; 1] = [
arg0.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__help_class_goto(obj_ptr: *mut sys::godot_object, arg0: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._help_class_goto;
let mut argument_buffer : [*const libc::c_void; 1] = [
arg0.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__request_help(obj_ptr: *mut sys::godot_object, arg0: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._request_help;
let mut argument_buffer : [*const libc::c_void; 1] = [
arg0.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__history_forward(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._history_forward;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__history_back(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._history_back;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__live_auto_reload_running_scripts(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._live_auto_reload_running_scripts;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__unhandled_input(obj_ptr: *mut sys::godot_object, arg0: Option<InputEvent>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._unhandled_input;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = arg0 { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__script_list_gui_input(obj_ptr: *mut sys::godot_object, arg0: Option<InputEvent>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._script_list_gui_input;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = arg0 { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__toggle_members_overview_alpha_sort(obj_ptr: *mut sys::godot_object, arg0: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._toggle_members_overview_alpha_sort;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&arg0) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__update_members_overview(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._update_members_overview;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__script_changed(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._script_changed;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__update_recent_scripts(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._update_recent_scripts;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__on_find_in_files_requested(obj_ptr: *mut sys::godot_object, arg0: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._on_find_in_files_requested;
let mut argument_buffer : [*const libc::c_void; 1] = [
arg0.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__start_find_in_files(obj_ptr: *mut sys::godot_object, arg0: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._start_find_in_files;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&arg0) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__on_find_in_files_result_selected(obj_ptr: *mut sys::godot_object, arg0: GodotString, arg1: i64, arg2: i64, arg3: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._on_find_in_files_result_selected;
let mut argument_buffer : [*const libc::c_void; 4] = [
arg0.sys() as *const _ as *const _,
(&arg1) as *const _ as *const _,
(&arg2) as *const _ as *const _,
(&arg3) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor__on_find_in_files_modified_files(obj_ptr: *mut sys::godot_object, arg0: StringArray) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api)._on_find_in_files_modified_files;
let mut argument_buffer : [*const libc::c_void; 1] = [
arg0.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor_get_drag_data_fw(obj_ptr: *mut sys::godot_object, point: Vector2, from: Option<Object>) -> Variant {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api).get_drag_data_fw;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&point) as *const _ as *const _,
if let Some(arg) = from { arg.this as *const _ as *const _ } else { ptr::null() },
];
let mut ret = sys::godot_variant::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
Variant::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn ScriptEditor_can_drop_data_fw(obj_ptr: *mut sys::godot_object, point: Vector2, data: Variant, from: Option<Object>) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api).can_drop_data_fw;
let mut argument_buffer : [*const libc::c_void; 3] = [
(&point) as *const _ as *const _,
data.sys() as *const _ as *const _,
if let Some(arg) = from { arg.this as *const _ as *const _ } else { ptr::null() },
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn ScriptEditor_drop_data_fw(obj_ptr: *mut sys::godot_object, point: Vector2, data: Variant, from: Option<Object>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api).drop_data_fw;
let mut argument_buffer : [*const libc::c_void; 3] = [
(&point) as *const _ as *const _,
data.sys() as *const _ as *const _,
if let Some(arg) = from { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptEditor_get_current_script(obj_ptr: *mut sys::godot_object) -> Option<Script> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api).get_current_script;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(Script::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn ScriptEditor_get_open_scripts(obj_ptr: *mut sys::godot_object) -> VariantArray {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api).get_open_scripts;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_array::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
VariantArray::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn ScriptEditor_open_script_create_dialog(obj_ptr: *mut sys::godot_object, base_name: GodotString, base_path: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptEditorMethodTable::get(gd_api).open_script_create_dialog;
let mut argument_buffer : [*const libc::c_void; 2] = [
base_name.sys() as *const _ as *const _,
base_path.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct EditorFileSystemDirectoryMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub get_subdir_count: *mut sys::godot_method_bind,
pub get_subdir: *mut sys::godot_method_bind,
pub get_file_count: *mut sys::godot_method_bind,
pub get_file: *mut sys::godot_method_bind,
pub get_file_path: *mut sys::godot_method_bind,
pub get_file_type: *mut sys::godot_method_bind,
pub get_file_script_class_name: *mut sys::godot_method_bind,
pub get_file_script_class_extends: *mut sys::godot_method_bind,
pub get_file_import_is_valid: *mut sys::godot_method_bind,
pub get_name: *mut sys::godot_method_bind,
pub get_path: *mut sys::godot_method_bind,
pub get_parent: *mut sys::godot_method_bind,
pub find_file_index: *mut sys::godot_method_bind,
pub find_dir_index: *mut sys::godot_method_bind,
}
impl EditorFileSystemDirectoryMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: EditorFileSystemDirectoryMethodTable = EditorFileSystemDirectoryMethodTable {
class_constructor: None,
get_subdir_count: 0 as *mut sys::godot_method_bind,
get_subdir: 0 as *mut sys::godot_method_bind,
get_file_count: 0 as *mut sys::godot_method_bind,
get_file: 0 as *mut sys::godot_method_bind,
get_file_path: 0 as *mut sys::godot_method_bind,
get_file_type: 0 as *mut sys::godot_method_bind,
get_file_script_class_name: 0 as *mut sys::godot_method_bind,
get_file_script_class_extends: 0 as *mut sys::godot_method_bind,
get_file_import_is_valid: 0 as *mut sys::godot_method_bind,
get_name: 0 as *mut sys::godot_method_bind,
get_path: 0 as *mut sys::godot_method_bind,
get_parent: 0 as *mut sys::godot_method_bind,
find_file_index: 0 as *mut sys::godot_method_bind,
find_dir_index: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
EditorFileSystemDirectoryMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"EditorFileSystemDirectory\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.get_subdir_count = (gd_api.godot_method_bind_get_method)(class_name, "get_subdir_count\0".as_ptr() as *const c_char );
table.get_subdir = (gd_api.godot_method_bind_get_method)(class_name, "get_subdir\0".as_ptr() as *const c_char );
table.get_file_count = (gd_api.godot_method_bind_get_method)(class_name, "get_file_count\0".as_ptr() as *const c_char );
table.get_file = (gd_api.godot_method_bind_get_method)(class_name, "get_file\0".as_ptr() as *const c_char );
table.get_file_path = (gd_api.godot_method_bind_get_method)(class_name, "get_file_path\0".as_ptr() as *const c_char );
table.get_file_type = (gd_api.godot_method_bind_get_method)(class_name, "get_file_type\0".as_ptr() as *const c_char );
table.get_file_script_class_name = (gd_api.godot_method_bind_get_method)(class_name, "get_file_script_class_name\0".as_ptr() as *const c_char );
table.get_file_script_class_extends = (gd_api.godot_method_bind_get_method)(class_name, "get_file_script_class_extends\0".as_ptr() as *const c_char );
table.get_file_import_is_valid = (gd_api.godot_method_bind_get_method)(class_name, "get_file_import_is_valid\0".as_ptr() as *const c_char );
table.get_name = (gd_api.godot_method_bind_get_method)(class_name, "get_name\0".as_ptr() as *const c_char );
table.get_path = (gd_api.godot_method_bind_get_method)(class_name, "get_path\0".as_ptr() as *const c_char );
table.get_parent = (gd_api.godot_method_bind_get_method)(class_name, "get_parent\0".as_ptr() as *const c_char );
table.find_file_index = (gd_api.godot_method_bind_get_method)(class_name, "find_file_index\0".as_ptr() as *const c_char );
table.find_dir_index = (gd_api.godot_method_bind_get_method)(class_name, "find_dir_index\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn EditorFileSystemDirectory_get_subdir_count(obj_ptr: *mut sys::godot_object) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileSystemDirectoryMethodTable::get(gd_api).get_subdir_count;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0i64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn EditorFileSystemDirectory_get_subdir(obj_ptr: *mut sys::godot_object, idx: i64) -> Option<EditorFileSystemDirectory> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileSystemDirectoryMethodTable::get(gd_api).get_subdir;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&idx) as *const _ as *const _,
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(EditorFileSystemDirectory::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn EditorFileSystemDirectory_get_file_count(obj_ptr: *mut sys::godot_object) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileSystemDirectoryMethodTable::get(gd_api).get_file_count;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0i64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn EditorFileSystemDirectory_get_file(obj_ptr: *mut sys::godot_object, idx: i64) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileSystemDirectoryMethodTable::get(gd_api).get_file;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&idx) as *const _ as *const _,
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorFileSystemDirectory_get_file_path(obj_ptr: *mut sys::godot_object, idx: i64) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileSystemDirectoryMethodTable::get(gd_api).get_file_path;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&idx) as *const _ as *const _,
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorFileSystemDirectory_get_file_type(obj_ptr: *mut sys::godot_object, idx: i64) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileSystemDirectoryMethodTable::get(gd_api).get_file_type;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&idx) as *const _ as *const _,
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorFileSystemDirectory_get_file_script_class_name(obj_ptr: *mut sys::godot_object, idx: i64) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileSystemDirectoryMethodTable::get(gd_api).get_file_script_class_name;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&idx) as *const _ as *const _,
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorFileSystemDirectory_get_file_script_class_extends(obj_ptr: *mut sys::godot_object, idx: i64) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileSystemDirectoryMethodTable::get(gd_api).get_file_script_class_extends;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&idx) as *const _ as *const _,
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorFileSystemDirectory_get_file_import_is_valid(obj_ptr: *mut sys::godot_object, idx: i64) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileSystemDirectoryMethodTable::get(gd_api).get_file_import_is_valid;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&idx) as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn EditorFileSystemDirectory_get_name(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileSystemDirectoryMethodTable::get(gd_api).get_name;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorFileSystemDirectory_get_path(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileSystemDirectoryMethodTable::get(gd_api).get_path;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorFileSystemDirectory_get_parent(obj_ptr: *mut sys::godot_object) -> Option<EditorFileSystemDirectory> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileSystemDirectoryMethodTable::get(gd_api).get_parent;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(EditorFileSystemDirectory::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn EditorFileSystemDirectory_find_file_index(obj_ptr: *mut sys::godot_object, name: GodotString) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileSystemDirectoryMethodTable::get(gd_api).find_file_index;
let mut argument_buffer : [*const libc::c_void; 1] = [
name.sys() as *const _ as *const _,
];
let mut ret = 0i64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn EditorFileSystemDirectory_find_dir_index(obj_ptr: *mut sys::godot_object, name: GodotString) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorFileSystemDirectoryMethodTable::get(gd_api).find_dir_index;
let mut argument_buffer : [*const libc::c_void; 1] = [
name.sys() as *const _ as *const _,
];
let mut ret = 0i64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct EditorExportPluginMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub _export_file: *mut sys::godot_method_bind,
pub _export_begin: *mut sys::godot_method_bind,
pub add_shared_object: *mut sys::godot_method_bind,
pub add_file: *mut sys::godot_method_bind,
pub add_ios_framework: *mut sys::godot_method_bind,
pub add_ios_plist_content: *mut sys::godot_method_bind,
pub add_ios_linker_flags: *mut sys::godot_method_bind,
pub add_ios_bundle_file: *mut sys::godot_method_bind,
pub add_ios_cpp_code: *mut sys::godot_method_bind,
pub skip: *mut sys::godot_method_bind,
}
impl EditorExportPluginMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: EditorExportPluginMethodTable = EditorExportPluginMethodTable {
class_constructor: None,
_export_file: 0 as *mut sys::godot_method_bind,
_export_begin: 0 as *mut sys::godot_method_bind,
add_shared_object: 0 as *mut sys::godot_method_bind,
add_file: 0 as *mut sys::godot_method_bind,
add_ios_framework: 0 as *mut sys::godot_method_bind,
add_ios_plist_content: 0 as *mut sys::godot_method_bind,
add_ios_linker_flags: 0 as *mut sys::godot_method_bind,
add_ios_bundle_file: 0 as *mut sys::godot_method_bind,
add_ios_cpp_code: 0 as *mut sys::godot_method_bind,
skip: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
EditorExportPluginMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"EditorExportPlugin\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table._export_file = (gd_api.godot_method_bind_get_method)(class_name, "_export_file\0".as_ptr() as *const c_char );
table._export_begin = (gd_api.godot_method_bind_get_method)(class_name, "_export_begin\0".as_ptr() as *const c_char );
table.add_shared_object = (gd_api.godot_method_bind_get_method)(class_name, "add_shared_object\0".as_ptr() as *const c_char );
table.add_file = (gd_api.godot_method_bind_get_method)(class_name, "add_file\0".as_ptr() as *const c_char );
table.add_ios_framework = (gd_api.godot_method_bind_get_method)(class_name, "add_ios_framework\0".as_ptr() as *const c_char );
table.add_ios_plist_content = (gd_api.godot_method_bind_get_method)(class_name, "add_ios_plist_content\0".as_ptr() as *const c_char );
table.add_ios_linker_flags = (gd_api.godot_method_bind_get_method)(class_name, "add_ios_linker_flags\0".as_ptr() as *const c_char );
table.add_ios_bundle_file = (gd_api.godot_method_bind_get_method)(class_name, "add_ios_bundle_file\0".as_ptr() as *const c_char );
table.add_ios_cpp_code = (gd_api.godot_method_bind_get_method)(class_name, "add_ios_cpp_code\0".as_ptr() as *const c_char );
table.skip = (gd_api.godot_method_bind_get_method)(class_name, "skip\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn EditorExportPlugin__export_file(obj_ptr: *mut sys::godot_object, path: GodotString, _type: GodotString, features: StringArray) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorExportPluginMethodTable::get(gd_api)._export_file;
let mut argument_buffer : [*const libc::c_void; 3] = [
path.sys() as *const _ as *const _,
_type.sys() as *const _ as *const _,
features.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorExportPlugin__export_begin(obj_ptr: *mut sys::godot_object, features: StringArray, is_debug: bool, path: GodotString, flags: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorExportPluginMethodTable::get(gd_api)._export_begin;
let mut argument_buffer : [*const libc::c_void; 4] = [
features.sys() as *const _ as *const _,
(&is_debug) as *const _ as *const _,
path.sys() as *const _ as *const _,
(&flags) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorExportPlugin_add_shared_object(obj_ptr: *mut sys::godot_object, path: GodotString, tags: StringArray) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorExportPluginMethodTable::get(gd_api).add_shared_object;
let mut argument_buffer : [*const libc::c_void; 2] = [
path.sys() as *const _ as *const _,
tags.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorExportPlugin_add_file(obj_ptr: *mut sys::godot_object, path: GodotString, file: ByteArray, remap: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorExportPluginMethodTable::get(gd_api).add_file;
let mut argument_buffer : [*const libc::c_void; 3] = [
path.sys() as *const _ as *const _,
file.sys() as *const _ as *const _,
(&remap) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorExportPlugin_add_ios_framework(obj_ptr: *mut sys::godot_object, path: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorExportPluginMethodTable::get(gd_api).add_ios_framework;
let mut argument_buffer : [*const libc::c_void; 1] = [
path.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorExportPlugin_add_ios_plist_content(obj_ptr: *mut sys::godot_object, plist_content: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorExportPluginMethodTable::get(gd_api).add_ios_plist_content;
let mut argument_buffer : [*const libc::c_void; 1] = [
plist_content.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorExportPlugin_add_ios_linker_flags(obj_ptr: *mut sys::godot_object, flags: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorExportPluginMethodTable::get(gd_api).add_ios_linker_flags;
let mut argument_buffer : [*const libc::c_void; 1] = [
flags.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorExportPlugin_add_ios_bundle_file(obj_ptr: *mut sys::godot_object, path: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorExportPluginMethodTable::get(gd_api).add_ios_bundle_file;
let mut argument_buffer : [*const libc::c_void; 1] = [
path.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorExportPlugin_add_ios_cpp_code(obj_ptr: *mut sys::godot_object, code: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorExportPluginMethodTable::get(gd_api).add_ios_cpp_code;
let mut argument_buffer : [*const libc::c_void; 1] = [
code.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorExportPlugin_skip(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorExportPluginMethodTable::get(gd_api).skip;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct EditorResourceConversionPluginMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub _convert: *mut sys::godot_method_bind,
pub _converts_to: *mut sys::godot_method_bind,
}
impl EditorResourceConversionPluginMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: EditorResourceConversionPluginMethodTable = EditorResourceConversionPluginMethodTable {
class_constructor: None,
_convert: 0 as *mut sys::godot_method_bind,
_converts_to: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
EditorResourceConversionPluginMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"EditorResourceConversionPlugin\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table._convert = (gd_api.godot_method_bind_get_method)(class_name, "_convert\0".as_ptr() as *const c_char );
table._converts_to = (gd_api.godot_method_bind_get_method)(class_name, "_converts_to\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn EditorResourceConversionPlugin__convert(obj_ptr: *mut sys::godot_object, resource: Option<Resource>) -> Option<Resource> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorResourceConversionPluginMethodTable::get(gd_api)._convert;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = resource { arg.this as *const _ as *const _ } else { ptr::null() },
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(Resource::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn EditorResourceConversionPlugin__converts_to(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorResourceConversionPluginMethodTable::get(gd_api)._converts_to;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct EditorSceneImporterMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub _get_import_flags: *mut sys::godot_method_bind,
pub _get_extensions: *mut sys::godot_method_bind,
pub _import_scene: *mut sys::godot_method_bind,
pub _import_animation: *mut sys::godot_method_bind,
pub import_scene_from_other_importer: *mut sys::godot_method_bind,
pub import_animation_from_other_importer: *mut sys::godot_method_bind,
}
impl EditorSceneImporterMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: EditorSceneImporterMethodTable = EditorSceneImporterMethodTable {
class_constructor: None,
_get_import_flags: 0 as *mut sys::godot_method_bind,
_get_extensions: 0 as *mut sys::godot_method_bind,
_import_scene: 0 as *mut sys::godot_method_bind,
_import_animation: 0 as *mut sys::godot_method_bind,
import_scene_from_other_importer: 0 as *mut sys::godot_method_bind,
import_animation_from_other_importer: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
EditorSceneImporterMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"EditorSceneImporter\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table._get_import_flags = (gd_api.godot_method_bind_get_method)(class_name, "_get_import_flags\0".as_ptr() as *const c_char );
table._get_extensions = (gd_api.godot_method_bind_get_method)(class_name, "_get_extensions\0".as_ptr() as *const c_char );
table._import_scene = (gd_api.godot_method_bind_get_method)(class_name, "_import_scene\0".as_ptr() as *const c_char );
table._import_animation = (gd_api.godot_method_bind_get_method)(class_name, "_import_animation\0".as_ptr() as *const c_char );
table.import_scene_from_other_importer = (gd_api.godot_method_bind_get_method)(class_name, "import_scene_from_other_importer\0".as_ptr() as *const c_char );
table.import_animation_from_other_importer = (gd_api.godot_method_bind_get_method)(class_name, "import_animation_from_other_importer\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn EditorSceneImporter__get_import_flags(obj_ptr: *mut sys::godot_object) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSceneImporterMethodTable::get(gd_api)._get_import_flags;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0i64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn EditorSceneImporter__get_extensions(obj_ptr: *mut sys::godot_object) -> VariantArray {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSceneImporterMethodTable::get(gd_api)._get_extensions;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_array::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
VariantArray::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorSceneImporter__import_scene(obj_ptr: *mut sys::godot_object, path: GodotString, flags: i64, bake_fps: i64) -> Option<Node> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSceneImporterMethodTable::get(gd_api)._import_scene;
let mut argument_buffer : [*const libc::c_void; 3] = [
path.sys() as *const _ as *const _,
(&flags) as *const _ as *const _,
(&bake_fps) as *const _ as *const _,
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(Node::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn EditorSceneImporter__import_animation(obj_ptr: *mut sys::godot_object, path: GodotString, flags: i64, bake_fps: i64) -> Option<Animation> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSceneImporterMethodTable::get(gd_api)._import_animation;
let mut argument_buffer : [*const libc::c_void; 3] = [
path.sys() as *const _ as *const _,
(&flags) as *const _ as *const _,
(&bake_fps) as *const _ as *const _,
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(Animation::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn EditorSceneImporter_import_scene_from_other_importer(obj_ptr: *mut sys::godot_object, path: GodotString, flags: i64, bake_fps: i64) -> Option<Node> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSceneImporterMethodTable::get(gd_api).import_scene_from_other_importer;
let mut argument_buffer : [*const libc::c_void; 3] = [
path.sys() as *const _ as *const _,
(&flags) as *const _ as *const _,
(&bake_fps) as *const _ as *const _,
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(Node::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn EditorSceneImporter_import_animation_from_other_importer(obj_ptr: *mut sys::godot_object, path: GodotString, flags: i64, bake_fps: i64) -> Option<Animation> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorSceneImporterMethodTable::get(gd_api).import_animation_from_other_importer;
let mut argument_buffer : [*const libc::c_void; 3] = [
path.sys() as *const _ as *const _,
(&flags) as *const _ as *const _,
(&bake_fps) as *const _ as *const _,
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(Animation::from_sys(ret))
}
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct EditorInterfaceMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub inspect_object: *mut sys::godot_method_bind,
pub get_selection: *mut sys::godot_method_bind,
pub get_editor_settings: *mut sys::godot_method_bind,
pub get_script_editor: *mut sys::godot_method_bind,
pub get_base_control: *mut sys::godot_method_bind,
pub edit_resource: *mut sys::godot_method_bind,
pub open_scene_from_path: *mut sys::godot_method_bind,
pub reload_scene_from_path: *mut sys::godot_method_bind,
pub get_open_scenes: *mut sys::godot_method_bind,
pub get_edited_scene_root: *mut sys::godot_method_bind,
pub get_resource_previewer: *mut sys::godot_method_bind,
pub get_resource_filesystem: *mut sys::godot_method_bind,
pub get_editor_viewport: *mut sys::godot_method_bind,
pub make_mesh_previews: *mut sys::godot_method_bind,
pub select_file: *mut sys::godot_method_bind,
pub get_selected_path: *mut sys::godot_method_bind,
pub set_plugin_enabled: *mut sys::godot_method_bind,
pub is_plugin_enabled: *mut sys::godot_method_bind,
pub save_scene: *mut sys::godot_method_bind,
pub save_scene_as: *mut sys::godot_method_bind,
}
impl EditorInterfaceMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: EditorInterfaceMethodTable = EditorInterfaceMethodTable {
class_constructor: None,
inspect_object: 0 as *mut sys::godot_method_bind,
get_selection: 0 as *mut sys::godot_method_bind,
get_editor_settings: 0 as *mut sys::godot_method_bind,
get_script_editor: 0 as *mut sys::godot_method_bind,
get_base_control: 0 as *mut sys::godot_method_bind,
edit_resource: 0 as *mut sys::godot_method_bind,
open_scene_from_path: 0 as *mut sys::godot_method_bind,
reload_scene_from_path: 0 as *mut sys::godot_method_bind,
get_open_scenes: 0 as *mut sys::godot_method_bind,
get_edited_scene_root: 0 as *mut sys::godot_method_bind,
get_resource_previewer: 0 as *mut sys::godot_method_bind,
get_resource_filesystem: 0 as *mut sys::godot_method_bind,
get_editor_viewport: 0 as *mut sys::godot_method_bind,
make_mesh_previews: 0 as *mut sys::godot_method_bind,
select_file: 0 as *mut sys::godot_method_bind,
get_selected_path: 0 as *mut sys::godot_method_bind,
set_plugin_enabled: 0 as *mut sys::godot_method_bind,
is_plugin_enabled: 0 as *mut sys::godot_method_bind,
save_scene: 0 as *mut sys::godot_method_bind,
save_scene_as: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
EditorInterfaceMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"EditorInterface\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.inspect_object = (gd_api.godot_method_bind_get_method)(class_name, "inspect_object\0".as_ptr() as *const c_char );
table.get_selection = (gd_api.godot_method_bind_get_method)(class_name, "get_selection\0".as_ptr() as *const c_char );
table.get_editor_settings = (gd_api.godot_method_bind_get_method)(class_name, "get_editor_settings\0".as_ptr() as *const c_char );
table.get_script_editor = (gd_api.godot_method_bind_get_method)(class_name, "get_script_editor\0".as_ptr() as *const c_char );
table.get_base_control = (gd_api.godot_method_bind_get_method)(class_name, "get_base_control\0".as_ptr() as *const c_char );
table.edit_resource = (gd_api.godot_method_bind_get_method)(class_name, "edit_resource\0".as_ptr() as *const c_char );
table.open_scene_from_path = (gd_api.godot_method_bind_get_method)(class_name, "open_scene_from_path\0".as_ptr() as *const c_char );
table.reload_scene_from_path = (gd_api.godot_method_bind_get_method)(class_name, "reload_scene_from_path\0".as_ptr() as *const c_char );
table.get_open_scenes = (gd_api.godot_method_bind_get_method)(class_name, "get_open_scenes\0".as_ptr() as *const c_char );
table.get_edited_scene_root = (gd_api.godot_method_bind_get_method)(class_name, "get_edited_scene_root\0".as_ptr() as *const c_char );
table.get_resource_previewer = (gd_api.godot_method_bind_get_method)(class_name, "get_resource_previewer\0".as_ptr() as *const c_char );
table.get_resource_filesystem = (gd_api.godot_method_bind_get_method)(class_name, "get_resource_filesystem\0".as_ptr() as *const c_char );
table.get_editor_viewport = (gd_api.godot_method_bind_get_method)(class_name, "get_editor_viewport\0".as_ptr() as *const c_char );
table.make_mesh_previews = (gd_api.godot_method_bind_get_method)(class_name, "make_mesh_previews\0".as_ptr() as *const c_char );
table.select_file = (gd_api.godot_method_bind_get_method)(class_name, "select_file\0".as_ptr() as *const c_char );
table.get_selected_path = (gd_api.godot_method_bind_get_method)(class_name, "get_selected_path\0".as_ptr() as *const c_char );
table.set_plugin_enabled = (gd_api.godot_method_bind_get_method)(class_name, "set_plugin_enabled\0".as_ptr() as *const c_char );
table.is_plugin_enabled = (gd_api.godot_method_bind_get_method)(class_name, "is_plugin_enabled\0".as_ptr() as *const c_char );
table.save_scene = (gd_api.godot_method_bind_get_method)(class_name, "save_scene\0".as_ptr() as *const c_char );
table.save_scene_as = (gd_api.godot_method_bind_get_method)(class_name, "save_scene_as\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn EditorInterface_inspect_object(obj_ptr: *mut sys::godot_object, object: Option<Object>, for_property: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInterfaceMethodTable::get(gd_api).inspect_object;
let mut argument_buffer : [*const libc::c_void; 2] = [
if let Some(arg) = object { arg.this as *const _ as *const _ } else { ptr::null() },
for_property.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorInterface_get_selection(obj_ptr: *mut sys::godot_object) -> Option<EditorSelection> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInterfaceMethodTable::get(gd_api).get_selection;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(EditorSelection::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn EditorInterface_get_editor_settings(obj_ptr: *mut sys::godot_object) -> Option<EditorSettings> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInterfaceMethodTable::get(gd_api).get_editor_settings;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(EditorSettings::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn EditorInterface_get_script_editor(obj_ptr: *mut sys::godot_object) -> Option<ScriptEditor> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInterfaceMethodTable::get(gd_api).get_script_editor;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(ScriptEditor::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn EditorInterface_get_base_control(obj_ptr: *mut sys::godot_object) -> Option<Control> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInterfaceMethodTable::get(gd_api).get_base_control;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(Control::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn EditorInterface_edit_resource(obj_ptr: *mut sys::godot_object, resource: Option<Resource>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInterfaceMethodTable::get(gd_api).edit_resource;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = resource { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorInterface_open_scene_from_path(obj_ptr: *mut sys::godot_object, scene_filepath: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInterfaceMethodTable::get(gd_api).open_scene_from_path;
let mut argument_buffer : [*const libc::c_void; 1] = [
scene_filepath.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorInterface_reload_scene_from_path(obj_ptr: *mut sys::godot_object, scene_filepath: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInterfaceMethodTable::get(gd_api).reload_scene_from_path;
let mut argument_buffer : [*const libc::c_void; 1] = [
scene_filepath.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorInterface_get_open_scenes(obj_ptr: *mut sys::godot_object) -> VariantArray {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInterfaceMethodTable::get(gd_api).get_open_scenes;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_array::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
VariantArray::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorInterface_get_edited_scene_root(obj_ptr: *mut sys::godot_object) -> Option<Node> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInterfaceMethodTable::get(gd_api).get_edited_scene_root;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(Node::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn EditorInterface_get_resource_previewer(obj_ptr: *mut sys::godot_object) -> Option<EditorResourcePreview> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInterfaceMethodTable::get(gd_api).get_resource_previewer;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(EditorResourcePreview::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn EditorInterface_get_resource_filesystem(obj_ptr: *mut sys::godot_object) -> Option<EditorFileSystem> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInterfaceMethodTable::get(gd_api).get_resource_filesystem;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(EditorFileSystem::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn EditorInterface_get_editor_viewport(obj_ptr: *mut sys::godot_object) -> Option<Control> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInterfaceMethodTable::get(gd_api).get_editor_viewport;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(Control::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn EditorInterface_make_mesh_previews(obj_ptr: *mut sys::godot_object, meshes: VariantArray, preview_size: i64) -> VariantArray {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInterfaceMethodTable::get(gd_api).make_mesh_previews;
let mut argument_buffer : [*const libc::c_void; 2] = [
meshes.sys() as *const _ as *const _,
(&preview_size) as *const _ as *const _,
];
let mut ret = sys::godot_array::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
VariantArray::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorInterface_select_file(obj_ptr: *mut sys::godot_object, p_file: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInterfaceMethodTable::get(gd_api).select_file;
let mut argument_buffer : [*const libc::c_void; 1] = [
p_file.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorInterface_get_selected_path(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInterfaceMethodTable::get(gd_api).get_selected_path;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorInterface_set_plugin_enabled(obj_ptr: *mut sys::godot_object, plugin: GodotString, enabled: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInterfaceMethodTable::get(gd_api).set_plugin_enabled;
let mut argument_buffer : [*const libc::c_void; 2] = [
plugin.sys() as *const _ as *const _,
(&enabled) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorInterface_is_plugin_enabled(obj_ptr: *mut sys::godot_object, plugin: GodotString) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInterfaceMethodTable::get(gd_api).is_plugin_enabled;
let mut argument_buffer : [*const libc::c_void; 1] = [
plugin.sys() as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn EditorInterface_save_scene(obj_ptr: *mut sys::godot_object) -> GodotResult {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInterfaceMethodTable::get(gd_api).save_scene;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: sys::godot_error = sys::godot_error_GODOT_OK;
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
result_from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorInterface_save_scene_as(obj_ptr: *mut sys::godot_object, path: GodotString, with_preview: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInterfaceMethodTable::get(gd_api).save_scene_as;
let mut argument_buffer : [*const libc::c_void; 2] = [
path.sys() as *const _ as *const _,
(&with_preview) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct EditorInspectorPluginMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub can_handle: *mut sys::godot_method_bind,
pub parse_begin: *mut sys::godot_method_bind,
pub parse_category: *mut sys::godot_method_bind,
pub parse_property: *mut sys::godot_method_bind,
pub parse_end: *mut sys::godot_method_bind,
pub add_custom_control: *mut sys::godot_method_bind,
pub add_property_editor: *mut sys::godot_method_bind,
pub add_property_editor_for_multiple_properties: *mut sys::godot_method_bind,
}
impl EditorInspectorPluginMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: EditorInspectorPluginMethodTable = EditorInspectorPluginMethodTable {
class_constructor: None,
can_handle: 0 as *mut sys::godot_method_bind,
parse_begin: 0 as *mut sys::godot_method_bind,
parse_category: 0 as *mut sys::godot_method_bind,
parse_property: 0 as *mut sys::godot_method_bind,
parse_end: 0 as *mut sys::godot_method_bind,
add_custom_control: 0 as *mut sys::godot_method_bind,
add_property_editor: 0 as *mut sys::godot_method_bind,
add_property_editor_for_multiple_properties: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
EditorInspectorPluginMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"EditorInspectorPlugin\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.can_handle = (gd_api.godot_method_bind_get_method)(class_name, "can_handle\0".as_ptr() as *const c_char );
table.parse_begin = (gd_api.godot_method_bind_get_method)(class_name, "parse_begin\0".as_ptr() as *const c_char );
table.parse_category = (gd_api.godot_method_bind_get_method)(class_name, "parse_category\0".as_ptr() as *const c_char );
table.parse_property = (gd_api.godot_method_bind_get_method)(class_name, "parse_property\0".as_ptr() as *const c_char );
table.parse_end = (gd_api.godot_method_bind_get_method)(class_name, "parse_end\0".as_ptr() as *const c_char );
table.add_custom_control = (gd_api.godot_method_bind_get_method)(class_name, "add_custom_control\0".as_ptr() as *const c_char );
table.add_property_editor = (gd_api.godot_method_bind_get_method)(class_name, "add_property_editor\0".as_ptr() as *const c_char );
table.add_property_editor_for_multiple_properties = (gd_api.godot_method_bind_get_method)(class_name, "add_property_editor_for_multiple_properties\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn EditorInspectorPlugin_can_handle(obj_ptr: *mut sys::godot_object, object: Option<Object>) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInspectorPluginMethodTable::get(gd_api).can_handle;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = object { arg.this as *const _ as *const _ } else { ptr::null() },
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn EditorInspectorPlugin_parse_begin(obj_ptr: *mut sys::godot_object, object: Option<Object>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInspectorPluginMethodTable::get(gd_api).parse_begin;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = object { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorInspectorPlugin_parse_category(obj_ptr: *mut sys::godot_object, object: Option<Object>, category: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInspectorPluginMethodTable::get(gd_api).parse_category;
let mut argument_buffer : [*const libc::c_void; 2] = [
if let Some(arg) = object { arg.this as *const _ as *const _ } else { ptr::null() },
category.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorInspectorPlugin_parse_property(obj_ptr: *mut sys::godot_object, object: Option<Object>, _type: i64, path: GodotString, hint: i64, hint_text: GodotString, usage: i64) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInspectorPluginMethodTable::get(gd_api).parse_property;
let mut argument_buffer : [*const libc::c_void; 6] = [
if let Some(arg) = object { arg.this as *const _ as *const _ } else { ptr::null() },
(&_type) as *const _ as *const _,
path.sys() as *const _ as *const _,
(&hint) as *const _ as *const _,
hint_text.sys() as *const _ as *const _,
(&usage) as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn EditorInspectorPlugin_parse_end(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInspectorPluginMethodTable::get(gd_api).parse_end;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorInspectorPlugin_add_custom_control(obj_ptr: *mut sys::godot_object, control: Option<Object>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInspectorPluginMethodTable::get(gd_api).add_custom_control;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = control { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorInspectorPlugin_add_property_editor(obj_ptr: *mut sys::godot_object, property: GodotString, editor: Option<Object>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInspectorPluginMethodTable::get(gd_api).add_property_editor;
let mut argument_buffer : [*const libc::c_void; 2] = [
property.sys() as *const _ as *const _,
if let Some(arg) = editor { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorInspectorPlugin_add_property_editor_for_multiple_properties(obj_ptr: *mut sys::godot_object, label: GodotString, properties: StringArray, editor: Option<Object>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInspectorPluginMethodTable::get(gd_api).add_property_editor_for_multiple_properties;
let mut argument_buffer : [*const libc::c_void; 3] = [
label.sys() as *const _ as *const _,
properties.sys() as *const _ as *const _,
if let Some(arg) = editor { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct EditorPropertyMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub update_property: *mut sys::godot_method_bind,
pub set_label: *mut sys::godot_method_bind,
pub get_label: *mut sys::godot_method_bind,
pub set_read_only: *mut sys::godot_method_bind,
pub is_read_only: *mut sys::godot_method_bind,
pub set_checkable: *mut sys::godot_method_bind,
pub is_checkable: *mut sys::godot_method_bind,
pub set_checked: *mut sys::godot_method_bind,
pub is_checked: *mut sys::godot_method_bind,
pub set_draw_red: *mut sys::godot_method_bind,
pub is_draw_red: *mut sys::godot_method_bind,
pub set_keying: *mut sys::godot_method_bind,
pub is_keying: *mut sys::godot_method_bind,
pub get_edited_property: *mut sys::godot_method_bind,
pub get_edited_object: *mut sys::godot_method_bind,
pub _gui_input: *mut sys::godot_method_bind,
pub _focusable_focused: *mut sys::godot_method_bind,
pub get_tooltip_text: *mut sys::godot_method_bind,
}
impl EditorPropertyMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: EditorPropertyMethodTable = EditorPropertyMethodTable {
class_constructor: None,
update_property: 0 as *mut sys::godot_method_bind,
set_label: 0 as *mut sys::godot_method_bind,
get_label: 0 as *mut sys::godot_method_bind,
set_read_only: 0 as *mut sys::godot_method_bind,
is_read_only: 0 as *mut sys::godot_method_bind,
set_checkable: 0 as *mut sys::godot_method_bind,
is_checkable: 0 as *mut sys::godot_method_bind,
set_checked: 0 as *mut sys::godot_method_bind,
is_checked: 0 as *mut sys::godot_method_bind,
set_draw_red: 0 as *mut sys::godot_method_bind,
is_draw_red: 0 as *mut sys::godot_method_bind,
set_keying: 0 as *mut sys::godot_method_bind,
is_keying: 0 as *mut sys::godot_method_bind,
get_edited_property: 0 as *mut sys::godot_method_bind,
get_edited_object: 0 as *mut sys::godot_method_bind,
_gui_input: 0 as *mut sys::godot_method_bind,
_focusable_focused: 0 as *mut sys::godot_method_bind,
get_tooltip_text: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
EditorPropertyMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"EditorProperty\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.update_property = (gd_api.godot_method_bind_get_method)(class_name, "update_property\0".as_ptr() as *const c_char );
table.set_label = (gd_api.godot_method_bind_get_method)(class_name, "set_label\0".as_ptr() as *const c_char );
table.get_label = (gd_api.godot_method_bind_get_method)(class_name, "get_label\0".as_ptr() as *const c_char );
table.set_read_only = (gd_api.godot_method_bind_get_method)(class_name, "set_read_only\0".as_ptr() as *const c_char );
table.is_read_only = (gd_api.godot_method_bind_get_method)(class_name, "is_read_only\0".as_ptr() as *const c_char );
table.set_checkable = (gd_api.godot_method_bind_get_method)(class_name, "set_checkable\0".as_ptr() as *const c_char );
table.is_checkable = (gd_api.godot_method_bind_get_method)(class_name, "is_checkable\0".as_ptr() as *const c_char );
table.set_checked = (gd_api.godot_method_bind_get_method)(class_name, "set_checked\0".as_ptr() as *const c_char );
table.is_checked = (gd_api.godot_method_bind_get_method)(class_name, "is_checked\0".as_ptr() as *const c_char );
table.set_draw_red = (gd_api.godot_method_bind_get_method)(class_name, "set_draw_red\0".as_ptr() as *const c_char );
table.is_draw_red = (gd_api.godot_method_bind_get_method)(class_name, "is_draw_red\0".as_ptr() as *const c_char );
table.set_keying = (gd_api.godot_method_bind_get_method)(class_name, "set_keying\0".as_ptr() as *const c_char );
table.is_keying = (gd_api.godot_method_bind_get_method)(class_name, "is_keying\0".as_ptr() as *const c_char );
table.get_edited_property = (gd_api.godot_method_bind_get_method)(class_name, "get_edited_property\0".as_ptr() as *const c_char );
table.get_edited_object = (gd_api.godot_method_bind_get_method)(class_name, "get_edited_object\0".as_ptr() as *const c_char );
table._gui_input = (gd_api.godot_method_bind_get_method)(class_name, "_gui_input\0".as_ptr() as *const c_char );
table._focusable_focused = (gd_api.godot_method_bind_get_method)(class_name, "_focusable_focused\0".as_ptr() as *const c_char );
table.get_tooltip_text = (gd_api.godot_method_bind_get_method)(class_name, "get_tooltip_text\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn EditorProperty_update_property(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPropertyMethodTable::get(gd_api).update_property;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorProperty_set_label(obj_ptr: *mut sys::godot_object, text: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPropertyMethodTable::get(gd_api).set_label;
let mut argument_buffer : [*const libc::c_void; 1] = [
text.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorProperty_get_label(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPropertyMethodTable::get(gd_api).get_label;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorProperty_set_read_only(obj_ptr: *mut sys::godot_object, read_only: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPropertyMethodTable::get(gd_api).set_read_only;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&read_only) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorProperty_is_read_only(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPropertyMethodTable::get(gd_api).is_read_only;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn EditorProperty_set_checkable(obj_ptr: *mut sys::godot_object, checkable: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPropertyMethodTable::get(gd_api).set_checkable;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&checkable) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorProperty_is_checkable(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPropertyMethodTable::get(gd_api).is_checkable;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn EditorProperty_set_checked(obj_ptr: *mut sys::godot_object, checked: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPropertyMethodTable::get(gd_api).set_checked;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&checked) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorProperty_is_checked(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPropertyMethodTable::get(gd_api).is_checked;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn EditorProperty_set_draw_red(obj_ptr: *mut sys::godot_object, draw_red: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPropertyMethodTable::get(gd_api).set_draw_red;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&draw_red) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorProperty_is_draw_red(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPropertyMethodTable::get(gd_api).is_draw_red;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn EditorProperty_set_keying(obj_ptr: *mut sys::godot_object, keying: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPropertyMethodTable::get(gd_api).set_keying;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&keying) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorProperty_is_keying(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPropertyMethodTable::get(gd_api).is_keying;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn EditorProperty_get_edited_property(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPropertyMethodTable::get(gd_api).get_edited_property;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorProperty_get_edited_object(obj_ptr: *mut sys::godot_object) -> Option<Object> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPropertyMethodTable::get(gd_api).get_edited_object;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(Object::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn EditorProperty__gui_input(obj_ptr: *mut sys::godot_object, arg0: Option<InputEvent>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPropertyMethodTable::get(gd_api)._gui_input;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = arg0 { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorProperty__focusable_focused(obj_ptr: *mut sys::godot_object, arg0: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPropertyMethodTable::get(gd_api)._focusable_focused;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&arg0) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorProperty_get_tooltip_text(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorPropertyMethodTable::get(gd_api).get_tooltip_text;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct EditorInspectorMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub _property_changed: *mut sys::godot_method_bind,
pub _multiple_properties_changed: *mut sys::godot_method_bind,
pub _property_changed_update_all: *mut sys::godot_method_bind,
pub _edit_request_change: *mut sys::godot_method_bind,
pub _node_removed: *mut sys::godot_method_bind,
pub _filter_changed: *mut sys::godot_method_bind,
pub _property_keyed: *mut sys::godot_method_bind,
pub _property_keyed_with_value: *mut sys::godot_method_bind,
pub _property_checked: *mut sys::godot_method_bind,
pub _property_selected: *mut sys::godot_method_bind,
pub _resource_selected: *mut sys::godot_method_bind,
pub _object_id_selected: *mut sys::godot_method_bind,
pub _vscroll_changed: *mut sys::godot_method_bind,
pub refresh: *mut sys::godot_method_bind,
}
impl EditorInspectorMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: EditorInspectorMethodTable = EditorInspectorMethodTable {
class_constructor: None,
_property_changed: 0 as *mut sys::godot_method_bind,
_multiple_properties_changed: 0 as *mut sys::godot_method_bind,
_property_changed_update_all: 0 as *mut sys::godot_method_bind,
_edit_request_change: 0 as *mut sys::godot_method_bind,
_node_removed: 0 as *mut sys::godot_method_bind,
_filter_changed: 0 as *mut sys::godot_method_bind,
_property_keyed: 0 as *mut sys::godot_method_bind,
_property_keyed_with_value: 0 as *mut sys::godot_method_bind,
_property_checked: 0 as *mut sys::godot_method_bind,
_property_selected: 0 as *mut sys::godot_method_bind,
_resource_selected: 0 as *mut sys::godot_method_bind,
_object_id_selected: 0 as *mut sys::godot_method_bind,
_vscroll_changed: 0 as *mut sys::godot_method_bind,
refresh: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
EditorInspectorMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"EditorInspector\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table._property_changed = (gd_api.godot_method_bind_get_method)(class_name, "_property_changed\0".as_ptr() as *const c_char );
table._multiple_properties_changed = (gd_api.godot_method_bind_get_method)(class_name, "_multiple_properties_changed\0".as_ptr() as *const c_char );
table._property_changed_update_all = (gd_api.godot_method_bind_get_method)(class_name, "_property_changed_update_all\0".as_ptr() as *const c_char );
table._edit_request_change = (gd_api.godot_method_bind_get_method)(class_name, "_edit_request_change\0".as_ptr() as *const c_char );
table._node_removed = (gd_api.godot_method_bind_get_method)(class_name, "_node_removed\0".as_ptr() as *const c_char );
table._filter_changed = (gd_api.godot_method_bind_get_method)(class_name, "_filter_changed\0".as_ptr() as *const c_char );
table._property_keyed = (gd_api.godot_method_bind_get_method)(class_name, "_property_keyed\0".as_ptr() as *const c_char );
table._property_keyed_with_value = (gd_api.godot_method_bind_get_method)(class_name, "_property_keyed_with_value\0".as_ptr() as *const c_char );
table._property_checked = (gd_api.godot_method_bind_get_method)(class_name, "_property_checked\0".as_ptr() as *const c_char );
table._property_selected = (gd_api.godot_method_bind_get_method)(class_name, "_property_selected\0".as_ptr() as *const c_char );
table._resource_selected = (gd_api.godot_method_bind_get_method)(class_name, "_resource_selected\0".as_ptr() as *const c_char );
table._object_id_selected = (gd_api.godot_method_bind_get_method)(class_name, "_object_id_selected\0".as_ptr() as *const c_char );
table._vscroll_changed = (gd_api.godot_method_bind_get_method)(class_name, "_vscroll_changed\0".as_ptr() as *const c_char );
table.refresh = (gd_api.godot_method_bind_get_method)(class_name, "refresh\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn EditorInspector__property_changed(obj_ptr: *mut sys::godot_object, arg0: GodotString, arg1: Variant, arg2: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInspectorMethodTable::get(gd_api)._property_changed;
let mut argument_buffer : [*const libc::c_void; 3] = [
arg0.sys() as *const _ as *const _,
arg1.sys() as *const _ as *const _,
(&arg2) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorInspector__multiple_properties_changed(obj_ptr: *mut sys::godot_object, arg0: StringArray, arg1: VariantArray) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInspectorMethodTable::get(gd_api)._multiple_properties_changed;
let mut argument_buffer : [*const libc::c_void; 2] = [
arg0.sys() as *const _ as *const _,
arg1.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorInspector__property_changed_update_all(obj_ptr: *mut sys::godot_object, arg0: GodotString, arg1: Variant) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInspectorMethodTable::get(gd_api)._property_changed_update_all;
let mut argument_buffer : [*const libc::c_void; 2] = [
arg0.sys() as *const _ as *const _,
arg1.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorInspector__edit_request_change(obj_ptr: *mut sys::godot_object, arg0: Option<Object>, arg1: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInspectorMethodTable::get(gd_api)._edit_request_change;
let mut argument_buffer : [*const libc::c_void; 2] = [
if let Some(arg) = arg0 { arg.this as *const _ as *const _ } else { ptr::null() },
arg1.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorInspector__node_removed(obj_ptr: *mut sys::godot_object, arg0: Option<Object>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInspectorMethodTable::get(gd_api)._node_removed;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = arg0 { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorInspector__filter_changed(obj_ptr: *mut sys::godot_object, arg0: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInspectorMethodTable::get(gd_api)._filter_changed;
let mut argument_buffer : [*const libc::c_void; 1] = [
arg0.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorInspector__property_keyed(obj_ptr: *mut sys::godot_object, arg0: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInspectorMethodTable::get(gd_api)._property_keyed;
let mut argument_buffer : [*const libc::c_void; 1] = [
arg0.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorInspector__property_keyed_with_value(obj_ptr: *mut sys::godot_object, arg0: GodotString, arg1: Variant) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInspectorMethodTable::get(gd_api)._property_keyed_with_value;
let mut argument_buffer : [*const libc::c_void; 2] = [
arg0.sys() as *const _ as *const _,
arg1.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorInspector__property_checked(obj_ptr: *mut sys::godot_object, arg0: GodotString, arg1: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInspectorMethodTable::get(gd_api)._property_checked;
let mut argument_buffer : [*const libc::c_void; 2] = [
arg0.sys() as *const _ as *const _,
(&arg1) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorInspector__property_selected(obj_ptr: *mut sys::godot_object, arg0: GodotString, arg1: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInspectorMethodTable::get(gd_api)._property_selected;
let mut argument_buffer : [*const libc::c_void; 2] = [
arg0.sys() as *const _ as *const _,
(&arg1) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorInspector__resource_selected(obj_ptr: *mut sys::godot_object, arg0: GodotString, arg1: Option<Resource>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInspectorMethodTable::get(gd_api)._resource_selected;
let mut argument_buffer : [*const libc::c_void; 2] = [
arg0.sys() as *const _ as *const _,
if let Some(arg) = arg1 { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorInspector__object_id_selected(obj_ptr: *mut sys::godot_object, arg0: GodotString, arg1: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInspectorMethodTable::get(gd_api)._object_id_selected;
let mut argument_buffer : [*const libc::c_void; 2] = [
arg0.sys() as *const _ as *const _,
(&arg1) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorInspector__vscroll_changed(obj_ptr: *mut sys::godot_object, arg0: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInspectorMethodTable::get(gd_api)._vscroll_changed;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&arg0) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn EditorInspector_refresh(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorInspectorMethodTable::get(gd_api).refresh;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct ScriptCreateDialogMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub _class_name_changed: *mut sys::godot_method_bind,
pub _parent_name_changed: *mut sys::godot_method_bind,
pub _lang_changed: *mut sys::godot_method_bind,
pub _built_in_pressed: *mut sys::godot_method_bind,
pub _browse_path: *mut sys::godot_method_bind,
pub _file_selected: *mut sys::godot_method_bind,
pub _path_changed: *mut sys::godot_method_bind,
pub _path_entered: *mut sys::godot_method_bind,
pub _template_changed: *mut sys::godot_method_bind,
pub config: *mut sys::godot_method_bind,
}
impl ScriptCreateDialogMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: ScriptCreateDialogMethodTable = ScriptCreateDialogMethodTable {
class_constructor: None,
_class_name_changed: 0 as *mut sys::godot_method_bind,
_parent_name_changed: 0 as *mut sys::godot_method_bind,
_lang_changed: 0 as *mut sys::godot_method_bind,
_built_in_pressed: 0 as *mut sys::godot_method_bind,
_browse_path: 0 as *mut sys::godot_method_bind,
_file_selected: 0 as *mut sys::godot_method_bind,
_path_changed: 0 as *mut sys::godot_method_bind,
_path_entered: 0 as *mut sys::godot_method_bind,
_template_changed: 0 as *mut sys::godot_method_bind,
config: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
ScriptCreateDialogMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"ScriptCreateDialog\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table._class_name_changed = (gd_api.godot_method_bind_get_method)(class_name, "_class_name_changed\0".as_ptr() as *const c_char );
table._parent_name_changed = (gd_api.godot_method_bind_get_method)(class_name, "_parent_name_changed\0".as_ptr() as *const c_char );
table._lang_changed = (gd_api.godot_method_bind_get_method)(class_name, "_lang_changed\0".as_ptr() as *const c_char );
table._built_in_pressed = (gd_api.godot_method_bind_get_method)(class_name, "_built_in_pressed\0".as_ptr() as *const c_char );
table._browse_path = (gd_api.godot_method_bind_get_method)(class_name, "_browse_path\0".as_ptr() as *const c_char );
table._file_selected = (gd_api.godot_method_bind_get_method)(class_name, "_file_selected\0".as_ptr() as *const c_char );
table._path_changed = (gd_api.godot_method_bind_get_method)(class_name, "_path_changed\0".as_ptr() as *const c_char );
table._path_entered = (gd_api.godot_method_bind_get_method)(class_name, "_path_entered\0".as_ptr() as *const c_char );
table._template_changed = (gd_api.godot_method_bind_get_method)(class_name, "_template_changed\0".as_ptr() as *const c_char );
table.config = (gd_api.godot_method_bind_get_method)(class_name, "config\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn ScriptCreateDialog__class_name_changed(obj_ptr: *mut sys::godot_object, arg0: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptCreateDialogMethodTable::get(gd_api)._class_name_changed;
let mut argument_buffer : [*const libc::c_void; 1] = [
arg0.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptCreateDialog__parent_name_changed(obj_ptr: *mut sys::godot_object, arg0: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptCreateDialogMethodTable::get(gd_api)._parent_name_changed;
let mut argument_buffer : [*const libc::c_void; 1] = [
arg0.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptCreateDialog__lang_changed(obj_ptr: *mut sys::godot_object, arg0: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptCreateDialogMethodTable::get(gd_api)._lang_changed;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&arg0) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptCreateDialog__built_in_pressed(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptCreateDialogMethodTable::get(gd_api)._built_in_pressed;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptCreateDialog__browse_path(obj_ptr: *mut sys::godot_object, arg0: bool, arg1: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptCreateDialogMethodTable::get(gd_api)._browse_path;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&arg0) as *const _ as *const _,
(&arg1) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptCreateDialog__file_selected(obj_ptr: *mut sys::godot_object, arg0: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptCreateDialogMethodTable::get(gd_api)._file_selected;
let mut argument_buffer : [*const libc::c_void; 1] = [
arg0.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptCreateDialog__path_changed(obj_ptr: *mut sys::godot_object, arg0: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptCreateDialogMethodTable::get(gd_api)._path_changed;
let mut argument_buffer : [*const libc::c_void; 1] = [
arg0.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptCreateDialog__path_entered(obj_ptr: *mut sys::godot_object, arg0: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptCreateDialogMethodTable::get(gd_api)._path_entered;
let mut argument_buffer : [*const libc::c_void; 1] = [
arg0.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptCreateDialog__template_changed(obj_ptr: *mut sys::godot_object, arg0: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptCreateDialogMethodTable::get(gd_api)._template_changed;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&arg0) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn ScriptCreateDialog_config(obj_ptr: *mut sys::godot_object, inherits: GodotString, path: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = ScriptCreateDialogMethodTable::get(gd_api).config;
let mut argument_buffer : [*const libc::c_void; 2] = [
inherits.sys() as *const _ as *const _,
path.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct EditorScenePostImportMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub post_import: *mut sys::godot_method_bind,
pub get_source_folder: *mut sys::godot_method_bind,
pub get_source_file: *mut sys::godot_method_bind,
}
impl EditorScenePostImportMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: EditorScenePostImportMethodTable = EditorScenePostImportMethodTable {
class_constructor: None,
post_import: 0 as *mut sys::godot_method_bind,
get_source_folder: 0 as *mut sys::godot_method_bind,
get_source_file: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
EditorScenePostImportMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"EditorScenePostImport\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.post_import = (gd_api.godot_method_bind_get_method)(class_name, "post_import\0".as_ptr() as *const c_char );
table.get_source_folder = (gd_api.godot_method_bind_get_method)(class_name, "get_source_folder\0".as_ptr() as *const c_char );
table.get_source_file = (gd_api.godot_method_bind_get_method)(class_name, "get_source_file\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn EditorScenePostImport_post_import(obj_ptr: *mut sys::godot_object, scene: Option<Object>) -> Option<Object> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorScenePostImportMethodTable::get(gd_api).post_import;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = scene { arg.this as *const _ as *const _ } else { ptr::null() },
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(Object::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn EditorScenePostImport_get_source_folder(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorScenePostImportMethodTable::get(gd_api).get_source_folder;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn EditorScenePostImport_get_source_file(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = EditorScenePostImportMethodTable::get(gd_api).get_source_file;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}