use std::os::raw::c_char;
use std::ptr;
use std::mem;
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct VisualScript {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VisualScript {
fn class_name() -> &'static str {
"VisualScript"
}
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 VisualScript {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScript {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScript {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn _node_ports_changed(&mut self, arg0: i64) -> () {
unsafe { VisualScript__node_ports_changed(self.this, arg0) }
}
#[inline]
pub fn add_function(&mut self, name: GodotString) -> () {
unsafe { VisualScript_add_function(self.this, name) }
}
#[inline]
pub fn has_function(&self, name: GodotString) -> bool {
unsafe { VisualScript_has_function(self.this, name) }
}
#[inline]
pub fn remove_function(&mut self, name: GodotString) -> () {
unsafe { VisualScript_remove_function(self.this, name) }
}
#[inline]
pub fn rename_function(&mut self, name: GodotString, new_name: GodotString) -> () {
unsafe { VisualScript_rename_function(self.this, name, new_name) }
}
#[inline]
pub fn set_function_scroll(&mut self, name: GodotString, ofs: Vector2) -> () {
unsafe { VisualScript_set_function_scroll(self.this, name, ofs) }
}
#[inline]
pub fn get_function_scroll(&self, name: GodotString) -> Vector2 {
unsafe { VisualScript_get_function_scroll(self.this, name) }
}
#[inline]
pub fn add_node(&mut self, func: GodotString, id: i64, node: Option<VisualScriptNode>, position: Vector2) -> () {
unsafe { VisualScript_add_node(self.this, func, id, node, position) }
}
#[inline]
pub fn remove_node(&mut self, func: GodotString, id: i64) -> () {
unsafe { VisualScript_remove_node(self.this, func, id) }
}
#[inline]
pub fn get_function_node_id(&self, name: GodotString) -> i64 {
unsafe { VisualScript_get_function_node_id(self.this, name) }
}
#[inline]
pub fn get_node(&self, func: GodotString, id: i64) -> Option<VisualScriptNode> {
unsafe { VisualScript_get_node(self.this, func, id) }
}
#[inline]
pub fn has_node(&self, func: GodotString, id: i64) -> bool {
unsafe { VisualScript_has_node(self.this, func, id) }
}
#[inline]
pub fn set_node_position(&mut self, func: GodotString, id: i64, position: Vector2) -> () {
unsafe { VisualScript_set_node_position(self.this, func, id, position) }
}
#[inline]
pub fn get_node_position(&self, func: GodotString, id: i64) -> Vector2 {
unsafe { VisualScript_get_node_position(self.this, func, id) }
}
#[inline]
pub fn sequence_connect(&mut self, func: GodotString, from_node: i64, from_output: i64, to_node: i64) -> () {
unsafe { VisualScript_sequence_connect(self.this, func, from_node, from_output, to_node) }
}
#[inline]
pub fn sequence_disconnect(&mut self, func: GodotString, from_node: i64, from_output: i64, to_node: i64) -> () {
unsafe { VisualScript_sequence_disconnect(self.this, func, from_node, from_output, to_node) }
}
#[inline]
pub fn has_sequence_connection(&self, func: GodotString, from_node: i64, from_output: i64, to_node: i64) -> bool {
unsafe { VisualScript_has_sequence_connection(self.this, func, from_node, from_output, to_node) }
}
#[inline]
pub fn data_connect(&mut self, func: GodotString, from_node: i64, from_port: i64, to_node: i64, to_port: i64) -> () {
unsafe { VisualScript_data_connect(self.this, func, from_node, from_port, to_node, to_port) }
}
#[inline]
pub fn data_disconnect(&mut self, func: GodotString, from_node: i64, from_port: i64, to_node: i64, to_port: i64) -> () {
unsafe { VisualScript_data_disconnect(self.this, func, from_node, from_port, to_node, to_port) }
}
#[inline]
pub fn has_data_connection(&self, func: GodotString, from_node: i64, from_port: i64, to_node: i64, to_port: i64) -> bool {
unsafe { VisualScript_has_data_connection(self.this, func, from_node, from_port, to_node, to_port) }
}
#[inline]
pub fn add_variable(&mut self, name: GodotString, default_value: Variant, export: bool) -> () {
unsafe { VisualScript_add_variable(self.this, name, default_value, export) }
}
#[inline]
pub fn has_variable(&self, name: GodotString) -> bool {
unsafe { VisualScript_has_variable(self.this, name) }
}
#[inline]
pub fn remove_variable(&mut self, name: GodotString) -> () {
unsafe { VisualScript_remove_variable(self.this, name) }
}
#[inline]
pub fn set_variable_default_value(&mut self, name: GodotString, value: Variant) -> () {
unsafe { VisualScript_set_variable_default_value(self.this, name, value) }
}
#[inline]
pub fn get_variable_default_value(&self, name: GodotString) -> Variant {
unsafe { VisualScript_get_variable_default_value(self.this, name) }
}
#[inline]
pub fn set_variable_info(&mut self, name: GodotString, value: Dictionary) -> () {
unsafe { VisualScript_set_variable_info(self.this, name, value) }
}
#[inline]
pub fn get_variable_info(&self, name: GodotString) -> Dictionary {
unsafe { VisualScript_get_variable_info(self.this, name) }
}
#[inline]
pub fn set_variable_export(&mut self, name: GodotString, enable: bool) -> () {
unsafe { VisualScript_set_variable_export(self.this, name, enable) }
}
#[inline]
pub fn get_variable_export(&self, name: GodotString) -> bool {
unsafe { VisualScript_get_variable_export(self.this, name) }
}
#[inline]
pub fn rename_variable(&mut self, name: GodotString, new_name: GodotString) -> () {
unsafe { VisualScript_rename_variable(self.this, name, new_name) }
}
#[inline]
pub fn add_custom_signal(&mut self, name: GodotString) -> () {
unsafe { VisualScript_add_custom_signal(self.this, name) }
}
#[inline]
pub fn has_custom_signal(&self, name: GodotString) -> bool {
unsafe { VisualScript_has_custom_signal(self.this, name) }
}
#[inline]
pub fn custom_signal_add_argument(&mut self, name: GodotString, _type: i64, argname: GodotString, index: i64) -> () {
unsafe { VisualScript_custom_signal_add_argument(self.this, name, _type, argname, index) }
}
#[inline]
pub fn custom_signal_set_argument_type(&mut self, name: GodotString, argidx: i64, _type: i64) -> () {
unsafe { VisualScript_custom_signal_set_argument_type(self.this, name, argidx, _type) }
}
#[inline]
pub fn custom_signal_get_argument_type(&self, name: GodotString, argidx: i64) -> VariantType {
unsafe { VisualScript_custom_signal_get_argument_type(self.this, name, argidx) }
}
#[inline]
pub fn custom_signal_set_argument_name(&mut self, name: GodotString, argidx: i64, argname: GodotString) -> () {
unsafe { VisualScript_custom_signal_set_argument_name(self.this, name, argidx, argname) }
}
#[inline]
pub fn custom_signal_get_argument_name(&self, name: GodotString, argidx: i64) -> GodotString {
unsafe { VisualScript_custom_signal_get_argument_name(self.this, name, argidx) }
}
#[inline]
pub fn custom_signal_remove_argument(&mut self, name: GodotString, argidx: i64) -> () {
unsafe { VisualScript_custom_signal_remove_argument(self.this, name, argidx) }
}
#[inline]
pub fn custom_signal_get_argument_count(&self, name: GodotString) -> i64 {
unsafe { VisualScript_custom_signal_get_argument_count(self.this, name) }
}
#[inline]
pub fn custom_signal_swap_argument(&mut self, name: GodotString, argidx: i64, withidx: i64) -> () {
unsafe { VisualScript_custom_signal_swap_argument(self.this, name, argidx, withidx) }
}
#[inline]
pub fn remove_custom_signal(&mut self, name: GodotString) -> () {
unsafe { VisualScript_remove_custom_signal(self.this, name) }
}
#[inline]
pub fn rename_custom_signal(&mut self, name: GodotString, new_name: GodotString) -> () {
unsafe { VisualScript_rename_custom_signal(self.this, name, new_name) }
}
#[inline]
pub fn set_instance_base_type(&mut self, _type: GodotString) -> () {
unsafe { VisualScript_set_instance_base_type(self.this, _type) }
}
#[inline]
pub fn _set_data(&mut self, data: Dictionary) -> () {
unsafe { VisualScript__set_data(self.this, data) }
}
#[inline]
pub fn _get_data(&self) -> Dictionary {
unsafe { VisualScript__get_data(self.this) }
}
#[inline]
pub fn can_instance(&self) -> bool {
unsafe { Script_can_instance(self.this) }
}
#[inline]
pub fn instance_has(&self, base_object: Option<Object>) -> bool {
unsafe { Script_instance_has(self.this, base_object) }
}
#[inline]
pub fn has_source_code(&self) -> bool {
unsafe { Script_has_source_code(self.this) }
}
#[inline]
pub fn get_source_code(&self) -> GodotString {
unsafe { Script_get_source_code(self.this) }
}
#[inline]
pub fn set_source_code(&mut self, source: GodotString) -> () {
unsafe { Script_set_source_code(self.this, source) }
}
#[inline]
pub fn reload(&mut self, keep_state: bool) -> GodotResult {
unsafe { Script_reload(self.this, keep_state) }
}
#[inline]
pub fn get_base_script(&self) -> Option<Script> {
unsafe { Script_get_base_script(self.this) }
}
#[inline]
pub fn get_instance_base_type(&self) -> GodotString {
unsafe { Script_get_instance_base_type(self.this) }
}
#[inline]
pub fn has_script_signal(&self, signal_name: GodotString) -> bool {
unsafe { Script_has_script_signal(self.this, signal_name) }
}
#[inline]
pub fn is_tool(&self) -> bool {
unsafe { Script_is_tool(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_script(&self) -> Script {
unsafe {{ object::add_ref(self.this); }}
Script { this: 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)
}
}
impl Drop for VisualScript {
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 VisualScriptNode {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VisualScriptNode {
fn class_name() -> &'static str {
"VisualScriptNode"
}
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 VisualScriptNode {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptNode {
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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)
}
}
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct VisualScriptVariableGet {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VisualScriptVariableGet {
fn class_name() -> &'static str {
"VisualScriptVariableGet"
}
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 VisualScriptVariableGet {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptVariableGet {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptVariableGetMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptVariableGet {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_variable(&mut self, name: GodotString) -> () {
unsafe { VisualScriptVariableGet_set_variable(self.this, name) }
}
#[inline]
pub fn get_variable(&self) -> GodotString {
unsafe { VisualScriptVariableGet_get_variable(self.this) }
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptVariableGet {
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 VisualScriptFunction {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VisualScriptFunction {
fn class_name() -> &'static str {
"VisualScriptFunction"
}
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 VisualScriptFunction {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptFunction {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptFunctionMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptFunction {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptFunction {
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 VisualScriptFunctionState {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VisualScriptFunctionState {
fn class_name() -> &'static str {
"VisualScriptFunctionState"
}
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 VisualScriptFunctionState {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptFunctionState {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptFunctionStateMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptFunctionState {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn connect_to_signal(&mut self, obj: Option<Object>, signals: GodotString, args: VariantArray) -> () {
unsafe { VisualScriptFunctionState_connect_to_signal(self.this, obj, signals, args) }
}
#[inline]
pub fn resume(&mut self, args: VariantArray) -> Variant {
unsafe { VisualScriptFunctionState_resume(self.this, args) }
}
#[inline]
pub fn is_valid(&self) -> bool {
unsafe { VisualScriptFunctionState_is_valid(self.this) }
}
#[inline]
pub fn _signal_callback(&mut self, varargs: &[Variant]) -> Variant {
unsafe { VisualScriptFunctionState__signal_callback(self.this, varargs) }
}
#[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 VisualScriptFunctionState {
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 VisualScriptOperator {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VisualScriptOperator {
fn class_name() -> &'static str {
"VisualScriptOperator"
}
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 VisualScriptOperator {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptOperator {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptOperatorMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptOperator {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_operator(&mut self, op: i64) -> () {
unsafe { VisualScriptOperator_set_operator(self.this, op) }
}
#[inline]
pub fn get_operator(&self) -> VariantOperator {
unsafe { VisualScriptOperator_get_operator(self.this) }
}
#[inline]
pub fn set_typed(&mut self, _type: i64) -> () {
unsafe { VisualScriptOperator_set_typed(self.this, _type) }
}
#[inline]
pub fn get_typed(&self) -> VariantType {
unsafe { VisualScriptOperator_get_typed(self.this) }
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptOperator {
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 VisualScriptMathConstant {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum VisualScriptMathConstantMathConstant {
One = 0,
Pi = 1,
HalfPi = 2,
Tau = 3,
E = 4,
Sqrt2 = 5,
Inf = 6,
Nan = 7,
Max = 8,
}
unsafe impl GodotObject for VisualScriptMathConstant {
fn class_name() -> &'static str {
"VisualScriptMathConstant"
}
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 VisualScriptMathConstant {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptMathConstant {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptMathConstantMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptMathConstant {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_math_constant(&mut self, which: i64) -> () {
unsafe { VisualScriptMathConstant_set_math_constant(self.this, which) }
}
#[inline]
pub fn get_math_constant(&mut self) -> VisualScriptMathConstantMathConstant {
unsafe { VisualScriptMathConstant_get_math_constant(self.this) }
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptMathConstant {
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 VisualScriptIndexGet {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VisualScriptIndexGet {
fn class_name() -> &'static str {
"VisualScriptIndexGet"
}
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 VisualScriptIndexGet {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptIndexGet {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptIndexGetMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptIndexGet {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptIndexGet {
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 VisualScriptIndexSet {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VisualScriptIndexSet {
fn class_name() -> &'static str {
"VisualScriptIndexSet"
}
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 VisualScriptIndexSet {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptIndexSet {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptIndexSetMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptIndexSet {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptIndexSet {
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 VisualScriptClassConstant {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VisualScriptClassConstant {
fn class_name() -> &'static str {
"VisualScriptClassConstant"
}
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 VisualScriptClassConstant {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptClassConstant {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptClassConstantMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptClassConstant {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_class_constant(&mut self, name: GodotString) -> () {
unsafe { VisualScriptClassConstant_set_class_constant(self.this, name) }
}
#[inline]
pub fn get_class_constant(&mut self) -> GodotString {
unsafe { VisualScriptClassConstant_get_class_constant(self.this) }
}
#[inline]
pub fn set_base_type(&mut self, name: GodotString) -> () {
unsafe { VisualScriptClassConstant_set_base_type(self.this, name) }
}
#[inline]
pub fn get_base_type(&mut self) -> GodotString {
unsafe { VisualScriptClassConstant_get_base_type(self.this) }
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptClassConstant {
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 VisualScriptGlobalConstant {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VisualScriptGlobalConstant {
fn class_name() -> &'static str {
"VisualScriptGlobalConstant"
}
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 VisualScriptGlobalConstant {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptGlobalConstant {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptGlobalConstantMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptGlobalConstant {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_global_constant(&mut self, index: i64) -> () {
unsafe { VisualScriptGlobalConstant_set_global_constant(self.this, index) }
}
#[inline]
pub fn get_global_constant(&mut self) -> i64 {
unsafe { VisualScriptGlobalConstant_get_global_constant(self.this) }
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptGlobalConstant {
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 VisualScriptVariableSet {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VisualScriptVariableSet {
fn class_name() -> &'static str {
"VisualScriptVariableSet"
}
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 VisualScriptVariableSet {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptVariableSet {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptVariableSetMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptVariableSet {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_variable(&mut self, name: GodotString) -> () {
unsafe { VisualScriptVariableSet_set_variable(self.this, name) }
}
#[inline]
pub fn get_variable(&self) -> GodotString {
unsafe { VisualScriptVariableSet_get_variable(self.this) }
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptVariableSet {
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 VisualScriptConstant {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VisualScriptConstant {
fn class_name() -> &'static str {
"VisualScriptConstant"
}
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 VisualScriptConstant {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptConstant {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptConstantMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptConstant {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_constant_type(&mut self, _type: i64) -> () {
unsafe { VisualScriptConstant_set_constant_type(self.this, _type) }
}
#[inline]
pub fn get_constant_type(&self) -> VariantType {
unsafe { VisualScriptConstant_get_constant_type(self.this) }
}
#[inline]
pub fn set_constant_value(&mut self, value: Variant) -> () {
unsafe { VisualScriptConstant_set_constant_value(self.this, value) }
}
#[inline]
pub fn get_constant_value(&self) -> Variant {
unsafe { VisualScriptConstant_get_constant_value(self.this) }
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptConstant {
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 VisualScriptSubCall {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VisualScriptSubCall {
fn class_name() -> &'static str {
"VisualScriptSubCall"
}
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 VisualScriptSubCall {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptSubCall {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptSubCallMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptSubCall {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn _subcall(&mut self, arguments: Variant) -> Variant {
unsafe { VisualScriptSubCall__subcall(self.this, arguments) }
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptSubCall {
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 VisualScriptConstructor {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VisualScriptConstructor {
fn class_name() -> &'static str {
"VisualScriptConstructor"
}
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 VisualScriptConstructor {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptConstructor {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptConstructorMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptConstructor {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_constructor_type(&mut self, _type: i64) -> () {
unsafe { VisualScriptConstructor_set_constructor_type(self.this, _type) }
}
#[inline]
pub fn get_constructor_type(&self) -> VariantType {
unsafe { VisualScriptConstructor_get_constructor_type(self.this) }
}
#[inline]
pub fn set_constructor(&mut self, constructor: Dictionary) -> () {
unsafe { VisualScriptConstructor_set_constructor(self.this, constructor) }
}
#[inline]
pub fn get_constructor(&self) -> Dictionary {
unsafe { VisualScriptConstructor_get_constructor(self.this) }
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptConstructor {
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 VisualScriptResourcePath {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VisualScriptResourcePath {
fn class_name() -> &'static str {
"VisualScriptResourcePath"
}
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 VisualScriptResourcePath {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptResourcePath {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptResourcePathMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptResourcePath {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_resource_path(&mut self, path: GodotString) -> () {
unsafe { VisualScriptResourcePath_set_resource_path(self.this, path) }
}
#[inline]
pub fn get_resource_path(&mut self) -> GodotString {
unsafe { VisualScriptResourcePath_get_resource_path(self.this) }
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptResourcePath {
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 VisualScriptSceneNode {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VisualScriptSceneNode {
fn class_name() -> &'static str {
"VisualScriptSceneNode"
}
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 VisualScriptSceneNode {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptSceneNode {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptSceneNodeMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptSceneNode {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_node_path(&mut self, path: NodePath) -> () {
unsafe { VisualScriptSceneNode_set_node_path(self.this, path) }
}
#[inline]
pub fn get_node_path(&mut self) -> NodePath {
unsafe { VisualScriptSceneNode_get_node_path(self.this) }
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptSceneNode {
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 VisualScriptCustomNode {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum VisualScriptCustomNodeStartMode {
ModeBeginSequence = 0,
ModeContinueSequence = 1,
ModeResumeYield = 2,
}
unsafe impl GodotObject for VisualScriptCustomNode {
fn class_name() -> &'static str {
"VisualScriptCustomNode"
}
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 VisualScriptCustomNode {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptCustomNode {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptCustomNodeMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptCustomNode {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn _get_output_sequence_port_count(&mut self) -> i64 {
unsafe { VisualScriptCustomNode__get_output_sequence_port_count(self.this) }
}
#[inline]
pub fn _has_input_sequence_port(&mut self) -> bool {
unsafe { VisualScriptCustomNode__has_input_sequence_port(self.this) }
}
#[inline]
pub fn _get_output_sequence_port_text(&mut self, idx: i64) -> GodotString {
unsafe { VisualScriptCustomNode__get_output_sequence_port_text(self.this, idx) }
}
#[inline]
pub fn _get_input_value_port_count(&mut self) -> i64 {
unsafe { VisualScriptCustomNode__get_input_value_port_count(self.this) }
}
#[inline]
pub fn _get_output_value_port_count(&mut self) -> i64 {
unsafe { VisualScriptCustomNode__get_output_value_port_count(self.this) }
}
#[inline]
pub fn _get_input_value_port_type(&mut self, idx: i64) -> i64 {
unsafe { VisualScriptCustomNode__get_input_value_port_type(self.this, idx) }
}
#[inline]
pub fn _get_input_value_port_name(&mut self, idx: i64) -> GodotString {
unsafe { VisualScriptCustomNode__get_input_value_port_name(self.this, idx) }
}
#[inline]
pub fn _get_output_value_port_type(&mut self, idx: i64) -> i64 {
unsafe { VisualScriptCustomNode__get_output_value_port_type(self.this, idx) }
}
#[inline]
pub fn _get_output_value_port_name(&mut self, idx: i64) -> GodotString {
unsafe { VisualScriptCustomNode__get_output_value_port_name(self.this, idx) }
}
#[inline]
pub fn _get_caption(&mut self) -> GodotString {
unsafe { VisualScriptCustomNode__get_caption(self.this) }
}
#[inline]
pub fn _get_text(&mut self) -> GodotString {
unsafe { VisualScriptCustomNode__get_text(self.this) }
}
#[inline]
pub fn _get_category(&mut self) -> GodotString {
unsafe { VisualScriptCustomNode__get_category(self.this) }
}
#[inline]
pub fn _get_working_memory_size(&mut self) -> i64 {
unsafe { VisualScriptCustomNode__get_working_memory_size(self.this) }
}
#[inline]
pub fn _step(&mut self, inputs: VariantArray, outputs: VariantArray, start_mode: i64, working_mem: VariantArray) -> Variant {
unsafe { VisualScriptCustomNode__step(self.this, inputs, outputs, start_mode, working_mem) }
}
#[inline]
pub fn _script_changed(&mut self) -> () {
unsafe { VisualScriptCustomNode__script_changed(self.this) }
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptCustomNode {
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 VisualScriptBasicTypeConstant {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VisualScriptBasicTypeConstant {
fn class_name() -> &'static str {
"VisualScriptBasicTypeConstant"
}
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 VisualScriptBasicTypeConstant {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptBasicTypeConstant {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptBasicTypeConstantMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptBasicTypeConstant {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_basic_type(&mut self, name: i64) -> () {
unsafe { VisualScriptBasicTypeConstant_set_basic_type(self.this, name) }
}
#[inline]
pub fn get_basic_type(&self) -> VariantType {
unsafe { VisualScriptBasicTypeConstant_get_basic_type(self.this) }
}
#[inline]
pub fn set_basic_type_constant(&mut self, name: GodotString) -> () {
unsafe { VisualScriptBasicTypeConstant_set_basic_type_constant(self.this, name) }
}
#[inline]
pub fn get_basic_type_constant(&self) -> GodotString {
unsafe { VisualScriptBasicTypeConstant_get_basic_type_constant(self.this) }
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptBasicTypeConstant {
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 VisualScriptSceneTree {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VisualScriptSceneTree {
fn class_name() -> &'static str {
"VisualScriptSceneTree"
}
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 VisualScriptSceneTree {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptSceneTree {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptSceneTreeMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptSceneTree {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptSceneTree {
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 VisualScriptSelf {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VisualScriptSelf {
fn class_name() -> &'static str {
"VisualScriptSelf"
}
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 VisualScriptSelf {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptSelf {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptSelfMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptSelf {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptSelf {
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 VisualScriptComment {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VisualScriptComment {
fn class_name() -> &'static str {
"VisualScriptComment"
}
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 VisualScriptComment {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptComment {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptCommentMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptComment {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_title(&mut self, title: GodotString) -> () {
unsafe { VisualScriptComment_set_title(self.this, title) }
}
#[inline]
pub fn get_title(&self) -> GodotString {
unsafe { VisualScriptComment_get_title(self.this) }
}
#[inline]
pub fn set_description(&mut self, description: GodotString) -> () {
unsafe { VisualScriptComment_set_description(self.this, description) }
}
#[inline]
pub fn get_description(&self) -> GodotString {
unsafe { VisualScriptComment_get_description(self.this) }
}
#[inline]
pub fn set_size(&mut self, size: Vector2) -> () {
unsafe { VisualScriptComment_set_size(self.this, size) }
}
#[inline]
pub fn get_size(&self) -> Vector2 {
unsafe { VisualScriptComment_get_size(self.this) }
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptComment {
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 VisualScriptEngineSingleton {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VisualScriptEngineSingleton {
fn class_name() -> &'static str {
"VisualScriptEngineSingleton"
}
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 VisualScriptEngineSingleton {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptEngineSingleton {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptEngineSingletonMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptEngineSingleton {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_singleton(&mut self, name: GodotString) -> () {
unsafe { VisualScriptEngineSingleton_set_singleton(self.this, name) }
}
#[inline]
pub fn get_singleton(&mut self) -> GodotString {
unsafe { VisualScriptEngineSingleton_get_singleton(self.this) }
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptEngineSingleton {
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 VisualScriptFunctionCall {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum VisualScriptFunctionCallRPCCallMode {
RpcDisabled = 0,
RpcReliable = 1,
RpcUnreliable = 2,
RpcReliableToId = 3,
RpcUnreliableToId = 4,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum VisualScriptFunctionCallCallMode {
ModeSelf = 0,
ModeNodePath = 1,
ModeInstance = 2,
ModeBasicType = 3,
ModeSingleton = 4,
}
unsafe impl GodotObject for VisualScriptFunctionCall {
fn class_name() -> &'static str {
"VisualScriptFunctionCall"
}
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 VisualScriptFunctionCall {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptFunctionCall {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptFunctionCallMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptFunctionCall {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_base_type(&mut self, base_type: GodotString) -> () {
unsafe { VisualScriptFunctionCall_set_base_type(self.this, base_type) }
}
#[inline]
pub fn get_base_type(&self) -> GodotString {
unsafe { VisualScriptFunctionCall_get_base_type(self.this) }
}
#[inline]
pub fn set_base_script(&mut self, base_script: GodotString) -> () {
unsafe { VisualScriptFunctionCall_set_base_script(self.this, base_script) }
}
#[inline]
pub fn get_base_script(&self) -> GodotString {
unsafe { VisualScriptFunctionCall_get_base_script(self.this) }
}
#[inline]
pub fn set_basic_type(&mut self, basic_type: i64) -> () {
unsafe { VisualScriptFunctionCall_set_basic_type(self.this, basic_type) }
}
#[inline]
pub fn get_basic_type(&self) -> VariantType {
unsafe { VisualScriptFunctionCall_get_basic_type(self.this) }
}
#[inline]
pub fn set_singleton(&mut self, singleton: GodotString) -> () {
unsafe { VisualScriptFunctionCall_set_singleton(self.this, singleton) }
}
#[inline]
pub fn get_singleton(&self) -> GodotString {
unsafe { VisualScriptFunctionCall_get_singleton(self.this) }
}
#[inline]
pub fn set_function(&mut self, function: GodotString) -> () {
unsafe { VisualScriptFunctionCall_set_function(self.this, function) }
}
#[inline]
pub fn get_function(&self) -> GodotString {
unsafe { VisualScriptFunctionCall_get_function(self.this) }
}
#[inline]
pub fn set_call_mode(&mut self, mode: i64) -> () {
unsafe { VisualScriptFunctionCall_set_call_mode(self.this, mode) }
}
#[inline]
pub fn get_call_mode(&self) -> VisualScriptFunctionCallCallMode {
unsafe { VisualScriptFunctionCall_get_call_mode(self.this) }
}
#[inline]
pub fn set_base_path(&mut self, base_path: NodePath) -> () {
unsafe { VisualScriptFunctionCall_set_base_path(self.this, base_path) }
}
#[inline]
pub fn get_base_path(&self) -> NodePath {
unsafe { VisualScriptFunctionCall_get_base_path(self.this) }
}
#[inline]
pub fn set_use_default_args(&mut self, amount: i64) -> () {
unsafe { VisualScriptFunctionCall_set_use_default_args(self.this, amount) }
}
#[inline]
pub fn get_use_default_args(&self) -> i64 {
unsafe { VisualScriptFunctionCall_get_use_default_args(self.this) }
}
#[inline]
pub fn _set_argument_cache(&mut self, argument_cache: Dictionary) -> () {
unsafe { VisualScriptFunctionCall__set_argument_cache(self.this, argument_cache) }
}
#[inline]
pub fn _get_argument_cache(&self) -> Dictionary {
unsafe { VisualScriptFunctionCall__get_argument_cache(self.this) }
}
#[inline]
pub fn set_rpc_call_mode(&mut self, mode: i64) -> () {
unsafe { VisualScriptFunctionCall_set_rpc_call_mode(self.this, mode) }
}
#[inline]
pub fn get_rpc_call_mode(&self) -> VisualScriptFunctionCallRPCCallMode {
unsafe { VisualScriptFunctionCall_get_rpc_call_mode(self.this) }
}
#[inline]
pub fn set_validate(&mut self, enable: bool) -> () {
unsafe { VisualScriptFunctionCall_set_validate(self.this, enable) }
}
#[inline]
pub fn get_validate(&self) -> bool {
unsafe { VisualScriptFunctionCall_get_validate(self.this) }
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptFunctionCall {
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 VisualScriptDeconstruct {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VisualScriptDeconstruct {
fn class_name() -> &'static str {
"VisualScriptDeconstruct"
}
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 VisualScriptDeconstruct {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptDeconstruct {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptDeconstructMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptDeconstruct {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_deconstruct_type(&mut self, _type: i64) -> () {
unsafe { VisualScriptDeconstruct_set_deconstruct_type(self.this, _type) }
}
#[inline]
pub fn get_deconstruct_type(&self) -> VariantType {
unsafe { VisualScriptDeconstruct_get_deconstruct_type(self.this) }
}
#[inline]
pub fn _set_elem_cache(&mut self, _cache: VariantArray) -> () {
unsafe { VisualScriptDeconstruct__set_elem_cache(self.this, _cache) }
}
#[inline]
pub fn _get_elem_cache(&self) -> VariantArray {
unsafe { VisualScriptDeconstruct__get_elem_cache(self.this) }
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptDeconstruct {
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 VisualScriptInputAction {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum VisualScriptInputActionMode {
ModePressed = 0,
ModeReleased = 1,
ModeJustPressed = 2,
ModeJustReleased = 3,
}
unsafe impl GodotObject for VisualScriptInputAction {
fn class_name() -> &'static str {
"VisualScriptInputAction"
}
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 VisualScriptInputAction {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptInputAction {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptInputActionMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptInputAction {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_action_name(&mut self, name: GodotString) -> () {
unsafe { VisualScriptInputAction_set_action_name(self.this, name) }
}
#[inline]
pub fn get_action_name(&self) -> GodotString {
unsafe { VisualScriptInputAction_get_action_name(self.this) }
}
#[inline]
pub fn set_action_mode(&mut self, mode: i64) -> () {
unsafe { VisualScriptInputAction_set_action_mode(self.this, mode) }
}
#[inline]
pub fn get_action_mode(&self) -> VisualScriptInputActionMode {
unsafe { VisualScriptInputAction_get_action_mode(self.this) }
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptInputAction {
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 VisualScriptPreload {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VisualScriptPreload {
fn class_name() -> &'static str {
"VisualScriptPreload"
}
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 VisualScriptPreload {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptPreload {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptPreloadMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptPreload {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_preload(&mut self, resource: Option<Resource>) -> () {
unsafe { VisualScriptPreload_set_preload(self.this, resource) }
}
#[inline]
pub fn get_preload(&self) -> Option<Resource> {
unsafe { VisualScriptPreload_get_preload(self.this) }
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptPreload {
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 VisualScriptTypeCast {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VisualScriptTypeCast {
fn class_name() -> &'static str {
"VisualScriptTypeCast"
}
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 VisualScriptTypeCast {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptTypeCast {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptTypeCastMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptTypeCast {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_base_type(&mut self, _type: GodotString) -> () {
unsafe { VisualScriptTypeCast_set_base_type(self.this, _type) }
}
#[inline]
pub fn get_base_type(&self) -> GodotString {
unsafe { VisualScriptTypeCast_get_base_type(self.this) }
}
#[inline]
pub fn set_base_script(&mut self, path: GodotString) -> () {
unsafe { VisualScriptTypeCast_set_base_script(self.this, path) }
}
#[inline]
pub fn get_base_script(&self) -> GodotString {
unsafe { VisualScriptTypeCast_get_base_script(self.this) }
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptTypeCast {
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 VisualScriptLocalVar {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VisualScriptLocalVar {
fn class_name() -> &'static str {
"VisualScriptLocalVar"
}
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 VisualScriptLocalVar {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptLocalVar {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptLocalVarMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptLocalVar {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_var_name(&mut self, name: GodotString) -> () {
unsafe { VisualScriptLocalVar_set_var_name(self.this, name) }
}
#[inline]
pub fn get_var_name(&self) -> GodotString {
unsafe { VisualScriptLocalVar_get_var_name(self.this) }
}
#[inline]
pub fn set_var_type(&mut self, _type: i64) -> () {
unsafe { VisualScriptLocalVar_set_var_type(self.this, _type) }
}
#[inline]
pub fn get_var_type(&self) -> VariantType {
unsafe { VisualScriptLocalVar_get_var_type(self.this) }
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptLocalVar {
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 VisualScriptLocalVarSet {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VisualScriptLocalVarSet {
fn class_name() -> &'static str {
"VisualScriptLocalVarSet"
}
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 VisualScriptLocalVarSet {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptLocalVarSet {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptLocalVarSetMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptLocalVarSet {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_var_name(&mut self, name: GodotString) -> () {
unsafe { VisualScriptLocalVarSet_set_var_name(self.this, name) }
}
#[inline]
pub fn get_var_name(&self) -> GodotString {
unsafe { VisualScriptLocalVarSet_get_var_name(self.this) }
}
#[inline]
pub fn set_var_type(&mut self, _type: i64) -> () {
unsafe { VisualScriptLocalVarSet_set_var_type(self.this, _type) }
}
#[inline]
pub fn get_var_type(&self) -> VariantType {
unsafe { VisualScriptLocalVarSet_get_var_type(self.this) }
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptLocalVarSet {
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 VisualScriptPropertySet {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum VisualScriptPropertySetAssignOp {
None = 0,
Add = 1,
Sub = 2,
Mul = 3,
Div = 4,
Mod = 5,
ShiftLeft = 6,
ShiftRight = 7,
BitAnd = 8,
BitOr = 9,
BitXor = 10,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum VisualScriptPropertySetCallMode {
ModeSelf = 0,
ModeNodePath = 1,
ModeInstance = 2,
ModeBasicType = 3,
}
unsafe impl GodotObject for VisualScriptPropertySet {
fn class_name() -> &'static str {
"VisualScriptPropertySet"
}
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 VisualScriptPropertySet {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptPropertySet {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptPropertySetMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptPropertySet {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_base_type(&mut self, base_type: GodotString) -> () {
unsafe { VisualScriptPropertySet_set_base_type(self.this, base_type) }
}
#[inline]
pub fn get_base_type(&self) -> GodotString {
unsafe { VisualScriptPropertySet_get_base_type(self.this) }
}
#[inline]
pub fn set_base_script(&mut self, base_script: GodotString) -> () {
unsafe { VisualScriptPropertySet_set_base_script(self.this, base_script) }
}
#[inline]
pub fn get_base_script(&self) -> GodotString {
unsafe { VisualScriptPropertySet_get_base_script(self.this) }
}
#[inline]
pub fn set_basic_type(&mut self, basic_type: i64) -> () {
unsafe { VisualScriptPropertySet_set_basic_type(self.this, basic_type) }
}
#[inline]
pub fn get_basic_type(&self) -> VariantType {
unsafe { VisualScriptPropertySet_get_basic_type(self.this) }
}
#[inline]
pub fn _set_type_cache(&mut self, type_cache: Dictionary) -> () {
unsafe { VisualScriptPropertySet__set_type_cache(self.this, type_cache) }
}
#[inline]
pub fn _get_type_cache(&self) -> Dictionary {
unsafe { VisualScriptPropertySet__get_type_cache(self.this) }
}
#[inline]
pub fn set_property(&mut self, property: GodotString) -> () {
unsafe { VisualScriptPropertySet_set_property(self.this, property) }
}
#[inline]
pub fn get_property(&self) -> GodotString {
unsafe { VisualScriptPropertySet_get_property(self.this) }
}
#[inline]
pub fn set_call_mode(&mut self, mode: i64) -> () {
unsafe { VisualScriptPropertySet_set_call_mode(self.this, mode) }
}
#[inline]
pub fn get_call_mode(&self) -> VisualScriptPropertySetCallMode {
unsafe { VisualScriptPropertySet_get_call_mode(self.this) }
}
#[inline]
pub fn set_base_path(&mut self, base_path: NodePath) -> () {
unsafe { VisualScriptPropertySet_set_base_path(self.this, base_path) }
}
#[inline]
pub fn get_base_path(&self) -> NodePath {
unsafe { VisualScriptPropertySet_get_base_path(self.this) }
}
#[inline]
pub fn set_index(&mut self, index: GodotString) -> () {
unsafe { VisualScriptPropertySet_set_index(self.this, index) }
}
#[inline]
pub fn get_index(&self) -> GodotString {
unsafe { VisualScriptPropertySet_get_index(self.this) }
}
#[inline]
pub fn set_assign_op(&mut self, assign_op: i64) -> () {
unsafe { VisualScriptPropertySet_set_assign_op(self.this, assign_op) }
}
#[inline]
pub fn get_assign_op(&self) -> VisualScriptPropertySetAssignOp {
unsafe { VisualScriptPropertySet_get_assign_op(self.this) }
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptPropertySet {
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 VisualScriptCondition {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VisualScriptCondition {
fn class_name() -> &'static str {
"VisualScriptCondition"
}
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 VisualScriptCondition {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptCondition {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptConditionMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptCondition {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptCondition {
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 VisualScriptEmitSignal {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VisualScriptEmitSignal {
fn class_name() -> &'static str {
"VisualScriptEmitSignal"
}
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 VisualScriptEmitSignal {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptEmitSignal {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptEmitSignalMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptEmitSignal {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_signal(&mut self, name: GodotString) -> () {
unsafe { VisualScriptEmitSignal_set_signal(self.this, name) }
}
#[inline]
pub fn get_signal(&self) -> GodotString {
unsafe { VisualScriptEmitSignal_get_signal(self.this) }
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptEmitSignal {
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 VisualScriptIterator {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VisualScriptIterator {
fn class_name() -> &'static str {
"VisualScriptIterator"
}
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 VisualScriptIterator {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptIterator {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptIteratorMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptIterator {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptIterator {
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 VisualScriptPropertyGet {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum VisualScriptPropertyGetCallMode {
ModeSelf = 0,
ModeNodePath = 1,
ModeInstance = 2,
}
unsafe impl GodotObject for VisualScriptPropertyGet {
fn class_name() -> &'static str {
"VisualScriptPropertyGet"
}
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 VisualScriptPropertyGet {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptPropertyGet {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptPropertyGetMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptPropertyGet {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_base_type(&mut self, base_type: GodotString) -> () {
unsafe { VisualScriptPropertyGet_set_base_type(self.this, base_type) }
}
#[inline]
pub fn get_base_type(&self) -> GodotString {
unsafe { VisualScriptPropertyGet_get_base_type(self.this) }
}
#[inline]
pub fn set_base_script(&mut self, base_script: GodotString) -> () {
unsafe { VisualScriptPropertyGet_set_base_script(self.this, base_script) }
}
#[inline]
pub fn get_base_script(&self) -> GodotString {
unsafe { VisualScriptPropertyGet_get_base_script(self.this) }
}
#[inline]
pub fn set_basic_type(&mut self, basic_type: i64) -> () {
unsafe { VisualScriptPropertyGet_set_basic_type(self.this, basic_type) }
}
#[inline]
pub fn get_basic_type(&self) -> VariantType {
unsafe { VisualScriptPropertyGet_get_basic_type(self.this) }
}
#[inline]
pub fn _set_type_cache(&mut self, type_cache: i64) -> () {
unsafe { VisualScriptPropertyGet__set_type_cache(self.this, type_cache) }
}
#[inline]
pub fn _get_type_cache(&self) -> VariantType {
unsafe { VisualScriptPropertyGet__get_type_cache(self.this) }
}
#[inline]
pub fn set_property(&mut self, property: GodotString) -> () {
unsafe { VisualScriptPropertyGet_set_property(self.this, property) }
}
#[inline]
pub fn get_property(&self) -> GodotString {
unsafe { VisualScriptPropertyGet_get_property(self.this) }
}
#[inline]
pub fn set_call_mode(&mut self, mode: i64) -> () {
unsafe { VisualScriptPropertyGet_set_call_mode(self.this, mode) }
}
#[inline]
pub fn get_call_mode(&self) -> VisualScriptPropertyGetCallMode {
unsafe { VisualScriptPropertyGet_get_call_mode(self.this) }
}
#[inline]
pub fn set_base_path(&mut self, base_path: NodePath) -> () {
unsafe { VisualScriptPropertyGet_set_base_path(self.this, base_path) }
}
#[inline]
pub fn get_base_path(&self) -> NodePath {
unsafe { VisualScriptPropertyGet_get_base_path(self.this) }
}
#[inline]
pub fn set_index(&mut self, index: GodotString) -> () {
unsafe { VisualScriptPropertyGet_set_index(self.this, index) }
}
#[inline]
pub fn get_index(&self) -> GodotString {
unsafe { VisualScriptPropertyGet_get_index(self.this) }
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptPropertyGet {
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 VisualScriptReturn {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VisualScriptReturn {
fn class_name() -> &'static str {
"VisualScriptReturn"
}
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 VisualScriptReturn {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptReturn {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptReturnMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptReturn {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_return_type(&mut self, _type: i64) -> () {
unsafe { VisualScriptReturn_set_return_type(self.this, _type) }
}
#[inline]
pub fn get_return_type(&self) -> VariantType {
unsafe { VisualScriptReturn_get_return_type(self.this) }
}
#[inline]
pub fn set_enable_return_value(&mut self, enable: bool) -> () {
unsafe { VisualScriptReturn_set_enable_return_value(self.this, enable) }
}
#[inline]
pub fn is_return_value_enabled(&self) -> bool {
unsafe { VisualScriptReturn_is_return_value_enabled(self.this) }
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptReturn {
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 VisualScriptWhile {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VisualScriptWhile {
fn class_name() -> &'static str {
"VisualScriptWhile"
}
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 VisualScriptWhile {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptWhile {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptWhileMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptWhile {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptWhile {
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 VisualScriptYield {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum VisualScriptYieldYieldMode {
Frame = 1,
PhysicsFrame = 2,
Wait = 3,
}
unsafe impl GodotObject for VisualScriptYield {
fn class_name() -> &'static str {
"VisualScriptYield"
}
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 VisualScriptYield {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptYield {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptYieldMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptYield {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_yield_mode(&mut self, mode: i64) -> () {
unsafe { VisualScriptYield_set_yield_mode(self.this, mode) }
}
#[inline]
pub fn get_yield_mode(&mut self) -> VisualScriptYieldYieldMode {
unsafe { VisualScriptYield_get_yield_mode(self.this) }
}
#[inline]
pub fn set_wait_time(&mut self, sec: f64) -> () {
unsafe { VisualScriptYield_set_wait_time(self.this, sec) }
}
#[inline]
pub fn get_wait_time(&mut self) -> f64 {
unsafe { VisualScriptYield_get_wait_time(self.this) }
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptYield {
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 VisualScriptSequence {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VisualScriptSequence {
fn class_name() -> &'static str {
"VisualScriptSequence"
}
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 VisualScriptSequence {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptSequence {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptSequenceMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptSequence {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_steps(&mut self, steps: i64) -> () {
unsafe { VisualScriptSequence_set_steps(self.this, steps) }
}
#[inline]
pub fn get_steps(&self) -> i64 {
unsafe { VisualScriptSequence_get_steps(self.this) }
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptSequence {
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 VisualScriptSwitch {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VisualScriptSwitch {
fn class_name() -> &'static str {
"VisualScriptSwitch"
}
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 VisualScriptSwitch {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptSwitch {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptSwitchMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptSwitch {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptSwitch {
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 VisualScriptYieldSignal {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum VisualScriptYieldSignalCallMode {
ModeSelf = 0,
ModeNodePath = 1,
ModeInstance = 2,
}
unsafe impl GodotObject for VisualScriptYieldSignal {
fn class_name() -> &'static str {
"VisualScriptYieldSignal"
}
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 VisualScriptYieldSignal {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptYieldSignal {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptYieldSignalMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptYieldSignal {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_base_type(&mut self, base_type: GodotString) -> () {
unsafe { VisualScriptYieldSignal_set_base_type(self.this, base_type) }
}
#[inline]
pub fn get_base_type(&self) -> GodotString {
unsafe { VisualScriptYieldSignal_get_base_type(self.this) }
}
#[inline]
pub fn set_signal(&mut self, signal: GodotString) -> () {
unsafe { VisualScriptYieldSignal_set_signal(self.this, signal) }
}
#[inline]
pub fn get_signal(&self) -> GodotString {
unsafe { VisualScriptYieldSignal_get_signal(self.this) }
}
#[inline]
pub fn set_call_mode(&mut self, mode: i64) -> () {
unsafe { VisualScriptYieldSignal_set_call_mode(self.this, mode) }
}
#[inline]
pub fn get_call_mode(&self) -> VisualScriptYieldSignalCallMode {
unsafe { VisualScriptYieldSignal_get_call_mode(self.this) }
}
#[inline]
pub fn set_base_path(&mut self, base_path: NodePath) -> () {
unsafe { VisualScriptYieldSignal_set_base_path(self.this, base_path) }
}
#[inline]
pub fn get_base_path(&self) -> NodePath {
unsafe { VisualScriptYieldSignal_get_base_path(self.this) }
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptYieldSignal {
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 VisualScriptBuiltinFunc {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum VisualScriptBuiltinFuncBuiltinFunc {
MathSin = 0,
MathCos = 1,
MathTan = 2,
MathSinh = 3,
MathCosh = 4,
MathTanh = 5,
MathAsin = 6,
MathAcos = 7,
MathAtan = 8,
MathAtan2 = 9,
MathSqrt = 10,
MathFmod = 11,
MathFposmod = 12,
MathFloor = 13,
MathCeil = 14,
MathRound = 15,
MathAbs = 16,
MathSign = 17,
MathPow = 18,
MathLog = 19,
MathExp = 20,
MathIsnan = 21,
MathIsinf = 22,
MathEase = 23,
MathDecimals = 24,
MathStepify = 25,
MathLerp = 26,
MathInverseLerp = 27,
MathRangeLerp = 28,
MathDectime = 29,
MathRandomize = 30,
MathRand = 31,
MathRandf = 32,
MathRandom = 33,
MathSeed = 34,
MathRandseed = 35,
MathDeg2rad = 36,
MathRad2deg = 37,
MathLinear2db = 38,
MathDb2linear = 39,
MathPolar2cartesian = 40,
MathCartesian2polar = 41,
MathWrap = 42,
MathWrapf = 43,
LogicMax = 44,
LogicMin = 45,
LogicClamp = 46,
LogicNearestPo2 = 47,
ObjWeakref = 48,
FuncFuncref = 49,
TypeConvert = 50,
TypeOf = 51,
TypeExists = 52,
TextChar = 53,
TextStr = 54,
TextPrint = 55,
TextPrinterr = 56,
TextPrintraw = 57,
VarToStr = 58,
StrToVar = 59,
VarToBytes = 60,
BytesToVar = 61,
Colorn = 62,
FuncMax = 63,
}
unsafe impl GodotObject for VisualScriptBuiltinFunc {
fn class_name() -> &'static str {
"VisualScriptBuiltinFunc"
}
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 VisualScriptBuiltinFunc {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptBuiltinFunc {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptBuiltinFuncMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptBuiltinFunc {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_func(&mut self, which: i64) -> () {
unsafe { VisualScriptBuiltinFunc_set_func(self.this, which) }
}
#[inline]
pub fn get_func(&mut self) -> VisualScriptBuiltinFuncBuiltinFunc {
unsafe { VisualScriptBuiltinFunc_get_func(self.this) }
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptBuiltinFunc {
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 VisualScriptSelect {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VisualScriptSelect {
fn class_name() -> &'static str {
"VisualScriptSelect"
}
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 VisualScriptSelect {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptSelect {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptSelectMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptSelect {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_typed(&mut self, _type: i64) -> () {
unsafe { VisualScriptSelect_set_typed(self.this, _type) }
}
#[inline]
pub fn get_typed(&self) -> VariantType {
unsafe { VisualScriptSelect_get_typed(self.this) }
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptSelect {
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 VisualScriptExpression {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VisualScriptExpression {
fn class_name() -> &'static str {
"VisualScriptExpression"
}
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 VisualScriptExpression {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptExpression {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VisualScriptExpressionMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VisualScriptExpression {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn get_visual_script(&self) -> Option<VisualScript> {
unsafe { VisualScriptNode_get_visual_script(self.this) }
}
#[inline]
pub fn set_default_input_value(&mut self, port_idx: i64, value: Variant) -> () {
unsafe { VisualScriptNode_set_default_input_value(self.this, port_idx, value) }
}
#[inline]
pub fn get_default_input_value(&self, port_idx: i64) -> Variant {
unsafe { VisualScriptNode_get_default_input_value(self.this, port_idx) }
}
#[inline]
pub fn ports_changed_notify(&mut self) -> () {
unsafe { VisualScriptNode_ports_changed_notify(self.this) }
}
#[inline]
pub fn _set_default_input_values(&mut self, values: VariantArray) -> () {
unsafe { VisualScriptNode__set_default_input_values(self.this, values) }
}
#[inline]
pub fn _get_default_input_values(&self) -> VariantArray {
unsafe { VisualScriptNode__get_default_input_values(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_visual_script_node(&self) -> VisualScriptNode {
unsafe {{ object::add_ref(self.this); }}
VisualScriptNode { this: 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)
}
}
impl Drop for VisualScriptExpression {
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 VisualScriptEditor {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VisualScriptEditor {
fn class_name() -> &'static str {
"VisualScriptEditor"
}
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 VisualScriptEditor {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VisualScriptEditor {
#[inline]
pub fn godot_singleton() -> Self {
unsafe {
let this = (get_api().godot_global_get_singleton)(b"VisualScriptEditor\0".as_ptr() as *mut _);
VisualScriptEditor {
this
}
}
}
#[inline]
pub fn add_custom_node(&mut self, name: GodotString, category: GodotString, script: Option<Script>) -> () {
unsafe { VisualScriptEditor_add_custom_node(self.this, name, category, script) }
}
#[inline]
pub fn remove_custom_node(&mut self, name: GodotString, category: GodotString) -> () {
unsafe { VisualScriptEditor_remove_custom_node(self.this, name, category) }
}
#[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_object(&self) -> Object {
Object { this: self.this }
}
pub fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct VisualScriptMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub _node_ports_changed: *mut sys::godot_method_bind,
pub add_function: *mut sys::godot_method_bind,
pub has_function: *mut sys::godot_method_bind,
pub remove_function: *mut sys::godot_method_bind,
pub rename_function: *mut sys::godot_method_bind,
pub set_function_scroll: *mut sys::godot_method_bind,
pub get_function_scroll: *mut sys::godot_method_bind,
pub add_node: *mut sys::godot_method_bind,
pub remove_node: *mut sys::godot_method_bind,
pub get_function_node_id: *mut sys::godot_method_bind,
pub get_node: *mut sys::godot_method_bind,
pub has_node: *mut sys::godot_method_bind,
pub set_node_position: *mut sys::godot_method_bind,
pub get_node_position: *mut sys::godot_method_bind,
pub sequence_connect: *mut sys::godot_method_bind,
pub sequence_disconnect: *mut sys::godot_method_bind,
pub has_sequence_connection: *mut sys::godot_method_bind,
pub data_connect: *mut sys::godot_method_bind,
pub data_disconnect: *mut sys::godot_method_bind,
pub has_data_connection: *mut sys::godot_method_bind,
pub add_variable: *mut sys::godot_method_bind,
pub has_variable: *mut sys::godot_method_bind,
pub remove_variable: *mut sys::godot_method_bind,
pub set_variable_default_value: *mut sys::godot_method_bind,
pub get_variable_default_value: *mut sys::godot_method_bind,
pub set_variable_info: *mut sys::godot_method_bind,
pub get_variable_info: *mut sys::godot_method_bind,
pub set_variable_export: *mut sys::godot_method_bind,
pub get_variable_export: *mut sys::godot_method_bind,
pub rename_variable: *mut sys::godot_method_bind,
pub add_custom_signal: *mut sys::godot_method_bind,
pub has_custom_signal: *mut sys::godot_method_bind,
pub custom_signal_add_argument: *mut sys::godot_method_bind,
pub custom_signal_set_argument_type: *mut sys::godot_method_bind,
pub custom_signal_get_argument_type: *mut sys::godot_method_bind,
pub custom_signal_set_argument_name: *mut sys::godot_method_bind,
pub custom_signal_get_argument_name: *mut sys::godot_method_bind,
pub custom_signal_remove_argument: *mut sys::godot_method_bind,
pub custom_signal_get_argument_count: *mut sys::godot_method_bind,
pub custom_signal_swap_argument: *mut sys::godot_method_bind,
pub remove_custom_signal: *mut sys::godot_method_bind,
pub rename_custom_signal: *mut sys::godot_method_bind,
pub set_instance_base_type: *mut sys::godot_method_bind,
pub _set_data: *mut sys::godot_method_bind,
pub _get_data: *mut sys::godot_method_bind,
}
impl VisualScriptMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptMethodTable = VisualScriptMethodTable {
class_constructor: None,
_node_ports_changed: 0 as *mut sys::godot_method_bind,
add_function: 0 as *mut sys::godot_method_bind,
has_function: 0 as *mut sys::godot_method_bind,
remove_function: 0 as *mut sys::godot_method_bind,
rename_function: 0 as *mut sys::godot_method_bind,
set_function_scroll: 0 as *mut sys::godot_method_bind,
get_function_scroll: 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_function_node_id: 0 as *mut sys::godot_method_bind,
get_node: 0 as *mut sys::godot_method_bind,
has_node: 0 as *mut sys::godot_method_bind,
set_node_position: 0 as *mut sys::godot_method_bind,
get_node_position: 0 as *mut sys::godot_method_bind,
sequence_connect: 0 as *mut sys::godot_method_bind,
sequence_disconnect: 0 as *mut sys::godot_method_bind,
has_sequence_connection: 0 as *mut sys::godot_method_bind,
data_connect: 0 as *mut sys::godot_method_bind,
data_disconnect: 0 as *mut sys::godot_method_bind,
has_data_connection: 0 as *mut sys::godot_method_bind,
add_variable: 0 as *mut sys::godot_method_bind,
has_variable: 0 as *mut sys::godot_method_bind,
remove_variable: 0 as *mut sys::godot_method_bind,
set_variable_default_value: 0 as *mut sys::godot_method_bind,
get_variable_default_value: 0 as *mut sys::godot_method_bind,
set_variable_info: 0 as *mut sys::godot_method_bind,
get_variable_info: 0 as *mut sys::godot_method_bind,
set_variable_export: 0 as *mut sys::godot_method_bind,
get_variable_export: 0 as *mut sys::godot_method_bind,
rename_variable: 0 as *mut sys::godot_method_bind,
add_custom_signal: 0 as *mut sys::godot_method_bind,
has_custom_signal: 0 as *mut sys::godot_method_bind,
custom_signal_add_argument: 0 as *mut sys::godot_method_bind,
custom_signal_set_argument_type: 0 as *mut sys::godot_method_bind,
custom_signal_get_argument_type: 0 as *mut sys::godot_method_bind,
custom_signal_set_argument_name: 0 as *mut sys::godot_method_bind,
custom_signal_get_argument_name: 0 as *mut sys::godot_method_bind,
custom_signal_remove_argument: 0 as *mut sys::godot_method_bind,
custom_signal_get_argument_count: 0 as *mut sys::godot_method_bind,
custom_signal_swap_argument: 0 as *mut sys::godot_method_bind,
remove_custom_signal: 0 as *mut sys::godot_method_bind,
rename_custom_signal: 0 as *mut sys::godot_method_bind,
set_instance_base_type: 0 as *mut sys::godot_method_bind,
_set_data: 0 as *mut sys::godot_method_bind,
_get_data: 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(|| {
VisualScriptMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScript\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table._node_ports_changed = (gd_api.godot_method_bind_get_method)(class_name, "_node_ports_changed\0".as_ptr() as *const c_char );
table.add_function = (gd_api.godot_method_bind_get_method)(class_name, "add_function\0".as_ptr() as *const c_char );
table.has_function = (gd_api.godot_method_bind_get_method)(class_name, "has_function\0".as_ptr() as *const c_char );
table.remove_function = (gd_api.godot_method_bind_get_method)(class_name, "remove_function\0".as_ptr() as *const c_char );
table.rename_function = (gd_api.godot_method_bind_get_method)(class_name, "rename_function\0".as_ptr() as *const c_char );
table.set_function_scroll = (gd_api.godot_method_bind_get_method)(class_name, "set_function_scroll\0".as_ptr() as *const c_char );
table.get_function_scroll = (gd_api.godot_method_bind_get_method)(class_name, "get_function_scroll\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_function_node_id = (gd_api.godot_method_bind_get_method)(class_name, "get_function_node_id\0".as_ptr() as *const c_char );
table.get_node = (gd_api.godot_method_bind_get_method)(class_name, "get_node\0".as_ptr() as *const c_char );
table.has_node = (gd_api.godot_method_bind_get_method)(class_name, "has_node\0".as_ptr() as *const c_char );
table.set_node_position = (gd_api.godot_method_bind_get_method)(class_name, "set_node_position\0".as_ptr() as *const c_char );
table.get_node_position = (gd_api.godot_method_bind_get_method)(class_name, "get_node_position\0".as_ptr() as *const c_char );
table.sequence_connect = (gd_api.godot_method_bind_get_method)(class_name, "sequence_connect\0".as_ptr() as *const c_char );
table.sequence_disconnect = (gd_api.godot_method_bind_get_method)(class_name, "sequence_disconnect\0".as_ptr() as *const c_char );
table.has_sequence_connection = (gd_api.godot_method_bind_get_method)(class_name, "has_sequence_connection\0".as_ptr() as *const c_char );
table.data_connect = (gd_api.godot_method_bind_get_method)(class_name, "data_connect\0".as_ptr() as *const c_char );
table.data_disconnect = (gd_api.godot_method_bind_get_method)(class_name, "data_disconnect\0".as_ptr() as *const c_char );
table.has_data_connection = (gd_api.godot_method_bind_get_method)(class_name, "has_data_connection\0".as_ptr() as *const c_char );
table.add_variable = (gd_api.godot_method_bind_get_method)(class_name, "add_variable\0".as_ptr() as *const c_char );
table.has_variable = (gd_api.godot_method_bind_get_method)(class_name, "has_variable\0".as_ptr() as *const c_char );
table.remove_variable = (gd_api.godot_method_bind_get_method)(class_name, "remove_variable\0".as_ptr() as *const c_char );
table.set_variable_default_value = (gd_api.godot_method_bind_get_method)(class_name, "set_variable_default_value\0".as_ptr() as *const c_char );
table.get_variable_default_value = (gd_api.godot_method_bind_get_method)(class_name, "get_variable_default_value\0".as_ptr() as *const c_char );
table.set_variable_info = (gd_api.godot_method_bind_get_method)(class_name, "set_variable_info\0".as_ptr() as *const c_char );
table.get_variable_info = (gd_api.godot_method_bind_get_method)(class_name, "get_variable_info\0".as_ptr() as *const c_char );
table.set_variable_export = (gd_api.godot_method_bind_get_method)(class_name, "set_variable_export\0".as_ptr() as *const c_char );
table.get_variable_export = (gd_api.godot_method_bind_get_method)(class_name, "get_variable_export\0".as_ptr() as *const c_char );
table.rename_variable = (gd_api.godot_method_bind_get_method)(class_name, "rename_variable\0".as_ptr() as *const c_char );
table.add_custom_signal = (gd_api.godot_method_bind_get_method)(class_name, "add_custom_signal\0".as_ptr() as *const c_char );
table.has_custom_signal = (gd_api.godot_method_bind_get_method)(class_name, "has_custom_signal\0".as_ptr() as *const c_char );
table.custom_signal_add_argument = (gd_api.godot_method_bind_get_method)(class_name, "custom_signal_add_argument\0".as_ptr() as *const c_char );
table.custom_signal_set_argument_type = (gd_api.godot_method_bind_get_method)(class_name, "custom_signal_set_argument_type\0".as_ptr() as *const c_char );
table.custom_signal_get_argument_type = (gd_api.godot_method_bind_get_method)(class_name, "custom_signal_get_argument_type\0".as_ptr() as *const c_char );
table.custom_signal_set_argument_name = (gd_api.godot_method_bind_get_method)(class_name, "custom_signal_set_argument_name\0".as_ptr() as *const c_char );
table.custom_signal_get_argument_name = (gd_api.godot_method_bind_get_method)(class_name, "custom_signal_get_argument_name\0".as_ptr() as *const c_char );
table.custom_signal_remove_argument = (gd_api.godot_method_bind_get_method)(class_name, "custom_signal_remove_argument\0".as_ptr() as *const c_char );
table.custom_signal_get_argument_count = (gd_api.godot_method_bind_get_method)(class_name, "custom_signal_get_argument_count\0".as_ptr() as *const c_char );
table.custom_signal_swap_argument = (gd_api.godot_method_bind_get_method)(class_name, "custom_signal_swap_argument\0".as_ptr() as *const c_char );
table.remove_custom_signal = (gd_api.godot_method_bind_get_method)(class_name, "remove_custom_signal\0".as_ptr() as *const c_char );
table.rename_custom_signal = (gd_api.godot_method_bind_get_method)(class_name, "rename_custom_signal\0".as_ptr() as *const c_char );
table.set_instance_base_type = (gd_api.godot_method_bind_get_method)(class_name, "set_instance_base_type\0".as_ptr() as *const c_char );
table._set_data = (gd_api.godot_method_bind_get_method)(class_name, "_set_data\0".as_ptr() as *const c_char );
table._get_data = (gd_api.godot_method_bind_get_method)(class_name, "_get_data\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn VisualScript__node_ports_changed(obj_ptr: *mut sys::godot_object, arg0: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api)._node_ports_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 VisualScript_add_function(obj_ptr: *mut sys::godot_object, name: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).add_function;
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 VisualScript_has_function(obj_ptr: *mut sys::godot_object, name: GodotString) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).has_function;
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 VisualScript_remove_function(obj_ptr: *mut sys::godot_object, name: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).remove_function;
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 VisualScript_rename_function(obj_ptr: *mut sys::godot_object, name: GodotString, new_name: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).rename_function;
let mut argument_buffer : [*const libc::c_void; 2] = [
name.sys() as *const _ as *const _,
new_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 VisualScript_set_function_scroll(obj_ptr: *mut sys::godot_object, name: GodotString, ofs: Vector2) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).set_function_scroll;
let mut argument_buffer : [*const libc::c_void; 2] = [
name.sys() as *const _ as *const _,
(&ofs) 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 VisualScript_get_function_scroll(obj_ptr: *mut sys::godot_object, name: GodotString) -> Vector2 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).get_function_scroll;
let mut argument_buffer : [*const libc::c_void; 1] = [
name.sys() as *const _ as *const _,
];
let mut ret = sys::godot_vector2::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 _);
mem::transmute(ret)
}
#[doc(hidden)]
pub unsafe fn VisualScript_add_node(obj_ptr: *mut sys::godot_object, func: GodotString, id: i64, node: Option<VisualScriptNode>, position: Vector2) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).add_node;
let mut argument_buffer : [*const libc::c_void; 4] = [
func.sys() as *const _ as *const _,
(&id) as *const _ as *const _,
if let Some(arg) = node { arg.this as *const _ as *const _ } else { ptr::null() },
(&position) 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 VisualScript_remove_node(obj_ptr: *mut sys::godot_object, func: GodotString, id: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).remove_node;
let mut argument_buffer : [*const libc::c_void; 2] = [
func.sys() as *const _ as *const _,
(&id) 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 VisualScript_get_function_node_id(obj_ptr: *mut sys::godot_object, name: GodotString) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).get_function_node_id;
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 VisualScript_get_node(obj_ptr: *mut sys::godot_object, func: GodotString, id: i64) -> Option<VisualScriptNode> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).get_node;
let mut argument_buffer : [*const libc::c_void; 2] = [
func.sys() as *const _ as *const _,
(&id) 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(VisualScriptNode::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn VisualScript_has_node(obj_ptr: *mut sys::godot_object, func: GodotString, id: i64) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).has_node;
let mut argument_buffer : [*const libc::c_void; 2] = [
func.sys() as *const _ as *const _,
(&id) 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 VisualScript_set_node_position(obj_ptr: *mut sys::godot_object, func: GodotString, id: i64, position: Vector2) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).set_node_position;
let mut argument_buffer : [*const libc::c_void; 3] = [
func.sys() as *const _ as *const _,
(&id) as *const _ as *const _,
(&position) 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 VisualScript_get_node_position(obj_ptr: *mut sys::godot_object, func: GodotString, id: i64) -> Vector2 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).get_node_position;
let mut argument_buffer : [*const libc::c_void; 2] = [
func.sys() as *const _ as *const _,
(&id) as *const _ as *const _,
];
let mut ret = sys::godot_vector2::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 _);
mem::transmute(ret)
}
#[doc(hidden)]
pub unsafe fn VisualScript_sequence_connect(obj_ptr: *mut sys::godot_object, func: GodotString, from_node: i64, from_output: i64, to_node: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).sequence_connect;
let mut argument_buffer : [*const libc::c_void; 4] = [
func.sys() as *const _ as *const _,
(&from_node) as *const _ as *const _,
(&from_output) as *const _ as *const _,
(&to_node) 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 VisualScript_sequence_disconnect(obj_ptr: *mut sys::godot_object, func: GodotString, from_node: i64, from_output: i64, to_node: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).sequence_disconnect;
let mut argument_buffer : [*const libc::c_void; 4] = [
func.sys() as *const _ as *const _,
(&from_node) as *const _ as *const _,
(&from_output) as *const _ as *const _,
(&to_node) 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 VisualScript_has_sequence_connection(obj_ptr: *mut sys::godot_object, func: GodotString, from_node: i64, from_output: i64, to_node: i64) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).has_sequence_connection;
let mut argument_buffer : [*const libc::c_void; 4] = [
func.sys() as *const _ as *const _,
(&from_node) as *const _ as *const _,
(&from_output) as *const _ as *const _,
(&to_node) 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 VisualScript_data_connect(obj_ptr: *mut sys::godot_object, func: GodotString, from_node: i64, from_port: i64, to_node: i64, to_port: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).data_connect;
let mut argument_buffer : [*const libc::c_void; 5] = [
func.sys() as *const _ as *const _,
(&from_node) as *const _ as *const _,
(&from_port) as *const _ as *const _,
(&to_node) as *const _ as *const _,
(&to_port) 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 VisualScript_data_disconnect(obj_ptr: *mut sys::godot_object, func: GodotString, from_node: i64, from_port: i64, to_node: i64, to_port: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).data_disconnect;
let mut argument_buffer : [*const libc::c_void; 5] = [
func.sys() as *const _ as *const _,
(&from_node) as *const _ as *const _,
(&from_port) as *const _ as *const _,
(&to_node) as *const _ as *const _,
(&to_port) 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 VisualScript_has_data_connection(obj_ptr: *mut sys::godot_object, func: GodotString, from_node: i64, from_port: i64, to_node: i64, to_port: i64) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).has_data_connection;
let mut argument_buffer : [*const libc::c_void; 5] = [
func.sys() as *const _ as *const _,
(&from_node) as *const _ as *const _,
(&from_port) as *const _ as *const _,
(&to_node) as *const _ as *const _,
(&to_port) 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 VisualScript_add_variable(obj_ptr: *mut sys::godot_object, name: GodotString, default_value: Variant, export: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).add_variable;
let mut argument_buffer : [*const libc::c_void; 3] = [
name.sys() as *const _ as *const _,
default_value.sys() as *const _ as *const _,
(&export) 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 VisualScript_has_variable(obj_ptr: *mut sys::godot_object, name: GodotString) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).has_variable;
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 VisualScript_remove_variable(obj_ptr: *mut sys::godot_object, name: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).remove_variable;
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 VisualScript_set_variable_default_value(obj_ptr: *mut sys::godot_object, name: GodotString, value: Variant) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).set_variable_default_value;
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 VisualScript_get_variable_default_value(obj_ptr: *mut sys::godot_object, name: GodotString) -> Variant {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).get_variable_default_value;
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 VisualScript_set_variable_info(obj_ptr: *mut sys::godot_object, name: GodotString, value: Dictionary) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).set_variable_info;
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 VisualScript_get_variable_info(obj_ptr: *mut sys::godot_object, name: GodotString) -> Dictionary {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).get_variable_info;
let mut argument_buffer : [*const libc::c_void; 1] = [
name.sys() as *const _ as *const _,
];
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 VisualScript_set_variable_export(obj_ptr: *mut sys::godot_object, name: GodotString, enable: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).set_variable_export;
let mut argument_buffer : [*const libc::c_void; 2] = [
name.sys() as *const _ as *const _,
(&enable) 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 VisualScript_get_variable_export(obj_ptr: *mut sys::godot_object, name: GodotString) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).get_variable_export;
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 VisualScript_rename_variable(obj_ptr: *mut sys::godot_object, name: GodotString, new_name: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).rename_variable;
let mut argument_buffer : [*const libc::c_void; 2] = [
name.sys() as *const _ as *const _,
new_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 VisualScript_add_custom_signal(obj_ptr: *mut sys::godot_object, name: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).add_custom_signal;
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 VisualScript_has_custom_signal(obj_ptr: *mut sys::godot_object, name: GodotString) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).has_custom_signal;
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 VisualScript_custom_signal_add_argument(obj_ptr: *mut sys::godot_object, name: GodotString, _type: i64, argname: GodotString, index: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).custom_signal_add_argument;
let mut argument_buffer : [*const libc::c_void; 4] = [
name.sys() as *const _ as *const _,
(&_type) as *const _ as *const _,
argname.sys() as *const _ as *const _,
(&index) 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 VisualScript_custom_signal_set_argument_type(obj_ptr: *mut sys::godot_object, name: GodotString, argidx: i64, _type: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).custom_signal_set_argument_type;
let mut argument_buffer : [*const libc::c_void; 3] = [
name.sys() as *const _ as *const _,
(&argidx) as *const _ as *const _,
(&_type) 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 VisualScript_custom_signal_get_argument_type(obj_ptr: *mut sys::godot_object, name: GodotString, argidx: i64) -> VariantType {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).custom_signal_get_argument_type;
let mut argument_buffer : [*const libc::c_void; 2] = [
name.sys() as *const _ as *const _,
(&argidx) as *const _ as *const _,
];
let mut ret: sys::godot_variant_type = sys::godot_variant_type_GODOT_VARIANT_TYPE_NIL;
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 _);
VariantType::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn VisualScript_custom_signal_set_argument_name(obj_ptr: *mut sys::godot_object, name: GodotString, argidx: i64, argname: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).custom_signal_set_argument_name;
let mut argument_buffer : [*const libc::c_void; 3] = [
name.sys() as *const _ as *const _,
(&argidx) as *const _ as *const _,
argname.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 VisualScript_custom_signal_get_argument_name(obj_ptr: *mut sys::godot_object, name: GodotString, argidx: i64) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).custom_signal_get_argument_name;
let mut argument_buffer : [*const libc::c_void; 2] = [
name.sys() as *const _ as *const _,
(&argidx) 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 VisualScript_custom_signal_remove_argument(obj_ptr: *mut sys::godot_object, name: GodotString, argidx: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).custom_signal_remove_argument;
let mut argument_buffer : [*const libc::c_void; 2] = [
name.sys() as *const _ as *const _,
(&argidx) 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 VisualScript_custom_signal_get_argument_count(obj_ptr: *mut sys::godot_object, name: GodotString) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).custom_signal_get_argument_count;
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 VisualScript_custom_signal_swap_argument(obj_ptr: *mut sys::godot_object, name: GodotString, argidx: i64, withidx: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).custom_signal_swap_argument;
let mut argument_buffer : [*const libc::c_void; 3] = [
name.sys() as *const _ as *const _,
(&argidx) as *const _ as *const _,
(&withidx) 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 VisualScript_remove_custom_signal(obj_ptr: *mut sys::godot_object, name: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).remove_custom_signal;
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 VisualScript_rename_custom_signal(obj_ptr: *mut sys::godot_object, name: GodotString, new_name: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).rename_custom_signal;
let mut argument_buffer : [*const libc::c_void; 2] = [
name.sys() as *const _ as *const _,
new_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 VisualScript_set_instance_base_type(obj_ptr: *mut sys::godot_object, _type: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api).set_instance_base_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 VisualScript__set_data(obj_ptr: *mut sys::godot_object, data: Dictionary) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api)._set_data;
let mut argument_buffer : [*const libc::c_void; 1] = [
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 VisualScript__get_data(obj_ptr: *mut sys::godot_object) -> Dictionary {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMethodTable::get(gd_api)._get_data;
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)]
#[allow(non_camel_case_types)]
pub struct VisualScriptNodeMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub get_visual_script: *mut sys::godot_method_bind,
pub set_default_input_value: *mut sys::godot_method_bind,
pub get_default_input_value: *mut sys::godot_method_bind,
pub ports_changed_notify: *mut sys::godot_method_bind,
pub _set_default_input_values: *mut sys::godot_method_bind,
pub _get_default_input_values: *mut sys::godot_method_bind,
}
impl VisualScriptNodeMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptNodeMethodTable = VisualScriptNodeMethodTable {
class_constructor: None,
get_visual_script: 0 as *mut sys::godot_method_bind,
set_default_input_value: 0 as *mut sys::godot_method_bind,
get_default_input_value: 0 as *mut sys::godot_method_bind,
ports_changed_notify: 0 as *mut sys::godot_method_bind,
_set_default_input_values: 0 as *mut sys::godot_method_bind,
_get_default_input_values: 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(|| {
VisualScriptNodeMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptNode\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.get_visual_script = (gd_api.godot_method_bind_get_method)(class_name, "get_visual_script\0".as_ptr() as *const c_char );
table.set_default_input_value = (gd_api.godot_method_bind_get_method)(class_name, "set_default_input_value\0".as_ptr() as *const c_char );
table.get_default_input_value = (gd_api.godot_method_bind_get_method)(class_name, "get_default_input_value\0".as_ptr() as *const c_char );
table.ports_changed_notify = (gd_api.godot_method_bind_get_method)(class_name, "ports_changed_notify\0".as_ptr() as *const c_char );
table._set_default_input_values = (gd_api.godot_method_bind_get_method)(class_name, "_set_default_input_values\0".as_ptr() as *const c_char );
table._get_default_input_values = (gd_api.godot_method_bind_get_method)(class_name, "_get_default_input_values\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn VisualScriptNode_get_visual_script(obj_ptr: *mut sys::godot_object) -> Option<VisualScript> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptNodeMethodTable::get(gd_api).get_visual_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(VisualScript::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn VisualScriptNode_set_default_input_value(obj_ptr: *mut sys::godot_object, port_idx: i64, value: Variant) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptNodeMethodTable::get(gd_api).set_default_input_value;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&port_idx) 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 VisualScriptNode_get_default_input_value(obj_ptr: *mut sys::godot_object, port_idx: i64) -> Variant {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptNodeMethodTable::get(gd_api).get_default_input_value;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&port_idx) 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 VisualScriptNode_ports_changed_notify(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptNodeMethodTable::get(gd_api).ports_changed_notify;
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 VisualScriptNode__set_default_input_values(obj_ptr: *mut sys::godot_object, values: VariantArray) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptNodeMethodTable::get(gd_api)._set_default_input_values;
let mut argument_buffer : [*const libc::c_void; 1] = [
values.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 VisualScriptNode__get_default_input_values(obj_ptr: *mut sys::godot_object) -> VariantArray {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptNodeMethodTable::get(gd_api)._get_default_input_values;
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)]
#[allow(non_camel_case_types)]
pub struct VisualScriptVariableGetMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_variable: *mut sys::godot_method_bind,
pub get_variable: *mut sys::godot_method_bind,
}
impl VisualScriptVariableGetMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptVariableGetMethodTable = VisualScriptVariableGetMethodTable {
class_constructor: None,
set_variable: 0 as *mut sys::godot_method_bind,
get_variable: 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(|| {
VisualScriptVariableGetMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptVariableGet\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_variable = (gd_api.godot_method_bind_get_method)(class_name, "set_variable\0".as_ptr() as *const c_char );
table.get_variable = (gd_api.godot_method_bind_get_method)(class_name, "get_variable\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn VisualScriptVariableGet_set_variable(obj_ptr: *mut sys::godot_object, name: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptVariableGetMethodTable::get(gd_api).set_variable;
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 VisualScriptVariableGet_get_variable(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptVariableGetMethodTable::get(gd_api).get_variable;
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 VisualScriptFunctionMethodTable {
pub class_constructor: sys::godot_class_constructor,
}
impl VisualScriptFunctionMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptFunctionMethodTable = VisualScriptFunctionMethodTable {
class_constructor: None,
};
&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(|| {
VisualScriptFunctionMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptFunction\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
}
}
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct VisualScriptFunctionStateMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub connect_to_signal: *mut sys::godot_method_bind,
pub resume: *mut sys::godot_method_bind,
pub is_valid: *mut sys::godot_method_bind,
pub _signal_callback: *mut sys::godot_method_bind,
}
impl VisualScriptFunctionStateMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptFunctionStateMethodTable = VisualScriptFunctionStateMethodTable {
class_constructor: None,
connect_to_signal: 0 as *mut sys::godot_method_bind,
resume: 0 as *mut sys::godot_method_bind,
is_valid: 0 as *mut sys::godot_method_bind,
_signal_callback: 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(|| {
VisualScriptFunctionStateMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptFunctionState\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.connect_to_signal = (gd_api.godot_method_bind_get_method)(class_name, "connect_to_signal\0".as_ptr() as *const c_char );
table.resume = (gd_api.godot_method_bind_get_method)(class_name, "resume\0".as_ptr() as *const c_char );
table.is_valid = (gd_api.godot_method_bind_get_method)(class_name, "is_valid\0".as_ptr() as *const c_char );
table._signal_callback = (gd_api.godot_method_bind_get_method)(class_name, "_signal_callback\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn VisualScriptFunctionState_connect_to_signal(obj_ptr: *mut sys::godot_object, obj: Option<Object>, signals: GodotString, args: VariantArray) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptFunctionStateMethodTable::get(gd_api).connect_to_signal;
let mut argument_buffer : [*const libc::c_void; 3] = [
if let Some(arg) = obj { arg.this as *const _ as *const _ } else { ptr::null() },
signals.sys() as *const _ as *const _,
args.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 VisualScriptFunctionState_resume(obj_ptr: *mut sys::godot_object, args: VariantArray) -> Variant {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptFunctionStateMethodTable::get(gd_api).resume;
let mut argument_buffer : [*const libc::c_void; 1] = [
args.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 VisualScriptFunctionState_is_valid(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptFunctionStateMethodTable::get(gd_api).is_valid;
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 VisualScriptFunctionState__signal_callback(obj_ptr: *mut sys::godot_object, varargs: &[Variant]) -> Variant {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptFunctionStateMethodTable::get(gd_api)._signal_callback;
let mut argument_buffer: Vec<*const sys::godot_variant> = Vec::with_capacity(0 + varargs.len());
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)]
#[allow(non_camel_case_types)]
pub struct VisualScriptOperatorMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_operator: *mut sys::godot_method_bind,
pub get_operator: *mut sys::godot_method_bind,
pub set_typed: *mut sys::godot_method_bind,
pub get_typed: *mut sys::godot_method_bind,
}
impl VisualScriptOperatorMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptOperatorMethodTable = VisualScriptOperatorMethodTable {
class_constructor: None,
set_operator: 0 as *mut sys::godot_method_bind,
get_operator: 0 as *mut sys::godot_method_bind,
set_typed: 0 as *mut sys::godot_method_bind,
get_typed: 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(|| {
VisualScriptOperatorMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptOperator\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_operator = (gd_api.godot_method_bind_get_method)(class_name, "set_operator\0".as_ptr() as *const c_char );
table.get_operator = (gd_api.godot_method_bind_get_method)(class_name, "get_operator\0".as_ptr() as *const c_char );
table.set_typed = (gd_api.godot_method_bind_get_method)(class_name, "set_typed\0".as_ptr() as *const c_char );
table.get_typed = (gd_api.godot_method_bind_get_method)(class_name, "get_typed\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn VisualScriptOperator_set_operator(obj_ptr: *mut sys::godot_object, op: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptOperatorMethodTable::get(gd_api).set_operator;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&op) 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 VisualScriptOperator_get_operator(obj_ptr: *mut sys::godot_object) -> VariantOperator {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptOperatorMethodTable::get(gd_api).get_operator;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: VariantOperator = 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 VisualScriptOperator_set_typed(obj_ptr: *mut sys::godot_object, _type: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptOperatorMethodTable::get(gd_api).set_typed;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&_type) 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 VisualScriptOperator_get_typed(obj_ptr: *mut sys::godot_object) -> VariantType {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptOperatorMethodTable::get(gd_api).get_typed;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: sys::godot_variant_type = sys::godot_variant_type_GODOT_VARIANT_TYPE_NIL;
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 _);
VariantType::from_sys(ret)
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct VisualScriptMathConstantMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_math_constant: *mut sys::godot_method_bind,
pub get_math_constant: *mut sys::godot_method_bind,
}
impl VisualScriptMathConstantMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptMathConstantMethodTable = VisualScriptMathConstantMethodTable {
class_constructor: None,
set_math_constant: 0 as *mut sys::godot_method_bind,
get_math_constant: 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(|| {
VisualScriptMathConstantMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptMathConstant\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_math_constant = (gd_api.godot_method_bind_get_method)(class_name, "set_math_constant\0".as_ptr() as *const c_char );
table.get_math_constant = (gd_api.godot_method_bind_get_method)(class_name, "get_math_constant\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn VisualScriptMathConstant_set_math_constant(obj_ptr: *mut sys::godot_object, which: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMathConstantMethodTable::get(gd_api).set_math_constant;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&which) 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 VisualScriptMathConstant_get_math_constant(obj_ptr: *mut sys::godot_object) -> VisualScriptMathConstantMathConstant {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptMathConstantMethodTable::get(gd_api).get_math_constant;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: VisualScriptMathConstantMathConstant = 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)]
#[allow(non_camel_case_types)]
pub struct VisualScriptIndexGetMethodTable {
pub class_constructor: sys::godot_class_constructor,
}
impl VisualScriptIndexGetMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptIndexGetMethodTable = VisualScriptIndexGetMethodTable {
class_constructor: None,
};
&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(|| {
VisualScriptIndexGetMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptIndexGet\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
}
}
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct VisualScriptIndexSetMethodTable {
pub class_constructor: sys::godot_class_constructor,
}
impl VisualScriptIndexSetMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptIndexSetMethodTable = VisualScriptIndexSetMethodTable {
class_constructor: None,
};
&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(|| {
VisualScriptIndexSetMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptIndexSet\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
}
}
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct VisualScriptClassConstantMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_class_constant: *mut sys::godot_method_bind,
pub get_class_constant: *mut sys::godot_method_bind,
pub set_base_type: *mut sys::godot_method_bind,
pub get_base_type: *mut sys::godot_method_bind,
}
impl VisualScriptClassConstantMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptClassConstantMethodTable = VisualScriptClassConstantMethodTable {
class_constructor: None,
set_class_constant: 0 as *mut sys::godot_method_bind,
get_class_constant: 0 as *mut sys::godot_method_bind,
set_base_type: 0 as *mut sys::godot_method_bind,
get_base_type: 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(|| {
VisualScriptClassConstantMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptClassConstant\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_class_constant = (gd_api.godot_method_bind_get_method)(class_name, "set_class_constant\0".as_ptr() as *const c_char );
table.get_class_constant = (gd_api.godot_method_bind_get_method)(class_name, "get_class_constant\0".as_ptr() as *const c_char );
table.set_base_type = (gd_api.godot_method_bind_get_method)(class_name, "set_base_type\0".as_ptr() as *const c_char );
table.get_base_type = (gd_api.godot_method_bind_get_method)(class_name, "get_base_type\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn VisualScriptClassConstant_set_class_constant(obj_ptr: *mut sys::godot_object, name: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptClassConstantMethodTable::get(gd_api).set_class_constant;
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 VisualScriptClassConstant_get_class_constant(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptClassConstantMethodTable::get(gd_api).get_class_constant;
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 VisualScriptClassConstant_set_base_type(obj_ptr: *mut sys::godot_object, name: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptClassConstantMethodTable::get(gd_api).set_base_type;
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 VisualScriptClassConstant_get_base_type(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptClassConstantMethodTable::get(gd_api).get_base_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)]
#[allow(non_camel_case_types)]
pub struct VisualScriptGlobalConstantMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_global_constant: *mut sys::godot_method_bind,
pub get_global_constant: *mut sys::godot_method_bind,
}
impl VisualScriptGlobalConstantMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptGlobalConstantMethodTable = VisualScriptGlobalConstantMethodTable {
class_constructor: None,
set_global_constant: 0 as *mut sys::godot_method_bind,
get_global_constant: 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(|| {
VisualScriptGlobalConstantMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptGlobalConstant\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_global_constant = (gd_api.godot_method_bind_get_method)(class_name, "set_global_constant\0".as_ptr() as *const c_char );
table.get_global_constant = (gd_api.godot_method_bind_get_method)(class_name, "get_global_constant\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn VisualScriptGlobalConstant_set_global_constant(obj_ptr: *mut sys::godot_object, index: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptGlobalConstantMethodTable::get(gd_api).set_global_constant;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&index) 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 VisualScriptGlobalConstant_get_global_constant(obj_ptr: *mut sys::godot_object) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptGlobalConstantMethodTable::get(gd_api).get_global_constant;
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)]
#[allow(non_camel_case_types)]
pub struct VisualScriptVariableSetMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_variable: *mut sys::godot_method_bind,
pub get_variable: *mut sys::godot_method_bind,
}
impl VisualScriptVariableSetMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptVariableSetMethodTable = VisualScriptVariableSetMethodTable {
class_constructor: None,
set_variable: 0 as *mut sys::godot_method_bind,
get_variable: 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(|| {
VisualScriptVariableSetMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptVariableSet\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_variable = (gd_api.godot_method_bind_get_method)(class_name, "set_variable\0".as_ptr() as *const c_char );
table.get_variable = (gd_api.godot_method_bind_get_method)(class_name, "get_variable\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn VisualScriptVariableSet_set_variable(obj_ptr: *mut sys::godot_object, name: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptVariableSetMethodTable::get(gd_api).set_variable;
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 VisualScriptVariableSet_get_variable(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptVariableSetMethodTable::get(gd_api).get_variable;
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 VisualScriptConstantMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_constant_type: *mut sys::godot_method_bind,
pub get_constant_type: *mut sys::godot_method_bind,
pub set_constant_value: *mut sys::godot_method_bind,
pub get_constant_value: *mut sys::godot_method_bind,
}
impl VisualScriptConstantMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptConstantMethodTable = VisualScriptConstantMethodTable {
class_constructor: None,
set_constant_type: 0 as *mut sys::godot_method_bind,
get_constant_type: 0 as *mut sys::godot_method_bind,
set_constant_value: 0 as *mut sys::godot_method_bind,
get_constant_value: 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(|| {
VisualScriptConstantMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptConstant\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_constant_type = (gd_api.godot_method_bind_get_method)(class_name, "set_constant_type\0".as_ptr() as *const c_char );
table.get_constant_type = (gd_api.godot_method_bind_get_method)(class_name, "get_constant_type\0".as_ptr() as *const c_char );
table.set_constant_value = (gd_api.godot_method_bind_get_method)(class_name, "set_constant_value\0".as_ptr() as *const c_char );
table.get_constant_value = (gd_api.godot_method_bind_get_method)(class_name, "get_constant_value\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn VisualScriptConstant_set_constant_type(obj_ptr: *mut sys::godot_object, _type: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptConstantMethodTable::get(gd_api).set_constant_type;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&_type) 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 VisualScriptConstant_get_constant_type(obj_ptr: *mut sys::godot_object) -> VariantType {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptConstantMethodTable::get(gd_api).get_constant_type;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: sys::godot_variant_type = sys::godot_variant_type_GODOT_VARIANT_TYPE_NIL;
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 _);
VariantType::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn VisualScriptConstant_set_constant_value(obj_ptr: *mut sys::godot_object, value: Variant) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptConstantMethodTable::get(gd_api).set_constant_value;
let mut argument_buffer : [*const libc::c_void; 1] = [
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 VisualScriptConstant_get_constant_value(obj_ptr: *mut sys::godot_object) -> Variant {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptConstantMethodTable::get(gd_api).get_constant_value;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
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)]
#[allow(non_camel_case_types)]
pub struct VisualScriptSubCallMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub _subcall: *mut sys::godot_method_bind,
}
impl VisualScriptSubCallMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptSubCallMethodTable = VisualScriptSubCallMethodTable {
class_constructor: None,
_subcall: 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(|| {
VisualScriptSubCallMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptSubCall\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table._subcall = (gd_api.godot_method_bind_get_method)(class_name, "_subcall\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn VisualScriptSubCall__subcall(obj_ptr: *mut sys::godot_object, arguments: Variant) -> Variant {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptSubCallMethodTable::get(gd_api)._subcall;
let mut argument_buffer : [*const libc::c_void; 1] = [
arguments.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)]
#[allow(non_camel_case_types)]
pub struct VisualScriptConstructorMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_constructor_type: *mut sys::godot_method_bind,
pub get_constructor_type: *mut sys::godot_method_bind,
pub set_constructor: *mut sys::godot_method_bind,
pub get_constructor: *mut sys::godot_method_bind,
}
impl VisualScriptConstructorMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptConstructorMethodTable = VisualScriptConstructorMethodTable {
class_constructor: None,
set_constructor_type: 0 as *mut sys::godot_method_bind,
get_constructor_type: 0 as *mut sys::godot_method_bind,
set_constructor: 0 as *mut sys::godot_method_bind,
get_constructor: 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(|| {
VisualScriptConstructorMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptConstructor\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_constructor_type = (gd_api.godot_method_bind_get_method)(class_name, "set_constructor_type\0".as_ptr() as *const c_char );
table.get_constructor_type = (gd_api.godot_method_bind_get_method)(class_name, "get_constructor_type\0".as_ptr() as *const c_char );
table.set_constructor = (gd_api.godot_method_bind_get_method)(class_name, "set_constructor\0".as_ptr() as *const c_char );
table.get_constructor = (gd_api.godot_method_bind_get_method)(class_name, "get_constructor\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn VisualScriptConstructor_set_constructor_type(obj_ptr: *mut sys::godot_object, _type: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptConstructorMethodTable::get(gd_api).set_constructor_type;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&_type) 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 VisualScriptConstructor_get_constructor_type(obj_ptr: *mut sys::godot_object) -> VariantType {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptConstructorMethodTable::get(gd_api).get_constructor_type;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: sys::godot_variant_type = sys::godot_variant_type_GODOT_VARIANT_TYPE_NIL;
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 _);
VariantType::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn VisualScriptConstructor_set_constructor(obj_ptr: *mut sys::godot_object, constructor: Dictionary) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptConstructorMethodTable::get(gd_api).set_constructor;
let mut argument_buffer : [*const libc::c_void; 1] = [
constructor.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 VisualScriptConstructor_get_constructor(obj_ptr: *mut sys::godot_object) -> Dictionary {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptConstructorMethodTable::get(gd_api).get_constructor;
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)]
#[allow(non_camel_case_types)]
pub struct VisualScriptResourcePathMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_resource_path: *mut sys::godot_method_bind,
pub get_resource_path: *mut sys::godot_method_bind,
}
impl VisualScriptResourcePathMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptResourcePathMethodTable = VisualScriptResourcePathMethodTable {
class_constructor: None,
set_resource_path: 0 as *mut sys::godot_method_bind,
get_resource_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(|| {
VisualScriptResourcePathMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptResourcePath\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_resource_path = (gd_api.godot_method_bind_get_method)(class_name, "set_resource_path\0".as_ptr() as *const c_char );
table.get_resource_path = (gd_api.godot_method_bind_get_method)(class_name, "get_resource_path\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn VisualScriptResourcePath_set_resource_path(obj_ptr: *mut sys::godot_object, path: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptResourcePathMethodTable::get(gd_api).set_resource_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 VisualScriptResourcePath_get_resource_path(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptResourcePathMethodTable::get(gd_api).get_resource_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)]
#[allow(non_camel_case_types)]
pub struct VisualScriptSceneNodeMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_node_path: *mut sys::godot_method_bind,
pub get_node_path: *mut sys::godot_method_bind,
}
impl VisualScriptSceneNodeMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptSceneNodeMethodTable = VisualScriptSceneNodeMethodTable {
class_constructor: None,
set_node_path: 0 as *mut sys::godot_method_bind,
get_node_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(|| {
VisualScriptSceneNodeMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptSceneNode\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_node_path = (gd_api.godot_method_bind_get_method)(class_name, "set_node_path\0".as_ptr() as *const c_char );
table.get_node_path = (gd_api.godot_method_bind_get_method)(class_name, "get_node_path\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn VisualScriptSceneNode_set_node_path(obj_ptr: *mut sys::godot_object, path: NodePath) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptSceneNodeMethodTable::get(gd_api).set_node_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 VisualScriptSceneNode_get_node_path(obj_ptr: *mut sys::godot_object) -> NodePath {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptSceneNodeMethodTable::get(gd_api).get_node_path;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_node_path::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 _);
NodePath::from_sys(ret)
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct VisualScriptCustomNodeMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub _get_output_sequence_port_count: *mut sys::godot_method_bind,
pub _has_input_sequence_port: *mut sys::godot_method_bind,
pub _get_output_sequence_port_text: *mut sys::godot_method_bind,
pub _get_input_value_port_count: *mut sys::godot_method_bind,
pub _get_output_value_port_count: *mut sys::godot_method_bind,
pub _get_input_value_port_type: *mut sys::godot_method_bind,
pub _get_input_value_port_name: *mut sys::godot_method_bind,
pub _get_output_value_port_type: *mut sys::godot_method_bind,
pub _get_output_value_port_name: *mut sys::godot_method_bind,
pub _get_caption: *mut sys::godot_method_bind,
pub _get_text: *mut sys::godot_method_bind,
pub _get_category: *mut sys::godot_method_bind,
pub _get_working_memory_size: *mut sys::godot_method_bind,
pub _step: *mut sys::godot_method_bind,
pub _script_changed: *mut sys::godot_method_bind,
}
impl VisualScriptCustomNodeMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptCustomNodeMethodTable = VisualScriptCustomNodeMethodTable {
class_constructor: None,
_get_output_sequence_port_count: 0 as *mut sys::godot_method_bind,
_has_input_sequence_port: 0 as *mut sys::godot_method_bind,
_get_output_sequence_port_text: 0 as *mut sys::godot_method_bind,
_get_input_value_port_count: 0 as *mut sys::godot_method_bind,
_get_output_value_port_count: 0 as *mut sys::godot_method_bind,
_get_input_value_port_type: 0 as *mut sys::godot_method_bind,
_get_input_value_port_name: 0 as *mut sys::godot_method_bind,
_get_output_value_port_type: 0 as *mut sys::godot_method_bind,
_get_output_value_port_name: 0 as *mut sys::godot_method_bind,
_get_caption: 0 as *mut sys::godot_method_bind,
_get_text: 0 as *mut sys::godot_method_bind,
_get_category: 0 as *mut sys::godot_method_bind,
_get_working_memory_size: 0 as *mut sys::godot_method_bind,
_step: 0 as *mut sys::godot_method_bind,
_script_changed: 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(|| {
VisualScriptCustomNodeMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptCustomNode\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table._get_output_sequence_port_count = (gd_api.godot_method_bind_get_method)(class_name, "_get_output_sequence_port_count\0".as_ptr() as *const c_char );
table._has_input_sequence_port = (gd_api.godot_method_bind_get_method)(class_name, "_has_input_sequence_port\0".as_ptr() as *const c_char );
table._get_output_sequence_port_text = (gd_api.godot_method_bind_get_method)(class_name, "_get_output_sequence_port_text\0".as_ptr() as *const c_char );
table._get_input_value_port_count = (gd_api.godot_method_bind_get_method)(class_name, "_get_input_value_port_count\0".as_ptr() as *const c_char );
table._get_output_value_port_count = (gd_api.godot_method_bind_get_method)(class_name, "_get_output_value_port_count\0".as_ptr() as *const c_char );
table._get_input_value_port_type = (gd_api.godot_method_bind_get_method)(class_name, "_get_input_value_port_type\0".as_ptr() as *const c_char );
table._get_input_value_port_name = (gd_api.godot_method_bind_get_method)(class_name, "_get_input_value_port_name\0".as_ptr() as *const c_char );
table._get_output_value_port_type = (gd_api.godot_method_bind_get_method)(class_name, "_get_output_value_port_type\0".as_ptr() as *const c_char );
table._get_output_value_port_name = (gd_api.godot_method_bind_get_method)(class_name, "_get_output_value_port_name\0".as_ptr() as *const c_char );
table._get_caption = (gd_api.godot_method_bind_get_method)(class_name, "_get_caption\0".as_ptr() as *const c_char );
table._get_text = (gd_api.godot_method_bind_get_method)(class_name, "_get_text\0".as_ptr() as *const c_char );
table._get_category = (gd_api.godot_method_bind_get_method)(class_name, "_get_category\0".as_ptr() as *const c_char );
table._get_working_memory_size = (gd_api.godot_method_bind_get_method)(class_name, "_get_working_memory_size\0".as_ptr() as *const c_char );
table._step = (gd_api.godot_method_bind_get_method)(class_name, "_step\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 );
}
}
}
#[doc(hidden)]
pub unsafe fn VisualScriptCustomNode__get_output_sequence_port_count(obj_ptr: *mut sys::godot_object) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptCustomNodeMethodTable::get(gd_api)._get_output_sequence_port_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 VisualScriptCustomNode__has_input_sequence_port(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptCustomNodeMethodTable::get(gd_api)._has_input_sequence_port;
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 VisualScriptCustomNode__get_output_sequence_port_text(obj_ptr: *mut sys::godot_object, idx: i64) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptCustomNodeMethodTable::get(gd_api)._get_output_sequence_port_text;
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 VisualScriptCustomNode__get_input_value_port_count(obj_ptr: *mut sys::godot_object) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptCustomNodeMethodTable::get(gd_api)._get_input_value_port_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 VisualScriptCustomNode__get_output_value_port_count(obj_ptr: *mut sys::godot_object) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptCustomNodeMethodTable::get(gd_api)._get_output_value_port_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 VisualScriptCustomNode__get_input_value_port_type(obj_ptr: *mut sys::godot_object, idx: i64) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptCustomNodeMethodTable::get(gd_api)._get_input_value_port_type;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&idx) 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 VisualScriptCustomNode__get_input_value_port_name(obj_ptr: *mut sys::godot_object, idx: i64) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptCustomNodeMethodTable::get(gd_api)._get_input_value_port_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 VisualScriptCustomNode__get_output_value_port_type(obj_ptr: *mut sys::godot_object, idx: i64) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptCustomNodeMethodTable::get(gd_api)._get_output_value_port_type;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&idx) 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 VisualScriptCustomNode__get_output_value_port_name(obj_ptr: *mut sys::godot_object, idx: i64) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptCustomNodeMethodTable::get(gd_api)._get_output_value_port_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 VisualScriptCustomNode__get_caption(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptCustomNodeMethodTable::get(gd_api)._get_caption;
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 VisualScriptCustomNode__get_text(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptCustomNodeMethodTable::get(gd_api)._get_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)]
pub unsafe fn VisualScriptCustomNode__get_category(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptCustomNodeMethodTable::get(gd_api)._get_category;
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 VisualScriptCustomNode__get_working_memory_size(obj_ptr: *mut sys::godot_object) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptCustomNodeMethodTable::get(gd_api)._get_working_memory_size;
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 VisualScriptCustomNode__step(obj_ptr: *mut sys::godot_object, inputs: VariantArray, outputs: VariantArray, start_mode: i64, working_mem: VariantArray) -> Variant {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptCustomNodeMethodTable::get(gd_api)._step;
let mut argument_buffer : [*const libc::c_void; 4] = [
inputs.sys() as *const _ as *const _,
outputs.sys() as *const _ as *const _,
(&start_mode) as *const _ as *const _,
working_mem.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 VisualScriptCustomNode__script_changed(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptCustomNodeMethodTable::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)]
#[allow(non_camel_case_types)]
pub struct VisualScriptBasicTypeConstantMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_basic_type: *mut sys::godot_method_bind,
pub get_basic_type: *mut sys::godot_method_bind,
pub set_basic_type_constant: *mut sys::godot_method_bind,
pub get_basic_type_constant: *mut sys::godot_method_bind,
}
impl VisualScriptBasicTypeConstantMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptBasicTypeConstantMethodTable = VisualScriptBasicTypeConstantMethodTable {
class_constructor: None,
set_basic_type: 0 as *mut sys::godot_method_bind,
get_basic_type: 0 as *mut sys::godot_method_bind,
set_basic_type_constant: 0 as *mut sys::godot_method_bind,
get_basic_type_constant: 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(|| {
VisualScriptBasicTypeConstantMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptBasicTypeConstant\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_basic_type = (gd_api.godot_method_bind_get_method)(class_name, "set_basic_type\0".as_ptr() as *const c_char );
table.get_basic_type = (gd_api.godot_method_bind_get_method)(class_name, "get_basic_type\0".as_ptr() as *const c_char );
table.set_basic_type_constant = (gd_api.godot_method_bind_get_method)(class_name, "set_basic_type_constant\0".as_ptr() as *const c_char );
table.get_basic_type_constant = (gd_api.godot_method_bind_get_method)(class_name, "get_basic_type_constant\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn VisualScriptBasicTypeConstant_set_basic_type(obj_ptr: *mut sys::godot_object, name: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptBasicTypeConstantMethodTable::get(gd_api).set_basic_type;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&name) 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 VisualScriptBasicTypeConstant_get_basic_type(obj_ptr: *mut sys::godot_object) -> VariantType {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptBasicTypeConstantMethodTable::get(gd_api).get_basic_type;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: sys::godot_variant_type = sys::godot_variant_type_GODOT_VARIANT_TYPE_NIL;
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 _);
VariantType::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn VisualScriptBasicTypeConstant_set_basic_type_constant(obj_ptr: *mut sys::godot_object, name: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptBasicTypeConstantMethodTable::get(gd_api).set_basic_type_constant;
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 VisualScriptBasicTypeConstant_get_basic_type_constant(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptBasicTypeConstantMethodTable::get(gd_api).get_basic_type_constant;
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 VisualScriptSceneTreeMethodTable {
pub class_constructor: sys::godot_class_constructor,
}
impl VisualScriptSceneTreeMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptSceneTreeMethodTable = VisualScriptSceneTreeMethodTable {
class_constructor: None,
};
&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(|| {
VisualScriptSceneTreeMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptSceneTree\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
}
}
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct VisualScriptSelfMethodTable {
pub class_constructor: sys::godot_class_constructor,
}
impl VisualScriptSelfMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptSelfMethodTable = VisualScriptSelfMethodTable {
class_constructor: None,
};
&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(|| {
VisualScriptSelfMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptSelf\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
}
}
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct VisualScriptCommentMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_title: *mut sys::godot_method_bind,
pub get_title: *mut sys::godot_method_bind,
pub set_description: *mut sys::godot_method_bind,
pub get_description: *mut sys::godot_method_bind,
pub set_size: *mut sys::godot_method_bind,
pub get_size: *mut sys::godot_method_bind,
}
impl VisualScriptCommentMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptCommentMethodTable = VisualScriptCommentMethodTable {
class_constructor: None,
set_title: 0 as *mut sys::godot_method_bind,
get_title: 0 as *mut sys::godot_method_bind,
set_description: 0 as *mut sys::godot_method_bind,
get_description: 0 as *mut sys::godot_method_bind,
set_size: 0 as *mut sys::godot_method_bind,
get_size: 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(|| {
VisualScriptCommentMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptComment\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_title = (gd_api.godot_method_bind_get_method)(class_name, "set_title\0".as_ptr() as *const c_char );
table.get_title = (gd_api.godot_method_bind_get_method)(class_name, "get_title\0".as_ptr() as *const c_char );
table.set_description = (gd_api.godot_method_bind_get_method)(class_name, "set_description\0".as_ptr() as *const c_char );
table.get_description = (gd_api.godot_method_bind_get_method)(class_name, "get_description\0".as_ptr() as *const c_char );
table.set_size = (gd_api.godot_method_bind_get_method)(class_name, "set_size\0".as_ptr() as *const c_char );
table.get_size = (gd_api.godot_method_bind_get_method)(class_name, "get_size\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn VisualScriptComment_set_title(obj_ptr: *mut sys::godot_object, title: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptCommentMethodTable::get(gd_api).set_title;
let mut argument_buffer : [*const libc::c_void; 1] = [
title.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 VisualScriptComment_get_title(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptCommentMethodTable::get(gd_api).get_title;
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 VisualScriptComment_set_description(obj_ptr: *mut sys::godot_object, description: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptCommentMethodTable::get(gd_api).set_description;
let mut argument_buffer : [*const libc::c_void; 1] = [
description.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 VisualScriptComment_get_description(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptCommentMethodTable::get(gd_api).get_description;
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 VisualScriptComment_set_size(obj_ptr: *mut sys::godot_object, size: Vector2) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptCommentMethodTable::get(gd_api).set_size;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&size) 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 VisualScriptComment_get_size(obj_ptr: *mut sys::godot_object) -> Vector2 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptCommentMethodTable::get(gd_api).get_size;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_vector2::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 _);
mem::transmute(ret)
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct VisualScriptEngineSingletonMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_singleton: *mut sys::godot_method_bind,
pub get_singleton: *mut sys::godot_method_bind,
}
impl VisualScriptEngineSingletonMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptEngineSingletonMethodTable = VisualScriptEngineSingletonMethodTable {
class_constructor: None,
set_singleton: 0 as *mut sys::godot_method_bind,
get_singleton: 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(|| {
VisualScriptEngineSingletonMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptEngineSingleton\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_singleton = (gd_api.godot_method_bind_get_method)(class_name, "set_singleton\0".as_ptr() as *const c_char );
table.get_singleton = (gd_api.godot_method_bind_get_method)(class_name, "get_singleton\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn VisualScriptEngineSingleton_set_singleton(obj_ptr: *mut sys::godot_object, name: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptEngineSingletonMethodTable::get(gd_api).set_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 VisualScriptEngineSingleton_get_singleton(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptEngineSingletonMethodTable::get(gd_api).get_singleton;
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 VisualScriptFunctionCallMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_base_type: *mut sys::godot_method_bind,
pub get_base_type: *mut sys::godot_method_bind,
pub set_base_script: *mut sys::godot_method_bind,
pub get_base_script: *mut sys::godot_method_bind,
pub set_basic_type: *mut sys::godot_method_bind,
pub get_basic_type: *mut sys::godot_method_bind,
pub set_singleton: *mut sys::godot_method_bind,
pub get_singleton: *mut sys::godot_method_bind,
pub set_function: *mut sys::godot_method_bind,
pub get_function: *mut sys::godot_method_bind,
pub set_call_mode: *mut sys::godot_method_bind,
pub get_call_mode: *mut sys::godot_method_bind,
pub set_base_path: *mut sys::godot_method_bind,
pub get_base_path: *mut sys::godot_method_bind,
pub set_use_default_args: *mut sys::godot_method_bind,
pub get_use_default_args: *mut sys::godot_method_bind,
pub _set_argument_cache: *mut sys::godot_method_bind,
pub _get_argument_cache: *mut sys::godot_method_bind,
pub set_rpc_call_mode: *mut sys::godot_method_bind,
pub get_rpc_call_mode: *mut sys::godot_method_bind,
pub set_validate: *mut sys::godot_method_bind,
pub get_validate: *mut sys::godot_method_bind,
}
impl VisualScriptFunctionCallMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptFunctionCallMethodTable = VisualScriptFunctionCallMethodTable {
class_constructor: None,
set_base_type: 0 as *mut sys::godot_method_bind,
get_base_type: 0 as *mut sys::godot_method_bind,
set_base_script: 0 as *mut sys::godot_method_bind,
get_base_script: 0 as *mut sys::godot_method_bind,
set_basic_type: 0 as *mut sys::godot_method_bind,
get_basic_type: 0 as *mut sys::godot_method_bind,
set_singleton: 0 as *mut sys::godot_method_bind,
get_singleton: 0 as *mut sys::godot_method_bind,
set_function: 0 as *mut sys::godot_method_bind,
get_function: 0 as *mut sys::godot_method_bind,
set_call_mode: 0 as *mut sys::godot_method_bind,
get_call_mode: 0 as *mut sys::godot_method_bind,
set_base_path: 0 as *mut sys::godot_method_bind,
get_base_path: 0 as *mut sys::godot_method_bind,
set_use_default_args: 0 as *mut sys::godot_method_bind,
get_use_default_args: 0 as *mut sys::godot_method_bind,
_set_argument_cache: 0 as *mut sys::godot_method_bind,
_get_argument_cache: 0 as *mut sys::godot_method_bind,
set_rpc_call_mode: 0 as *mut sys::godot_method_bind,
get_rpc_call_mode: 0 as *mut sys::godot_method_bind,
set_validate: 0 as *mut sys::godot_method_bind,
get_validate: 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(|| {
VisualScriptFunctionCallMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptFunctionCall\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_base_type = (gd_api.godot_method_bind_get_method)(class_name, "set_base_type\0".as_ptr() as *const c_char );
table.get_base_type = (gd_api.godot_method_bind_get_method)(class_name, "get_base_type\0".as_ptr() as *const c_char );
table.set_base_script = (gd_api.godot_method_bind_get_method)(class_name, "set_base_script\0".as_ptr() as *const c_char );
table.get_base_script = (gd_api.godot_method_bind_get_method)(class_name, "get_base_script\0".as_ptr() as *const c_char );
table.set_basic_type = (gd_api.godot_method_bind_get_method)(class_name, "set_basic_type\0".as_ptr() as *const c_char );
table.get_basic_type = (gd_api.godot_method_bind_get_method)(class_name, "get_basic_type\0".as_ptr() as *const c_char );
table.set_singleton = (gd_api.godot_method_bind_get_method)(class_name, "set_singleton\0".as_ptr() as *const c_char );
table.get_singleton = (gd_api.godot_method_bind_get_method)(class_name, "get_singleton\0".as_ptr() as *const c_char );
table.set_function = (gd_api.godot_method_bind_get_method)(class_name, "set_function\0".as_ptr() as *const c_char );
table.get_function = (gd_api.godot_method_bind_get_method)(class_name, "get_function\0".as_ptr() as *const c_char );
table.set_call_mode = (gd_api.godot_method_bind_get_method)(class_name, "set_call_mode\0".as_ptr() as *const c_char );
table.get_call_mode = (gd_api.godot_method_bind_get_method)(class_name, "get_call_mode\0".as_ptr() as *const c_char );
table.set_base_path = (gd_api.godot_method_bind_get_method)(class_name, "set_base_path\0".as_ptr() as *const c_char );
table.get_base_path = (gd_api.godot_method_bind_get_method)(class_name, "get_base_path\0".as_ptr() as *const c_char );
table.set_use_default_args = (gd_api.godot_method_bind_get_method)(class_name, "set_use_default_args\0".as_ptr() as *const c_char );
table.get_use_default_args = (gd_api.godot_method_bind_get_method)(class_name, "get_use_default_args\0".as_ptr() as *const c_char );
table._set_argument_cache = (gd_api.godot_method_bind_get_method)(class_name, "_set_argument_cache\0".as_ptr() as *const c_char );
table._get_argument_cache = (gd_api.godot_method_bind_get_method)(class_name, "_get_argument_cache\0".as_ptr() as *const c_char );
table.set_rpc_call_mode = (gd_api.godot_method_bind_get_method)(class_name, "set_rpc_call_mode\0".as_ptr() as *const c_char );
table.get_rpc_call_mode = (gd_api.godot_method_bind_get_method)(class_name, "get_rpc_call_mode\0".as_ptr() as *const c_char );
table.set_validate = (gd_api.godot_method_bind_get_method)(class_name, "set_validate\0".as_ptr() as *const c_char );
table.get_validate = (gd_api.godot_method_bind_get_method)(class_name, "get_validate\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn VisualScriptFunctionCall_set_base_type(obj_ptr: *mut sys::godot_object, base_type: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptFunctionCallMethodTable::get(gd_api).set_base_type;
let mut argument_buffer : [*const libc::c_void; 1] = [
base_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 VisualScriptFunctionCall_get_base_type(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptFunctionCallMethodTable::get(gd_api).get_base_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 VisualScriptFunctionCall_set_base_script(obj_ptr: *mut sys::godot_object, base_script: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptFunctionCallMethodTable::get(gd_api).set_base_script;
let mut argument_buffer : [*const libc::c_void; 1] = [
base_script.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 VisualScriptFunctionCall_get_base_script(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptFunctionCallMethodTable::get(gd_api).get_base_script;
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 VisualScriptFunctionCall_set_basic_type(obj_ptr: *mut sys::godot_object, basic_type: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptFunctionCallMethodTable::get(gd_api).set_basic_type;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&basic_type) 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 VisualScriptFunctionCall_get_basic_type(obj_ptr: *mut sys::godot_object) -> VariantType {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptFunctionCallMethodTable::get(gd_api).get_basic_type;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: sys::godot_variant_type = sys::godot_variant_type_GODOT_VARIANT_TYPE_NIL;
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 _);
VariantType::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn VisualScriptFunctionCall_set_singleton(obj_ptr: *mut sys::godot_object, singleton: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptFunctionCallMethodTable::get(gd_api).set_singleton;
let mut argument_buffer : [*const libc::c_void; 1] = [
singleton.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 VisualScriptFunctionCall_get_singleton(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptFunctionCallMethodTable::get(gd_api).get_singleton;
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 VisualScriptFunctionCall_set_function(obj_ptr: *mut sys::godot_object, function: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptFunctionCallMethodTable::get(gd_api).set_function;
let mut argument_buffer : [*const libc::c_void; 1] = [
function.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 VisualScriptFunctionCall_get_function(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptFunctionCallMethodTable::get(gd_api).get_function;
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 VisualScriptFunctionCall_set_call_mode(obj_ptr: *mut sys::godot_object, mode: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptFunctionCallMethodTable::get(gd_api).set_call_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 VisualScriptFunctionCall_get_call_mode(obj_ptr: *mut sys::godot_object) -> VisualScriptFunctionCallCallMode {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptFunctionCallMethodTable::get(gd_api).get_call_mode;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: VisualScriptFunctionCallCallMode = 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 VisualScriptFunctionCall_set_base_path(obj_ptr: *mut sys::godot_object, base_path: NodePath) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptFunctionCallMethodTable::get(gd_api).set_base_path;
let mut argument_buffer : [*const libc::c_void; 1] = [
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)]
pub unsafe fn VisualScriptFunctionCall_get_base_path(obj_ptr: *mut sys::godot_object) -> NodePath {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptFunctionCallMethodTable::get(gd_api).get_base_path;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_node_path::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 _);
NodePath::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn VisualScriptFunctionCall_set_use_default_args(obj_ptr: *mut sys::godot_object, amount: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptFunctionCallMethodTable::get(gd_api).set_use_default_args;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&amount) 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 VisualScriptFunctionCall_get_use_default_args(obj_ptr: *mut sys::godot_object) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptFunctionCallMethodTable::get(gd_api).get_use_default_args;
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 VisualScriptFunctionCall__set_argument_cache(obj_ptr: *mut sys::godot_object, argument_cache: Dictionary) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptFunctionCallMethodTable::get(gd_api)._set_argument_cache;
let mut argument_buffer : [*const libc::c_void; 1] = [
argument_cache.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 VisualScriptFunctionCall__get_argument_cache(obj_ptr: *mut sys::godot_object) -> Dictionary {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptFunctionCallMethodTable::get(gd_api)._get_argument_cache;
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 VisualScriptFunctionCall_set_rpc_call_mode(obj_ptr: *mut sys::godot_object, mode: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptFunctionCallMethodTable::get(gd_api).set_rpc_call_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 VisualScriptFunctionCall_get_rpc_call_mode(obj_ptr: *mut sys::godot_object) -> VisualScriptFunctionCallRPCCallMode {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptFunctionCallMethodTable::get(gd_api).get_rpc_call_mode;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: VisualScriptFunctionCallRPCCallMode = 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 VisualScriptFunctionCall_set_validate(obj_ptr: *mut sys::godot_object, enable: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptFunctionCallMethodTable::get(gd_api).set_validate;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&enable) 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 VisualScriptFunctionCall_get_validate(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptFunctionCallMethodTable::get(gd_api).get_validate;
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 VisualScriptDeconstructMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_deconstruct_type: *mut sys::godot_method_bind,
pub get_deconstruct_type: *mut sys::godot_method_bind,
pub _set_elem_cache: *mut sys::godot_method_bind,
pub _get_elem_cache: *mut sys::godot_method_bind,
}
impl VisualScriptDeconstructMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptDeconstructMethodTable = VisualScriptDeconstructMethodTable {
class_constructor: None,
set_deconstruct_type: 0 as *mut sys::godot_method_bind,
get_deconstruct_type: 0 as *mut sys::godot_method_bind,
_set_elem_cache: 0 as *mut sys::godot_method_bind,
_get_elem_cache: 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(|| {
VisualScriptDeconstructMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptDeconstruct\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_deconstruct_type = (gd_api.godot_method_bind_get_method)(class_name, "set_deconstruct_type\0".as_ptr() as *const c_char );
table.get_deconstruct_type = (gd_api.godot_method_bind_get_method)(class_name, "get_deconstruct_type\0".as_ptr() as *const c_char );
table._set_elem_cache = (gd_api.godot_method_bind_get_method)(class_name, "_set_elem_cache\0".as_ptr() as *const c_char );
table._get_elem_cache = (gd_api.godot_method_bind_get_method)(class_name, "_get_elem_cache\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn VisualScriptDeconstruct_set_deconstruct_type(obj_ptr: *mut sys::godot_object, _type: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptDeconstructMethodTable::get(gd_api).set_deconstruct_type;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&_type) 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 VisualScriptDeconstruct_get_deconstruct_type(obj_ptr: *mut sys::godot_object) -> VariantType {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptDeconstructMethodTable::get(gd_api).get_deconstruct_type;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: sys::godot_variant_type = sys::godot_variant_type_GODOT_VARIANT_TYPE_NIL;
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 _);
VariantType::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn VisualScriptDeconstruct__set_elem_cache(obj_ptr: *mut sys::godot_object, _cache: VariantArray) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptDeconstructMethodTable::get(gd_api)._set_elem_cache;
let mut argument_buffer : [*const libc::c_void; 1] = [
_cache.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 VisualScriptDeconstruct__get_elem_cache(obj_ptr: *mut sys::godot_object) -> VariantArray {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptDeconstructMethodTable::get(gd_api)._get_elem_cache;
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)]
#[allow(non_camel_case_types)]
pub struct VisualScriptInputActionMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_action_name: *mut sys::godot_method_bind,
pub get_action_name: *mut sys::godot_method_bind,
pub set_action_mode: *mut sys::godot_method_bind,
pub get_action_mode: *mut sys::godot_method_bind,
}
impl VisualScriptInputActionMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptInputActionMethodTable = VisualScriptInputActionMethodTable {
class_constructor: None,
set_action_name: 0 as *mut sys::godot_method_bind,
get_action_name: 0 as *mut sys::godot_method_bind,
set_action_mode: 0 as *mut sys::godot_method_bind,
get_action_mode: 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(|| {
VisualScriptInputActionMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptInputAction\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_action_name = (gd_api.godot_method_bind_get_method)(class_name, "set_action_name\0".as_ptr() as *const c_char );
table.get_action_name = (gd_api.godot_method_bind_get_method)(class_name, "get_action_name\0".as_ptr() as *const c_char );
table.set_action_mode = (gd_api.godot_method_bind_get_method)(class_name, "set_action_mode\0".as_ptr() as *const c_char );
table.get_action_mode = (gd_api.godot_method_bind_get_method)(class_name, "get_action_mode\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn VisualScriptInputAction_set_action_name(obj_ptr: *mut sys::godot_object, name: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptInputActionMethodTable::get(gd_api).set_action_name;
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 VisualScriptInputAction_get_action_name(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptInputActionMethodTable::get(gd_api).get_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 VisualScriptInputAction_set_action_mode(obj_ptr: *mut sys::godot_object, mode: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptInputActionMethodTable::get(gd_api).set_action_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 VisualScriptInputAction_get_action_mode(obj_ptr: *mut sys::godot_object) -> VisualScriptInputActionMode {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptInputActionMethodTable::get(gd_api).get_action_mode;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: VisualScriptInputActionMode = 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)]
#[allow(non_camel_case_types)]
pub struct VisualScriptPreloadMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_preload: *mut sys::godot_method_bind,
pub get_preload: *mut sys::godot_method_bind,
}
impl VisualScriptPreloadMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptPreloadMethodTable = VisualScriptPreloadMethodTable {
class_constructor: None,
set_preload: 0 as *mut sys::godot_method_bind,
get_preload: 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(|| {
VisualScriptPreloadMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptPreload\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_preload = (gd_api.godot_method_bind_get_method)(class_name, "set_preload\0".as_ptr() as *const c_char );
table.get_preload = (gd_api.godot_method_bind_get_method)(class_name, "get_preload\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn VisualScriptPreload_set_preload(obj_ptr: *mut sys::godot_object, resource: Option<Resource>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptPreloadMethodTable::get(gd_api).set_preload;
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 VisualScriptPreload_get_preload(obj_ptr: *mut sys::godot_object) -> Option<Resource> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptPreloadMethodTable::get(gd_api).get_preload;
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(Resource::from_sys(ret))
}
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct VisualScriptTypeCastMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_base_type: *mut sys::godot_method_bind,
pub get_base_type: *mut sys::godot_method_bind,
pub set_base_script: *mut sys::godot_method_bind,
pub get_base_script: *mut sys::godot_method_bind,
}
impl VisualScriptTypeCastMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptTypeCastMethodTable = VisualScriptTypeCastMethodTable {
class_constructor: None,
set_base_type: 0 as *mut sys::godot_method_bind,
get_base_type: 0 as *mut sys::godot_method_bind,
set_base_script: 0 as *mut sys::godot_method_bind,
get_base_script: 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(|| {
VisualScriptTypeCastMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptTypeCast\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_base_type = (gd_api.godot_method_bind_get_method)(class_name, "set_base_type\0".as_ptr() as *const c_char );
table.get_base_type = (gd_api.godot_method_bind_get_method)(class_name, "get_base_type\0".as_ptr() as *const c_char );
table.set_base_script = (gd_api.godot_method_bind_get_method)(class_name, "set_base_script\0".as_ptr() as *const c_char );
table.get_base_script = (gd_api.godot_method_bind_get_method)(class_name, "get_base_script\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn VisualScriptTypeCast_set_base_type(obj_ptr: *mut sys::godot_object, _type: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptTypeCastMethodTable::get(gd_api).set_base_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 VisualScriptTypeCast_get_base_type(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptTypeCastMethodTable::get(gd_api).get_base_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 VisualScriptTypeCast_set_base_script(obj_ptr: *mut sys::godot_object, path: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptTypeCastMethodTable::get(gd_api).set_base_script;
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 VisualScriptTypeCast_get_base_script(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptTypeCastMethodTable::get(gd_api).get_base_script;
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 VisualScriptLocalVarMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_var_name: *mut sys::godot_method_bind,
pub get_var_name: *mut sys::godot_method_bind,
pub set_var_type: *mut sys::godot_method_bind,
pub get_var_type: *mut sys::godot_method_bind,
}
impl VisualScriptLocalVarMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptLocalVarMethodTable = VisualScriptLocalVarMethodTable {
class_constructor: None,
set_var_name: 0 as *mut sys::godot_method_bind,
get_var_name: 0 as *mut sys::godot_method_bind,
set_var_type: 0 as *mut sys::godot_method_bind,
get_var_type: 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(|| {
VisualScriptLocalVarMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptLocalVar\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_var_name = (gd_api.godot_method_bind_get_method)(class_name, "set_var_name\0".as_ptr() as *const c_char );
table.get_var_name = (gd_api.godot_method_bind_get_method)(class_name, "get_var_name\0".as_ptr() as *const c_char );
table.set_var_type = (gd_api.godot_method_bind_get_method)(class_name, "set_var_type\0".as_ptr() as *const c_char );
table.get_var_type = (gd_api.godot_method_bind_get_method)(class_name, "get_var_type\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn VisualScriptLocalVar_set_var_name(obj_ptr: *mut sys::godot_object, name: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptLocalVarMethodTable::get(gd_api).set_var_name;
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 VisualScriptLocalVar_get_var_name(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptLocalVarMethodTable::get(gd_api).get_var_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 VisualScriptLocalVar_set_var_type(obj_ptr: *mut sys::godot_object, _type: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptLocalVarMethodTable::get(gd_api).set_var_type;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&_type) 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 VisualScriptLocalVar_get_var_type(obj_ptr: *mut sys::godot_object) -> VariantType {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptLocalVarMethodTable::get(gd_api).get_var_type;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: sys::godot_variant_type = sys::godot_variant_type_GODOT_VARIANT_TYPE_NIL;
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 _);
VariantType::from_sys(ret)
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct VisualScriptLocalVarSetMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_var_name: *mut sys::godot_method_bind,
pub get_var_name: *mut sys::godot_method_bind,
pub set_var_type: *mut sys::godot_method_bind,
pub get_var_type: *mut sys::godot_method_bind,
}
impl VisualScriptLocalVarSetMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptLocalVarSetMethodTable = VisualScriptLocalVarSetMethodTable {
class_constructor: None,
set_var_name: 0 as *mut sys::godot_method_bind,
get_var_name: 0 as *mut sys::godot_method_bind,
set_var_type: 0 as *mut sys::godot_method_bind,
get_var_type: 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(|| {
VisualScriptLocalVarSetMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptLocalVarSet\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_var_name = (gd_api.godot_method_bind_get_method)(class_name, "set_var_name\0".as_ptr() as *const c_char );
table.get_var_name = (gd_api.godot_method_bind_get_method)(class_name, "get_var_name\0".as_ptr() as *const c_char );
table.set_var_type = (gd_api.godot_method_bind_get_method)(class_name, "set_var_type\0".as_ptr() as *const c_char );
table.get_var_type = (gd_api.godot_method_bind_get_method)(class_name, "get_var_type\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn VisualScriptLocalVarSet_set_var_name(obj_ptr: *mut sys::godot_object, name: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptLocalVarSetMethodTable::get(gd_api).set_var_name;
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 VisualScriptLocalVarSet_get_var_name(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptLocalVarSetMethodTable::get(gd_api).get_var_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 VisualScriptLocalVarSet_set_var_type(obj_ptr: *mut sys::godot_object, _type: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptLocalVarSetMethodTable::get(gd_api).set_var_type;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&_type) 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 VisualScriptLocalVarSet_get_var_type(obj_ptr: *mut sys::godot_object) -> VariantType {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptLocalVarSetMethodTable::get(gd_api).get_var_type;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: sys::godot_variant_type = sys::godot_variant_type_GODOT_VARIANT_TYPE_NIL;
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 _);
VariantType::from_sys(ret)
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct VisualScriptPropertySetMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_base_type: *mut sys::godot_method_bind,
pub get_base_type: *mut sys::godot_method_bind,
pub set_base_script: *mut sys::godot_method_bind,
pub get_base_script: *mut sys::godot_method_bind,
pub set_basic_type: *mut sys::godot_method_bind,
pub get_basic_type: *mut sys::godot_method_bind,
pub _set_type_cache: *mut sys::godot_method_bind,
pub _get_type_cache: *mut sys::godot_method_bind,
pub set_property: *mut sys::godot_method_bind,
pub get_property: *mut sys::godot_method_bind,
pub set_call_mode: *mut sys::godot_method_bind,
pub get_call_mode: *mut sys::godot_method_bind,
pub set_base_path: *mut sys::godot_method_bind,
pub get_base_path: *mut sys::godot_method_bind,
pub set_index: *mut sys::godot_method_bind,
pub get_index: *mut sys::godot_method_bind,
pub set_assign_op: *mut sys::godot_method_bind,
pub get_assign_op: *mut sys::godot_method_bind,
}
impl VisualScriptPropertySetMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptPropertySetMethodTable = VisualScriptPropertySetMethodTable {
class_constructor: None,
set_base_type: 0 as *mut sys::godot_method_bind,
get_base_type: 0 as *mut sys::godot_method_bind,
set_base_script: 0 as *mut sys::godot_method_bind,
get_base_script: 0 as *mut sys::godot_method_bind,
set_basic_type: 0 as *mut sys::godot_method_bind,
get_basic_type: 0 as *mut sys::godot_method_bind,
_set_type_cache: 0 as *mut sys::godot_method_bind,
_get_type_cache: 0 as *mut sys::godot_method_bind,
set_property: 0 as *mut sys::godot_method_bind,
get_property: 0 as *mut sys::godot_method_bind,
set_call_mode: 0 as *mut sys::godot_method_bind,
get_call_mode: 0 as *mut sys::godot_method_bind,
set_base_path: 0 as *mut sys::godot_method_bind,
get_base_path: 0 as *mut sys::godot_method_bind,
set_index: 0 as *mut sys::godot_method_bind,
get_index: 0 as *mut sys::godot_method_bind,
set_assign_op: 0 as *mut sys::godot_method_bind,
get_assign_op: 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(|| {
VisualScriptPropertySetMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptPropertySet\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_base_type = (gd_api.godot_method_bind_get_method)(class_name, "set_base_type\0".as_ptr() as *const c_char );
table.get_base_type = (gd_api.godot_method_bind_get_method)(class_name, "get_base_type\0".as_ptr() as *const c_char );
table.set_base_script = (gd_api.godot_method_bind_get_method)(class_name, "set_base_script\0".as_ptr() as *const c_char );
table.get_base_script = (gd_api.godot_method_bind_get_method)(class_name, "get_base_script\0".as_ptr() as *const c_char );
table.set_basic_type = (gd_api.godot_method_bind_get_method)(class_name, "set_basic_type\0".as_ptr() as *const c_char );
table.get_basic_type = (gd_api.godot_method_bind_get_method)(class_name, "get_basic_type\0".as_ptr() as *const c_char );
table._set_type_cache = (gd_api.godot_method_bind_get_method)(class_name, "_set_type_cache\0".as_ptr() as *const c_char );
table._get_type_cache = (gd_api.godot_method_bind_get_method)(class_name, "_get_type_cache\0".as_ptr() as *const c_char );
table.set_property = (gd_api.godot_method_bind_get_method)(class_name, "set_property\0".as_ptr() as *const c_char );
table.get_property = (gd_api.godot_method_bind_get_method)(class_name, "get_property\0".as_ptr() as *const c_char );
table.set_call_mode = (gd_api.godot_method_bind_get_method)(class_name, "set_call_mode\0".as_ptr() as *const c_char );
table.get_call_mode = (gd_api.godot_method_bind_get_method)(class_name, "get_call_mode\0".as_ptr() as *const c_char );
table.set_base_path = (gd_api.godot_method_bind_get_method)(class_name, "set_base_path\0".as_ptr() as *const c_char );
table.get_base_path = (gd_api.godot_method_bind_get_method)(class_name, "get_base_path\0".as_ptr() as *const c_char );
table.set_index = (gd_api.godot_method_bind_get_method)(class_name, "set_index\0".as_ptr() as *const c_char );
table.get_index = (gd_api.godot_method_bind_get_method)(class_name, "get_index\0".as_ptr() as *const c_char );
table.set_assign_op = (gd_api.godot_method_bind_get_method)(class_name, "set_assign_op\0".as_ptr() as *const c_char );
table.get_assign_op = (gd_api.godot_method_bind_get_method)(class_name, "get_assign_op\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn VisualScriptPropertySet_set_base_type(obj_ptr: *mut sys::godot_object, base_type: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptPropertySetMethodTable::get(gd_api).set_base_type;
let mut argument_buffer : [*const libc::c_void; 1] = [
base_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 VisualScriptPropertySet_get_base_type(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptPropertySetMethodTable::get(gd_api).get_base_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 VisualScriptPropertySet_set_base_script(obj_ptr: *mut sys::godot_object, base_script: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptPropertySetMethodTable::get(gd_api).set_base_script;
let mut argument_buffer : [*const libc::c_void; 1] = [
base_script.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 VisualScriptPropertySet_get_base_script(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptPropertySetMethodTable::get(gd_api).get_base_script;
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 VisualScriptPropertySet_set_basic_type(obj_ptr: *mut sys::godot_object, basic_type: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptPropertySetMethodTable::get(gd_api).set_basic_type;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&basic_type) 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 VisualScriptPropertySet_get_basic_type(obj_ptr: *mut sys::godot_object) -> VariantType {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptPropertySetMethodTable::get(gd_api).get_basic_type;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: sys::godot_variant_type = sys::godot_variant_type_GODOT_VARIANT_TYPE_NIL;
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 _);
VariantType::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn VisualScriptPropertySet__set_type_cache(obj_ptr: *mut sys::godot_object, type_cache: Dictionary) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptPropertySetMethodTable::get(gd_api)._set_type_cache;
let mut argument_buffer : [*const libc::c_void; 1] = [
type_cache.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 VisualScriptPropertySet__get_type_cache(obj_ptr: *mut sys::godot_object) -> Dictionary {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptPropertySetMethodTable::get(gd_api)._get_type_cache;
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 VisualScriptPropertySet_set_property(obj_ptr: *mut sys::godot_object, property: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptPropertySetMethodTable::get(gd_api).set_property;
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 VisualScriptPropertySet_get_property(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptPropertySetMethodTable::get(gd_api).get_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 VisualScriptPropertySet_set_call_mode(obj_ptr: *mut sys::godot_object, mode: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptPropertySetMethodTable::get(gd_api).set_call_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 VisualScriptPropertySet_get_call_mode(obj_ptr: *mut sys::godot_object) -> VisualScriptPropertySetCallMode {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptPropertySetMethodTable::get(gd_api).get_call_mode;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: VisualScriptPropertySetCallMode = 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 VisualScriptPropertySet_set_base_path(obj_ptr: *mut sys::godot_object, base_path: NodePath) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptPropertySetMethodTable::get(gd_api).set_base_path;
let mut argument_buffer : [*const libc::c_void; 1] = [
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)]
pub unsafe fn VisualScriptPropertySet_get_base_path(obj_ptr: *mut sys::godot_object) -> NodePath {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptPropertySetMethodTable::get(gd_api).get_base_path;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_node_path::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 _);
NodePath::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn VisualScriptPropertySet_set_index(obj_ptr: *mut sys::godot_object, index: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptPropertySetMethodTable::get(gd_api).set_index;
let mut argument_buffer : [*const libc::c_void; 1] = [
index.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 VisualScriptPropertySet_get_index(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptPropertySetMethodTable::get(gd_api).get_index;
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 VisualScriptPropertySet_set_assign_op(obj_ptr: *mut sys::godot_object, assign_op: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptPropertySetMethodTable::get(gd_api).set_assign_op;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&assign_op) 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 VisualScriptPropertySet_get_assign_op(obj_ptr: *mut sys::godot_object) -> VisualScriptPropertySetAssignOp {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptPropertySetMethodTable::get(gd_api).get_assign_op;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: VisualScriptPropertySetAssignOp = 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)]
#[allow(non_camel_case_types)]
pub struct VisualScriptConditionMethodTable {
pub class_constructor: sys::godot_class_constructor,
}
impl VisualScriptConditionMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptConditionMethodTable = VisualScriptConditionMethodTable {
class_constructor: None,
};
&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(|| {
VisualScriptConditionMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptCondition\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
}
}
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct VisualScriptEmitSignalMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_signal: *mut sys::godot_method_bind,
pub get_signal: *mut sys::godot_method_bind,
}
impl VisualScriptEmitSignalMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptEmitSignalMethodTable = VisualScriptEmitSignalMethodTable {
class_constructor: None,
set_signal: 0 as *mut sys::godot_method_bind,
get_signal: 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(|| {
VisualScriptEmitSignalMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptEmitSignal\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_signal = (gd_api.godot_method_bind_get_method)(class_name, "set_signal\0".as_ptr() as *const c_char );
table.get_signal = (gd_api.godot_method_bind_get_method)(class_name, "get_signal\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn VisualScriptEmitSignal_set_signal(obj_ptr: *mut sys::godot_object, name: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptEmitSignalMethodTable::get(gd_api).set_signal;
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 VisualScriptEmitSignal_get_signal(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptEmitSignalMethodTable::get(gd_api).get_signal;
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 VisualScriptIteratorMethodTable {
pub class_constructor: sys::godot_class_constructor,
}
impl VisualScriptIteratorMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptIteratorMethodTable = VisualScriptIteratorMethodTable {
class_constructor: None,
};
&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(|| {
VisualScriptIteratorMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptIterator\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
}
}
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct VisualScriptPropertyGetMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_base_type: *mut sys::godot_method_bind,
pub get_base_type: *mut sys::godot_method_bind,
pub set_base_script: *mut sys::godot_method_bind,
pub get_base_script: *mut sys::godot_method_bind,
pub set_basic_type: *mut sys::godot_method_bind,
pub get_basic_type: *mut sys::godot_method_bind,
pub _set_type_cache: *mut sys::godot_method_bind,
pub _get_type_cache: *mut sys::godot_method_bind,
pub set_property: *mut sys::godot_method_bind,
pub get_property: *mut sys::godot_method_bind,
pub set_call_mode: *mut sys::godot_method_bind,
pub get_call_mode: *mut sys::godot_method_bind,
pub set_base_path: *mut sys::godot_method_bind,
pub get_base_path: *mut sys::godot_method_bind,
pub set_index: *mut sys::godot_method_bind,
pub get_index: *mut sys::godot_method_bind,
}
impl VisualScriptPropertyGetMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptPropertyGetMethodTable = VisualScriptPropertyGetMethodTable {
class_constructor: None,
set_base_type: 0 as *mut sys::godot_method_bind,
get_base_type: 0 as *mut sys::godot_method_bind,
set_base_script: 0 as *mut sys::godot_method_bind,
get_base_script: 0 as *mut sys::godot_method_bind,
set_basic_type: 0 as *mut sys::godot_method_bind,
get_basic_type: 0 as *mut sys::godot_method_bind,
_set_type_cache: 0 as *mut sys::godot_method_bind,
_get_type_cache: 0 as *mut sys::godot_method_bind,
set_property: 0 as *mut sys::godot_method_bind,
get_property: 0 as *mut sys::godot_method_bind,
set_call_mode: 0 as *mut sys::godot_method_bind,
get_call_mode: 0 as *mut sys::godot_method_bind,
set_base_path: 0 as *mut sys::godot_method_bind,
get_base_path: 0 as *mut sys::godot_method_bind,
set_index: 0 as *mut sys::godot_method_bind,
get_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(|| {
VisualScriptPropertyGetMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptPropertyGet\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_base_type = (gd_api.godot_method_bind_get_method)(class_name, "set_base_type\0".as_ptr() as *const c_char );
table.get_base_type = (gd_api.godot_method_bind_get_method)(class_name, "get_base_type\0".as_ptr() as *const c_char );
table.set_base_script = (gd_api.godot_method_bind_get_method)(class_name, "set_base_script\0".as_ptr() as *const c_char );
table.get_base_script = (gd_api.godot_method_bind_get_method)(class_name, "get_base_script\0".as_ptr() as *const c_char );
table.set_basic_type = (gd_api.godot_method_bind_get_method)(class_name, "set_basic_type\0".as_ptr() as *const c_char );
table.get_basic_type = (gd_api.godot_method_bind_get_method)(class_name, "get_basic_type\0".as_ptr() as *const c_char );
table._set_type_cache = (gd_api.godot_method_bind_get_method)(class_name, "_set_type_cache\0".as_ptr() as *const c_char );
table._get_type_cache = (gd_api.godot_method_bind_get_method)(class_name, "_get_type_cache\0".as_ptr() as *const c_char );
table.set_property = (gd_api.godot_method_bind_get_method)(class_name, "set_property\0".as_ptr() as *const c_char );
table.get_property = (gd_api.godot_method_bind_get_method)(class_name, "get_property\0".as_ptr() as *const c_char );
table.set_call_mode = (gd_api.godot_method_bind_get_method)(class_name, "set_call_mode\0".as_ptr() as *const c_char );
table.get_call_mode = (gd_api.godot_method_bind_get_method)(class_name, "get_call_mode\0".as_ptr() as *const c_char );
table.set_base_path = (gd_api.godot_method_bind_get_method)(class_name, "set_base_path\0".as_ptr() as *const c_char );
table.get_base_path = (gd_api.godot_method_bind_get_method)(class_name, "get_base_path\0".as_ptr() as *const c_char );
table.set_index = (gd_api.godot_method_bind_get_method)(class_name, "set_index\0".as_ptr() as *const c_char );
table.get_index = (gd_api.godot_method_bind_get_method)(class_name, "get_index\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn VisualScriptPropertyGet_set_base_type(obj_ptr: *mut sys::godot_object, base_type: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptPropertyGetMethodTable::get(gd_api).set_base_type;
let mut argument_buffer : [*const libc::c_void; 1] = [
base_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 VisualScriptPropertyGet_get_base_type(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptPropertyGetMethodTable::get(gd_api).get_base_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 VisualScriptPropertyGet_set_base_script(obj_ptr: *mut sys::godot_object, base_script: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptPropertyGetMethodTable::get(gd_api).set_base_script;
let mut argument_buffer : [*const libc::c_void; 1] = [
base_script.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 VisualScriptPropertyGet_get_base_script(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptPropertyGetMethodTable::get(gd_api).get_base_script;
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 VisualScriptPropertyGet_set_basic_type(obj_ptr: *mut sys::godot_object, basic_type: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptPropertyGetMethodTable::get(gd_api).set_basic_type;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&basic_type) 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 VisualScriptPropertyGet_get_basic_type(obj_ptr: *mut sys::godot_object) -> VariantType {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptPropertyGetMethodTable::get(gd_api).get_basic_type;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: sys::godot_variant_type = sys::godot_variant_type_GODOT_VARIANT_TYPE_NIL;
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 _);
VariantType::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn VisualScriptPropertyGet__set_type_cache(obj_ptr: *mut sys::godot_object, type_cache: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptPropertyGetMethodTable::get(gd_api)._set_type_cache;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&type_cache) 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 VisualScriptPropertyGet__get_type_cache(obj_ptr: *mut sys::godot_object) -> VariantType {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptPropertyGetMethodTable::get(gd_api)._get_type_cache;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: sys::godot_variant_type = sys::godot_variant_type_GODOT_VARIANT_TYPE_NIL;
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 _);
VariantType::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn VisualScriptPropertyGet_set_property(obj_ptr: *mut sys::godot_object, property: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptPropertyGetMethodTable::get(gd_api).set_property;
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 VisualScriptPropertyGet_get_property(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptPropertyGetMethodTable::get(gd_api).get_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 VisualScriptPropertyGet_set_call_mode(obj_ptr: *mut sys::godot_object, mode: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptPropertyGetMethodTable::get(gd_api).set_call_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 VisualScriptPropertyGet_get_call_mode(obj_ptr: *mut sys::godot_object) -> VisualScriptPropertyGetCallMode {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptPropertyGetMethodTable::get(gd_api).get_call_mode;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: VisualScriptPropertyGetCallMode = 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 VisualScriptPropertyGet_set_base_path(obj_ptr: *mut sys::godot_object, base_path: NodePath) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptPropertyGetMethodTable::get(gd_api).set_base_path;
let mut argument_buffer : [*const libc::c_void; 1] = [
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)]
pub unsafe fn VisualScriptPropertyGet_get_base_path(obj_ptr: *mut sys::godot_object) -> NodePath {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptPropertyGetMethodTable::get(gd_api).get_base_path;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_node_path::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 _);
NodePath::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn VisualScriptPropertyGet_set_index(obj_ptr: *mut sys::godot_object, index: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptPropertyGetMethodTable::get(gd_api).set_index;
let mut argument_buffer : [*const libc::c_void; 1] = [
index.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 VisualScriptPropertyGet_get_index(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptPropertyGetMethodTable::get(gd_api).get_index;
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 VisualScriptReturnMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_return_type: *mut sys::godot_method_bind,
pub get_return_type: *mut sys::godot_method_bind,
pub set_enable_return_value: *mut sys::godot_method_bind,
pub is_return_value_enabled: *mut sys::godot_method_bind,
}
impl VisualScriptReturnMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptReturnMethodTable = VisualScriptReturnMethodTable {
class_constructor: None,
set_return_type: 0 as *mut sys::godot_method_bind,
get_return_type: 0 as *mut sys::godot_method_bind,
set_enable_return_value: 0 as *mut sys::godot_method_bind,
is_return_value_enabled: 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(|| {
VisualScriptReturnMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptReturn\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_return_type = (gd_api.godot_method_bind_get_method)(class_name, "set_return_type\0".as_ptr() as *const c_char );
table.get_return_type = (gd_api.godot_method_bind_get_method)(class_name, "get_return_type\0".as_ptr() as *const c_char );
table.set_enable_return_value = (gd_api.godot_method_bind_get_method)(class_name, "set_enable_return_value\0".as_ptr() as *const c_char );
table.is_return_value_enabled = (gd_api.godot_method_bind_get_method)(class_name, "is_return_value_enabled\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn VisualScriptReturn_set_return_type(obj_ptr: *mut sys::godot_object, _type: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptReturnMethodTable::get(gd_api).set_return_type;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&_type) 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 VisualScriptReturn_get_return_type(obj_ptr: *mut sys::godot_object) -> VariantType {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptReturnMethodTable::get(gd_api).get_return_type;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: sys::godot_variant_type = sys::godot_variant_type_GODOT_VARIANT_TYPE_NIL;
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 _);
VariantType::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn VisualScriptReturn_set_enable_return_value(obj_ptr: *mut sys::godot_object, enable: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptReturnMethodTable::get(gd_api).set_enable_return_value;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&enable) 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 VisualScriptReturn_is_return_value_enabled(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptReturnMethodTable::get(gd_api).is_return_value_enabled;
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 VisualScriptWhileMethodTable {
pub class_constructor: sys::godot_class_constructor,
}
impl VisualScriptWhileMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptWhileMethodTable = VisualScriptWhileMethodTable {
class_constructor: None,
};
&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(|| {
VisualScriptWhileMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptWhile\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
}
}
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct VisualScriptYieldMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_yield_mode: *mut sys::godot_method_bind,
pub get_yield_mode: *mut sys::godot_method_bind,
pub set_wait_time: *mut sys::godot_method_bind,
pub get_wait_time: *mut sys::godot_method_bind,
}
impl VisualScriptYieldMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptYieldMethodTable = VisualScriptYieldMethodTable {
class_constructor: None,
set_yield_mode: 0 as *mut sys::godot_method_bind,
get_yield_mode: 0 as *mut sys::godot_method_bind,
set_wait_time: 0 as *mut sys::godot_method_bind,
get_wait_time: 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(|| {
VisualScriptYieldMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptYield\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_yield_mode = (gd_api.godot_method_bind_get_method)(class_name, "set_yield_mode\0".as_ptr() as *const c_char );
table.get_yield_mode = (gd_api.godot_method_bind_get_method)(class_name, "get_yield_mode\0".as_ptr() as *const c_char );
table.set_wait_time = (gd_api.godot_method_bind_get_method)(class_name, "set_wait_time\0".as_ptr() as *const c_char );
table.get_wait_time = (gd_api.godot_method_bind_get_method)(class_name, "get_wait_time\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn VisualScriptYield_set_yield_mode(obj_ptr: *mut sys::godot_object, mode: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptYieldMethodTable::get(gd_api).set_yield_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 VisualScriptYield_get_yield_mode(obj_ptr: *mut sys::godot_object) -> VisualScriptYieldYieldMode {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptYieldMethodTable::get(gd_api).get_yield_mode;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: VisualScriptYieldYieldMode = 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 VisualScriptYield_set_wait_time(obj_ptr: *mut sys::godot_object, sec: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptYieldMethodTable::get(gd_api).set_wait_time;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&sec) 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 VisualScriptYield_get_wait_time(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptYieldMethodTable::get(gd_api).get_wait_time;
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)]
#[allow(non_camel_case_types)]
pub struct VisualScriptSequenceMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_steps: *mut sys::godot_method_bind,
pub get_steps: *mut sys::godot_method_bind,
}
impl VisualScriptSequenceMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptSequenceMethodTable = VisualScriptSequenceMethodTable {
class_constructor: None,
set_steps: 0 as *mut sys::godot_method_bind,
get_steps: 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(|| {
VisualScriptSequenceMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptSequence\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_steps = (gd_api.godot_method_bind_get_method)(class_name, "set_steps\0".as_ptr() as *const c_char );
table.get_steps = (gd_api.godot_method_bind_get_method)(class_name, "get_steps\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn VisualScriptSequence_set_steps(obj_ptr: *mut sys::godot_object, steps: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptSequenceMethodTable::get(gd_api).set_steps;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&steps) 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 VisualScriptSequence_get_steps(obj_ptr: *mut sys::godot_object) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptSequenceMethodTable::get(gd_api).get_steps;
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)]
#[allow(non_camel_case_types)]
pub struct VisualScriptSwitchMethodTable {
pub class_constructor: sys::godot_class_constructor,
}
impl VisualScriptSwitchMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptSwitchMethodTable = VisualScriptSwitchMethodTable {
class_constructor: None,
};
&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(|| {
VisualScriptSwitchMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptSwitch\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
}
}
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct VisualScriptYieldSignalMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_base_type: *mut sys::godot_method_bind,
pub get_base_type: *mut sys::godot_method_bind,
pub set_signal: *mut sys::godot_method_bind,
pub get_signal: *mut sys::godot_method_bind,
pub set_call_mode: *mut sys::godot_method_bind,
pub get_call_mode: *mut sys::godot_method_bind,
pub set_base_path: *mut sys::godot_method_bind,
pub get_base_path: *mut sys::godot_method_bind,
}
impl VisualScriptYieldSignalMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptYieldSignalMethodTable = VisualScriptYieldSignalMethodTable {
class_constructor: None,
set_base_type: 0 as *mut sys::godot_method_bind,
get_base_type: 0 as *mut sys::godot_method_bind,
set_signal: 0 as *mut sys::godot_method_bind,
get_signal: 0 as *mut sys::godot_method_bind,
set_call_mode: 0 as *mut sys::godot_method_bind,
get_call_mode: 0 as *mut sys::godot_method_bind,
set_base_path: 0 as *mut sys::godot_method_bind,
get_base_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(|| {
VisualScriptYieldSignalMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptYieldSignal\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_base_type = (gd_api.godot_method_bind_get_method)(class_name, "set_base_type\0".as_ptr() as *const c_char );
table.get_base_type = (gd_api.godot_method_bind_get_method)(class_name, "get_base_type\0".as_ptr() as *const c_char );
table.set_signal = (gd_api.godot_method_bind_get_method)(class_name, "set_signal\0".as_ptr() as *const c_char );
table.get_signal = (gd_api.godot_method_bind_get_method)(class_name, "get_signal\0".as_ptr() as *const c_char );
table.set_call_mode = (gd_api.godot_method_bind_get_method)(class_name, "set_call_mode\0".as_ptr() as *const c_char );
table.get_call_mode = (gd_api.godot_method_bind_get_method)(class_name, "get_call_mode\0".as_ptr() as *const c_char );
table.set_base_path = (gd_api.godot_method_bind_get_method)(class_name, "set_base_path\0".as_ptr() as *const c_char );
table.get_base_path = (gd_api.godot_method_bind_get_method)(class_name, "get_base_path\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn VisualScriptYieldSignal_set_base_type(obj_ptr: *mut sys::godot_object, base_type: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptYieldSignalMethodTable::get(gd_api).set_base_type;
let mut argument_buffer : [*const libc::c_void; 1] = [
base_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 VisualScriptYieldSignal_get_base_type(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptYieldSignalMethodTable::get(gd_api).get_base_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 VisualScriptYieldSignal_set_signal(obj_ptr: *mut sys::godot_object, signal: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptYieldSignalMethodTable::get(gd_api).set_signal;
let mut argument_buffer : [*const libc::c_void; 1] = [
signal.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 VisualScriptYieldSignal_get_signal(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptYieldSignalMethodTable::get(gd_api).get_signal;
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 VisualScriptYieldSignal_set_call_mode(obj_ptr: *mut sys::godot_object, mode: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptYieldSignalMethodTable::get(gd_api).set_call_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 VisualScriptYieldSignal_get_call_mode(obj_ptr: *mut sys::godot_object) -> VisualScriptYieldSignalCallMode {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptYieldSignalMethodTable::get(gd_api).get_call_mode;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: VisualScriptYieldSignalCallMode = 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 VisualScriptYieldSignal_set_base_path(obj_ptr: *mut sys::godot_object, base_path: NodePath) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptYieldSignalMethodTable::get(gd_api).set_base_path;
let mut argument_buffer : [*const libc::c_void; 1] = [
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)]
pub unsafe fn VisualScriptYieldSignal_get_base_path(obj_ptr: *mut sys::godot_object) -> NodePath {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptYieldSignalMethodTable::get(gd_api).get_base_path;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_node_path::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 _);
NodePath::from_sys(ret)
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct VisualScriptBuiltinFuncMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_func: *mut sys::godot_method_bind,
pub get_func: *mut sys::godot_method_bind,
}
impl VisualScriptBuiltinFuncMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptBuiltinFuncMethodTable = VisualScriptBuiltinFuncMethodTable {
class_constructor: None,
set_func: 0 as *mut sys::godot_method_bind,
get_func: 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(|| {
VisualScriptBuiltinFuncMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptBuiltinFunc\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_func = (gd_api.godot_method_bind_get_method)(class_name, "set_func\0".as_ptr() as *const c_char );
table.get_func = (gd_api.godot_method_bind_get_method)(class_name, "get_func\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn VisualScriptBuiltinFunc_set_func(obj_ptr: *mut sys::godot_object, which: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptBuiltinFuncMethodTable::get(gd_api).set_func;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&which) 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 VisualScriptBuiltinFunc_get_func(obj_ptr: *mut sys::godot_object) -> VisualScriptBuiltinFuncBuiltinFunc {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptBuiltinFuncMethodTable::get(gd_api).get_func;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: VisualScriptBuiltinFuncBuiltinFunc = 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)]
#[allow(non_camel_case_types)]
pub struct VisualScriptSelectMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_typed: *mut sys::godot_method_bind,
pub get_typed: *mut sys::godot_method_bind,
}
impl VisualScriptSelectMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptSelectMethodTable = VisualScriptSelectMethodTable {
class_constructor: None,
set_typed: 0 as *mut sys::godot_method_bind,
get_typed: 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(|| {
VisualScriptSelectMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptSelect\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_typed = (gd_api.godot_method_bind_get_method)(class_name, "set_typed\0".as_ptr() as *const c_char );
table.get_typed = (gd_api.godot_method_bind_get_method)(class_name, "get_typed\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn VisualScriptSelect_set_typed(obj_ptr: *mut sys::godot_object, _type: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptSelectMethodTable::get(gd_api).set_typed;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&_type) 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 VisualScriptSelect_get_typed(obj_ptr: *mut sys::godot_object) -> VariantType {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptSelectMethodTable::get(gd_api).get_typed;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: sys::godot_variant_type = sys::godot_variant_type_GODOT_VARIANT_TYPE_NIL;
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 _);
VariantType::from_sys(ret)
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct VisualScriptExpressionMethodTable {
pub class_constructor: sys::godot_class_constructor,
}
impl VisualScriptExpressionMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptExpressionMethodTable = VisualScriptExpressionMethodTable {
class_constructor: None,
};
&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(|| {
VisualScriptExpressionMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptExpression\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
}
}
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct VisualScriptEditorMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub add_custom_node: *mut sys::godot_method_bind,
pub remove_custom_node: *mut sys::godot_method_bind,
}
impl VisualScriptEditorMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VisualScriptEditorMethodTable = VisualScriptEditorMethodTable {
class_constructor: None,
add_custom_node: 0 as *mut sys::godot_method_bind,
remove_custom_node: 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(|| {
VisualScriptEditorMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VisualScriptEditor\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.add_custom_node = (gd_api.godot_method_bind_get_method)(class_name, "add_custom_node\0".as_ptr() as *const c_char );
table.remove_custom_node = (gd_api.godot_method_bind_get_method)(class_name, "remove_custom_node\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn VisualScriptEditor_add_custom_node(obj_ptr: *mut sys::godot_object, name: GodotString, category: GodotString, script: Option<Script>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptEditorMethodTable::get(gd_api).add_custom_node;
let mut argument_buffer : [*const libc::c_void; 3] = [
name.sys() as *const _ as *const _,
category.sys() as *const _ as *const _,
if let Some(arg) = script { 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 VisualScriptEditor_remove_custom_node(obj_ptr: *mut sys::godot_object, name: GodotString, category: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VisualScriptEditorMethodTable::get(gd_api).remove_custom_node;
let mut argument_buffer : [*const libc::c_void; 2] = [
name.sys() as *const _ as *const _,
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 _);
}