use std::os::raw::c_char;
use std::ptr;
use std::mem;
#[derive(Copy, Clone)]
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct AudioServer {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum AudioServerSpeakerMode {
ModeStereo = 0,
Surround51 = 2,
Surround71 = 3,
}
unsafe impl GodotObject for AudioServer {
fn class_name() -> &'static str {
"AudioServer"
}
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 AudioServer {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AudioServer {
#[inline]
pub fn godot_singleton() -> Self {
unsafe {
let this = (get_api().godot_global_get_singleton)(b"AudioServer\0".as_ptr() as *mut _);
AudioServer {
this
}
}
}
#[inline]
pub fn set_bus_count(&mut self, amount: i64) -> () {
unsafe { AudioServer_set_bus_count(self.this, amount) }
}
#[inline]
pub fn get_bus_count(&self) -> i64 {
unsafe { AudioServer_get_bus_count(self.this) }
}
#[inline]
pub fn remove_bus(&mut self, index: i64) -> () {
unsafe { AudioServer_remove_bus(self.this, index) }
}
#[inline]
pub fn add_bus(&mut self, at_position: i64) -> () {
unsafe { AudioServer_add_bus(self.this, at_position) }
}
#[inline]
pub fn move_bus(&mut self, index: i64, to_index: i64) -> () {
unsafe { AudioServer_move_bus(self.this, index, to_index) }
}
#[inline]
pub fn set_bus_name(&mut self, bus_idx: i64, name: GodotString) -> () {
unsafe { AudioServer_set_bus_name(self.this, bus_idx, name) }
}
#[inline]
pub fn get_bus_name(&self, bus_idx: i64) -> GodotString {
unsafe { AudioServer_get_bus_name(self.this, bus_idx) }
}
#[inline]
pub fn get_bus_index(&self, bus_name: GodotString) -> i64 {
unsafe { AudioServer_get_bus_index(self.this, bus_name) }
}
#[inline]
pub fn set_bus_volume_db(&mut self, bus_idx: i64, volume_db: f64) -> () {
unsafe { AudioServer_set_bus_volume_db(self.this, bus_idx, volume_db) }
}
#[inline]
pub fn get_bus_volume_db(&self, bus_idx: i64) -> f64 {
unsafe { AudioServer_get_bus_volume_db(self.this, bus_idx) }
}
#[inline]
pub fn set_bus_send(&mut self, bus_idx: i64, send: GodotString) -> () {
unsafe { AudioServer_set_bus_send(self.this, bus_idx, send) }
}
#[inline]
pub fn get_bus_send(&self, bus_idx: i64) -> GodotString {
unsafe { AudioServer_get_bus_send(self.this, bus_idx) }
}
#[inline]
pub fn set_bus_solo(&mut self, bus_idx: i64, enable: bool) -> () {
unsafe { AudioServer_set_bus_solo(self.this, bus_idx, enable) }
}
#[inline]
pub fn is_bus_solo(&self, bus_idx: i64) -> bool {
unsafe { AudioServer_is_bus_solo(self.this, bus_idx) }
}
#[inline]
pub fn set_bus_mute(&mut self, bus_idx: i64, enable: bool) -> () {
unsafe { AudioServer_set_bus_mute(self.this, bus_idx, enable) }
}
#[inline]
pub fn is_bus_mute(&self, bus_idx: i64) -> bool {
unsafe { AudioServer_is_bus_mute(self.this, bus_idx) }
}
#[inline]
pub fn set_bus_bypass_effects(&mut self, bus_idx: i64, enable: bool) -> () {
unsafe { AudioServer_set_bus_bypass_effects(self.this, bus_idx, enable) }
}
#[inline]
pub fn is_bus_bypassing_effects(&self, bus_idx: i64) -> bool {
unsafe { AudioServer_is_bus_bypassing_effects(self.this, bus_idx) }
}
#[inline]
pub fn add_bus_effect(&mut self, bus_idx: i64, effect: Option<AudioEffect>, at_position: i64) -> () {
unsafe { AudioServer_add_bus_effect(self.this, bus_idx, effect, at_position) }
}
#[inline]
pub fn remove_bus_effect(&mut self, bus_idx: i64, effect_idx: i64) -> () {
unsafe { AudioServer_remove_bus_effect(self.this, bus_idx, effect_idx) }
}
#[inline]
pub fn get_bus_effect_count(&mut self, bus_idx: i64) -> i64 {
unsafe { AudioServer_get_bus_effect_count(self.this, bus_idx) }
}
#[inline]
pub fn get_bus_effect(&mut self, bus_idx: i64, effect_idx: i64) -> Option<AudioEffect> {
unsafe { AudioServer_get_bus_effect(self.this, bus_idx, effect_idx) }
}
#[inline]
pub fn swap_bus_effects(&mut self, bus_idx: i64, effect_idx: i64, by_effect_idx: i64) -> () {
unsafe { AudioServer_swap_bus_effects(self.this, bus_idx, effect_idx, by_effect_idx) }
}
#[inline]
pub fn set_bus_effect_enabled(&mut self, bus_idx: i64, effect_idx: i64, enabled: bool) -> () {
unsafe { AudioServer_set_bus_effect_enabled(self.this, bus_idx, effect_idx, enabled) }
}
#[inline]
pub fn is_bus_effect_enabled(&self, bus_idx: i64, effect_idx: i64) -> bool {
unsafe { AudioServer_is_bus_effect_enabled(self.this, bus_idx, effect_idx) }
}
#[inline]
pub fn get_bus_peak_volume_left_db(&self, bus_idx: i64, channel: i64) -> f64 {
unsafe { AudioServer_get_bus_peak_volume_left_db(self.this, bus_idx, channel) }
}
#[inline]
pub fn get_bus_peak_volume_right_db(&self, bus_idx: i64, channel: i64) -> f64 {
unsafe { AudioServer_get_bus_peak_volume_right_db(self.this, bus_idx, channel) }
}
#[inline]
pub fn lock(&mut self) -> () {
unsafe { AudioServer_lock(self.this) }
}
#[inline]
pub fn unlock(&mut self) -> () {
unsafe { AudioServer_unlock(self.this) }
}
#[inline]
pub fn get_speaker_mode(&self) -> AudioServerSpeakerMode {
unsafe { AudioServer_get_speaker_mode(self.this) }
}
#[inline]
pub fn get_mix_rate(&self) -> f64 {
unsafe { AudioServer_get_mix_rate(self.this) }
}
#[inline]
pub fn get_device_list(&mut self) -> VariantArray {
unsafe { AudioServer_get_device_list(self.this) }
}
#[inline]
pub fn get_device(&mut self) -> GodotString {
unsafe { AudioServer_get_device(self.this) }
}
#[inline]
pub fn set_device(&mut self, arg0: GodotString) -> () {
unsafe { AudioServer_set_device(self.this, arg0) }
}
#[inline]
pub fn set_bus_layout(&mut self, bus_layout: Option<AudioBusLayout>) -> () {
unsafe { AudioServer_set_bus_layout(self.this, bus_layout) }
}
#[inline]
pub fn generate_bus_layout(&self) -> Option<AudioBusLayout> {
unsafe { AudioServer_generate_bus_layout(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_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 AudioStreamRandomPitch {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AudioStreamRandomPitch {
fn class_name() -> &'static str {
"AudioStreamRandomPitch"
}
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 AudioStreamRandomPitch {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AudioStreamRandomPitch {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AudioStreamRandomPitchMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AudioStreamRandomPitch {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_audio_stream(&mut self, stream: Option<AudioStream>) -> () {
unsafe { AudioStreamRandomPitch_set_audio_stream(self.this, stream) }
}
#[inline]
pub fn get_audio_stream(&self) -> Option<AudioStream> {
unsafe { AudioStreamRandomPitch_get_audio_stream(self.this) }
}
#[inline]
pub fn set_random_pitch(&mut self, scale: f64) -> () {
unsafe { AudioStreamRandomPitch_set_random_pitch(self.this, scale) }
}
#[inline]
pub fn get_random_pitch(&self) -> f64 {
unsafe { AudioStreamRandomPitch_get_random_pitch(self.this) }
}
#[inline]
pub fn get_length(&self) -> f64 {
unsafe { AudioStream_get_length(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_audio_stream(&self) -> AudioStream {
unsafe {{ object::add_ref(self.this); }}
AudioStream { 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 AudioStreamRandomPitch {
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 AudioEffectEQ {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AudioEffectEQ {
fn class_name() -> &'static str {
"AudioEffectEQ"
}
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 AudioEffectEQ {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AudioEffectEQ {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AudioEffectEQMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AudioEffectEQ {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_band_gain_db(&mut self, band_idx: i64, volume_db: f64) -> () {
unsafe { AudioEffectEQ_set_band_gain_db(self.this, band_idx, volume_db) }
}
#[inline]
pub fn get_band_gain_db(&self, band_idx: i64) -> f64 {
unsafe { AudioEffectEQ_get_band_gain_db(self.this, band_idx) }
}
#[inline]
pub fn get_band_count(&self) -> i64 {
unsafe { AudioEffectEQ_get_band_count(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_audio_effect(&self) -> AudioEffect {
unsafe {{ object::add_ref(self.this); }}
AudioEffect { 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 AudioEffectEQ {
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 AudioStreamPlayback {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AudioStreamPlayback {
fn class_name() -> &'static str {
"AudioStreamPlayback"
}
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 AudioStreamPlayback {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AudioStreamPlayback {
#[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)
}
}
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct AudioEffectFilter {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum AudioEffectFilterFilterDB {
Filter6db = 0,
Filter12db = 1,
Filter18db = 2,
Filter24db = 3,
}
unsafe impl GodotObject for AudioEffectFilter {
fn class_name() -> &'static str {
"AudioEffectFilter"
}
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 AudioEffectFilter {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AudioEffectFilter {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AudioEffectFilterMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AudioEffectFilter {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_cutoff(&mut self, freq: f64) -> () {
unsafe { AudioEffectFilter_set_cutoff(self.this, freq) }
}
#[inline]
pub fn get_cutoff(&self) -> f64 {
unsafe { AudioEffectFilter_get_cutoff(self.this) }
}
#[inline]
pub fn set_resonance(&mut self, amount: f64) -> () {
unsafe { AudioEffectFilter_set_resonance(self.this, amount) }
}
#[inline]
pub fn get_resonance(&self) -> f64 {
unsafe { AudioEffectFilter_get_resonance(self.this) }
}
#[inline]
pub fn set_gain(&mut self, amount: f64) -> () {
unsafe { AudioEffectFilter_set_gain(self.this, amount) }
}
#[inline]
pub fn get_gain(&self) -> f64 {
unsafe { AudioEffectFilter_get_gain(self.this) }
}
#[inline]
pub fn set_db(&mut self, amount: i64) -> () {
unsafe { AudioEffectFilter_set_db(self.this, amount) }
}
#[inline]
pub fn get_db(&self) -> AudioEffectFilterFilterDB {
unsafe { AudioEffectFilter_get_db(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_audio_effect(&self) -> AudioEffect {
unsafe {{ object::add_ref(self.this); }}
AudioEffect { 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 AudioEffectFilter {
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 AudioBusLayout {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AudioBusLayout {
fn class_name() -> &'static str {
"AudioBusLayout"
}
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 AudioBusLayout {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AudioBusLayout {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AudioBusLayoutMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AudioBusLayout {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: 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)
}
}
impl Drop for AudioBusLayout {
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 AudioEffectAmplify {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AudioEffectAmplify {
fn class_name() -> &'static str {
"AudioEffectAmplify"
}
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 AudioEffectAmplify {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AudioEffectAmplify {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AudioEffectAmplifyMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AudioEffectAmplify {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_volume_db(&mut self, volume: f64) -> () {
unsafe { AudioEffectAmplify_set_volume_db(self.this, volume) }
}
#[inline]
pub fn get_volume_db(&self) -> f64 {
unsafe { AudioEffectAmplify_get_volume_db(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_audio_effect(&self) -> AudioEffect {
unsafe {{ object::add_ref(self.this); }}
AudioEffect { 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 AudioEffectAmplify {
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 AudioStream {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AudioStream {
fn class_name() -> &'static str {
"AudioStream"
}
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 AudioStream {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AudioStream {
#[inline]
pub fn get_length(&self) -> f64 {
unsafe { AudioStream_get_length(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 AudioEffect {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AudioEffect {
fn class_name() -> &'static str {
"AudioEffect"
}
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 AudioEffect {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AudioEffect {
#[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 AudioEffectHighPassFilter {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AudioEffectHighPassFilter {
fn class_name() -> &'static str {
"AudioEffectHighPassFilter"
}
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 AudioEffectHighPassFilter {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AudioEffectHighPassFilter {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AudioEffectHighPassFilterMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AudioEffectHighPassFilter {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_cutoff(&mut self, freq: f64) -> () {
unsafe { AudioEffectFilter_set_cutoff(self.this, freq) }
}
#[inline]
pub fn get_cutoff(&self) -> f64 {
unsafe { AudioEffectFilter_get_cutoff(self.this) }
}
#[inline]
pub fn set_resonance(&mut self, amount: f64) -> () {
unsafe { AudioEffectFilter_set_resonance(self.this, amount) }
}
#[inline]
pub fn get_resonance(&self) -> f64 {
unsafe { AudioEffectFilter_get_resonance(self.this) }
}
#[inline]
pub fn set_gain(&mut self, amount: f64) -> () {
unsafe { AudioEffectFilter_set_gain(self.this, amount) }
}
#[inline]
pub fn get_gain(&self) -> f64 {
unsafe { AudioEffectFilter_get_gain(self.this) }
}
#[inline]
pub fn set_db(&mut self, amount: i64) -> () {
unsafe { AudioEffectFilter_set_db(self.this, amount) }
}
#[inline]
pub fn get_db(&self) -> AudioEffectFilterFilterDB {
unsafe { AudioEffectFilter_get_db(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_audio_effect_filter(&self) -> AudioEffectFilter {
unsafe {{ object::add_ref(self.this); }}
AudioEffectFilter { this: self.this }
}
#[inline]
pub fn to_audio_effect(&self) -> AudioEffect {
unsafe {{ object::add_ref(self.this); }}
AudioEffect { 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 AudioEffectHighPassFilter {
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 AudioEffectNotchFilter {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AudioEffectNotchFilter {
fn class_name() -> &'static str {
"AudioEffectNotchFilter"
}
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 AudioEffectNotchFilter {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AudioEffectNotchFilter {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AudioEffectNotchFilterMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AudioEffectNotchFilter {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_cutoff(&mut self, freq: f64) -> () {
unsafe { AudioEffectFilter_set_cutoff(self.this, freq) }
}
#[inline]
pub fn get_cutoff(&self) -> f64 {
unsafe { AudioEffectFilter_get_cutoff(self.this) }
}
#[inline]
pub fn set_resonance(&mut self, amount: f64) -> () {
unsafe { AudioEffectFilter_set_resonance(self.this, amount) }
}
#[inline]
pub fn get_resonance(&self) -> f64 {
unsafe { AudioEffectFilter_get_resonance(self.this) }
}
#[inline]
pub fn set_gain(&mut self, amount: f64) -> () {
unsafe { AudioEffectFilter_set_gain(self.this, amount) }
}
#[inline]
pub fn get_gain(&self) -> f64 {
unsafe { AudioEffectFilter_get_gain(self.this) }
}
#[inline]
pub fn set_db(&mut self, amount: i64) -> () {
unsafe { AudioEffectFilter_set_db(self.this, amount) }
}
#[inline]
pub fn get_db(&self) -> AudioEffectFilterFilterDB {
unsafe { AudioEffectFilter_get_db(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_audio_effect_filter(&self) -> AudioEffectFilter {
unsafe {{ object::add_ref(self.this); }}
AudioEffectFilter { this: self.this }
}
#[inline]
pub fn to_audio_effect(&self) -> AudioEffect {
unsafe {{ object::add_ref(self.this); }}
AudioEffect { 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 AudioEffectNotchFilter {
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 AudioEffectBandLimitFilter {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AudioEffectBandLimitFilter {
fn class_name() -> &'static str {
"AudioEffectBandLimitFilter"
}
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 AudioEffectBandLimitFilter {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AudioEffectBandLimitFilter {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AudioEffectBandLimitFilterMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AudioEffectBandLimitFilter {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_cutoff(&mut self, freq: f64) -> () {
unsafe { AudioEffectFilter_set_cutoff(self.this, freq) }
}
#[inline]
pub fn get_cutoff(&self) -> f64 {
unsafe { AudioEffectFilter_get_cutoff(self.this) }
}
#[inline]
pub fn set_resonance(&mut self, amount: f64) -> () {
unsafe { AudioEffectFilter_set_resonance(self.this, amount) }
}
#[inline]
pub fn get_resonance(&self) -> f64 {
unsafe { AudioEffectFilter_get_resonance(self.this) }
}
#[inline]
pub fn set_gain(&mut self, amount: f64) -> () {
unsafe { AudioEffectFilter_set_gain(self.this, amount) }
}
#[inline]
pub fn get_gain(&self) -> f64 {
unsafe { AudioEffectFilter_get_gain(self.this) }
}
#[inline]
pub fn set_db(&mut self, amount: i64) -> () {
unsafe { AudioEffectFilter_set_db(self.this, amount) }
}
#[inline]
pub fn get_db(&self) -> AudioEffectFilterFilterDB {
unsafe { AudioEffectFilter_get_db(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_audio_effect_filter(&self) -> AudioEffectFilter {
unsafe {{ object::add_ref(self.this); }}
AudioEffectFilter { this: self.this }
}
#[inline]
pub fn to_audio_effect(&self) -> AudioEffect {
unsafe {{ object::add_ref(self.this); }}
AudioEffect { 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 AudioEffectBandLimitFilter {
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 AudioEffectLowShelfFilter {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AudioEffectLowShelfFilter {
fn class_name() -> &'static str {
"AudioEffectLowShelfFilter"
}
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 AudioEffectLowShelfFilter {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AudioEffectLowShelfFilter {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AudioEffectLowShelfFilterMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AudioEffectLowShelfFilter {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_cutoff(&mut self, freq: f64) -> () {
unsafe { AudioEffectFilter_set_cutoff(self.this, freq) }
}
#[inline]
pub fn get_cutoff(&self) -> f64 {
unsafe { AudioEffectFilter_get_cutoff(self.this) }
}
#[inline]
pub fn set_resonance(&mut self, amount: f64) -> () {
unsafe { AudioEffectFilter_set_resonance(self.this, amount) }
}
#[inline]
pub fn get_resonance(&self) -> f64 {
unsafe { AudioEffectFilter_get_resonance(self.this) }
}
#[inline]
pub fn set_gain(&mut self, amount: f64) -> () {
unsafe { AudioEffectFilter_set_gain(self.this, amount) }
}
#[inline]
pub fn get_gain(&self) -> f64 {
unsafe { AudioEffectFilter_get_gain(self.this) }
}
#[inline]
pub fn set_db(&mut self, amount: i64) -> () {
unsafe { AudioEffectFilter_set_db(self.this, amount) }
}
#[inline]
pub fn get_db(&self) -> AudioEffectFilterFilterDB {
unsafe { AudioEffectFilter_get_db(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_audio_effect_filter(&self) -> AudioEffectFilter {
unsafe {{ object::add_ref(self.this); }}
AudioEffectFilter { this: self.this }
}
#[inline]
pub fn to_audio_effect(&self) -> AudioEffect {
unsafe {{ object::add_ref(self.this); }}
AudioEffect { 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 AudioEffectLowShelfFilter {
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 AudioEffectEQ21 {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AudioEffectEQ21 {
fn class_name() -> &'static str {
"AudioEffectEQ21"
}
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 AudioEffectEQ21 {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AudioEffectEQ21 {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AudioEffectEQ21MethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AudioEffectEQ21 {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_band_gain_db(&mut self, band_idx: i64, volume_db: f64) -> () {
unsafe { AudioEffectEQ_set_band_gain_db(self.this, band_idx, volume_db) }
}
#[inline]
pub fn get_band_gain_db(&self, band_idx: i64) -> f64 {
unsafe { AudioEffectEQ_get_band_gain_db(self.this, band_idx) }
}
#[inline]
pub fn get_band_count(&self) -> i64 {
unsafe { AudioEffectEQ_get_band_count(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_audio_effect_eq(&self) -> AudioEffectEQ {
unsafe {{ object::add_ref(self.this); }}
AudioEffectEQ { this: self.this }
}
#[inline]
pub fn to_audio_effect(&self) -> AudioEffect {
unsafe {{ object::add_ref(self.this); }}
AudioEffect { 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 AudioEffectEQ21 {
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 AudioEffectDistortion {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum AudioEffectDistortionMode {
ModeClip = 0,
ModeAtan = 1,
ModeLofi = 2,
ModeOverdrive = 3,
ModeWaveshape = 4,
}
unsafe impl GodotObject for AudioEffectDistortion {
fn class_name() -> &'static str {
"AudioEffectDistortion"
}
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 AudioEffectDistortion {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AudioEffectDistortion {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AudioEffectDistortionMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AudioEffectDistortion {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_mode(&mut self, mode: i64) -> () {
unsafe { AudioEffectDistortion_set_mode(self.this, mode) }
}
#[inline]
pub fn get_mode(&self) -> AudioEffectDistortionMode {
unsafe { AudioEffectDistortion_get_mode(self.this) }
}
#[inline]
pub fn set_pre_gain(&mut self, pre_gain: f64) -> () {
unsafe { AudioEffectDistortion_set_pre_gain(self.this, pre_gain) }
}
#[inline]
pub fn get_pre_gain(&self) -> f64 {
unsafe { AudioEffectDistortion_get_pre_gain(self.this) }
}
#[inline]
pub fn set_keep_hf_hz(&mut self, keep_hf_hz: f64) -> () {
unsafe { AudioEffectDistortion_set_keep_hf_hz(self.this, keep_hf_hz) }
}
#[inline]
pub fn get_keep_hf_hz(&self) -> f64 {
unsafe { AudioEffectDistortion_get_keep_hf_hz(self.this) }
}
#[inline]
pub fn set_drive(&mut self, drive: f64) -> () {
unsafe { AudioEffectDistortion_set_drive(self.this, drive) }
}
#[inline]
pub fn get_drive(&self) -> f64 {
unsafe { AudioEffectDistortion_get_drive(self.this) }
}
#[inline]
pub fn set_post_gain(&mut self, post_gain: f64) -> () {
unsafe { AudioEffectDistortion_set_post_gain(self.this, post_gain) }
}
#[inline]
pub fn get_post_gain(&self) -> f64 {
unsafe { AudioEffectDistortion_get_post_gain(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_audio_effect(&self) -> AudioEffect {
unsafe {{ object::add_ref(self.this); }}
AudioEffect { 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 AudioEffectDistortion {
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 AudioEffectHighShelfFilter {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AudioEffectHighShelfFilter {
fn class_name() -> &'static str {
"AudioEffectHighShelfFilter"
}
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 AudioEffectHighShelfFilter {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AudioEffectHighShelfFilter {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AudioEffectHighShelfFilterMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AudioEffectHighShelfFilter {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_cutoff(&mut self, freq: f64) -> () {
unsafe { AudioEffectFilter_set_cutoff(self.this, freq) }
}
#[inline]
pub fn get_cutoff(&self) -> f64 {
unsafe { AudioEffectFilter_get_cutoff(self.this) }
}
#[inline]
pub fn set_resonance(&mut self, amount: f64) -> () {
unsafe { AudioEffectFilter_set_resonance(self.this, amount) }
}
#[inline]
pub fn get_resonance(&self) -> f64 {
unsafe { AudioEffectFilter_get_resonance(self.this) }
}
#[inline]
pub fn set_gain(&mut self, amount: f64) -> () {
unsafe { AudioEffectFilter_set_gain(self.this, amount) }
}
#[inline]
pub fn get_gain(&self) -> f64 {
unsafe { AudioEffectFilter_get_gain(self.this) }
}
#[inline]
pub fn set_db(&mut self, amount: i64) -> () {
unsafe { AudioEffectFilter_set_db(self.this, amount) }
}
#[inline]
pub fn get_db(&self) -> AudioEffectFilterFilterDB {
unsafe { AudioEffectFilter_get_db(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_audio_effect_filter(&self) -> AudioEffectFilter {
unsafe {{ object::add_ref(self.this); }}
AudioEffectFilter { this: self.this }
}
#[inline]
pub fn to_audio_effect(&self) -> AudioEffect {
unsafe {{ object::add_ref(self.this); }}
AudioEffect { 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 AudioEffectHighShelfFilter {
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 AudioEffectEQ6 {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AudioEffectEQ6 {
fn class_name() -> &'static str {
"AudioEffectEQ6"
}
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 AudioEffectEQ6 {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AudioEffectEQ6 {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AudioEffectEQ6MethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AudioEffectEQ6 {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_band_gain_db(&mut self, band_idx: i64, volume_db: f64) -> () {
unsafe { AudioEffectEQ_set_band_gain_db(self.this, band_idx, volume_db) }
}
#[inline]
pub fn get_band_gain_db(&self, band_idx: i64) -> f64 {
unsafe { AudioEffectEQ_get_band_gain_db(self.this, band_idx) }
}
#[inline]
pub fn get_band_count(&self) -> i64 {
unsafe { AudioEffectEQ_get_band_count(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_audio_effect_eq(&self) -> AudioEffectEQ {
unsafe {{ object::add_ref(self.this); }}
AudioEffectEQ { this: self.this }
}
#[inline]
pub fn to_audio_effect(&self) -> AudioEffect {
unsafe {{ object::add_ref(self.this); }}
AudioEffect { 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 AudioEffectEQ6 {
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 AudioEffectEQ10 {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AudioEffectEQ10 {
fn class_name() -> &'static str {
"AudioEffectEQ10"
}
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 AudioEffectEQ10 {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AudioEffectEQ10 {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AudioEffectEQ10MethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AudioEffectEQ10 {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_band_gain_db(&mut self, band_idx: i64, volume_db: f64) -> () {
unsafe { AudioEffectEQ_set_band_gain_db(self.this, band_idx, volume_db) }
}
#[inline]
pub fn get_band_gain_db(&self, band_idx: i64) -> f64 {
unsafe { AudioEffectEQ_get_band_gain_db(self.this, band_idx) }
}
#[inline]
pub fn get_band_count(&self) -> i64 {
unsafe { AudioEffectEQ_get_band_count(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_audio_effect_eq(&self) -> AudioEffectEQ {
unsafe {{ object::add_ref(self.this); }}
AudioEffectEQ { this: self.this }
}
#[inline]
pub fn to_audio_effect(&self) -> AudioEffect {
unsafe {{ object::add_ref(self.this); }}
AudioEffect { 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 AudioEffectEQ10 {
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 AudioEffectReverb {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AudioEffectReverb {
fn class_name() -> &'static str {
"AudioEffectReverb"
}
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 AudioEffectReverb {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AudioEffectReverb {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AudioEffectReverbMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AudioEffectReverb {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_predelay_msec(&mut self, msec: f64) -> () {
unsafe { AudioEffectReverb_set_predelay_msec(self.this, msec) }
}
#[inline]
pub fn get_predelay_msec(&self) -> f64 {
unsafe { AudioEffectReverb_get_predelay_msec(self.this) }
}
#[inline]
pub fn set_predelay_feedback(&mut self, feedback: f64) -> () {
unsafe { AudioEffectReverb_set_predelay_feedback(self.this, feedback) }
}
#[inline]
pub fn get_predelay_feedback(&self) -> f64 {
unsafe { AudioEffectReverb_get_predelay_feedback(self.this) }
}
#[inline]
pub fn set_room_size(&mut self, size: f64) -> () {
unsafe { AudioEffectReverb_set_room_size(self.this, size) }
}
#[inline]
pub fn get_room_size(&self) -> f64 {
unsafe { AudioEffectReverb_get_room_size(self.this) }
}
#[inline]
pub fn set_damping(&mut self, amount: f64) -> () {
unsafe { AudioEffectReverb_set_damping(self.this, amount) }
}
#[inline]
pub fn get_damping(&self) -> f64 {
unsafe { AudioEffectReverb_get_damping(self.this) }
}
#[inline]
pub fn set_spread(&mut self, amount: f64) -> () {
unsafe { AudioEffectReverb_set_spread(self.this, amount) }
}
#[inline]
pub fn get_spread(&self) -> f64 {
unsafe { AudioEffectReverb_get_spread(self.this) }
}
#[inline]
pub fn set_dry(&mut self, amount: f64) -> () {
unsafe { AudioEffectReverb_set_dry(self.this, amount) }
}
#[inline]
pub fn get_dry(&self) -> f64 {
unsafe { AudioEffectReverb_get_dry(self.this) }
}
#[inline]
pub fn set_wet(&mut self, amount: f64) -> () {
unsafe { AudioEffectReverb_set_wet(self.this, amount) }
}
#[inline]
pub fn get_wet(&self) -> f64 {
unsafe { AudioEffectReverb_get_wet(self.this) }
}
#[inline]
pub fn set_hpf(&mut self, amount: f64) -> () {
unsafe { AudioEffectReverb_set_hpf(self.this, amount) }
}
#[inline]
pub fn get_hpf(&self) -> f64 {
unsafe { AudioEffectReverb_get_hpf(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_audio_effect(&self) -> AudioEffect {
unsafe {{ object::add_ref(self.this); }}
AudioEffect { 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 AudioEffectReverb {
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 AudioEffectLowPassFilter {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AudioEffectLowPassFilter {
fn class_name() -> &'static str {
"AudioEffectLowPassFilter"
}
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 AudioEffectLowPassFilter {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AudioEffectLowPassFilter {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AudioEffectLowPassFilterMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AudioEffectLowPassFilter {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_cutoff(&mut self, freq: f64) -> () {
unsafe { AudioEffectFilter_set_cutoff(self.this, freq) }
}
#[inline]
pub fn get_cutoff(&self) -> f64 {
unsafe { AudioEffectFilter_get_cutoff(self.this) }
}
#[inline]
pub fn set_resonance(&mut self, amount: f64) -> () {
unsafe { AudioEffectFilter_set_resonance(self.this, amount) }
}
#[inline]
pub fn get_resonance(&self) -> f64 {
unsafe { AudioEffectFilter_get_resonance(self.this) }
}
#[inline]
pub fn set_gain(&mut self, amount: f64) -> () {
unsafe { AudioEffectFilter_set_gain(self.this, amount) }
}
#[inline]
pub fn get_gain(&self) -> f64 {
unsafe { AudioEffectFilter_get_gain(self.this) }
}
#[inline]
pub fn set_db(&mut self, amount: i64) -> () {
unsafe { AudioEffectFilter_set_db(self.this, amount) }
}
#[inline]
pub fn get_db(&self) -> AudioEffectFilterFilterDB {
unsafe { AudioEffectFilter_get_db(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_audio_effect_filter(&self) -> AudioEffectFilter {
unsafe {{ object::add_ref(self.this); }}
AudioEffectFilter { this: self.this }
}
#[inline]
pub fn to_audio_effect(&self) -> AudioEffect {
unsafe {{ object::add_ref(self.this); }}
AudioEffect { 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 AudioEffectLowPassFilter {
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 AudioEffectBandPassFilter {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AudioEffectBandPassFilter {
fn class_name() -> &'static str {
"AudioEffectBandPassFilter"
}
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 AudioEffectBandPassFilter {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AudioEffectBandPassFilter {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AudioEffectBandPassFilterMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AudioEffectBandPassFilter {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_cutoff(&mut self, freq: f64) -> () {
unsafe { AudioEffectFilter_set_cutoff(self.this, freq) }
}
#[inline]
pub fn get_cutoff(&self) -> f64 {
unsafe { AudioEffectFilter_get_cutoff(self.this) }
}
#[inline]
pub fn set_resonance(&mut self, amount: f64) -> () {
unsafe { AudioEffectFilter_set_resonance(self.this, amount) }
}
#[inline]
pub fn get_resonance(&self) -> f64 {
unsafe { AudioEffectFilter_get_resonance(self.this) }
}
#[inline]
pub fn set_gain(&mut self, amount: f64) -> () {
unsafe { AudioEffectFilter_set_gain(self.this, amount) }
}
#[inline]
pub fn get_gain(&self) -> f64 {
unsafe { AudioEffectFilter_get_gain(self.this) }
}
#[inline]
pub fn set_db(&mut self, amount: i64) -> () {
unsafe { AudioEffectFilter_set_db(self.this, amount) }
}
#[inline]
pub fn get_db(&self) -> AudioEffectFilterFilterDB {
unsafe { AudioEffectFilter_get_db(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_audio_effect_filter(&self) -> AudioEffectFilter {
unsafe {{ object::add_ref(self.this); }}
AudioEffectFilter { this: self.this }
}
#[inline]
pub fn to_audio_effect(&self) -> AudioEffect {
unsafe {{ object::add_ref(self.this); }}
AudioEffect { 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 AudioEffectBandPassFilter {
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 AudioEffectChorus {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AudioEffectChorus {
fn class_name() -> &'static str {
"AudioEffectChorus"
}
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 AudioEffectChorus {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AudioEffectChorus {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AudioEffectChorusMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AudioEffectChorus {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_voice_count(&mut self, voices: i64) -> () {
unsafe { AudioEffectChorus_set_voice_count(self.this, voices) }
}
#[inline]
pub fn get_voice_count(&self) -> i64 {
unsafe { AudioEffectChorus_get_voice_count(self.this) }
}
#[inline]
pub fn set_voice_delay_ms(&mut self, voice_idx: i64, delay_ms: f64) -> () {
unsafe { AudioEffectChorus_set_voice_delay_ms(self.this, voice_idx, delay_ms) }
}
#[inline]
pub fn get_voice_delay_ms(&self, voice_idx: i64) -> f64 {
unsafe { AudioEffectChorus_get_voice_delay_ms(self.this, voice_idx) }
}
#[inline]
pub fn set_voice_rate_hz(&mut self, voice_idx: i64, rate_hz: f64) -> () {
unsafe { AudioEffectChorus_set_voice_rate_hz(self.this, voice_idx, rate_hz) }
}
#[inline]
pub fn get_voice_rate_hz(&self, voice_idx: i64) -> f64 {
unsafe { AudioEffectChorus_get_voice_rate_hz(self.this, voice_idx) }
}
#[inline]
pub fn set_voice_depth_ms(&mut self, voice_idx: i64, depth_ms: f64) -> () {
unsafe { AudioEffectChorus_set_voice_depth_ms(self.this, voice_idx, depth_ms) }
}
#[inline]
pub fn get_voice_depth_ms(&self, voice_idx: i64) -> f64 {
unsafe { AudioEffectChorus_get_voice_depth_ms(self.this, voice_idx) }
}
#[inline]
pub fn set_voice_level_db(&mut self, voice_idx: i64, level_db: f64) -> () {
unsafe { AudioEffectChorus_set_voice_level_db(self.this, voice_idx, level_db) }
}
#[inline]
pub fn get_voice_level_db(&self, voice_idx: i64) -> f64 {
unsafe { AudioEffectChorus_get_voice_level_db(self.this, voice_idx) }
}
#[inline]
pub fn set_voice_cutoff_hz(&mut self, voice_idx: i64, cutoff_hz: f64) -> () {
unsafe { AudioEffectChorus_set_voice_cutoff_hz(self.this, voice_idx, cutoff_hz) }
}
#[inline]
pub fn get_voice_cutoff_hz(&self, voice_idx: i64) -> f64 {
unsafe { AudioEffectChorus_get_voice_cutoff_hz(self.this, voice_idx) }
}
#[inline]
pub fn set_voice_pan(&mut self, voice_idx: i64, pan: f64) -> () {
unsafe { AudioEffectChorus_set_voice_pan(self.this, voice_idx, pan) }
}
#[inline]
pub fn get_voice_pan(&self, voice_idx: i64) -> f64 {
unsafe { AudioEffectChorus_get_voice_pan(self.this, voice_idx) }
}
#[inline]
pub fn set_wet(&mut self, amount: f64) -> () {
unsafe { AudioEffectChorus_set_wet(self.this, amount) }
}
#[inline]
pub fn get_wet(&self) -> f64 {
unsafe { AudioEffectChorus_get_wet(self.this) }
}
#[inline]
pub fn set_dry(&mut self, amount: f64) -> () {
unsafe { AudioEffectChorus_set_dry(self.this, amount) }
}
#[inline]
pub fn get_dry(&self) -> f64 {
unsafe { AudioEffectChorus_get_dry(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_audio_effect(&self) -> AudioEffect {
unsafe {{ object::add_ref(self.this); }}
AudioEffect { 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 AudioEffectChorus {
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 AudioEffectPanner {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AudioEffectPanner {
fn class_name() -> &'static str {
"AudioEffectPanner"
}
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 AudioEffectPanner {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AudioEffectPanner {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AudioEffectPannerMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AudioEffectPanner {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_pan(&mut self, cpanume: f64) -> () {
unsafe { AudioEffectPanner_set_pan(self.this, cpanume) }
}
#[inline]
pub fn get_pan(&self) -> f64 {
unsafe { AudioEffectPanner_get_pan(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_audio_effect(&self) -> AudioEffect {
unsafe {{ object::add_ref(self.this); }}
AudioEffect { 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 AudioEffectPanner {
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 AudioEffectStereoEnhance {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AudioEffectStereoEnhance {
fn class_name() -> &'static str {
"AudioEffectStereoEnhance"
}
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 AudioEffectStereoEnhance {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AudioEffectStereoEnhance {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AudioEffectStereoEnhanceMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AudioEffectStereoEnhance {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_pan_pullout(&mut self, amount: f64) -> () {
unsafe { AudioEffectStereoEnhance_set_pan_pullout(self.this, amount) }
}
#[inline]
pub fn get_pan_pullout(&self) -> f64 {
unsafe { AudioEffectStereoEnhance_get_pan_pullout(self.this) }
}
#[inline]
pub fn set_time_pullout(&mut self, amount: f64) -> () {
unsafe { AudioEffectStereoEnhance_set_time_pullout(self.this, amount) }
}
#[inline]
pub fn get_time_pullout(&self) -> f64 {
unsafe { AudioEffectStereoEnhance_get_time_pullout(self.this) }
}
#[inline]
pub fn set_surround(&mut self, amount: f64) -> () {
unsafe { AudioEffectStereoEnhance_set_surround(self.this, amount) }
}
#[inline]
pub fn get_surround(&self) -> f64 {
unsafe { AudioEffectStereoEnhance_get_surround(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_audio_effect(&self) -> AudioEffect {
unsafe {{ object::add_ref(self.this); }}
AudioEffect { 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 AudioEffectStereoEnhance {
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 AudioEffectDelay {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AudioEffectDelay {
fn class_name() -> &'static str {
"AudioEffectDelay"
}
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 AudioEffectDelay {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AudioEffectDelay {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AudioEffectDelayMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AudioEffectDelay {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_dry(&mut self, amount: f64) -> () {
unsafe { AudioEffectDelay_set_dry(self.this, amount) }
}
#[inline]
pub fn get_dry(&mut self) -> f64 {
unsafe { AudioEffectDelay_get_dry(self.this) }
}
#[inline]
pub fn set_tap1_active(&mut self, amount: bool) -> () {
unsafe { AudioEffectDelay_set_tap1_active(self.this, amount) }
}
#[inline]
pub fn is_tap1_active(&self) -> bool {
unsafe { AudioEffectDelay_is_tap1_active(self.this) }
}
#[inline]
pub fn set_tap1_delay_ms(&mut self, amount: f64) -> () {
unsafe { AudioEffectDelay_set_tap1_delay_ms(self.this, amount) }
}
#[inline]
pub fn get_tap1_delay_ms(&self) -> f64 {
unsafe { AudioEffectDelay_get_tap1_delay_ms(self.this) }
}
#[inline]
pub fn set_tap1_level_db(&mut self, amount: f64) -> () {
unsafe { AudioEffectDelay_set_tap1_level_db(self.this, amount) }
}
#[inline]
pub fn get_tap1_level_db(&self) -> f64 {
unsafe { AudioEffectDelay_get_tap1_level_db(self.this) }
}
#[inline]
pub fn set_tap1_pan(&mut self, amount: f64) -> () {
unsafe { AudioEffectDelay_set_tap1_pan(self.this, amount) }
}
#[inline]
pub fn get_tap1_pan(&self) -> f64 {
unsafe { AudioEffectDelay_get_tap1_pan(self.this) }
}
#[inline]
pub fn set_tap2_active(&mut self, amount: bool) -> () {
unsafe { AudioEffectDelay_set_tap2_active(self.this, amount) }
}
#[inline]
pub fn is_tap2_active(&self) -> bool {
unsafe { AudioEffectDelay_is_tap2_active(self.this) }
}
#[inline]
pub fn set_tap2_delay_ms(&mut self, amount: f64) -> () {
unsafe { AudioEffectDelay_set_tap2_delay_ms(self.this, amount) }
}
#[inline]
pub fn get_tap2_delay_ms(&self) -> f64 {
unsafe { AudioEffectDelay_get_tap2_delay_ms(self.this) }
}
#[inline]
pub fn set_tap2_level_db(&mut self, amount: f64) -> () {
unsafe { AudioEffectDelay_set_tap2_level_db(self.this, amount) }
}
#[inline]
pub fn get_tap2_level_db(&self) -> f64 {
unsafe { AudioEffectDelay_get_tap2_level_db(self.this) }
}
#[inline]
pub fn set_tap2_pan(&mut self, amount: f64) -> () {
unsafe { AudioEffectDelay_set_tap2_pan(self.this, amount) }
}
#[inline]
pub fn get_tap2_pan(&self) -> f64 {
unsafe { AudioEffectDelay_get_tap2_pan(self.this) }
}
#[inline]
pub fn set_feedback_active(&mut self, amount: bool) -> () {
unsafe { AudioEffectDelay_set_feedback_active(self.this, amount) }
}
#[inline]
pub fn is_feedback_active(&self) -> bool {
unsafe { AudioEffectDelay_is_feedback_active(self.this) }
}
#[inline]
pub fn set_feedback_delay_ms(&mut self, amount: f64) -> () {
unsafe { AudioEffectDelay_set_feedback_delay_ms(self.this, amount) }
}
#[inline]
pub fn get_feedback_delay_ms(&self) -> f64 {
unsafe { AudioEffectDelay_get_feedback_delay_ms(self.this) }
}
#[inline]
pub fn set_feedback_level_db(&mut self, amount: f64) -> () {
unsafe { AudioEffectDelay_set_feedback_level_db(self.this, amount) }
}
#[inline]
pub fn get_feedback_level_db(&self) -> f64 {
unsafe { AudioEffectDelay_get_feedback_level_db(self.this) }
}
#[inline]
pub fn set_feedback_lowpass(&mut self, amount: f64) -> () {
unsafe { AudioEffectDelay_set_feedback_lowpass(self.this, amount) }
}
#[inline]
pub fn get_feedback_lowpass(&self) -> f64 {
unsafe { AudioEffectDelay_get_feedback_lowpass(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_audio_effect(&self) -> AudioEffect {
unsafe {{ object::add_ref(self.this); }}
AudioEffect { 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 AudioEffectDelay {
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 AudioEffectCompressor {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AudioEffectCompressor {
fn class_name() -> &'static str {
"AudioEffectCompressor"
}
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 AudioEffectCompressor {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AudioEffectCompressor {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AudioEffectCompressorMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AudioEffectCompressor {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_threshold(&mut self, threshold: f64) -> () {
unsafe { AudioEffectCompressor_set_threshold(self.this, threshold) }
}
#[inline]
pub fn get_threshold(&self) -> f64 {
unsafe { AudioEffectCompressor_get_threshold(self.this) }
}
#[inline]
pub fn set_ratio(&mut self, ratio: f64) -> () {
unsafe { AudioEffectCompressor_set_ratio(self.this, ratio) }
}
#[inline]
pub fn get_ratio(&self) -> f64 {
unsafe { AudioEffectCompressor_get_ratio(self.this) }
}
#[inline]
pub fn set_gain(&mut self, gain: f64) -> () {
unsafe { AudioEffectCompressor_set_gain(self.this, gain) }
}
#[inline]
pub fn get_gain(&self) -> f64 {
unsafe { AudioEffectCompressor_get_gain(self.this) }
}
#[inline]
pub fn set_attack_us(&mut self, attack_us: f64) -> () {
unsafe { AudioEffectCompressor_set_attack_us(self.this, attack_us) }
}
#[inline]
pub fn get_attack_us(&self) -> f64 {
unsafe { AudioEffectCompressor_get_attack_us(self.this) }
}
#[inline]
pub fn set_release_ms(&mut self, release_ms: f64) -> () {
unsafe { AudioEffectCompressor_set_release_ms(self.this, release_ms) }
}
#[inline]
pub fn get_release_ms(&self) -> f64 {
unsafe { AudioEffectCompressor_get_release_ms(self.this) }
}
#[inline]
pub fn set_mix(&mut self, mix: f64) -> () {
unsafe { AudioEffectCompressor_set_mix(self.this, mix) }
}
#[inline]
pub fn get_mix(&self) -> f64 {
unsafe { AudioEffectCompressor_get_mix(self.this) }
}
#[inline]
pub fn set_sidechain(&mut self, sidechain: GodotString) -> () {
unsafe { AudioEffectCompressor_set_sidechain(self.this, sidechain) }
}
#[inline]
pub fn get_sidechain(&self) -> GodotString {
unsafe { AudioEffectCompressor_get_sidechain(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_audio_effect(&self) -> AudioEffect {
unsafe {{ object::add_ref(self.this); }}
AudioEffect { 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 AudioEffectCompressor {
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 AudioEffectPitchShift {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AudioEffectPitchShift {
fn class_name() -> &'static str {
"AudioEffectPitchShift"
}
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 AudioEffectPitchShift {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AudioEffectPitchShift {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AudioEffectPitchShiftMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AudioEffectPitchShift {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_pitch_scale(&mut self, rate: f64) -> () {
unsafe { AudioEffectPitchShift_set_pitch_scale(self.this, rate) }
}
#[inline]
pub fn get_pitch_scale(&self) -> f64 {
unsafe { AudioEffectPitchShift_get_pitch_scale(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_audio_effect(&self) -> AudioEffect {
unsafe {{ object::add_ref(self.this); }}
AudioEffect { 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 AudioEffectPitchShift {
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 AudioEffectLimiter {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AudioEffectLimiter {
fn class_name() -> &'static str {
"AudioEffectLimiter"
}
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 AudioEffectLimiter {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AudioEffectLimiter {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AudioEffectLimiterMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AudioEffectLimiter {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_ceiling_db(&mut self, ceiling: f64) -> () {
unsafe { AudioEffectLimiter_set_ceiling_db(self.this, ceiling) }
}
#[inline]
pub fn get_ceiling_db(&self) -> f64 {
unsafe { AudioEffectLimiter_get_ceiling_db(self.this) }
}
#[inline]
pub fn set_threshold_db(&mut self, threshold: f64) -> () {
unsafe { AudioEffectLimiter_set_threshold_db(self.this, threshold) }
}
#[inline]
pub fn get_threshold_db(&self) -> f64 {
unsafe { AudioEffectLimiter_get_threshold_db(self.this) }
}
#[inline]
pub fn set_soft_clip_db(&mut self, soft_clip: f64) -> () {
unsafe { AudioEffectLimiter_set_soft_clip_db(self.this, soft_clip) }
}
#[inline]
pub fn get_soft_clip_db(&self) -> f64 {
unsafe { AudioEffectLimiter_get_soft_clip_db(self.this) }
}
#[inline]
pub fn set_soft_clip_ratio(&mut self, soft_clip: f64) -> () {
unsafe { AudioEffectLimiter_set_soft_clip_ratio(self.this, soft_clip) }
}
#[inline]
pub fn get_soft_clip_ratio(&self) -> f64 {
unsafe { AudioEffectLimiter_get_soft_clip_ratio(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_audio_effect(&self) -> AudioEffect {
unsafe {{ object::add_ref(self.this); }}
AudioEffect { 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 AudioEffectLimiter {
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 AudioEffectPhaser {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AudioEffectPhaser {
fn class_name() -> &'static str {
"AudioEffectPhaser"
}
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 AudioEffectPhaser {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AudioEffectPhaser {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AudioEffectPhaserMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AudioEffectPhaser {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_range_min_hz(&mut self, hz: f64) -> () {
unsafe { AudioEffectPhaser_set_range_min_hz(self.this, hz) }
}
#[inline]
pub fn get_range_min_hz(&self) -> f64 {
unsafe { AudioEffectPhaser_get_range_min_hz(self.this) }
}
#[inline]
pub fn set_range_max_hz(&mut self, hz: f64) -> () {
unsafe { AudioEffectPhaser_set_range_max_hz(self.this, hz) }
}
#[inline]
pub fn get_range_max_hz(&self) -> f64 {
unsafe { AudioEffectPhaser_get_range_max_hz(self.this) }
}
#[inline]
pub fn set_rate_hz(&mut self, hz: f64) -> () {
unsafe { AudioEffectPhaser_set_rate_hz(self.this, hz) }
}
#[inline]
pub fn get_rate_hz(&self) -> f64 {
unsafe { AudioEffectPhaser_get_rate_hz(self.this) }
}
#[inline]
pub fn set_feedback(&mut self, fbk: f64) -> () {
unsafe { AudioEffectPhaser_set_feedback(self.this, fbk) }
}
#[inline]
pub fn get_feedback(&self) -> f64 {
unsafe { AudioEffectPhaser_get_feedback(self.this) }
}
#[inline]
pub fn set_depth(&mut self, depth: f64) -> () {
unsafe { AudioEffectPhaser_set_depth(self.this, depth) }
}
#[inline]
pub fn get_depth(&self) -> f64 {
unsafe { AudioEffectPhaser_get_depth(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_audio_effect(&self) -> AudioEffect {
unsafe {{ object::add_ref(self.this); }}
AudioEffect { 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 AudioEffectPhaser {
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 AudioStreamPlayer {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum AudioStreamPlayerMixTarget {
Stereo = 0,
Surround = 1,
Center = 2,
}
unsafe impl GodotObject for AudioStreamPlayer {
fn class_name() -> &'static str {
"AudioStreamPlayer"
}
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 AudioStreamPlayer {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl Free for AudioStreamPlayer {
unsafe fn godot_free(self) { self.free() }
}
impl QueueFree for AudioStreamPlayer {
unsafe fn godot_queue_free(&mut self) { self.queue_free() }
}
impl AudioStreamPlayer {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AudioStreamPlayerMethodTable::get(gd_api).class_constructor.unwrap();
let this = ctor();
AudioStreamPlayer {
this
}
}
}
#[inline]
pub unsafe fn free(self) {
(get_api().godot_object_destroy)(self.this);
}
#[inline]
pub unsafe fn set_stream(&mut self, stream: Option<AudioStream>) -> () {
AudioStreamPlayer_set_stream(self.this, stream)
}
#[inline]
pub unsafe fn get_stream(&self) -> Option<AudioStream> {
AudioStreamPlayer_get_stream(self.this)
}
#[inline]
pub unsafe fn set_volume_db(&mut self, volume_db: f64) -> () {
AudioStreamPlayer_set_volume_db(self.this, volume_db)
}
#[inline]
pub unsafe fn get_volume_db(&self) -> f64 {
AudioStreamPlayer_get_volume_db(self.this)
}
#[inline]
pub unsafe fn set_pitch_scale(&mut self, pitch_scale: f64) -> () {
AudioStreamPlayer_set_pitch_scale(self.this, pitch_scale)
}
#[inline]
pub unsafe fn get_pitch_scale(&self) -> f64 {
AudioStreamPlayer_get_pitch_scale(self.this)
}
#[inline]
pub unsafe fn play(&mut self, from_position: f64) -> () {
AudioStreamPlayer_play(self.this, from_position)
}
#[inline]
pub unsafe fn seek(&mut self, to_position: f64) -> () {
AudioStreamPlayer_seek(self.this, to_position)
}
#[inline]
pub unsafe fn stop(&mut self) -> () {
AudioStreamPlayer_stop(self.this)
}
#[inline]
pub unsafe fn is_playing(&self) -> bool {
AudioStreamPlayer_is_playing(self.this)
}
#[inline]
pub unsafe fn get_playback_position(&mut self) -> f64 {
AudioStreamPlayer_get_playback_position(self.this)
}
#[inline]
pub unsafe fn set_bus(&mut self, bus: GodotString) -> () {
AudioStreamPlayer_set_bus(self.this, bus)
}
#[inline]
pub unsafe fn get_bus(&self) -> GodotString {
AudioStreamPlayer_get_bus(self.this)
}
#[inline]
pub unsafe fn set_autoplay(&mut self, enable: bool) -> () {
AudioStreamPlayer_set_autoplay(self.this, enable)
}
#[inline]
pub unsafe fn is_autoplay_enabled(&mut self) -> bool {
AudioStreamPlayer_is_autoplay_enabled(self.this)
}
#[inline]
pub unsafe fn set_mix_target(&mut self, mix_target: i64) -> () {
AudioStreamPlayer_set_mix_target(self.this, mix_target)
}
#[inline]
pub unsafe fn get_mix_target(&self) -> AudioStreamPlayerMixTarget {
AudioStreamPlayer_get_mix_target(self.this)
}
#[inline]
pub unsafe fn _set_playing(&mut self, enable: bool) -> () {
AudioStreamPlayer__set_playing(self.this, enable)
}
#[inline]
pub unsafe fn _is_active(&self) -> bool {
AudioStreamPlayer__is_active(self.this)
}
#[inline]
pub unsafe fn _bus_layout_changed(&mut self) -> () {
AudioStreamPlayer__bus_layout_changed(self.this)
}
#[inline]
pub unsafe fn set_stream_paused(&mut self, pause: bool) -> () {
AudioStreamPlayer_set_stream_paused(self.this, pause)
}
#[inline]
pub unsafe fn get_stream_paused(&self) -> bool {
AudioStreamPlayer_get_stream_paused(self.this)
}
#[inline]
pub unsafe fn _process(&mut self, delta: f64) -> () {
Node__process(self.this, delta)
}
#[inline]
pub unsafe fn _physics_process(&mut self, delta: f64) -> () {
Node__physics_process(self.this, delta)
}
#[inline]
pub unsafe fn _enter_tree(&mut self) -> () {
Node__enter_tree(self.this)
}
#[inline]
pub unsafe fn _exit_tree(&mut self) -> () {
Node__exit_tree(self.this)
}
#[inline]
pub unsafe fn _ready(&mut self) -> () {
Node__ready(self.this)
}
#[inline]
pub unsafe fn _input(&mut self, event: Option<InputEvent>) -> () {
Node__input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_input(&mut self, event: Option<InputEvent>) -> () {
Node__unhandled_input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_key_input(&mut self, event: Option<InputEventKey>) -> () {
Node__unhandled_key_input(self.this, event)
}
#[inline]
pub unsafe fn add_child_below_node(&mut self, node: Option<Object>, child_node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child_below_node(self.this, node, child_node, legible_unique_name)
}
#[inline]
pub unsafe fn set_name(&mut self, name: GodotString) -> () {
Node_set_name(self.this, name)
}
#[inline]
pub unsafe fn get_name(&self) -> GodotString {
Node_get_name(self.this)
}
#[inline]
pub unsafe fn add_child(&mut self, node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child(self.this, node, legible_unique_name)
}
#[inline]
pub unsafe fn remove_child(&mut self, node: Option<Object>) -> () {
Node_remove_child(self.this, node)
}
#[inline]
pub unsafe fn get_child_count(&self) -> i64 {
Node_get_child_count(self.this)
}
#[inline]
pub unsafe fn get_children(&self) -> VariantArray {
Node_get_children(self.this)
}
#[inline]
pub unsafe fn get_child(&self, idx: i64) -> Option<Node> {
Node_get_child(self.this, idx)
}
#[inline]
pub unsafe fn has_node(&self, path: NodePath) -> bool {
Node_has_node(self.this, path)
}
#[inline]
pub unsafe fn get_node(&self, path: NodePath) -> Option<Node> {
Node_get_node(self.this, path)
}
#[inline]
pub unsafe fn get_parent(&self) -> Option<Node> {
Node_get_parent(self.this)
}
#[inline]
pub unsafe fn find_node(&self, mask: GodotString, recursive: bool, owned: bool) -> Option<Node> {
Node_find_node(self.this, mask, recursive, owned)
}
#[inline]
pub unsafe fn has_node_and_resource(&self, path: NodePath) -> bool {
Node_has_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn get_node_and_resource(&mut self, path: NodePath) -> VariantArray {
Node_get_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn is_inside_tree(&self) -> bool {
Node_is_inside_tree(self.this)
}
#[inline]
pub unsafe fn is_a_parent_of(&self, node: Option<Object>) -> bool {
Node_is_a_parent_of(self.this, node)
}
#[inline]
pub unsafe fn is_greater_than(&self, node: Option<Object>) -> bool {
Node_is_greater_than(self.this, node)
}
#[inline]
pub unsafe fn get_path(&self) -> NodePath {
Node_get_path(self.this)
}
#[inline]
pub unsafe fn get_path_to(&self, node: Option<Object>) -> NodePath {
Node_get_path_to(self.this, node)
}
#[inline]
pub unsafe fn add_to_group(&mut self, group: GodotString, persistent: bool) -> () {
Node_add_to_group(self.this, group, persistent)
}
#[inline]
pub unsafe fn remove_from_group(&mut self, group: GodotString) -> () {
Node_remove_from_group(self.this, group)
}
#[inline]
pub unsafe fn is_in_group(&self, group: GodotString) -> bool {
Node_is_in_group(self.this, group)
}
#[inline]
pub unsafe fn move_child(&mut self, child_node: Option<Object>, to_position: i64) -> () {
Node_move_child(self.this, child_node, to_position)
}
#[inline]
pub unsafe fn get_groups(&self) -> VariantArray {
Node_get_groups(self.this)
}
#[inline]
pub unsafe fn raise(&mut self) -> () {
Node_raise(self.this)
}
#[inline]
pub unsafe fn set_owner(&mut self, owner: Option<Object>) -> () {
Node_set_owner(self.this, owner)
}
#[inline]
pub unsafe fn get_owner(&self) -> Option<Node> {
Node_get_owner(self.this)
}
#[inline]
pub unsafe fn remove_and_skip(&mut self) -> () {
Node_remove_and_skip(self.this)
}
#[inline]
pub unsafe fn get_index(&self) -> i64 {
Node_get_index(self.this)
}
#[inline]
pub unsafe fn print_tree(&mut self) -> () {
Node_print_tree(self.this)
}
#[inline]
pub unsafe fn print_tree_pretty(&mut self) -> () {
Node_print_tree_pretty(self.this)
}
#[inline]
pub unsafe fn set_filename(&mut self, filename: GodotString) -> () {
Node_set_filename(self.this, filename)
}
#[inline]
pub unsafe fn get_filename(&self) -> GodotString {
Node_get_filename(self.this)
}
#[inline]
pub unsafe fn propagate_notification(&mut self, what: i64) -> () {
Node_propagate_notification(self.this, what)
}
#[inline]
pub unsafe fn propagate_call(&mut self, method: GodotString, args: VariantArray, parent_first: bool) -> () {
Node_propagate_call(self.this, method, args, parent_first)
}
#[inline]
pub unsafe fn set_physics_process(&mut self, enable: bool) -> () {
Node_set_physics_process(self.this, enable)
}
#[inline]
pub unsafe fn get_physics_process_delta_time(&self) -> f64 {
Node_get_physics_process_delta_time(self.this)
}
#[inline]
pub unsafe fn is_physics_processing(&self) -> bool {
Node_is_physics_processing(self.this)
}
#[inline]
pub unsafe fn get_process_delta_time(&self) -> f64 {
Node_get_process_delta_time(self.this)
}
#[inline]
pub unsafe fn set_process(&mut self, enable: bool) -> () {
Node_set_process(self.this, enable)
}
#[inline]
pub unsafe fn set_process_priority(&mut self, priority: i64) -> () {
Node_set_process_priority(self.this, priority)
}
#[inline]
pub unsafe fn is_processing(&self) -> bool {
Node_is_processing(self.this)
}
#[inline]
pub unsafe fn set_process_input(&mut self, enable: bool) -> () {
Node_set_process_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_input(&self) -> bool {
Node_is_processing_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_input(&self) -> bool {
Node_is_processing_unhandled_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_key_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_key_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_key_input(&self) -> bool {
Node_is_processing_unhandled_key_input(self.this)
}
#[inline]
pub unsafe fn set_pause_mode(&mut self, mode: i64) -> () {
Node_set_pause_mode(self.this, mode)
}
#[inline]
pub unsafe fn get_pause_mode(&self) -> NodePauseMode {
Node_get_pause_mode(self.this)
}
#[inline]
pub unsafe fn can_process(&self) -> bool {
Node_can_process(self.this)
}
#[inline]
pub unsafe fn print_stray_nodes(&mut self) -> () {
Node_print_stray_nodes(self.this)
}
#[inline]
pub unsafe fn get_position_in_parent(&self) -> i64 {
Node_get_position_in_parent(self.this)
}
#[inline]
pub unsafe fn set_display_folded(&mut self, fold: bool) -> () {
Node_set_display_folded(self.this, fold)
}
#[inline]
pub unsafe fn is_displayed_folded(&self) -> bool {
Node_is_displayed_folded(self.this)
}
#[inline]
pub unsafe fn set_process_internal(&mut self, enable: bool) -> () {
Node_set_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_internal(&self) -> bool {
Node_is_processing_internal(self.this)
}
#[inline]
pub unsafe fn set_physics_process_internal(&mut self, enable: bool) -> () {
Node_set_physics_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_physics_processing_internal(&self) -> bool {
Node_is_physics_processing_internal(self.this)
}
#[inline]
pub unsafe fn get_tree(&self) -> Option<SceneTree> {
Node_get_tree(self.this)
}
#[inline]
pub unsafe fn duplicate(&self, flags: i64) -> Option<Node> {
Node_duplicate(self.this, flags)
}
#[inline]
pub unsafe fn replace_by(&mut self, node: Option<Object>, keep_data: bool) -> () {
Node_replace_by(self.this, node, keep_data)
}
#[inline]
pub unsafe fn set_scene_instance_load_placeholder(&mut self, load_placeholder: bool) -> () {
Node_set_scene_instance_load_placeholder(self.this, load_placeholder)
}
#[inline]
pub unsafe fn get_scene_instance_load_placeholder(&self) -> bool {
Node_get_scene_instance_load_placeholder(self.this)
}
#[inline]
pub unsafe fn get_viewport(&self) -> Option<Viewport> {
Node_get_viewport(self.this)
}
#[inline]
pub unsafe fn queue_free(&mut self) -> () {
Node_queue_free(self.this)
}
#[inline]
pub unsafe fn request_ready(&mut self) -> () {
Node_request_ready(self.this)
}
#[inline]
pub unsafe fn set_network_master(&mut self, id: i64, recursive: bool) -> () {
Node_set_network_master(self.this, id, recursive)
}
#[inline]
pub unsafe fn get_network_master(&self) -> i64 {
Node_get_network_master(self.this)
}
#[inline]
pub unsafe fn is_network_master(&self) -> bool {
Node_is_network_master(self.this)
}
#[inline]
pub unsafe fn get_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_multiplayer(self.this)
}
#[inline]
pub unsafe fn get_custom_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_custom_multiplayer(self.this)
}
#[inline]
pub unsafe fn set_custom_multiplayer(&mut self, api: Option<MultiplayerAPI>) -> () {
Node_set_custom_multiplayer(self.this, api)
}
#[inline]
pub unsafe fn rpc_config(&mut self, method: GodotString, mode: i64) -> () {
Node_rpc_config(self.this, method, mode)
}
#[inline]
pub unsafe fn rset_config(&mut self, property: GodotString, mode: i64) -> () {
Node_rset_config(self.this, property, mode)
}
#[inline]
pub unsafe fn _set_import_path(&mut self, import_path: NodePath) -> () {
Node__set_import_path(self.this, import_path)
}
#[inline]
pub unsafe fn _get_import_path(&self) -> NodePath {
Node__get_import_path(self.this)
}
#[inline]
pub unsafe fn rpc(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rset(&mut self, property: GodotString, value: Variant) -> () {
Node_rset(self.this, property, value)
}
#[inline]
pub unsafe fn rset_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn rset_unreliable(&mut self, property: GodotString, value: Variant) -> () {
Node_rset_unreliable(self.this, property, value)
}
#[inline]
pub unsafe fn rset_unreliable_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_unreliable_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn _notification(&mut self, what: i64) -> () {
Object__notification(self.this, what)
}
#[inline]
pub unsafe fn _set(&mut self, property: GodotString, value: Variant) -> bool {
Object__set(self.this, property, value)
}
#[inline]
pub unsafe fn _get(&mut self, property: GodotString) -> Variant {
Object__get(self.this, property)
}
#[inline]
pub unsafe fn _get_property_list(&mut self) -> VariantArray {
Object__get_property_list(self.this)
}
#[inline]
pub unsafe fn _init(&mut self) -> () {
Object__init(self.this)
}
#[inline]
pub unsafe fn get_class(&self) -> GodotString {
Object_get_class(self.this)
}
#[inline]
pub unsafe fn is_class(&self, _type: GodotString) -> bool {
Object_is_class(self.this, _type)
}
#[inline]
pub unsafe fn set(&mut self, property: GodotString, value: Variant) -> () {
Object_set(self.this, property, value)
}
#[inline]
pub unsafe fn get(&self, property: GodotString) -> Variant {
Object_get(self.this, property)
}
#[inline]
pub unsafe fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
Object_set_indexed(self.this, property, value)
}
#[inline]
pub unsafe fn get_indexed(&self, property: NodePath) -> Variant {
Object_get_indexed(self.this, property)
}
#[inline]
pub unsafe fn get_property_list(&self) -> VariantArray {
Object_get_property_list(self.this)
}
#[inline]
pub unsafe fn get_method_list(&self) -> VariantArray {
Object_get_method_list(self.this)
}
#[inline]
pub unsafe fn notification(&mut self, what: i64, reversed: bool) -> () {
Object_notification(self.this, what, reversed)
}
#[inline]
pub unsafe fn get_instance_id(&self) -> i64 {
Object_get_instance_id(self.this)
}
#[inline]
pub unsafe fn set_script(&mut self, script: Option<Reference>) -> () {
Object_set_script(self.this, script)
}
#[inline]
pub unsafe fn get_script(&self) -> Option<Reference> {
Object_get_script(self.this)
}
#[inline]
pub unsafe fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
Object_set_meta(self.this, name, value)
}
#[inline]
pub unsafe fn get_meta(&self, name: GodotString) -> Variant {
Object_get_meta(self.this, name)
}
#[inline]
pub unsafe fn has_meta(&self, name: GodotString) -> bool {
Object_has_meta(self.this, name)
}
#[inline]
pub unsafe fn get_meta_list(&self) -> StringArray {
Object_get_meta_list(self.this)
}
#[inline]
pub unsafe fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
Object_add_user_signal(self.this, signal, arguments)
}
#[inline]
pub unsafe fn has_user_signal(&self, signal: GodotString) -> bool {
Object_has_user_signal(self.this, signal)
}
#[inline]
pub unsafe fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
Object_emit_signal(self.this, signal, varargs)
}
#[inline]
pub unsafe fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call(self.this, method, varargs)
}
#[inline]
pub unsafe fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call_deferred(self.this, method, varargs)
}
#[inline]
pub unsafe fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
Object_callv(self.this, method, arg_array)
}
#[inline]
pub unsafe fn has_method(&self, method: GodotString) -> bool {
Object_has_method(self.this, method)
}
#[inline]
pub unsafe fn get_signal_list(&self) -> VariantArray {
Object_get_signal_list(self.this)
}
#[inline]
pub unsafe fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
Object_get_signal_connection_list(self.this, signal)
}
#[inline]
pub unsafe fn get_incoming_connections(&self) -> VariantArray {
Object_get_incoming_connections(self.this)
}
#[inline]
pub unsafe fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
Object_connect(self.this, signal, target, method, binds, flags)
}
#[inline]
pub unsafe fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
Object_disconnect(self.this, signal, target, method)
}
#[inline]
pub unsafe fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
Object_is_connected(self.this, signal, target, method)
}
#[inline]
pub unsafe fn set_block_signals(&mut self, enable: bool) -> () {
Object_set_block_signals(self.this, enable)
}
#[inline]
pub unsafe fn is_blocking_signals(&self) -> bool {
Object_is_blocking_signals(self.this)
}
#[inline]
pub unsafe fn property_list_changed_notify(&mut self) -> () {
Object_property_list_changed_notify(self.this)
}
#[inline]
pub unsafe fn set_message_translation(&mut self, enable: bool) -> () {
Object_set_message_translation(self.this, enable)
}
#[inline]
pub unsafe fn can_translate_messages(&self) -> bool {
Object_can_translate_messages(self.this)
}
#[inline]
pub unsafe fn tr(&self, message: GodotString) -> GodotString {
Object_tr(self.this, message)
}
#[inline]
pub unsafe fn is_queued_for_deletion(&self) -> bool {
Object_is_queued_for_deletion(self.this)
}
#[inline]
pub unsafe fn to_node(&self) -> Node {
Node { this: self.this }
}
#[inline]
pub unsafe fn to_object(&self) -> Object {
Object { this: self.this }
}
pub unsafe fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
#[derive(Copy, Clone)]
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct AudioStreamPlayer2D {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AudioStreamPlayer2D {
fn class_name() -> &'static str {
"AudioStreamPlayer2D"
}
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 AudioStreamPlayer2D {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl Free for AudioStreamPlayer2D {
unsafe fn godot_free(self) { self.free() }
}
impl QueueFree for AudioStreamPlayer2D {
unsafe fn godot_queue_free(&mut self) { self.queue_free() }
}
impl AudioStreamPlayer2D {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AudioStreamPlayer2DMethodTable::get(gd_api).class_constructor.unwrap();
let this = ctor();
AudioStreamPlayer2D {
this
}
}
}
#[inline]
pub unsafe fn free(self) {
(get_api().godot_object_destroy)(self.this);
}
#[inline]
pub unsafe fn set_stream(&mut self, stream: Option<AudioStream>) -> () {
AudioStreamPlayer2D_set_stream(self.this, stream)
}
#[inline]
pub unsafe fn get_stream(&self) -> Option<AudioStream> {
AudioStreamPlayer2D_get_stream(self.this)
}
#[inline]
pub unsafe fn set_volume_db(&mut self, volume_db: f64) -> () {
AudioStreamPlayer2D_set_volume_db(self.this, volume_db)
}
#[inline]
pub unsafe fn get_volume_db(&self) -> f64 {
AudioStreamPlayer2D_get_volume_db(self.this)
}
#[inline]
pub unsafe fn set_pitch_scale(&mut self, pitch_scale: f64) -> () {
AudioStreamPlayer2D_set_pitch_scale(self.this, pitch_scale)
}
#[inline]
pub unsafe fn get_pitch_scale(&self) -> f64 {
AudioStreamPlayer2D_get_pitch_scale(self.this)
}
#[inline]
pub unsafe fn play(&mut self, from_position: f64) -> () {
AudioStreamPlayer2D_play(self.this, from_position)
}
#[inline]
pub unsafe fn seek(&mut self, to_position: f64) -> () {
AudioStreamPlayer2D_seek(self.this, to_position)
}
#[inline]
pub unsafe fn stop(&mut self) -> () {
AudioStreamPlayer2D_stop(self.this)
}
#[inline]
pub unsafe fn is_playing(&self) -> bool {
AudioStreamPlayer2D_is_playing(self.this)
}
#[inline]
pub unsafe fn get_playback_position(&mut self) -> f64 {
AudioStreamPlayer2D_get_playback_position(self.this)
}
#[inline]
pub unsafe fn set_bus(&mut self, bus: GodotString) -> () {
AudioStreamPlayer2D_set_bus(self.this, bus)
}
#[inline]
pub unsafe fn get_bus(&self) -> GodotString {
AudioStreamPlayer2D_get_bus(self.this)
}
#[inline]
pub unsafe fn set_autoplay(&mut self, enable: bool) -> () {
AudioStreamPlayer2D_set_autoplay(self.this, enable)
}
#[inline]
pub unsafe fn is_autoplay_enabled(&mut self) -> bool {
AudioStreamPlayer2D_is_autoplay_enabled(self.this)
}
#[inline]
pub unsafe fn _set_playing(&mut self, enable: bool) -> () {
AudioStreamPlayer2D__set_playing(self.this, enable)
}
#[inline]
pub unsafe fn _is_active(&self) -> bool {
AudioStreamPlayer2D__is_active(self.this)
}
#[inline]
pub unsafe fn set_max_distance(&mut self, pixels: f64) -> () {
AudioStreamPlayer2D_set_max_distance(self.this, pixels)
}
#[inline]
pub unsafe fn get_max_distance(&self) -> f64 {
AudioStreamPlayer2D_get_max_distance(self.this)
}
#[inline]
pub unsafe fn set_attenuation(&mut self, curve: f64) -> () {
AudioStreamPlayer2D_set_attenuation(self.this, curve)
}
#[inline]
pub unsafe fn get_attenuation(&self) -> f64 {
AudioStreamPlayer2D_get_attenuation(self.this)
}
#[inline]
pub unsafe fn set_area_mask(&mut self, mask: i64) -> () {
AudioStreamPlayer2D_set_area_mask(self.this, mask)
}
#[inline]
pub unsafe fn get_area_mask(&self) -> i64 {
AudioStreamPlayer2D_get_area_mask(self.this)
}
#[inline]
pub unsafe fn set_stream_paused(&mut self, pause: bool) -> () {
AudioStreamPlayer2D_set_stream_paused(self.this, pause)
}
#[inline]
pub unsafe fn get_stream_paused(&self) -> bool {
AudioStreamPlayer2D_get_stream_paused(self.this)
}
#[inline]
pub unsafe fn _bus_layout_changed(&mut self) -> () {
AudioStreamPlayer2D__bus_layout_changed(self.this)
}
#[inline]
pub unsafe fn set_position(&mut self, position: Vector2) -> () {
Node2D_set_position(self.this, position)
}
#[inline]
pub unsafe fn set_rotation(&mut self, radians: f64) -> () {
Node2D_set_rotation(self.this, radians)
}
#[inline]
pub unsafe fn set_rotation_degrees(&mut self, degrees: f64) -> () {
Node2D_set_rotation_degrees(self.this, degrees)
}
#[inline]
pub unsafe fn set_scale(&mut self, scale: Vector2) -> () {
Node2D_set_scale(self.this, scale)
}
#[inline]
pub unsafe fn get_position(&self) -> Vector2 {
Node2D_get_position(self.this)
}
#[inline]
pub unsafe fn get_rotation(&self) -> f64 {
Node2D_get_rotation(self.this)
}
#[inline]
pub unsafe fn get_rotation_degrees(&self) -> f64 {
Node2D_get_rotation_degrees(self.this)
}
#[inline]
pub unsafe fn get_scale(&self) -> Vector2 {
Node2D_get_scale(self.this)
}
#[inline]
pub unsafe fn rotate(&mut self, radians: f64) -> () {
Node2D_rotate(self.this, radians)
}
#[inline]
pub unsafe fn move_local_x(&mut self, delta: f64, scaled: bool) -> () {
Node2D_move_local_x(self.this, delta, scaled)
}
#[inline]
pub unsafe fn move_local_y(&mut self, delta: f64, scaled: bool) -> () {
Node2D_move_local_y(self.this, delta, scaled)
}
#[inline]
pub unsafe fn translate(&mut self, offset: Vector2) -> () {
Node2D_translate(self.this, offset)
}
#[inline]
pub unsafe fn global_translate(&mut self, offset: Vector2) -> () {
Node2D_global_translate(self.this, offset)
}
#[inline]
pub unsafe fn apply_scale(&mut self, ratio: Vector2) -> () {
Node2D_apply_scale(self.this, ratio)
}
#[inline]
pub unsafe fn set_global_position(&mut self, position: Vector2) -> () {
Node2D_set_global_position(self.this, position)
}
#[inline]
pub unsafe fn get_global_position(&self) -> Vector2 {
Node2D_get_global_position(self.this)
}
#[inline]
pub unsafe fn set_global_rotation(&mut self, radians: f64) -> () {
Node2D_set_global_rotation(self.this, radians)
}
#[inline]
pub unsafe fn get_global_rotation(&self) -> f64 {
Node2D_get_global_rotation(self.this)
}
#[inline]
pub unsafe fn set_global_rotation_degrees(&mut self, degrees: f64) -> () {
Node2D_set_global_rotation_degrees(self.this, degrees)
}
#[inline]
pub unsafe fn get_global_rotation_degrees(&self) -> f64 {
Node2D_get_global_rotation_degrees(self.this)
}
#[inline]
pub unsafe fn set_global_scale(&mut self, scale: Vector2) -> () {
Node2D_set_global_scale(self.this, scale)
}
#[inline]
pub unsafe fn get_global_scale(&self) -> Vector2 {
Node2D_get_global_scale(self.this)
}
#[inline]
pub unsafe fn set_transform(&mut self, xform: Transform2D) -> () {
Node2D_set_transform(self.this, xform)
}
#[inline]
pub unsafe fn set_global_transform(&mut self, xform: Transform2D) -> () {
Node2D_set_global_transform(self.this, xform)
}
#[inline]
pub unsafe fn look_at(&mut self, point: Vector2) -> () {
Node2D_look_at(self.this, point)
}
#[inline]
pub unsafe fn get_angle_to(&self, point: Vector2) -> f64 {
Node2D_get_angle_to(self.this, point)
}
#[inline]
pub unsafe fn to_local(&self, global_point: Vector2) -> Vector2 {
Node2D_to_local(self.this, global_point)
}
#[inline]
pub unsafe fn to_global(&self, local_point: Vector2) -> Vector2 {
Node2D_to_global(self.this, local_point)
}
#[inline]
pub unsafe fn set_z_index(&mut self, z_index: i64) -> () {
Node2D_set_z_index(self.this, z_index)
}
#[inline]
pub unsafe fn get_z_index(&self) -> i64 {
Node2D_get_z_index(self.this)
}
#[inline]
pub unsafe fn set_z_as_relative(&mut self, enable: bool) -> () {
Node2D_set_z_as_relative(self.this, enable)
}
#[inline]
pub unsafe fn is_z_relative(&self) -> bool {
Node2D_is_z_relative(self.this)
}
#[inline]
pub unsafe fn get_relative_transform_to_parent(&self, parent: Option<Object>) -> Transform2D {
Node2D_get_relative_transform_to_parent(self.this, parent)
}
#[inline]
pub unsafe fn _draw(&mut self) -> () {
CanvasItem__draw(self.this)
}
#[inline]
pub unsafe fn _toplevel_raise_self(&mut self) -> () {
CanvasItem__toplevel_raise_self(self.this)
}
#[inline]
pub unsafe fn _update_callback(&mut self) -> () {
CanvasItem__update_callback(self.this)
}
#[inline]
pub unsafe fn _edit_set_state(&mut self, state: Dictionary) -> () {
CanvasItem__edit_set_state(self.this, state)
}
#[inline]
pub unsafe fn _edit_get_state(&self) -> Dictionary {
CanvasItem__edit_get_state(self.this)
}
#[inline]
pub unsafe fn _edit_set_position(&mut self, position: Vector2) -> () {
CanvasItem__edit_set_position(self.this, position)
}
#[inline]
pub unsafe fn _edit_get_position(&self) -> Vector2 {
CanvasItem__edit_get_position(self.this)
}
#[inline]
pub unsafe fn _edit_set_scale(&mut self, scale: Vector2) -> () {
CanvasItem__edit_set_scale(self.this, scale)
}
#[inline]
pub unsafe fn _edit_get_scale(&self) -> Vector2 {
CanvasItem__edit_get_scale(self.this)
}
#[inline]
pub unsafe fn _edit_set_rect(&mut self, rect: Rect2) -> () {
CanvasItem__edit_set_rect(self.this, rect)
}
#[inline]
pub unsafe fn _edit_get_rect(&self) -> Rect2 {
CanvasItem__edit_get_rect(self.this)
}
#[inline]
pub unsafe fn _edit_use_rect(&self) -> bool {
CanvasItem__edit_use_rect(self.this)
}
#[inline]
pub unsafe fn _edit_set_rotation(&mut self, degrees: f64) -> () {
CanvasItem__edit_set_rotation(self.this, degrees)
}
#[inline]
pub unsafe fn _edit_get_rotation(&self) -> f64 {
CanvasItem__edit_get_rotation(self.this)
}
#[inline]
pub unsafe fn _edit_use_rotation(&self) -> bool {
CanvasItem__edit_use_rotation(self.this)
}
#[inline]
pub unsafe fn _edit_set_pivot(&mut self, pivot: Vector2) -> () {
CanvasItem__edit_set_pivot(self.this, pivot)
}
#[inline]
pub unsafe fn _edit_get_pivot(&self) -> Vector2 {
CanvasItem__edit_get_pivot(self.this)
}
#[inline]
pub unsafe fn _edit_use_pivot(&self) -> bool {
CanvasItem__edit_use_pivot(self.this)
}
#[inline]
pub unsafe fn get_canvas_item(&self) -> Rid {
CanvasItem_get_canvas_item(self.this)
}
#[inline]
pub unsafe fn set_visible(&mut self, visible: bool) -> () {
CanvasItem_set_visible(self.this, visible)
}
#[inline]
pub unsafe fn is_visible(&self) -> bool {
CanvasItem_is_visible(self.this)
}
#[inline]
pub unsafe fn is_visible_in_tree(&self) -> bool {
CanvasItem_is_visible_in_tree(self.this)
}
#[inline]
pub unsafe fn show(&mut self) -> () {
CanvasItem_show(self.this)
}
#[inline]
pub unsafe fn hide(&mut self) -> () {
CanvasItem_hide(self.this)
}
#[inline]
pub unsafe fn update(&mut self) -> () {
CanvasItem_update(self.this)
}
#[inline]
pub unsafe fn set_as_toplevel(&mut self, enable: bool) -> () {
CanvasItem_set_as_toplevel(self.this, enable)
}
#[inline]
pub unsafe fn is_set_as_toplevel(&self) -> bool {
CanvasItem_is_set_as_toplevel(self.this)
}
#[inline]
pub unsafe fn set_light_mask(&mut self, light_mask: i64) -> () {
CanvasItem_set_light_mask(self.this, light_mask)
}
#[inline]
pub unsafe fn get_light_mask(&self) -> i64 {
CanvasItem_get_light_mask(self.this)
}
#[inline]
pub unsafe fn set_modulate(&mut self, modulate: Color) -> () {
CanvasItem_set_modulate(self.this, modulate)
}
#[inline]
pub unsafe fn get_modulate(&self) -> Color {
CanvasItem_get_modulate(self.this)
}
#[inline]
pub unsafe fn set_self_modulate(&mut self, self_modulate: Color) -> () {
CanvasItem_set_self_modulate(self.this, self_modulate)
}
#[inline]
pub unsafe fn get_self_modulate(&self) -> Color {
CanvasItem_get_self_modulate(self.this)
}
#[inline]
pub unsafe fn set_draw_behind_parent(&mut self, enable: bool) -> () {
CanvasItem_set_draw_behind_parent(self.this, enable)
}
#[inline]
pub unsafe fn is_draw_behind_parent_enabled(&self) -> bool {
CanvasItem_is_draw_behind_parent_enabled(self.this)
}
#[inline]
pub unsafe fn _set_on_top(&mut self, on_top: bool) -> () {
CanvasItem__set_on_top(self.this, on_top)
}
#[inline]
pub unsafe fn _is_on_top(&self) -> bool {
CanvasItem__is_on_top(self.this)
}
#[inline]
pub unsafe fn draw_line(&mut self, from: Vector2, to: Vector2, color: Color, width: f64, antialiased: bool) -> () {
CanvasItem_draw_line(self.this, from, to, color, width, antialiased)
}
#[inline]
pub unsafe fn draw_polyline(&mut self, points: Vector2Array, color: Color, width: f64, antialiased: bool) -> () {
CanvasItem_draw_polyline(self.this, points, color, width, antialiased)
}
#[inline]
pub unsafe fn draw_polyline_colors(&mut self, points: Vector2Array, colors: ColorArray, width: f64, antialiased: bool) -> () {
CanvasItem_draw_polyline_colors(self.this, points, colors, width, antialiased)
}
#[inline]
pub unsafe fn draw_multiline(&mut self, points: Vector2Array, color: Color, width: f64, antialiased: bool) -> () {
CanvasItem_draw_multiline(self.this, points, color, width, antialiased)
}
#[inline]
pub unsafe fn draw_multiline_colors(&mut self, points: Vector2Array, colors: ColorArray, width: f64, antialiased: bool) -> () {
CanvasItem_draw_multiline_colors(self.this, points, colors, width, antialiased)
}
#[inline]
pub unsafe fn draw_rect(&mut self, rect: Rect2, color: Color, filled: bool) -> () {
CanvasItem_draw_rect(self.this, rect, color, filled)
}
#[inline]
pub unsafe fn draw_circle(&mut self, position: Vector2, radius: f64, color: Color) -> () {
CanvasItem_draw_circle(self.this, position, radius, color)
}
#[inline]
pub unsafe fn draw_texture(&mut self, texture: Option<Texture>, position: Vector2, modulate: Color, normal_map: Option<Texture>) -> () {
CanvasItem_draw_texture(self.this, texture, position, modulate, normal_map)
}
#[inline]
pub unsafe fn draw_texture_rect(&mut self, texture: Option<Texture>, rect: Rect2, tile: bool, modulate: Color, transpose: bool, normal_map: Option<Texture>) -> () {
CanvasItem_draw_texture_rect(self.this, texture, rect, tile, modulate, transpose, normal_map)
}
#[inline]
pub unsafe fn draw_texture_rect_region(&mut self, texture: Option<Texture>, rect: Rect2, src_rect: Rect2, modulate: Color, transpose: bool, normal_map: Option<Texture>, clip_uv: bool) -> () {
CanvasItem_draw_texture_rect_region(self.this, texture, rect, src_rect, modulate, transpose, normal_map, clip_uv)
}
#[inline]
pub unsafe fn draw_style_box(&mut self, style_box: Option<StyleBox>, rect: Rect2) -> () {
CanvasItem_draw_style_box(self.this, style_box, rect)
}
#[inline]
pub unsafe fn draw_primitive(&mut self, points: Vector2Array, colors: ColorArray, uvs: Vector2Array, texture: Option<Texture>, width: f64, normal_map: Option<Texture>) -> () {
CanvasItem_draw_primitive(self.this, points, colors, uvs, texture, width, normal_map)
}
#[inline]
pub unsafe fn draw_polygon(&mut self, points: Vector2Array, colors: ColorArray, uvs: Vector2Array, texture: Option<Texture>, normal_map: Option<Texture>, antialiased: bool) -> () {
CanvasItem_draw_polygon(self.this, points, colors, uvs, texture, normal_map, antialiased)
}
#[inline]
pub unsafe fn draw_colored_polygon(&mut self, points: Vector2Array, color: Color, uvs: Vector2Array, texture: Option<Texture>, normal_map: Option<Texture>, antialiased: bool) -> () {
CanvasItem_draw_colored_polygon(self.this, points, color, uvs, texture, normal_map, antialiased)
}
#[inline]
pub unsafe fn draw_string(&mut self, font: Option<Font>, position: Vector2, text: GodotString, modulate: Color, clip_w: i64) -> () {
CanvasItem_draw_string(self.this, font, position, text, modulate, clip_w)
}
#[inline]
pub unsafe fn draw_char(&mut self, font: Option<Font>, position: Vector2, char: GodotString, next: GodotString, modulate: Color) -> f64 {
CanvasItem_draw_char(self.this, font, position, char, next, modulate)
}
#[inline]
pub unsafe fn draw_mesh(&mut self, mesh: Option<Mesh>, texture: Option<Texture>, normal_map: Option<Texture>) -> () {
CanvasItem_draw_mesh(self.this, mesh, texture, normal_map)
}
#[inline]
pub unsafe fn draw_multimesh(&mut self, mesh: Option<Mesh>, texture: Option<Texture>, normal_map: Option<Texture>) -> () {
CanvasItem_draw_multimesh(self.this, mesh, texture, normal_map)
}
#[inline]
pub unsafe fn draw_set_transform(&mut self, position: Vector2, rotation: f64, scale: Vector2) -> () {
CanvasItem_draw_set_transform(self.this, position, rotation, scale)
}
#[inline]
pub unsafe fn draw_set_transform_matrix(&mut self, xform: Transform2D) -> () {
CanvasItem_draw_set_transform_matrix(self.this, xform)
}
#[inline]
pub unsafe fn get_transform(&self) -> Transform2D {
CanvasItem_get_transform(self.this)
}
#[inline]
pub unsafe fn get_global_transform(&self) -> Transform2D {
CanvasItem_get_global_transform(self.this)
}
#[inline]
pub unsafe fn get_global_transform_with_canvas(&self) -> Transform2D {
CanvasItem_get_global_transform_with_canvas(self.this)
}
#[inline]
pub unsafe fn get_viewport_transform(&self) -> Transform2D {
CanvasItem_get_viewport_transform(self.this)
}
#[inline]
pub unsafe fn get_viewport_rect(&self) -> Rect2 {
CanvasItem_get_viewport_rect(self.this)
}
#[inline]
pub unsafe fn get_canvas_transform(&self) -> Transform2D {
CanvasItem_get_canvas_transform(self.this)
}
#[inline]
pub unsafe fn get_local_mouse_position(&self) -> Vector2 {
CanvasItem_get_local_mouse_position(self.this)
}
#[inline]
pub unsafe fn get_global_mouse_position(&self) -> Vector2 {
CanvasItem_get_global_mouse_position(self.this)
}
#[inline]
pub unsafe fn get_canvas(&self) -> Rid {
CanvasItem_get_canvas(self.this)
}
#[inline]
pub unsafe fn get_world_2d(&self) -> Option<World2D> {
CanvasItem_get_world_2d(self.this)
}
#[inline]
pub unsafe fn set_material(&mut self, material: Option<Material>) -> () {
CanvasItem_set_material(self.this, material)
}
#[inline]
pub unsafe fn get_material(&self) -> Option<Material> {
CanvasItem_get_material(self.this)
}
#[inline]
pub unsafe fn set_use_parent_material(&mut self, enable: bool) -> () {
CanvasItem_set_use_parent_material(self.this, enable)
}
#[inline]
pub unsafe fn get_use_parent_material(&self) -> bool {
CanvasItem_get_use_parent_material(self.this)
}
#[inline]
pub unsafe fn set_notify_local_transform(&mut self, enable: bool) -> () {
CanvasItem_set_notify_local_transform(self.this, enable)
}
#[inline]
pub unsafe fn is_local_transform_notification_enabled(&self) -> bool {
CanvasItem_is_local_transform_notification_enabled(self.this)
}
#[inline]
pub unsafe fn set_notify_transform(&mut self, enable: bool) -> () {
CanvasItem_set_notify_transform(self.this, enable)
}
#[inline]
pub unsafe fn is_transform_notification_enabled(&self) -> bool {
CanvasItem_is_transform_notification_enabled(self.this)
}
#[inline]
pub unsafe fn make_canvas_position_local(&self, screen_point: Vector2) -> Vector2 {
CanvasItem_make_canvas_position_local(self.this, screen_point)
}
#[inline]
pub unsafe fn make_input_local(&self, event: Option<InputEvent>) -> Option<InputEvent> {
CanvasItem_make_input_local(self.this, event)
}
#[inline]
pub unsafe fn _process(&mut self, delta: f64) -> () {
Node__process(self.this, delta)
}
#[inline]
pub unsafe fn _physics_process(&mut self, delta: f64) -> () {
Node__physics_process(self.this, delta)
}
#[inline]
pub unsafe fn _enter_tree(&mut self) -> () {
Node__enter_tree(self.this)
}
#[inline]
pub unsafe fn _exit_tree(&mut self) -> () {
Node__exit_tree(self.this)
}
#[inline]
pub unsafe fn _ready(&mut self) -> () {
Node__ready(self.this)
}
#[inline]
pub unsafe fn _input(&mut self, event: Option<InputEvent>) -> () {
Node__input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_input(&mut self, event: Option<InputEvent>) -> () {
Node__unhandled_input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_key_input(&mut self, event: Option<InputEventKey>) -> () {
Node__unhandled_key_input(self.this, event)
}
#[inline]
pub unsafe fn add_child_below_node(&mut self, node: Option<Object>, child_node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child_below_node(self.this, node, child_node, legible_unique_name)
}
#[inline]
pub unsafe fn set_name(&mut self, name: GodotString) -> () {
Node_set_name(self.this, name)
}
#[inline]
pub unsafe fn get_name(&self) -> GodotString {
Node_get_name(self.this)
}
#[inline]
pub unsafe fn add_child(&mut self, node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child(self.this, node, legible_unique_name)
}
#[inline]
pub unsafe fn remove_child(&mut self, node: Option<Object>) -> () {
Node_remove_child(self.this, node)
}
#[inline]
pub unsafe fn get_child_count(&self) -> i64 {
Node_get_child_count(self.this)
}
#[inline]
pub unsafe fn get_children(&self) -> VariantArray {
Node_get_children(self.this)
}
#[inline]
pub unsafe fn get_child(&self, idx: i64) -> Option<Node> {
Node_get_child(self.this, idx)
}
#[inline]
pub unsafe fn has_node(&self, path: NodePath) -> bool {
Node_has_node(self.this, path)
}
#[inline]
pub unsafe fn get_node(&self, path: NodePath) -> Option<Node> {
Node_get_node(self.this, path)
}
#[inline]
pub unsafe fn get_parent(&self) -> Option<Node> {
Node_get_parent(self.this)
}
#[inline]
pub unsafe fn find_node(&self, mask: GodotString, recursive: bool, owned: bool) -> Option<Node> {
Node_find_node(self.this, mask, recursive, owned)
}
#[inline]
pub unsafe fn has_node_and_resource(&self, path: NodePath) -> bool {
Node_has_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn get_node_and_resource(&mut self, path: NodePath) -> VariantArray {
Node_get_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn is_inside_tree(&self) -> bool {
Node_is_inside_tree(self.this)
}
#[inline]
pub unsafe fn is_a_parent_of(&self, node: Option<Object>) -> bool {
Node_is_a_parent_of(self.this, node)
}
#[inline]
pub unsafe fn is_greater_than(&self, node: Option<Object>) -> bool {
Node_is_greater_than(self.this, node)
}
#[inline]
pub unsafe fn get_path(&self) -> NodePath {
Node_get_path(self.this)
}
#[inline]
pub unsafe fn get_path_to(&self, node: Option<Object>) -> NodePath {
Node_get_path_to(self.this, node)
}
#[inline]
pub unsafe fn add_to_group(&mut self, group: GodotString, persistent: bool) -> () {
Node_add_to_group(self.this, group, persistent)
}
#[inline]
pub unsafe fn remove_from_group(&mut self, group: GodotString) -> () {
Node_remove_from_group(self.this, group)
}
#[inline]
pub unsafe fn is_in_group(&self, group: GodotString) -> bool {
Node_is_in_group(self.this, group)
}
#[inline]
pub unsafe fn move_child(&mut self, child_node: Option<Object>, to_position: i64) -> () {
Node_move_child(self.this, child_node, to_position)
}
#[inline]
pub unsafe fn get_groups(&self) -> VariantArray {
Node_get_groups(self.this)
}
#[inline]
pub unsafe fn raise(&mut self) -> () {
Node_raise(self.this)
}
#[inline]
pub unsafe fn set_owner(&mut self, owner: Option<Object>) -> () {
Node_set_owner(self.this, owner)
}
#[inline]
pub unsafe fn get_owner(&self) -> Option<Node> {
Node_get_owner(self.this)
}
#[inline]
pub unsafe fn remove_and_skip(&mut self) -> () {
Node_remove_and_skip(self.this)
}
#[inline]
pub unsafe fn get_index(&self) -> i64 {
Node_get_index(self.this)
}
#[inline]
pub unsafe fn print_tree(&mut self) -> () {
Node_print_tree(self.this)
}
#[inline]
pub unsafe fn print_tree_pretty(&mut self) -> () {
Node_print_tree_pretty(self.this)
}
#[inline]
pub unsafe fn set_filename(&mut self, filename: GodotString) -> () {
Node_set_filename(self.this, filename)
}
#[inline]
pub unsafe fn get_filename(&self) -> GodotString {
Node_get_filename(self.this)
}
#[inline]
pub unsafe fn propagate_notification(&mut self, what: i64) -> () {
Node_propagate_notification(self.this, what)
}
#[inline]
pub unsafe fn propagate_call(&mut self, method: GodotString, args: VariantArray, parent_first: bool) -> () {
Node_propagate_call(self.this, method, args, parent_first)
}
#[inline]
pub unsafe fn set_physics_process(&mut self, enable: bool) -> () {
Node_set_physics_process(self.this, enable)
}
#[inline]
pub unsafe fn get_physics_process_delta_time(&self) -> f64 {
Node_get_physics_process_delta_time(self.this)
}
#[inline]
pub unsafe fn is_physics_processing(&self) -> bool {
Node_is_physics_processing(self.this)
}
#[inline]
pub unsafe fn get_process_delta_time(&self) -> f64 {
Node_get_process_delta_time(self.this)
}
#[inline]
pub unsafe fn set_process(&mut self, enable: bool) -> () {
Node_set_process(self.this, enable)
}
#[inline]
pub unsafe fn set_process_priority(&mut self, priority: i64) -> () {
Node_set_process_priority(self.this, priority)
}
#[inline]
pub unsafe fn is_processing(&self) -> bool {
Node_is_processing(self.this)
}
#[inline]
pub unsafe fn set_process_input(&mut self, enable: bool) -> () {
Node_set_process_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_input(&self) -> bool {
Node_is_processing_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_input(&self) -> bool {
Node_is_processing_unhandled_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_key_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_key_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_key_input(&self) -> bool {
Node_is_processing_unhandled_key_input(self.this)
}
#[inline]
pub unsafe fn set_pause_mode(&mut self, mode: i64) -> () {
Node_set_pause_mode(self.this, mode)
}
#[inline]
pub unsafe fn get_pause_mode(&self) -> NodePauseMode {
Node_get_pause_mode(self.this)
}
#[inline]
pub unsafe fn can_process(&self) -> bool {
Node_can_process(self.this)
}
#[inline]
pub unsafe fn print_stray_nodes(&mut self) -> () {
Node_print_stray_nodes(self.this)
}
#[inline]
pub unsafe fn get_position_in_parent(&self) -> i64 {
Node_get_position_in_parent(self.this)
}
#[inline]
pub unsafe fn set_display_folded(&mut self, fold: bool) -> () {
Node_set_display_folded(self.this, fold)
}
#[inline]
pub unsafe fn is_displayed_folded(&self) -> bool {
Node_is_displayed_folded(self.this)
}
#[inline]
pub unsafe fn set_process_internal(&mut self, enable: bool) -> () {
Node_set_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_internal(&self) -> bool {
Node_is_processing_internal(self.this)
}
#[inline]
pub unsafe fn set_physics_process_internal(&mut self, enable: bool) -> () {
Node_set_physics_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_physics_processing_internal(&self) -> bool {
Node_is_physics_processing_internal(self.this)
}
#[inline]
pub unsafe fn get_tree(&self) -> Option<SceneTree> {
Node_get_tree(self.this)
}
#[inline]
pub unsafe fn duplicate(&self, flags: i64) -> Option<Node> {
Node_duplicate(self.this, flags)
}
#[inline]
pub unsafe fn replace_by(&mut self, node: Option<Object>, keep_data: bool) -> () {
Node_replace_by(self.this, node, keep_data)
}
#[inline]
pub unsafe fn set_scene_instance_load_placeholder(&mut self, load_placeholder: bool) -> () {
Node_set_scene_instance_load_placeholder(self.this, load_placeholder)
}
#[inline]
pub unsafe fn get_scene_instance_load_placeholder(&self) -> bool {
Node_get_scene_instance_load_placeholder(self.this)
}
#[inline]
pub unsafe fn get_viewport(&self) -> Option<Viewport> {
Node_get_viewport(self.this)
}
#[inline]
pub unsafe fn queue_free(&mut self) -> () {
Node_queue_free(self.this)
}
#[inline]
pub unsafe fn request_ready(&mut self) -> () {
Node_request_ready(self.this)
}
#[inline]
pub unsafe fn set_network_master(&mut self, id: i64, recursive: bool) -> () {
Node_set_network_master(self.this, id, recursive)
}
#[inline]
pub unsafe fn get_network_master(&self) -> i64 {
Node_get_network_master(self.this)
}
#[inline]
pub unsafe fn is_network_master(&self) -> bool {
Node_is_network_master(self.this)
}
#[inline]
pub unsafe fn get_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_multiplayer(self.this)
}
#[inline]
pub unsafe fn get_custom_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_custom_multiplayer(self.this)
}
#[inline]
pub unsafe fn set_custom_multiplayer(&mut self, api: Option<MultiplayerAPI>) -> () {
Node_set_custom_multiplayer(self.this, api)
}
#[inline]
pub unsafe fn rpc_config(&mut self, method: GodotString, mode: i64) -> () {
Node_rpc_config(self.this, method, mode)
}
#[inline]
pub unsafe fn rset_config(&mut self, property: GodotString, mode: i64) -> () {
Node_rset_config(self.this, property, mode)
}
#[inline]
pub unsafe fn _set_import_path(&mut self, import_path: NodePath) -> () {
Node__set_import_path(self.this, import_path)
}
#[inline]
pub unsafe fn _get_import_path(&self) -> NodePath {
Node__get_import_path(self.this)
}
#[inline]
pub unsafe fn rpc(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rset(&mut self, property: GodotString, value: Variant) -> () {
Node_rset(self.this, property, value)
}
#[inline]
pub unsafe fn rset_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn rset_unreliable(&mut self, property: GodotString, value: Variant) -> () {
Node_rset_unreliable(self.this, property, value)
}
#[inline]
pub unsafe fn rset_unreliable_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_unreliable_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn _notification(&mut self, what: i64) -> () {
Object__notification(self.this, what)
}
#[inline]
pub unsafe fn _set(&mut self, property: GodotString, value: Variant) -> bool {
Object__set(self.this, property, value)
}
#[inline]
pub unsafe fn _get(&mut self, property: GodotString) -> Variant {
Object__get(self.this, property)
}
#[inline]
pub unsafe fn _get_property_list(&mut self) -> VariantArray {
Object__get_property_list(self.this)
}
#[inline]
pub unsafe fn _init(&mut self) -> () {
Object__init(self.this)
}
#[inline]
pub unsafe fn get_class(&self) -> GodotString {
Object_get_class(self.this)
}
#[inline]
pub unsafe fn is_class(&self, _type: GodotString) -> bool {
Object_is_class(self.this, _type)
}
#[inline]
pub unsafe fn set(&mut self, property: GodotString, value: Variant) -> () {
Object_set(self.this, property, value)
}
#[inline]
pub unsafe fn get(&self, property: GodotString) -> Variant {
Object_get(self.this, property)
}
#[inline]
pub unsafe fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
Object_set_indexed(self.this, property, value)
}
#[inline]
pub unsafe fn get_indexed(&self, property: NodePath) -> Variant {
Object_get_indexed(self.this, property)
}
#[inline]
pub unsafe fn get_property_list(&self) -> VariantArray {
Object_get_property_list(self.this)
}
#[inline]
pub unsafe fn get_method_list(&self) -> VariantArray {
Object_get_method_list(self.this)
}
#[inline]
pub unsafe fn notification(&mut self, what: i64, reversed: bool) -> () {
Object_notification(self.this, what, reversed)
}
#[inline]
pub unsafe fn get_instance_id(&self) -> i64 {
Object_get_instance_id(self.this)
}
#[inline]
pub unsafe fn set_script(&mut self, script: Option<Reference>) -> () {
Object_set_script(self.this, script)
}
#[inline]
pub unsafe fn get_script(&self) -> Option<Reference> {
Object_get_script(self.this)
}
#[inline]
pub unsafe fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
Object_set_meta(self.this, name, value)
}
#[inline]
pub unsafe fn get_meta(&self, name: GodotString) -> Variant {
Object_get_meta(self.this, name)
}
#[inline]
pub unsafe fn has_meta(&self, name: GodotString) -> bool {
Object_has_meta(self.this, name)
}
#[inline]
pub unsafe fn get_meta_list(&self) -> StringArray {
Object_get_meta_list(self.this)
}
#[inline]
pub unsafe fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
Object_add_user_signal(self.this, signal, arguments)
}
#[inline]
pub unsafe fn has_user_signal(&self, signal: GodotString) -> bool {
Object_has_user_signal(self.this, signal)
}
#[inline]
pub unsafe fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
Object_emit_signal(self.this, signal, varargs)
}
#[inline]
pub unsafe fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call(self.this, method, varargs)
}
#[inline]
pub unsafe fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call_deferred(self.this, method, varargs)
}
#[inline]
pub unsafe fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
Object_callv(self.this, method, arg_array)
}
#[inline]
pub unsafe fn has_method(&self, method: GodotString) -> bool {
Object_has_method(self.this, method)
}
#[inline]
pub unsafe fn get_signal_list(&self) -> VariantArray {
Object_get_signal_list(self.this)
}
#[inline]
pub unsafe fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
Object_get_signal_connection_list(self.this, signal)
}
#[inline]
pub unsafe fn get_incoming_connections(&self) -> VariantArray {
Object_get_incoming_connections(self.this)
}
#[inline]
pub unsafe fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
Object_connect(self.this, signal, target, method, binds, flags)
}
#[inline]
pub unsafe fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
Object_disconnect(self.this, signal, target, method)
}
#[inline]
pub unsafe fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
Object_is_connected(self.this, signal, target, method)
}
#[inline]
pub unsafe fn set_block_signals(&mut self, enable: bool) -> () {
Object_set_block_signals(self.this, enable)
}
#[inline]
pub unsafe fn is_blocking_signals(&self) -> bool {
Object_is_blocking_signals(self.this)
}
#[inline]
pub unsafe fn property_list_changed_notify(&mut self) -> () {
Object_property_list_changed_notify(self.this)
}
#[inline]
pub unsafe fn set_message_translation(&mut self, enable: bool) -> () {
Object_set_message_translation(self.this, enable)
}
#[inline]
pub unsafe fn can_translate_messages(&self) -> bool {
Object_can_translate_messages(self.this)
}
#[inline]
pub unsafe fn tr(&self, message: GodotString) -> GodotString {
Object_tr(self.this, message)
}
#[inline]
pub unsafe fn is_queued_for_deletion(&self) -> bool {
Object_is_queued_for_deletion(self.this)
}
#[inline]
pub unsafe fn to_node_2d(&self) -> Node2D {
Node2D { this: self.this }
}
#[inline]
pub unsafe fn to_canvas_item(&self) -> CanvasItem {
CanvasItem { this: self.this }
}
#[inline]
pub unsafe fn to_node(&self) -> Node {
Node { this: self.this }
}
#[inline]
pub unsafe fn to_object(&self) -> Object {
Object { this: self.this }
}
pub unsafe fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
#[derive(Copy, Clone)]
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct AudioStreamPlayer3D {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum AudioStreamPlayer3DAttenuationModel {
AttenuationInverseDistance = 0,
AttenuationInverseSquareDistance = 1,
AttenuationLogarithmic = 2,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum AudioStreamPlayer3DOutOfRangeMode {
Mix = 0,
Pause = 1,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum AudioStreamPlayer3DDopplerTracking {
Disabled = 0,
IdleStep = 1,
PhysicsStep = 2,
}
unsafe impl GodotObject for AudioStreamPlayer3D {
fn class_name() -> &'static str {
"AudioStreamPlayer3D"
}
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 AudioStreamPlayer3D {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl Free for AudioStreamPlayer3D {
unsafe fn godot_free(self) { self.free() }
}
impl QueueFree for AudioStreamPlayer3D {
unsafe fn godot_queue_free(&mut self) { self.queue_free() }
}
impl AudioStreamPlayer3D {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AudioStreamPlayer3DMethodTable::get(gd_api).class_constructor.unwrap();
let this = ctor();
AudioStreamPlayer3D {
this
}
}
}
#[inline]
pub unsafe fn free(self) {
(get_api().godot_object_destroy)(self.this);
}
#[inline]
pub unsafe fn set_stream(&mut self, stream: Option<AudioStream>) -> () {
AudioStreamPlayer3D_set_stream(self.this, stream)
}
#[inline]
pub unsafe fn get_stream(&self) -> Option<AudioStream> {
AudioStreamPlayer3D_get_stream(self.this)
}
#[inline]
pub unsafe fn set_unit_db(&mut self, unit_db: f64) -> () {
AudioStreamPlayer3D_set_unit_db(self.this, unit_db)
}
#[inline]
pub unsafe fn get_unit_db(&self) -> f64 {
AudioStreamPlayer3D_get_unit_db(self.this)
}
#[inline]
pub unsafe fn set_unit_size(&mut self, unit_size: f64) -> () {
AudioStreamPlayer3D_set_unit_size(self.this, unit_size)
}
#[inline]
pub unsafe fn get_unit_size(&self) -> f64 {
AudioStreamPlayer3D_get_unit_size(self.this)
}
#[inline]
pub unsafe fn set_max_db(&mut self, max_db: f64) -> () {
AudioStreamPlayer3D_set_max_db(self.this, max_db)
}
#[inline]
pub unsafe fn get_max_db(&self) -> f64 {
AudioStreamPlayer3D_get_max_db(self.this)
}
#[inline]
pub unsafe fn set_pitch_scale(&mut self, pitch_scale: f64) -> () {
AudioStreamPlayer3D_set_pitch_scale(self.this, pitch_scale)
}
#[inline]
pub unsafe fn get_pitch_scale(&self) -> f64 {
AudioStreamPlayer3D_get_pitch_scale(self.this)
}
#[inline]
pub unsafe fn play(&mut self, from_position: f64) -> () {
AudioStreamPlayer3D_play(self.this, from_position)
}
#[inline]
pub unsafe fn seek(&mut self, to_position: f64) -> () {
AudioStreamPlayer3D_seek(self.this, to_position)
}
#[inline]
pub unsafe fn stop(&mut self) -> () {
AudioStreamPlayer3D_stop(self.this)
}
#[inline]
pub unsafe fn is_playing(&self) -> bool {
AudioStreamPlayer3D_is_playing(self.this)
}
#[inline]
pub unsafe fn get_playback_position(&mut self) -> f64 {
AudioStreamPlayer3D_get_playback_position(self.this)
}
#[inline]
pub unsafe fn set_bus(&mut self, bus: GodotString) -> () {
AudioStreamPlayer3D_set_bus(self.this, bus)
}
#[inline]
pub unsafe fn get_bus(&self) -> GodotString {
AudioStreamPlayer3D_get_bus(self.this)
}
#[inline]
pub unsafe fn set_autoplay(&mut self, enable: bool) -> () {
AudioStreamPlayer3D_set_autoplay(self.this, enable)
}
#[inline]
pub unsafe fn is_autoplay_enabled(&mut self) -> bool {
AudioStreamPlayer3D_is_autoplay_enabled(self.this)
}
#[inline]
pub unsafe fn _set_playing(&mut self, enable: bool) -> () {
AudioStreamPlayer3D__set_playing(self.this, enable)
}
#[inline]
pub unsafe fn _is_active(&self) -> bool {
AudioStreamPlayer3D__is_active(self.this)
}
#[inline]
pub unsafe fn set_max_distance(&mut self, metres: f64) -> () {
AudioStreamPlayer3D_set_max_distance(self.this, metres)
}
#[inline]
pub unsafe fn get_max_distance(&self) -> f64 {
AudioStreamPlayer3D_get_max_distance(self.this)
}
#[inline]
pub unsafe fn set_area_mask(&mut self, mask: i64) -> () {
AudioStreamPlayer3D_set_area_mask(self.this, mask)
}
#[inline]
pub unsafe fn get_area_mask(&self) -> i64 {
AudioStreamPlayer3D_get_area_mask(self.this)
}
#[inline]
pub unsafe fn set_emission_angle(&mut self, degrees: f64) -> () {
AudioStreamPlayer3D_set_emission_angle(self.this, degrees)
}
#[inline]
pub unsafe fn get_emission_angle(&self) -> f64 {
AudioStreamPlayer3D_get_emission_angle(self.this)
}
#[inline]
pub unsafe fn set_emission_angle_enabled(&mut self, enabled: bool) -> () {
AudioStreamPlayer3D_set_emission_angle_enabled(self.this, enabled)
}
#[inline]
pub unsafe fn is_emission_angle_enabled(&self) -> bool {
AudioStreamPlayer3D_is_emission_angle_enabled(self.this)
}
#[inline]
pub unsafe fn set_emission_angle_filter_attenuation_db(&mut self, db: f64) -> () {
AudioStreamPlayer3D_set_emission_angle_filter_attenuation_db(self.this, db)
}
#[inline]
pub unsafe fn get_emission_angle_filter_attenuation_db(&self) -> f64 {
AudioStreamPlayer3D_get_emission_angle_filter_attenuation_db(self.this)
}
#[inline]
pub unsafe fn set_attenuation_filter_cutoff_hz(&mut self, degrees: f64) -> () {
AudioStreamPlayer3D_set_attenuation_filter_cutoff_hz(self.this, degrees)
}
#[inline]
pub unsafe fn get_attenuation_filter_cutoff_hz(&self) -> f64 {
AudioStreamPlayer3D_get_attenuation_filter_cutoff_hz(self.this)
}
#[inline]
pub unsafe fn set_attenuation_filter_db(&mut self, db: f64) -> () {
AudioStreamPlayer3D_set_attenuation_filter_db(self.this, db)
}
#[inline]
pub unsafe fn get_attenuation_filter_db(&self) -> f64 {
AudioStreamPlayer3D_get_attenuation_filter_db(self.this)
}
#[inline]
pub unsafe fn set_attenuation_model(&mut self, model: i64) -> () {
AudioStreamPlayer3D_set_attenuation_model(self.this, model)
}
#[inline]
pub unsafe fn get_attenuation_model(&self) -> AudioStreamPlayer3DAttenuationModel {
AudioStreamPlayer3D_get_attenuation_model(self.this)
}
#[inline]
pub unsafe fn set_out_of_range_mode(&mut self, mode: i64) -> () {
AudioStreamPlayer3D_set_out_of_range_mode(self.this, mode)
}
#[inline]
pub unsafe fn get_out_of_range_mode(&self) -> AudioStreamPlayer3DOutOfRangeMode {
AudioStreamPlayer3D_get_out_of_range_mode(self.this)
}
#[inline]
pub unsafe fn set_doppler_tracking(&mut self, mode: i64) -> () {
AudioStreamPlayer3D_set_doppler_tracking(self.this, mode)
}
#[inline]
pub unsafe fn get_doppler_tracking(&self) -> AudioStreamPlayer3DDopplerTracking {
AudioStreamPlayer3D_get_doppler_tracking(self.this)
}
#[inline]
pub unsafe fn set_stream_paused(&mut self, pause: bool) -> () {
AudioStreamPlayer3D_set_stream_paused(self.this, pause)
}
#[inline]
pub unsafe fn get_stream_paused(&self) -> bool {
AudioStreamPlayer3D_get_stream_paused(self.this)
}
#[inline]
pub unsafe fn _bus_layout_changed(&mut self) -> () {
AudioStreamPlayer3D__bus_layout_changed(self.this)
}
#[inline]
pub unsafe fn set_transform(&mut self, local: Transform) -> () {
Spatial_set_transform(self.this, local)
}
#[inline]
pub unsafe fn get_transform(&self) -> Transform {
Spatial_get_transform(self.this)
}
#[inline]
pub unsafe fn set_translation(&mut self, translation: Vector3) -> () {
Spatial_set_translation(self.this, translation)
}
#[inline]
pub unsafe fn get_translation(&self) -> Vector3 {
Spatial_get_translation(self.this)
}
#[inline]
pub unsafe fn set_rotation(&mut self, euler: Vector3) -> () {
Spatial_set_rotation(self.this, euler)
}
#[inline]
pub unsafe fn get_rotation(&self) -> Vector3 {
Spatial_get_rotation(self.this)
}
#[inline]
pub unsafe fn set_rotation_degrees(&mut self, euler_degrees: Vector3) -> () {
Spatial_set_rotation_degrees(self.this, euler_degrees)
}
#[inline]
pub unsafe fn get_rotation_degrees(&self) -> Vector3 {
Spatial_get_rotation_degrees(self.this)
}
#[inline]
pub unsafe fn set_scale(&mut self, scale: Vector3) -> () {
Spatial_set_scale(self.this, scale)
}
#[inline]
pub unsafe fn get_scale(&self) -> Vector3 {
Spatial_get_scale(self.this)
}
#[inline]
pub unsafe fn set_global_transform(&mut self, global: Transform) -> () {
Spatial_set_global_transform(self.this, global)
}
#[inline]
pub unsafe fn get_global_transform(&self) -> Transform {
Spatial_get_global_transform(self.this)
}
#[inline]
pub unsafe fn get_parent_spatial(&self) -> Option<Spatial> {
Spatial_get_parent_spatial(self.this)
}
#[inline]
pub unsafe fn set_ignore_transform_notification(&mut self, enabled: bool) -> () {
Spatial_set_ignore_transform_notification(self.this, enabled)
}
#[inline]
pub unsafe fn set_as_toplevel(&mut self, enable: bool) -> () {
Spatial_set_as_toplevel(self.this, enable)
}
#[inline]
pub unsafe fn is_set_as_toplevel(&self) -> bool {
Spatial_is_set_as_toplevel(self.this)
}
#[inline]
pub unsafe fn set_disable_scale(&mut self, disable: bool) -> () {
Spatial_set_disable_scale(self.this, disable)
}
#[inline]
pub unsafe fn is_scale_disabled(&self) -> bool {
Spatial_is_scale_disabled(self.this)
}
#[inline]
pub unsafe fn get_world(&self) -> Option<World> {
Spatial_get_world(self.this)
}
#[inline]
pub unsafe fn _update_gizmo(&mut self) -> () {
Spatial__update_gizmo(self.this)
}
#[inline]
pub unsafe fn update_gizmo(&mut self) -> () {
Spatial_update_gizmo(self.this)
}
#[inline]
pub unsafe fn set_gizmo(&mut self, gizmo: Option<SpatialGizmo>) -> () {
Spatial_set_gizmo(self.this, gizmo)
}
#[inline]
pub unsafe fn get_gizmo(&self) -> Option<SpatialGizmo> {
Spatial_get_gizmo(self.this)
}
#[inline]
pub unsafe fn set_visible(&mut self, visible: bool) -> () {
Spatial_set_visible(self.this, visible)
}
#[inline]
pub unsafe fn is_visible(&self) -> bool {
Spatial_is_visible(self.this)
}
#[inline]
pub unsafe fn is_visible_in_tree(&self) -> bool {
Spatial_is_visible_in_tree(self.this)
}
#[inline]
pub unsafe fn show(&mut self) -> () {
Spatial_show(self.this)
}
#[inline]
pub unsafe fn hide(&mut self) -> () {
Spatial_hide(self.this)
}
#[inline]
pub unsafe fn set_notify_local_transform(&mut self, enable: bool) -> () {
Spatial_set_notify_local_transform(self.this, enable)
}
#[inline]
pub unsafe fn is_local_transform_notification_enabled(&self) -> bool {
Spatial_is_local_transform_notification_enabled(self.this)
}
#[inline]
pub unsafe fn set_notify_transform(&mut self, enable: bool) -> () {
Spatial_set_notify_transform(self.this, enable)
}
#[inline]
pub unsafe fn is_transform_notification_enabled(&self) -> bool {
Spatial_is_transform_notification_enabled(self.this)
}
#[inline]
pub unsafe fn rotate(&mut self, axis: Vector3, angle: f64) -> () {
Spatial_rotate(self.this, axis, angle)
}
#[inline]
pub unsafe fn global_rotate(&mut self, axis: Vector3, angle: f64) -> () {
Spatial_global_rotate(self.this, axis, angle)
}
#[inline]
pub unsafe fn global_scale(&mut self, scale: Vector3) -> () {
Spatial_global_scale(self.this, scale)
}
#[inline]
pub unsafe fn global_translate(&mut self, offset: Vector3) -> () {
Spatial_global_translate(self.this, offset)
}
#[inline]
pub unsafe fn rotate_object_local(&mut self, axis: Vector3, angle: f64) -> () {
Spatial_rotate_object_local(self.this, axis, angle)
}
#[inline]
pub unsafe fn scale_object_local(&mut self, scale: Vector3) -> () {
Spatial_scale_object_local(self.this, scale)
}
#[inline]
pub unsafe fn translate_object_local(&mut self, offset: Vector3) -> () {
Spatial_translate_object_local(self.this, offset)
}
#[inline]
pub unsafe fn rotate_x(&mut self, angle: f64) -> () {
Spatial_rotate_x(self.this, angle)
}
#[inline]
pub unsafe fn rotate_y(&mut self, angle: f64) -> () {
Spatial_rotate_y(self.this, angle)
}
#[inline]
pub unsafe fn rotate_z(&mut self, angle: f64) -> () {
Spatial_rotate_z(self.this, angle)
}
#[inline]
pub unsafe fn translate(&mut self, offset: Vector3) -> () {
Spatial_translate(self.this, offset)
}
#[inline]
pub unsafe fn orthonormalize(&mut self) -> () {
Spatial_orthonormalize(self.this)
}
#[inline]
pub unsafe fn set_identity(&mut self) -> () {
Spatial_set_identity(self.this)
}
#[inline]
pub unsafe fn look_at(&mut self, target: Vector3, up: Vector3) -> () {
Spatial_look_at(self.this, target, up)
}
#[inline]
pub unsafe fn look_at_from_position(&mut self, position: Vector3, target: Vector3, up: Vector3) -> () {
Spatial_look_at_from_position(self.this, position, target, up)
}
#[inline]
pub unsafe fn to_local(&self, global_point: Vector3) -> Vector3 {
Spatial_to_local(self.this, global_point)
}
#[inline]
pub unsafe fn to_global(&self, local_point: Vector3) -> Vector3 {
Spatial_to_global(self.this, local_point)
}
#[inline]
pub unsafe fn _process(&mut self, delta: f64) -> () {
Node__process(self.this, delta)
}
#[inline]
pub unsafe fn _physics_process(&mut self, delta: f64) -> () {
Node__physics_process(self.this, delta)
}
#[inline]
pub unsafe fn _enter_tree(&mut self) -> () {
Node__enter_tree(self.this)
}
#[inline]
pub unsafe fn _exit_tree(&mut self) -> () {
Node__exit_tree(self.this)
}
#[inline]
pub unsafe fn _ready(&mut self) -> () {
Node__ready(self.this)
}
#[inline]
pub unsafe fn _input(&mut self, event: Option<InputEvent>) -> () {
Node__input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_input(&mut self, event: Option<InputEvent>) -> () {
Node__unhandled_input(self.this, event)
}
#[inline]
pub unsafe fn _unhandled_key_input(&mut self, event: Option<InputEventKey>) -> () {
Node__unhandled_key_input(self.this, event)
}
#[inline]
pub unsafe fn add_child_below_node(&mut self, node: Option<Object>, child_node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child_below_node(self.this, node, child_node, legible_unique_name)
}
#[inline]
pub unsafe fn set_name(&mut self, name: GodotString) -> () {
Node_set_name(self.this, name)
}
#[inline]
pub unsafe fn get_name(&self) -> GodotString {
Node_get_name(self.this)
}
#[inline]
pub unsafe fn add_child(&mut self, node: Option<Object>, legible_unique_name: bool) -> () {
Node_add_child(self.this, node, legible_unique_name)
}
#[inline]
pub unsafe fn remove_child(&mut self, node: Option<Object>) -> () {
Node_remove_child(self.this, node)
}
#[inline]
pub unsafe fn get_child_count(&self) -> i64 {
Node_get_child_count(self.this)
}
#[inline]
pub unsafe fn get_children(&self) -> VariantArray {
Node_get_children(self.this)
}
#[inline]
pub unsafe fn get_child(&self, idx: i64) -> Option<Node> {
Node_get_child(self.this, idx)
}
#[inline]
pub unsafe fn has_node(&self, path: NodePath) -> bool {
Node_has_node(self.this, path)
}
#[inline]
pub unsafe fn get_node(&self, path: NodePath) -> Option<Node> {
Node_get_node(self.this, path)
}
#[inline]
pub unsafe fn get_parent(&self) -> Option<Node> {
Node_get_parent(self.this)
}
#[inline]
pub unsafe fn find_node(&self, mask: GodotString, recursive: bool, owned: bool) -> Option<Node> {
Node_find_node(self.this, mask, recursive, owned)
}
#[inline]
pub unsafe fn has_node_and_resource(&self, path: NodePath) -> bool {
Node_has_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn get_node_and_resource(&mut self, path: NodePath) -> VariantArray {
Node_get_node_and_resource(self.this, path)
}
#[inline]
pub unsafe fn is_inside_tree(&self) -> bool {
Node_is_inside_tree(self.this)
}
#[inline]
pub unsafe fn is_a_parent_of(&self, node: Option<Object>) -> bool {
Node_is_a_parent_of(self.this, node)
}
#[inline]
pub unsafe fn is_greater_than(&self, node: Option<Object>) -> bool {
Node_is_greater_than(self.this, node)
}
#[inline]
pub unsafe fn get_path(&self) -> NodePath {
Node_get_path(self.this)
}
#[inline]
pub unsafe fn get_path_to(&self, node: Option<Object>) -> NodePath {
Node_get_path_to(self.this, node)
}
#[inline]
pub unsafe fn add_to_group(&mut self, group: GodotString, persistent: bool) -> () {
Node_add_to_group(self.this, group, persistent)
}
#[inline]
pub unsafe fn remove_from_group(&mut self, group: GodotString) -> () {
Node_remove_from_group(self.this, group)
}
#[inline]
pub unsafe fn is_in_group(&self, group: GodotString) -> bool {
Node_is_in_group(self.this, group)
}
#[inline]
pub unsafe fn move_child(&mut self, child_node: Option<Object>, to_position: i64) -> () {
Node_move_child(self.this, child_node, to_position)
}
#[inline]
pub unsafe fn get_groups(&self) -> VariantArray {
Node_get_groups(self.this)
}
#[inline]
pub unsafe fn raise(&mut self) -> () {
Node_raise(self.this)
}
#[inline]
pub unsafe fn set_owner(&mut self, owner: Option<Object>) -> () {
Node_set_owner(self.this, owner)
}
#[inline]
pub unsafe fn get_owner(&self) -> Option<Node> {
Node_get_owner(self.this)
}
#[inline]
pub unsafe fn remove_and_skip(&mut self) -> () {
Node_remove_and_skip(self.this)
}
#[inline]
pub unsafe fn get_index(&self) -> i64 {
Node_get_index(self.this)
}
#[inline]
pub unsafe fn print_tree(&mut self) -> () {
Node_print_tree(self.this)
}
#[inline]
pub unsafe fn print_tree_pretty(&mut self) -> () {
Node_print_tree_pretty(self.this)
}
#[inline]
pub unsafe fn set_filename(&mut self, filename: GodotString) -> () {
Node_set_filename(self.this, filename)
}
#[inline]
pub unsafe fn get_filename(&self) -> GodotString {
Node_get_filename(self.this)
}
#[inline]
pub unsafe fn propagate_notification(&mut self, what: i64) -> () {
Node_propagate_notification(self.this, what)
}
#[inline]
pub unsafe fn propagate_call(&mut self, method: GodotString, args: VariantArray, parent_first: bool) -> () {
Node_propagate_call(self.this, method, args, parent_first)
}
#[inline]
pub unsafe fn set_physics_process(&mut self, enable: bool) -> () {
Node_set_physics_process(self.this, enable)
}
#[inline]
pub unsafe fn get_physics_process_delta_time(&self) -> f64 {
Node_get_physics_process_delta_time(self.this)
}
#[inline]
pub unsafe fn is_physics_processing(&self) -> bool {
Node_is_physics_processing(self.this)
}
#[inline]
pub unsafe fn get_process_delta_time(&self) -> f64 {
Node_get_process_delta_time(self.this)
}
#[inline]
pub unsafe fn set_process(&mut self, enable: bool) -> () {
Node_set_process(self.this, enable)
}
#[inline]
pub unsafe fn set_process_priority(&mut self, priority: i64) -> () {
Node_set_process_priority(self.this, priority)
}
#[inline]
pub unsafe fn is_processing(&self) -> bool {
Node_is_processing(self.this)
}
#[inline]
pub unsafe fn set_process_input(&mut self, enable: bool) -> () {
Node_set_process_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_input(&self) -> bool {
Node_is_processing_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_input(&self) -> bool {
Node_is_processing_unhandled_input(self.this)
}
#[inline]
pub unsafe fn set_process_unhandled_key_input(&mut self, enable: bool) -> () {
Node_set_process_unhandled_key_input(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_unhandled_key_input(&self) -> bool {
Node_is_processing_unhandled_key_input(self.this)
}
#[inline]
pub unsafe fn set_pause_mode(&mut self, mode: i64) -> () {
Node_set_pause_mode(self.this, mode)
}
#[inline]
pub unsafe fn get_pause_mode(&self) -> NodePauseMode {
Node_get_pause_mode(self.this)
}
#[inline]
pub unsafe fn can_process(&self) -> bool {
Node_can_process(self.this)
}
#[inline]
pub unsafe fn print_stray_nodes(&mut self) -> () {
Node_print_stray_nodes(self.this)
}
#[inline]
pub unsafe fn get_position_in_parent(&self) -> i64 {
Node_get_position_in_parent(self.this)
}
#[inline]
pub unsafe fn set_display_folded(&mut self, fold: bool) -> () {
Node_set_display_folded(self.this, fold)
}
#[inline]
pub unsafe fn is_displayed_folded(&self) -> bool {
Node_is_displayed_folded(self.this)
}
#[inline]
pub unsafe fn set_process_internal(&mut self, enable: bool) -> () {
Node_set_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_processing_internal(&self) -> bool {
Node_is_processing_internal(self.this)
}
#[inline]
pub unsafe fn set_physics_process_internal(&mut self, enable: bool) -> () {
Node_set_physics_process_internal(self.this, enable)
}
#[inline]
pub unsafe fn is_physics_processing_internal(&self) -> bool {
Node_is_physics_processing_internal(self.this)
}
#[inline]
pub unsafe fn get_tree(&self) -> Option<SceneTree> {
Node_get_tree(self.this)
}
#[inline]
pub unsafe fn duplicate(&self, flags: i64) -> Option<Node> {
Node_duplicate(self.this, flags)
}
#[inline]
pub unsafe fn replace_by(&mut self, node: Option<Object>, keep_data: bool) -> () {
Node_replace_by(self.this, node, keep_data)
}
#[inline]
pub unsafe fn set_scene_instance_load_placeholder(&mut self, load_placeholder: bool) -> () {
Node_set_scene_instance_load_placeholder(self.this, load_placeholder)
}
#[inline]
pub unsafe fn get_scene_instance_load_placeholder(&self) -> bool {
Node_get_scene_instance_load_placeholder(self.this)
}
#[inline]
pub unsafe fn get_viewport(&self) -> Option<Viewport> {
Node_get_viewport(self.this)
}
#[inline]
pub unsafe fn queue_free(&mut self) -> () {
Node_queue_free(self.this)
}
#[inline]
pub unsafe fn request_ready(&mut self) -> () {
Node_request_ready(self.this)
}
#[inline]
pub unsafe fn set_network_master(&mut self, id: i64, recursive: bool) -> () {
Node_set_network_master(self.this, id, recursive)
}
#[inline]
pub unsafe fn get_network_master(&self) -> i64 {
Node_get_network_master(self.this)
}
#[inline]
pub unsafe fn is_network_master(&self) -> bool {
Node_is_network_master(self.this)
}
#[inline]
pub unsafe fn get_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_multiplayer(self.this)
}
#[inline]
pub unsafe fn get_custom_multiplayer(&self) -> Option<MultiplayerAPI> {
Node_get_custom_multiplayer(self.this)
}
#[inline]
pub unsafe fn set_custom_multiplayer(&mut self, api: Option<MultiplayerAPI>) -> () {
Node_set_custom_multiplayer(self.this, api)
}
#[inline]
pub unsafe fn rpc_config(&mut self, method: GodotString, mode: i64) -> () {
Node_rpc_config(self.this, method, mode)
}
#[inline]
pub unsafe fn rset_config(&mut self, property: GodotString, mode: i64) -> () {
Node_rset_config(self.this, property, mode)
}
#[inline]
pub unsafe fn _set_import_path(&mut self, import_path: NodePath) -> () {
Node__set_import_path(self.this, import_path)
}
#[inline]
pub unsafe fn _get_import_path(&self) -> NodePath {
Node__get_import_path(self.this)
}
#[inline]
pub unsafe fn rpc(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable(self.this, method, varargs)
}
#[inline]
pub unsafe fn rpc_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rpc_unreliable_id(&mut self, peer_id: i64, method: GodotString, varargs: &[Variant]) -> Variant {
Node_rpc_unreliable_id(self.this, peer_id, method, varargs)
}
#[inline]
pub unsafe fn rset(&mut self, property: GodotString, value: Variant) -> () {
Node_rset(self.this, property, value)
}
#[inline]
pub unsafe fn rset_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn rset_unreliable(&mut self, property: GodotString, value: Variant) -> () {
Node_rset_unreliable(self.this, property, value)
}
#[inline]
pub unsafe fn rset_unreliable_id(&mut self, peer_id: i64, property: GodotString, value: Variant) -> () {
Node_rset_unreliable_id(self.this, peer_id, property, value)
}
#[inline]
pub unsafe fn _notification(&mut self, what: i64) -> () {
Object__notification(self.this, what)
}
#[inline]
pub unsafe fn _set(&mut self, property: GodotString, value: Variant) -> bool {
Object__set(self.this, property, value)
}
#[inline]
pub unsafe fn _get(&mut self, property: GodotString) -> Variant {
Object__get(self.this, property)
}
#[inline]
pub unsafe fn _get_property_list(&mut self) -> VariantArray {
Object__get_property_list(self.this)
}
#[inline]
pub unsafe fn _init(&mut self) -> () {
Object__init(self.this)
}
#[inline]
pub unsafe fn get_class(&self) -> GodotString {
Object_get_class(self.this)
}
#[inline]
pub unsafe fn is_class(&self, _type: GodotString) -> bool {
Object_is_class(self.this, _type)
}
#[inline]
pub unsafe fn set(&mut self, property: GodotString, value: Variant) -> () {
Object_set(self.this, property, value)
}
#[inline]
pub unsafe fn get(&self, property: GodotString) -> Variant {
Object_get(self.this, property)
}
#[inline]
pub unsafe fn set_indexed(&mut self, property: NodePath, value: Variant) -> () {
Object_set_indexed(self.this, property, value)
}
#[inline]
pub unsafe fn get_indexed(&self, property: NodePath) -> Variant {
Object_get_indexed(self.this, property)
}
#[inline]
pub unsafe fn get_property_list(&self) -> VariantArray {
Object_get_property_list(self.this)
}
#[inline]
pub unsafe fn get_method_list(&self) -> VariantArray {
Object_get_method_list(self.this)
}
#[inline]
pub unsafe fn notification(&mut self, what: i64, reversed: bool) -> () {
Object_notification(self.this, what, reversed)
}
#[inline]
pub unsafe fn get_instance_id(&self) -> i64 {
Object_get_instance_id(self.this)
}
#[inline]
pub unsafe fn set_script(&mut self, script: Option<Reference>) -> () {
Object_set_script(self.this, script)
}
#[inline]
pub unsafe fn get_script(&self) -> Option<Reference> {
Object_get_script(self.this)
}
#[inline]
pub unsafe fn set_meta(&mut self, name: GodotString, value: Variant) -> () {
Object_set_meta(self.this, name, value)
}
#[inline]
pub unsafe fn get_meta(&self, name: GodotString) -> Variant {
Object_get_meta(self.this, name)
}
#[inline]
pub unsafe fn has_meta(&self, name: GodotString) -> bool {
Object_has_meta(self.this, name)
}
#[inline]
pub unsafe fn get_meta_list(&self) -> StringArray {
Object_get_meta_list(self.this)
}
#[inline]
pub unsafe fn add_user_signal(&mut self, signal: GodotString, arguments: VariantArray) -> () {
Object_add_user_signal(self.this, signal, arguments)
}
#[inline]
pub unsafe fn has_user_signal(&self, signal: GodotString) -> bool {
Object_has_user_signal(self.this, signal)
}
#[inline]
pub unsafe fn emit_signal(&mut self, signal: GodotString, varargs: &[Variant]) -> Variant {
Object_emit_signal(self.this, signal, varargs)
}
#[inline]
pub unsafe fn call(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call(self.this, method, varargs)
}
#[inline]
pub unsafe fn call_deferred(&mut self, method: GodotString, varargs: &[Variant]) -> Variant {
Object_call_deferred(self.this, method, varargs)
}
#[inline]
pub unsafe fn callv(&mut self, method: GodotString, arg_array: VariantArray) -> Variant {
Object_callv(self.this, method, arg_array)
}
#[inline]
pub unsafe fn has_method(&self, method: GodotString) -> bool {
Object_has_method(self.this, method)
}
#[inline]
pub unsafe fn get_signal_list(&self) -> VariantArray {
Object_get_signal_list(self.this)
}
#[inline]
pub unsafe fn get_signal_connection_list(&self, signal: GodotString) -> VariantArray {
Object_get_signal_connection_list(self.this, signal)
}
#[inline]
pub unsafe fn get_incoming_connections(&self) -> VariantArray {
Object_get_incoming_connections(self.this)
}
#[inline]
pub unsafe fn connect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString, binds: VariantArray, flags: i64) -> GodotResult {
Object_connect(self.this, signal, target, method, binds, flags)
}
#[inline]
pub unsafe fn disconnect(&mut self, signal: GodotString, target: Option<Object>, method: GodotString) -> () {
Object_disconnect(self.this, signal, target, method)
}
#[inline]
pub unsafe fn is_connected(&self, signal: GodotString, target: Option<Object>, method: GodotString) -> bool {
Object_is_connected(self.this, signal, target, method)
}
#[inline]
pub unsafe fn set_block_signals(&mut self, enable: bool) -> () {
Object_set_block_signals(self.this, enable)
}
#[inline]
pub unsafe fn is_blocking_signals(&self) -> bool {
Object_is_blocking_signals(self.this)
}
#[inline]
pub unsafe fn property_list_changed_notify(&mut self) -> () {
Object_property_list_changed_notify(self.this)
}
#[inline]
pub unsafe fn set_message_translation(&mut self, enable: bool) -> () {
Object_set_message_translation(self.this, enable)
}
#[inline]
pub unsafe fn can_translate_messages(&self) -> bool {
Object_can_translate_messages(self.this)
}
#[inline]
pub unsafe fn tr(&self, message: GodotString) -> GodotString {
Object_tr(self.this, message)
}
#[inline]
pub unsafe fn is_queued_for_deletion(&self) -> bool {
Object_is_queued_for_deletion(self.this)
}
#[inline]
pub unsafe fn to_spatial(&self) -> Spatial {
Spatial { this: self.this }
}
#[inline]
pub unsafe fn to_node(&self) -> Node {
Node { this: self.this }
}
#[inline]
pub unsafe fn to_object(&self) -> Object {
Object { this: self.this }
}
pub unsafe fn cast<T: GodotObject>(&self) -> Option<T> {
object::godot_cast::<T>(self.this)
}
}
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct AudioStreamSample {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum AudioStreamSampleLoopMode {
Disabled = 0,
Forward = 1,
PingPong = 2,
}
#[repr(u32)]
#[allow(non_camel_case_types)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub enum AudioStreamSampleFormat {
Format8Bits = 0,
Format16Bits = 1,
ImaAdpcm = 2,
}
unsafe impl GodotObject for AudioStreamSample {
fn class_name() -> &'static str {
"AudioStreamSample"
}
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 AudioStreamSample {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AudioStreamSample {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AudioStreamSampleMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AudioStreamSample {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_data(&mut self, data: ByteArray) -> () {
unsafe { AudioStreamSample_set_data(self.this, data) }
}
#[inline]
pub fn get_data(&self) -> ByteArray {
unsafe { AudioStreamSample_get_data(self.this) }
}
#[inline]
pub fn set_format(&mut self, format: i64) -> () {
unsafe { AudioStreamSample_set_format(self.this, format) }
}
#[inline]
pub fn get_format(&self) -> AudioStreamSampleFormat {
unsafe { AudioStreamSample_get_format(self.this) }
}
#[inline]
pub fn set_loop_mode(&mut self, loop_mode: i64) -> () {
unsafe { AudioStreamSample_set_loop_mode(self.this, loop_mode) }
}
#[inline]
pub fn get_loop_mode(&self) -> AudioStreamSampleLoopMode {
unsafe { AudioStreamSample_get_loop_mode(self.this) }
}
#[inline]
pub fn set_loop_begin(&mut self, loop_begin: i64) -> () {
unsafe { AudioStreamSample_set_loop_begin(self.this, loop_begin) }
}
#[inline]
pub fn get_loop_begin(&self) -> i64 {
unsafe { AudioStreamSample_get_loop_begin(self.this) }
}
#[inline]
pub fn set_loop_end(&mut self, loop_end: i64) -> () {
unsafe { AudioStreamSample_set_loop_end(self.this, loop_end) }
}
#[inline]
pub fn get_loop_end(&self) -> i64 {
unsafe { AudioStreamSample_get_loop_end(self.this) }
}
#[inline]
pub fn set_mix_rate(&mut self, mix_rate: i64) -> () {
unsafe { AudioStreamSample_set_mix_rate(self.this, mix_rate) }
}
#[inline]
pub fn get_mix_rate(&self) -> i64 {
unsafe { AudioStreamSample_get_mix_rate(self.this) }
}
#[inline]
pub fn set_stereo(&mut self, stereo: bool) -> () {
unsafe { AudioStreamSample_set_stereo(self.this, stereo) }
}
#[inline]
pub fn is_stereo(&self) -> bool {
unsafe { AudioStreamSample_is_stereo(self.this) }
}
#[inline]
pub fn get_length(&self) -> f64 {
unsafe { AudioStream_get_length(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_audio_stream(&self) -> AudioStream {
unsafe {{ object::add_ref(self.this); }}
AudioStream { 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 AudioStreamSample {
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 ResourceImporterOGGVorbis {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for ResourceImporterOGGVorbis {
fn class_name() -> &'static str {
"ResourceImporterOGGVorbis"
}
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 ResourceImporterOGGVorbis {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl ResourceImporterOGGVorbis {
#[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_importer(&self) -> ResourceImporter {
unsafe {{ object::add_ref(self.this); }}
ResourceImporter { 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 AudioStreamOGGVorbis {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for AudioStreamOGGVorbis {
fn class_name() -> &'static str {
"AudioStreamOGGVorbis"
}
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 AudioStreamOGGVorbis {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl AudioStreamOGGVorbis {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = AudioStreamOGGVorbisMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
AudioStreamOGGVorbis {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_data(&mut self, data: ByteArray) -> () {
unsafe { AudioStreamOGGVorbis_set_data(self.this, data) }
}
#[inline]
pub fn get_data(&self) -> ByteArray {
unsafe { AudioStreamOGGVorbis_get_data(self.this) }
}
#[inline]
pub fn set_loop(&mut self, enable: bool) -> () {
unsafe { AudioStreamOGGVorbis_set_loop(self.this, enable) }
}
#[inline]
pub fn has_loop(&self) -> bool {
unsafe { AudioStreamOGGVorbis_has_loop(self.this) }
}
#[inline]
pub fn set_loop_offset(&mut self, seconds: f64) -> () {
unsafe { AudioStreamOGGVorbis_set_loop_offset(self.this, seconds) }
}
#[inline]
pub fn get_loop_offset(&self) -> f64 {
unsafe { AudioStreamOGGVorbis_get_loop_offset(self.this) }
}
#[inline]
pub fn get_length(&self) -> f64 {
unsafe { AudioStream_get_length(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_audio_stream(&self) -> AudioStream {
unsafe {{ object::add_ref(self.this); }}
AudioStream { 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 AudioStreamOGGVorbis {
fn drop(&mut self) {
unsafe {
if object::unref(self.this) {
(get_api().godot_object_destroy)(self.this);
}
}
}
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct AudioServerMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_bus_count: *mut sys::godot_method_bind,
pub get_bus_count: *mut sys::godot_method_bind,
pub remove_bus: *mut sys::godot_method_bind,
pub add_bus: *mut sys::godot_method_bind,
pub move_bus: *mut sys::godot_method_bind,
pub set_bus_name: *mut sys::godot_method_bind,
pub get_bus_name: *mut sys::godot_method_bind,
pub get_bus_index: *mut sys::godot_method_bind,
pub set_bus_volume_db: *mut sys::godot_method_bind,
pub get_bus_volume_db: *mut sys::godot_method_bind,
pub set_bus_send: *mut sys::godot_method_bind,
pub get_bus_send: *mut sys::godot_method_bind,
pub set_bus_solo: *mut sys::godot_method_bind,
pub is_bus_solo: *mut sys::godot_method_bind,
pub set_bus_mute: *mut sys::godot_method_bind,
pub is_bus_mute: *mut sys::godot_method_bind,
pub set_bus_bypass_effects: *mut sys::godot_method_bind,
pub is_bus_bypassing_effects: *mut sys::godot_method_bind,
pub add_bus_effect: *mut sys::godot_method_bind,
pub remove_bus_effect: *mut sys::godot_method_bind,
pub get_bus_effect_count: *mut sys::godot_method_bind,
pub get_bus_effect: *mut sys::godot_method_bind,
pub swap_bus_effects: *mut sys::godot_method_bind,
pub set_bus_effect_enabled: *mut sys::godot_method_bind,
pub is_bus_effect_enabled: *mut sys::godot_method_bind,
pub get_bus_peak_volume_left_db: *mut sys::godot_method_bind,
pub get_bus_peak_volume_right_db: *mut sys::godot_method_bind,
pub lock: *mut sys::godot_method_bind,
pub unlock: *mut sys::godot_method_bind,
pub get_speaker_mode: *mut sys::godot_method_bind,
pub get_mix_rate: *mut sys::godot_method_bind,
pub get_device_list: *mut sys::godot_method_bind,
pub get_device: *mut sys::godot_method_bind,
pub set_device: *mut sys::godot_method_bind,
pub set_bus_layout: *mut sys::godot_method_bind,
pub generate_bus_layout: *mut sys::godot_method_bind,
}
impl AudioServerMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AudioServerMethodTable = AudioServerMethodTable {
class_constructor: None,
set_bus_count: 0 as *mut sys::godot_method_bind,
get_bus_count: 0 as *mut sys::godot_method_bind,
remove_bus: 0 as *mut sys::godot_method_bind,
add_bus: 0 as *mut sys::godot_method_bind,
move_bus: 0 as *mut sys::godot_method_bind,
set_bus_name: 0 as *mut sys::godot_method_bind,
get_bus_name: 0 as *mut sys::godot_method_bind,
get_bus_index: 0 as *mut sys::godot_method_bind,
set_bus_volume_db: 0 as *mut sys::godot_method_bind,
get_bus_volume_db: 0 as *mut sys::godot_method_bind,
set_bus_send: 0 as *mut sys::godot_method_bind,
get_bus_send: 0 as *mut sys::godot_method_bind,
set_bus_solo: 0 as *mut sys::godot_method_bind,
is_bus_solo: 0 as *mut sys::godot_method_bind,
set_bus_mute: 0 as *mut sys::godot_method_bind,
is_bus_mute: 0 as *mut sys::godot_method_bind,
set_bus_bypass_effects: 0 as *mut sys::godot_method_bind,
is_bus_bypassing_effects: 0 as *mut sys::godot_method_bind,
add_bus_effect: 0 as *mut sys::godot_method_bind,
remove_bus_effect: 0 as *mut sys::godot_method_bind,
get_bus_effect_count: 0 as *mut sys::godot_method_bind,
get_bus_effect: 0 as *mut sys::godot_method_bind,
swap_bus_effects: 0 as *mut sys::godot_method_bind,
set_bus_effect_enabled: 0 as *mut sys::godot_method_bind,
is_bus_effect_enabled: 0 as *mut sys::godot_method_bind,
get_bus_peak_volume_left_db: 0 as *mut sys::godot_method_bind,
get_bus_peak_volume_right_db: 0 as *mut sys::godot_method_bind,
lock: 0 as *mut sys::godot_method_bind,
unlock: 0 as *mut sys::godot_method_bind,
get_speaker_mode: 0 as *mut sys::godot_method_bind,
get_mix_rate: 0 as *mut sys::godot_method_bind,
get_device_list: 0 as *mut sys::godot_method_bind,
get_device: 0 as *mut sys::godot_method_bind,
set_device: 0 as *mut sys::godot_method_bind,
set_bus_layout: 0 as *mut sys::godot_method_bind,
generate_bus_layout: 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(|| {
AudioServerMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AudioServer\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_bus_count = (gd_api.godot_method_bind_get_method)(class_name, "set_bus_count\0".as_ptr() as *const c_char );
table.get_bus_count = (gd_api.godot_method_bind_get_method)(class_name, "get_bus_count\0".as_ptr() as *const c_char );
table.remove_bus = (gd_api.godot_method_bind_get_method)(class_name, "remove_bus\0".as_ptr() as *const c_char );
table.add_bus = (gd_api.godot_method_bind_get_method)(class_name, "add_bus\0".as_ptr() as *const c_char );
table.move_bus = (gd_api.godot_method_bind_get_method)(class_name, "move_bus\0".as_ptr() as *const c_char );
table.set_bus_name = (gd_api.godot_method_bind_get_method)(class_name, "set_bus_name\0".as_ptr() as *const c_char );
table.get_bus_name = (gd_api.godot_method_bind_get_method)(class_name, "get_bus_name\0".as_ptr() as *const c_char );
table.get_bus_index = (gd_api.godot_method_bind_get_method)(class_name, "get_bus_index\0".as_ptr() as *const c_char );
table.set_bus_volume_db = (gd_api.godot_method_bind_get_method)(class_name, "set_bus_volume_db\0".as_ptr() as *const c_char );
table.get_bus_volume_db = (gd_api.godot_method_bind_get_method)(class_name, "get_bus_volume_db\0".as_ptr() as *const c_char );
table.set_bus_send = (gd_api.godot_method_bind_get_method)(class_name, "set_bus_send\0".as_ptr() as *const c_char );
table.get_bus_send = (gd_api.godot_method_bind_get_method)(class_name, "get_bus_send\0".as_ptr() as *const c_char );
table.set_bus_solo = (gd_api.godot_method_bind_get_method)(class_name, "set_bus_solo\0".as_ptr() as *const c_char );
table.is_bus_solo = (gd_api.godot_method_bind_get_method)(class_name, "is_bus_solo\0".as_ptr() as *const c_char );
table.set_bus_mute = (gd_api.godot_method_bind_get_method)(class_name, "set_bus_mute\0".as_ptr() as *const c_char );
table.is_bus_mute = (gd_api.godot_method_bind_get_method)(class_name, "is_bus_mute\0".as_ptr() as *const c_char );
table.set_bus_bypass_effects = (gd_api.godot_method_bind_get_method)(class_name, "set_bus_bypass_effects\0".as_ptr() as *const c_char );
table.is_bus_bypassing_effects = (gd_api.godot_method_bind_get_method)(class_name, "is_bus_bypassing_effects\0".as_ptr() as *const c_char );
table.add_bus_effect = (gd_api.godot_method_bind_get_method)(class_name, "add_bus_effect\0".as_ptr() as *const c_char );
table.remove_bus_effect = (gd_api.godot_method_bind_get_method)(class_name, "remove_bus_effect\0".as_ptr() as *const c_char );
table.get_bus_effect_count = (gd_api.godot_method_bind_get_method)(class_name, "get_bus_effect_count\0".as_ptr() as *const c_char );
table.get_bus_effect = (gd_api.godot_method_bind_get_method)(class_name, "get_bus_effect\0".as_ptr() as *const c_char );
table.swap_bus_effects = (gd_api.godot_method_bind_get_method)(class_name, "swap_bus_effects\0".as_ptr() as *const c_char );
table.set_bus_effect_enabled = (gd_api.godot_method_bind_get_method)(class_name, "set_bus_effect_enabled\0".as_ptr() as *const c_char );
table.is_bus_effect_enabled = (gd_api.godot_method_bind_get_method)(class_name, "is_bus_effect_enabled\0".as_ptr() as *const c_char );
table.get_bus_peak_volume_left_db = (gd_api.godot_method_bind_get_method)(class_name, "get_bus_peak_volume_left_db\0".as_ptr() as *const c_char );
table.get_bus_peak_volume_right_db = (gd_api.godot_method_bind_get_method)(class_name, "get_bus_peak_volume_right_db\0".as_ptr() as *const c_char );
table.lock = (gd_api.godot_method_bind_get_method)(class_name, "lock\0".as_ptr() as *const c_char );
table.unlock = (gd_api.godot_method_bind_get_method)(class_name, "unlock\0".as_ptr() as *const c_char );
table.get_speaker_mode = (gd_api.godot_method_bind_get_method)(class_name, "get_speaker_mode\0".as_ptr() as *const c_char );
table.get_mix_rate = (gd_api.godot_method_bind_get_method)(class_name, "get_mix_rate\0".as_ptr() as *const c_char );
table.get_device_list = (gd_api.godot_method_bind_get_method)(class_name, "get_device_list\0".as_ptr() as *const c_char );
table.get_device = (gd_api.godot_method_bind_get_method)(class_name, "get_device\0".as_ptr() as *const c_char );
table.set_device = (gd_api.godot_method_bind_get_method)(class_name, "set_device\0".as_ptr() as *const c_char );
table.set_bus_layout = (gd_api.godot_method_bind_get_method)(class_name, "set_bus_layout\0".as_ptr() as *const c_char );
table.generate_bus_layout = (gd_api.godot_method_bind_get_method)(class_name, "generate_bus_layout\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AudioServer_set_bus_count(obj_ptr: *mut sys::godot_object, amount: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioServerMethodTable::get(gd_api).set_bus_count;
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 AudioServer_get_bus_count(obj_ptr: *mut sys::godot_object) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioServerMethodTable::get(gd_api).get_bus_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 AudioServer_remove_bus(obj_ptr: *mut sys::godot_object, index: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioServerMethodTable::get(gd_api).remove_bus;
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 AudioServer_add_bus(obj_ptr: *mut sys::godot_object, at_position: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioServerMethodTable::get(gd_api).add_bus;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&at_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 AudioServer_move_bus(obj_ptr: *mut sys::godot_object, index: i64, to_index: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioServerMethodTable::get(gd_api).move_bus;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&index) as *const _ as *const _,
(&to_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 AudioServer_set_bus_name(obj_ptr: *mut sys::godot_object, bus_idx: i64, name: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioServerMethodTable::get(gd_api).set_bus_name;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&bus_idx) as *const _ as *const _,
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 AudioServer_get_bus_name(obj_ptr: *mut sys::godot_object, bus_idx: i64) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioServerMethodTable::get(gd_api).get_bus_name;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&bus_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 AudioServer_get_bus_index(obj_ptr: *mut sys::godot_object, bus_name: GodotString) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioServerMethodTable::get(gd_api).get_bus_index;
let mut argument_buffer : [*const libc::c_void; 1] = [
bus_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 AudioServer_set_bus_volume_db(obj_ptr: *mut sys::godot_object, bus_idx: i64, volume_db: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioServerMethodTable::get(gd_api).set_bus_volume_db;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&bus_idx) as *const _ as *const _,
(&volume_db) 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 AudioServer_get_bus_volume_db(obj_ptr: *mut sys::godot_object, bus_idx: i64) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioServerMethodTable::get(gd_api).get_bus_volume_db;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&bus_idx) as *const _ as *const _,
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioServer_set_bus_send(obj_ptr: *mut sys::godot_object, bus_idx: i64, send: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioServerMethodTable::get(gd_api).set_bus_send;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&bus_idx) as *const _ as *const _,
send.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 AudioServer_get_bus_send(obj_ptr: *mut sys::godot_object, bus_idx: i64) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioServerMethodTable::get(gd_api).get_bus_send;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&bus_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 AudioServer_set_bus_solo(obj_ptr: *mut sys::godot_object, bus_idx: i64, enable: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioServerMethodTable::get(gd_api).set_bus_solo;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&bus_idx) 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 AudioServer_is_bus_solo(obj_ptr: *mut sys::godot_object, bus_idx: i64) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioServerMethodTable::get(gd_api).is_bus_solo;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&bus_idx) as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioServer_set_bus_mute(obj_ptr: *mut sys::godot_object, bus_idx: i64, enable: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioServerMethodTable::get(gd_api).set_bus_mute;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&bus_idx) 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 AudioServer_is_bus_mute(obj_ptr: *mut sys::godot_object, bus_idx: i64) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioServerMethodTable::get(gd_api).is_bus_mute;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&bus_idx) as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioServer_set_bus_bypass_effects(obj_ptr: *mut sys::godot_object, bus_idx: i64, enable: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioServerMethodTable::get(gd_api).set_bus_bypass_effects;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&bus_idx) 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 AudioServer_is_bus_bypassing_effects(obj_ptr: *mut sys::godot_object, bus_idx: i64) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioServerMethodTable::get(gd_api).is_bus_bypassing_effects;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&bus_idx) as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioServer_add_bus_effect(obj_ptr: *mut sys::godot_object, bus_idx: i64, effect: Option<AudioEffect>, at_position: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioServerMethodTable::get(gd_api).add_bus_effect;
let mut argument_buffer : [*const libc::c_void; 3] = [
(&bus_idx) as *const _ as *const _,
if let Some(arg) = effect { arg.this as *const _ as *const _ } else { ptr::null() },
(&at_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 AudioServer_remove_bus_effect(obj_ptr: *mut sys::godot_object, bus_idx: i64, effect_idx: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioServerMethodTable::get(gd_api).remove_bus_effect;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&bus_idx) as *const _ as *const _,
(&effect_idx) 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 AudioServer_get_bus_effect_count(obj_ptr: *mut sys::godot_object, bus_idx: i64) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioServerMethodTable::get(gd_api).get_bus_effect_count;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&bus_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 AudioServer_get_bus_effect(obj_ptr: *mut sys::godot_object, bus_idx: i64, effect_idx: i64) -> Option<AudioEffect> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioServerMethodTable::get(gd_api).get_bus_effect;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&bus_idx) as *const _ as *const _,
(&effect_idx) as *const _ as *const _,
];
let mut ret: *mut sys::godot_object = ptr::null_mut();
let ret_ptr = (&mut ret) as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
if ret.is_null() {
None
} else {
Some(AudioEffect::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn AudioServer_swap_bus_effects(obj_ptr: *mut sys::godot_object, bus_idx: i64, effect_idx: i64, by_effect_idx: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioServerMethodTable::get(gd_api).swap_bus_effects;
let mut argument_buffer : [*const libc::c_void; 3] = [
(&bus_idx) as *const _ as *const _,
(&effect_idx) as *const _ as *const _,
(&by_effect_idx) 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 AudioServer_set_bus_effect_enabled(obj_ptr: *mut sys::godot_object, bus_idx: i64, effect_idx: i64, enabled: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioServerMethodTable::get(gd_api).set_bus_effect_enabled;
let mut argument_buffer : [*const libc::c_void; 3] = [
(&bus_idx) as *const _ as *const _,
(&effect_idx) as *const _ as *const _,
(&enabled) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AudioServer_is_bus_effect_enabled(obj_ptr: *mut sys::godot_object, bus_idx: i64, effect_idx: i64) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioServerMethodTable::get(gd_api).is_bus_effect_enabled;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&bus_idx) as *const _ as *const _,
(&effect_idx) as *const _ as *const _,
];
let mut ret = false;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioServer_get_bus_peak_volume_left_db(obj_ptr: *mut sys::godot_object, bus_idx: i64, channel: i64) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioServerMethodTable::get(gd_api).get_bus_peak_volume_left_db;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&bus_idx) as *const _ as *const _,
(&channel) as *const _ as *const _,
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioServer_get_bus_peak_volume_right_db(obj_ptr: *mut sys::godot_object, bus_idx: i64, channel: i64) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioServerMethodTable::get(gd_api).get_bus_peak_volume_right_db;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&bus_idx) as *const _ as *const _,
(&channel) as *const _ as *const _,
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioServer_lock(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioServerMethodTable::get(gd_api).lock;
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 AudioServer_unlock(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioServerMethodTable::get(gd_api).unlock;
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 AudioServer_get_speaker_mode(obj_ptr: *mut sys::godot_object) -> AudioServerSpeakerMode {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioServerMethodTable::get(gd_api).get_speaker_mode;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: AudioServerSpeakerMode = 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 AudioServer_get_mix_rate(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioServerMethodTable::get(gd_api).get_mix_rate;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioServer_get_device_list(obj_ptr: *mut sys::godot_object) -> VariantArray {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioServerMethodTable::get(gd_api).get_device_list;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_array::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
VariantArray::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AudioServer_get_device(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioServerMethodTable::get(gd_api).get_device;
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 AudioServer_set_device(obj_ptr: *mut sys::godot_object, arg0: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioServerMethodTable::get(gd_api).set_device;
let mut argument_buffer : [*const libc::c_void; 1] = [
arg0.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AudioServer_set_bus_layout(obj_ptr: *mut sys::godot_object, bus_layout: Option<AudioBusLayout>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioServerMethodTable::get(gd_api).set_bus_layout;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = bus_layout { arg.this as *const _ as *const _ } else { ptr::null() },
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AudioServer_generate_bus_layout(obj_ptr: *mut sys::godot_object) -> Option<AudioBusLayout> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioServerMethodTable::get(gd_api).generate_bus_layout;
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(AudioBusLayout::from_sys(ret))
}
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct AudioStreamRandomPitchMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_audio_stream: *mut sys::godot_method_bind,
pub get_audio_stream: *mut sys::godot_method_bind,
pub set_random_pitch: *mut sys::godot_method_bind,
pub get_random_pitch: *mut sys::godot_method_bind,
}
impl AudioStreamRandomPitchMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AudioStreamRandomPitchMethodTable = AudioStreamRandomPitchMethodTable {
class_constructor: None,
set_audio_stream: 0 as *mut sys::godot_method_bind,
get_audio_stream: 0 as *mut sys::godot_method_bind,
set_random_pitch: 0 as *mut sys::godot_method_bind,
get_random_pitch: 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(|| {
AudioStreamRandomPitchMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AudioStreamRandomPitch\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_audio_stream = (gd_api.godot_method_bind_get_method)(class_name, "set_audio_stream\0".as_ptr() as *const c_char );
table.get_audio_stream = (gd_api.godot_method_bind_get_method)(class_name, "get_audio_stream\0".as_ptr() as *const c_char );
table.set_random_pitch = (gd_api.godot_method_bind_get_method)(class_name, "set_random_pitch\0".as_ptr() as *const c_char );
table.get_random_pitch = (gd_api.godot_method_bind_get_method)(class_name, "get_random_pitch\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AudioStreamRandomPitch_set_audio_stream(obj_ptr: *mut sys::godot_object, stream: Option<AudioStream>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamRandomPitchMethodTable::get(gd_api).set_audio_stream;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = stream { 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 AudioStreamRandomPitch_get_audio_stream(obj_ptr: *mut sys::godot_object) -> Option<AudioStream> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamRandomPitchMethodTable::get(gd_api).get_audio_stream;
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(AudioStream::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn AudioStreamRandomPitch_set_random_pitch(obj_ptr: *mut sys::godot_object, scale: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamRandomPitchMethodTable::get(gd_api).set_random_pitch;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&scale) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AudioStreamRandomPitch_get_random_pitch(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamRandomPitchMethodTable::get(gd_api).get_random_pitch;
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 AudioEffectEQMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_band_gain_db: *mut sys::godot_method_bind,
pub get_band_gain_db: *mut sys::godot_method_bind,
pub get_band_count: *mut sys::godot_method_bind,
}
impl AudioEffectEQMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AudioEffectEQMethodTable = AudioEffectEQMethodTable {
class_constructor: None,
set_band_gain_db: 0 as *mut sys::godot_method_bind,
get_band_gain_db: 0 as *mut sys::godot_method_bind,
get_band_count: 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(|| {
AudioEffectEQMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AudioEffectEQ\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_band_gain_db = (gd_api.godot_method_bind_get_method)(class_name, "set_band_gain_db\0".as_ptr() as *const c_char );
table.get_band_gain_db = (gd_api.godot_method_bind_get_method)(class_name, "get_band_gain_db\0".as_ptr() as *const c_char );
table.get_band_count = (gd_api.godot_method_bind_get_method)(class_name, "get_band_count\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AudioEffectEQ_set_band_gain_db(obj_ptr: *mut sys::godot_object, band_idx: i64, volume_db: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectEQMethodTable::get(gd_api).set_band_gain_db;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&band_idx) as *const _ as *const _,
(&volume_db) 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 AudioEffectEQ_get_band_gain_db(obj_ptr: *mut sys::godot_object, band_idx: i64) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectEQMethodTable::get(gd_api).get_band_gain_db;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&band_idx) as *const _ as *const _,
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectEQ_get_band_count(obj_ptr: *mut sys::godot_object) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectEQMethodTable::get(gd_api).get_band_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)]
#[allow(non_camel_case_types)]
pub struct AudioStreamPlaybackMethodTable {
pub class_constructor: sys::godot_class_constructor,
}
impl AudioStreamPlaybackMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AudioStreamPlaybackMethodTable = AudioStreamPlaybackMethodTable {
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(|| {
AudioStreamPlaybackMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AudioStreamPlayback\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 AudioEffectFilterMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_cutoff: *mut sys::godot_method_bind,
pub get_cutoff: *mut sys::godot_method_bind,
pub set_resonance: *mut sys::godot_method_bind,
pub get_resonance: *mut sys::godot_method_bind,
pub set_gain: *mut sys::godot_method_bind,
pub get_gain: *mut sys::godot_method_bind,
pub set_db: *mut sys::godot_method_bind,
pub get_db: *mut sys::godot_method_bind,
}
impl AudioEffectFilterMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AudioEffectFilterMethodTable = AudioEffectFilterMethodTable {
class_constructor: None,
set_cutoff: 0 as *mut sys::godot_method_bind,
get_cutoff: 0 as *mut sys::godot_method_bind,
set_resonance: 0 as *mut sys::godot_method_bind,
get_resonance: 0 as *mut sys::godot_method_bind,
set_gain: 0 as *mut sys::godot_method_bind,
get_gain: 0 as *mut sys::godot_method_bind,
set_db: 0 as *mut sys::godot_method_bind,
get_db: 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(|| {
AudioEffectFilterMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AudioEffectFilter\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_cutoff = (gd_api.godot_method_bind_get_method)(class_name, "set_cutoff\0".as_ptr() as *const c_char );
table.get_cutoff = (gd_api.godot_method_bind_get_method)(class_name, "get_cutoff\0".as_ptr() as *const c_char );
table.set_resonance = (gd_api.godot_method_bind_get_method)(class_name, "set_resonance\0".as_ptr() as *const c_char );
table.get_resonance = (gd_api.godot_method_bind_get_method)(class_name, "get_resonance\0".as_ptr() as *const c_char );
table.set_gain = (gd_api.godot_method_bind_get_method)(class_name, "set_gain\0".as_ptr() as *const c_char );
table.get_gain = (gd_api.godot_method_bind_get_method)(class_name, "get_gain\0".as_ptr() as *const c_char );
table.set_db = (gd_api.godot_method_bind_get_method)(class_name, "set_db\0".as_ptr() as *const c_char );
table.get_db = (gd_api.godot_method_bind_get_method)(class_name, "get_db\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AudioEffectFilter_set_cutoff(obj_ptr: *mut sys::godot_object, freq: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectFilterMethodTable::get(gd_api).set_cutoff;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&freq) 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 AudioEffectFilter_get_cutoff(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectFilterMethodTable::get(gd_api).get_cutoff;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectFilter_set_resonance(obj_ptr: *mut sys::godot_object, amount: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectFilterMethodTable::get(gd_api).set_resonance;
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 AudioEffectFilter_get_resonance(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectFilterMethodTable::get(gd_api).get_resonance;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectFilter_set_gain(obj_ptr: *mut sys::godot_object, amount: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectFilterMethodTable::get(gd_api).set_gain;
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 AudioEffectFilter_get_gain(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectFilterMethodTable::get(gd_api).get_gain;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectFilter_set_db(obj_ptr: *mut sys::godot_object, amount: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectFilterMethodTable::get(gd_api).set_db;
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 AudioEffectFilter_get_db(obj_ptr: *mut sys::godot_object) -> AudioEffectFilterFilterDB {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectFilterMethodTable::get(gd_api).get_db;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: AudioEffectFilterFilterDB = 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 AudioBusLayoutMethodTable {
pub class_constructor: sys::godot_class_constructor,
}
impl AudioBusLayoutMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AudioBusLayoutMethodTable = AudioBusLayoutMethodTable {
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(|| {
AudioBusLayoutMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AudioBusLayout\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 AudioEffectAmplifyMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_volume_db: *mut sys::godot_method_bind,
pub get_volume_db: *mut sys::godot_method_bind,
}
impl AudioEffectAmplifyMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AudioEffectAmplifyMethodTable = AudioEffectAmplifyMethodTable {
class_constructor: None,
set_volume_db: 0 as *mut sys::godot_method_bind,
get_volume_db: 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(|| {
AudioEffectAmplifyMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AudioEffectAmplify\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_volume_db = (gd_api.godot_method_bind_get_method)(class_name, "set_volume_db\0".as_ptr() as *const c_char );
table.get_volume_db = (gd_api.godot_method_bind_get_method)(class_name, "get_volume_db\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AudioEffectAmplify_set_volume_db(obj_ptr: *mut sys::godot_object, volume: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectAmplifyMethodTable::get(gd_api).set_volume_db;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&volume) 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 AudioEffectAmplify_get_volume_db(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectAmplifyMethodTable::get(gd_api).get_volume_db;
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 AudioStreamMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub get_length: *mut sys::godot_method_bind,
}
impl AudioStreamMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AudioStreamMethodTable = AudioStreamMethodTable {
class_constructor: None,
get_length: 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(|| {
AudioStreamMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AudioStream\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.get_length = (gd_api.godot_method_bind_get_method)(class_name, "get_length\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AudioStream_get_length(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamMethodTable::get(gd_api).get_length;
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 AudioEffectMethodTable {
pub class_constructor: sys::godot_class_constructor,
}
impl AudioEffectMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AudioEffectMethodTable = AudioEffectMethodTable {
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(|| {
AudioEffectMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AudioEffect\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 AudioEffectHighPassFilterMethodTable {
pub class_constructor: sys::godot_class_constructor,
}
impl AudioEffectHighPassFilterMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AudioEffectHighPassFilterMethodTable = AudioEffectHighPassFilterMethodTable {
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(|| {
AudioEffectHighPassFilterMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AudioEffectHighPassFilter\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 AudioEffectNotchFilterMethodTable {
pub class_constructor: sys::godot_class_constructor,
}
impl AudioEffectNotchFilterMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AudioEffectNotchFilterMethodTable = AudioEffectNotchFilterMethodTable {
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(|| {
AudioEffectNotchFilterMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AudioEffectNotchFilter\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 AudioEffectBandLimitFilterMethodTable {
pub class_constructor: sys::godot_class_constructor,
}
impl AudioEffectBandLimitFilterMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AudioEffectBandLimitFilterMethodTable = AudioEffectBandLimitFilterMethodTable {
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(|| {
AudioEffectBandLimitFilterMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AudioEffectBandLimitFilter\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 AudioEffectLowShelfFilterMethodTable {
pub class_constructor: sys::godot_class_constructor,
}
impl AudioEffectLowShelfFilterMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AudioEffectLowShelfFilterMethodTable = AudioEffectLowShelfFilterMethodTable {
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(|| {
AudioEffectLowShelfFilterMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AudioEffectLowShelfFilter\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 AudioEffectEQ21MethodTable {
pub class_constructor: sys::godot_class_constructor,
}
impl AudioEffectEQ21MethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AudioEffectEQ21MethodTable = AudioEffectEQ21MethodTable {
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(|| {
AudioEffectEQ21MethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AudioEffectEQ21\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 AudioEffectDistortionMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_mode: *mut sys::godot_method_bind,
pub get_mode: *mut sys::godot_method_bind,
pub set_pre_gain: *mut sys::godot_method_bind,
pub get_pre_gain: *mut sys::godot_method_bind,
pub set_keep_hf_hz: *mut sys::godot_method_bind,
pub get_keep_hf_hz: *mut sys::godot_method_bind,
pub set_drive: *mut sys::godot_method_bind,
pub get_drive: *mut sys::godot_method_bind,
pub set_post_gain: *mut sys::godot_method_bind,
pub get_post_gain: *mut sys::godot_method_bind,
}
impl AudioEffectDistortionMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AudioEffectDistortionMethodTable = AudioEffectDistortionMethodTable {
class_constructor: None,
set_mode: 0 as *mut sys::godot_method_bind,
get_mode: 0 as *mut sys::godot_method_bind,
set_pre_gain: 0 as *mut sys::godot_method_bind,
get_pre_gain: 0 as *mut sys::godot_method_bind,
set_keep_hf_hz: 0 as *mut sys::godot_method_bind,
get_keep_hf_hz: 0 as *mut sys::godot_method_bind,
set_drive: 0 as *mut sys::godot_method_bind,
get_drive: 0 as *mut sys::godot_method_bind,
set_post_gain: 0 as *mut sys::godot_method_bind,
get_post_gain: 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(|| {
AudioEffectDistortionMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AudioEffectDistortion\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_mode = (gd_api.godot_method_bind_get_method)(class_name, "set_mode\0".as_ptr() as *const c_char );
table.get_mode = (gd_api.godot_method_bind_get_method)(class_name, "get_mode\0".as_ptr() as *const c_char );
table.set_pre_gain = (gd_api.godot_method_bind_get_method)(class_name, "set_pre_gain\0".as_ptr() as *const c_char );
table.get_pre_gain = (gd_api.godot_method_bind_get_method)(class_name, "get_pre_gain\0".as_ptr() as *const c_char );
table.set_keep_hf_hz = (gd_api.godot_method_bind_get_method)(class_name, "set_keep_hf_hz\0".as_ptr() as *const c_char );
table.get_keep_hf_hz = (gd_api.godot_method_bind_get_method)(class_name, "get_keep_hf_hz\0".as_ptr() as *const c_char );
table.set_drive = (gd_api.godot_method_bind_get_method)(class_name, "set_drive\0".as_ptr() as *const c_char );
table.get_drive = (gd_api.godot_method_bind_get_method)(class_name, "get_drive\0".as_ptr() as *const c_char );
table.set_post_gain = (gd_api.godot_method_bind_get_method)(class_name, "set_post_gain\0".as_ptr() as *const c_char );
table.get_post_gain = (gd_api.godot_method_bind_get_method)(class_name, "get_post_gain\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AudioEffectDistortion_set_mode(obj_ptr: *mut sys::godot_object, mode: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectDistortionMethodTable::get(gd_api).set_mode;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&mode) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AudioEffectDistortion_get_mode(obj_ptr: *mut sys::godot_object) -> AudioEffectDistortionMode {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectDistortionMethodTable::get(gd_api).get_mode;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: AudioEffectDistortionMode = 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 AudioEffectDistortion_set_pre_gain(obj_ptr: *mut sys::godot_object, pre_gain: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectDistortionMethodTable::get(gd_api).set_pre_gain;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&pre_gain) 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 AudioEffectDistortion_get_pre_gain(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectDistortionMethodTable::get(gd_api).get_pre_gain;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectDistortion_set_keep_hf_hz(obj_ptr: *mut sys::godot_object, keep_hf_hz: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectDistortionMethodTable::get(gd_api).set_keep_hf_hz;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&keep_hf_hz) 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 AudioEffectDistortion_get_keep_hf_hz(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectDistortionMethodTable::get(gd_api).get_keep_hf_hz;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectDistortion_set_drive(obj_ptr: *mut sys::godot_object, drive: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectDistortionMethodTable::get(gd_api).set_drive;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&drive) 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 AudioEffectDistortion_get_drive(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectDistortionMethodTable::get(gd_api).get_drive;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectDistortion_set_post_gain(obj_ptr: *mut sys::godot_object, post_gain: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectDistortionMethodTable::get(gd_api).set_post_gain;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&post_gain) 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 AudioEffectDistortion_get_post_gain(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectDistortionMethodTable::get(gd_api).get_post_gain;
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 AudioEffectHighShelfFilterMethodTable {
pub class_constructor: sys::godot_class_constructor,
}
impl AudioEffectHighShelfFilterMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AudioEffectHighShelfFilterMethodTable = AudioEffectHighShelfFilterMethodTable {
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(|| {
AudioEffectHighShelfFilterMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AudioEffectHighShelfFilter\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 AudioEffectEQ6MethodTable {
pub class_constructor: sys::godot_class_constructor,
}
impl AudioEffectEQ6MethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AudioEffectEQ6MethodTable = AudioEffectEQ6MethodTable {
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(|| {
AudioEffectEQ6MethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AudioEffectEQ6\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 AudioEffectEQ10MethodTable {
pub class_constructor: sys::godot_class_constructor,
}
impl AudioEffectEQ10MethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AudioEffectEQ10MethodTable = AudioEffectEQ10MethodTable {
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(|| {
AudioEffectEQ10MethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AudioEffectEQ10\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 AudioEffectReverbMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_predelay_msec: *mut sys::godot_method_bind,
pub get_predelay_msec: *mut sys::godot_method_bind,
pub set_predelay_feedback: *mut sys::godot_method_bind,
pub get_predelay_feedback: *mut sys::godot_method_bind,
pub set_room_size: *mut sys::godot_method_bind,
pub get_room_size: *mut sys::godot_method_bind,
pub set_damping: *mut sys::godot_method_bind,
pub get_damping: *mut sys::godot_method_bind,
pub set_spread: *mut sys::godot_method_bind,
pub get_spread: *mut sys::godot_method_bind,
pub set_dry: *mut sys::godot_method_bind,
pub get_dry: *mut sys::godot_method_bind,
pub set_wet: *mut sys::godot_method_bind,
pub get_wet: *mut sys::godot_method_bind,
pub set_hpf: *mut sys::godot_method_bind,
pub get_hpf: *mut sys::godot_method_bind,
}
impl AudioEffectReverbMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AudioEffectReverbMethodTable = AudioEffectReverbMethodTable {
class_constructor: None,
set_predelay_msec: 0 as *mut sys::godot_method_bind,
get_predelay_msec: 0 as *mut sys::godot_method_bind,
set_predelay_feedback: 0 as *mut sys::godot_method_bind,
get_predelay_feedback: 0 as *mut sys::godot_method_bind,
set_room_size: 0 as *mut sys::godot_method_bind,
get_room_size: 0 as *mut sys::godot_method_bind,
set_damping: 0 as *mut sys::godot_method_bind,
get_damping: 0 as *mut sys::godot_method_bind,
set_spread: 0 as *mut sys::godot_method_bind,
get_spread: 0 as *mut sys::godot_method_bind,
set_dry: 0 as *mut sys::godot_method_bind,
get_dry: 0 as *mut sys::godot_method_bind,
set_wet: 0 as *mut sys::godot_method_bind,
get_wet: 0 as *mut sys::godot_method_bind,
set_hpf: 0 as *mut sys::godot_method_bind,
get_hpf: 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(|| {
AudioEffectReverbMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AudioEffectReverb\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_predelay_msec = (gd_api.godot_method_bind_get_method)(class_name, "set_predelay_msec\0".as_ptr() as *const c_char );
table.get_predelay_msec = (gd_api.godot_method_bind_get_method)(class_name, "get_predelay_msec\0".as_ptr() as *const c_char );
table.set_predelay_feedback = (gd_api.godot_method_bind_get_method)(class_name, "set_predelay_feedback\0".as_ptr() as *const c_char );
table.get_predelay_feedback = (gd_api.godot_method_bind_get_method)(class_name, "get_predelay_feedback\0".as_ptr() as *const c_char );
table.set_room_size = (gd_api.godot_method_bind_get_method)(class_name, "set_room_size\0".as_ptr() as *const c_char );
table.get_room_size = (gd_api.godot_method_bind_get_method)(class_name, "get_room_size\0".as_ptr() as *const c_char );
table.set_damping = (gd_api.godot_method_bind_get_method)(class_name, "set_damping\0".as_ptr() as *const c_char );
table.get_damping = (gd_api.godot_method_bind_get_method)(class_name, "get_damping\0".as_ptr() as *const c_char );
table.set_spread = (gd_api.godot_method_bind_get_method)(class_name, "set_spread\0".as_ptr() as *const c_char );
table.get_spread = (gd_api.godot_method_bind_get_method)(class_name, "get_spread\0".as_ptr() as *const c_char );
table.set_dry = (gd_api.godot_method_bind_get_method)(class_name, "set_dry\0".as_ptr() as *const c_char );
table.get_dry = (gd_api.godot_method_bind_get_method)(class_name, "get_dry\0".as_ptr() as *const c_char );
table.set_wet = (gd_api.godot_method_bind_get_method)(class_name, "set_wet\0".as_ptr() as *const c_char );
table.get_wet = (gd_api.godot_method_bind_get_method)(class_name, "get_wet\0".as_ptr() as *const c_char );
table.set_hpf = (gd_api.godot_method_bind_get_method)(class_name, "set_hpf\0".as_ptr() as *const c_char );
table.get_hpf = (gd_api.godot_method_bind_get_method)(class_name, "get_hpf\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AudioEffectReverb_set_predelay_msec(obj_ptr: *mut sys::godot_object, msec: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectReverbMethodTable::get(gd_api).set_predelay_msec;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&msec) 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 AudioEffectReverb_get_predelay_msec(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectReverbMethodTable::get(gd_api).get_predelay_msec;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectReverb_set_predelay_feedback(obj_ptr: *mut sys::godot_object, feedback: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectReverbMethodTable::get(gd_api).set_predelay_feedback;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&feedback) 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 AudioEffectReverb_get_predelay_feedback(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectReverbMethodTable::get(gd_api).get_predelay_feedback;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectReverb_set_room_size(obj_ptr: *mut sys::godot_object, size: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectReverbMethodTable::get(gd_api).set_room_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 AudioEffectReverb_get_room_size(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectReverbMethodTable::get(gd_api).get_room_size;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectReverb_set_damping(obj_ptr: *mut sys::godot_object, amount: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectReverbMethodTable::get(gd_api).set_damping;
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 AudioEffectReverb_get_damping(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectReverbMethodTable::get(gd_api).get_damping;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectReverb_set_spread(obj_ptr: *mut sys::godot_object, amount: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectReverbMethodTable::get(gd_api).set_spread;
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 AudioEffectReverb_get_spread(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectReverbMethodTable::get(gd_api).get_spread;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectReverb_set_dry(obj_ptr: *mut sys::godot_object, amount: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectReverbMethodTable::get(gd_api).set_dry;
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 AudioEffectReverb_get_dry(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectReverbMethodTable::get(gd_api).get_dry;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectReverb_set_wet(obj_ptr: *mut sys::godot_object, amount: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectReverbMethodTable::get(gd_api).set_wet;
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 AudioEffectReverb_get_wet(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectReverbMethodTable::get(gd_api).get_wet;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectReverb_set_hpf(obj_ptr: *mut sys::godot_object, amount: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectReverbMethodTable::get(gd_api).set_hpf;
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 AudioEffectReverb_get_hpf(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectReverbMethodTable::get(gd_api).get_hpf;
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 AudioEffectLowPassFilterMethodTable {
pub class_constructor: sys::godot_class_constructor,
}
impl AudioEffectLowPassFilterMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AudioEffectLowPassFilterMethodTable = AudioEffectLowPassFilterMethodTable {
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(|| {
AudioEffectLowPassFilterMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AudioEffectLowPassFilter\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 AudioEffectBandPassFilterMethodTable {
pub class_constructor: sys::godot_class_constructor,
}
impl AudioEffectBandPassFilterMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AudioEffectBandPassFilterMethodTable = AudioEffectBandPassFilterMethodTable {
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(|| {
AudioEffectBandPassFilterMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AudioEffectBandPassFilter\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 AudioEffectChorusMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_voice_count: *mut sys::godot_method_bind,
pub get_voice_count: *mut sys::godot_method_bind,
pub set_voice_delay_ms: *mut sys::godot_method_bind,
pub get_voice_delay_ms: *mut sys::godot_method_bind,
pub set_voice_rate_hz: *mut sys::godot_method_bind,
pub get_voice_rate_hz: *mut sys::godot_method_bind,
pub set_voice_depth_ms: *mut sys::godot_method_bind,
pub get_voice_depth_ms: *mut sys::godot_method_bind,
pub set_voice_level_db: *mut sys::godot_method_bind,
pub get_voice_level_db: *mut sys::godot_method_bind,
pub set_voice_cutoff_hz: *mut sys::godot_method_bind,
pub get_voice_cutoff_hz: *mut sys::godot_method_bind,
pub set_voice_pan: *mut sys::godot_method_bind,
pub get_voice_pan: *mut sys::godot_method_bind,
pub set_wet: *mut sys::godot_method_bind,
pub get_wet: *mut sys::godot_method_bind,
pub set_dry: *mut sys::godot_method_bind,
pub get_dry: *mut sys::godot_method_bind,
}
impl AudioEffectChorusMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AudioEffectChorusMethodTable = AudioEffectChorusMethodTable {
class_constructor: None,
set_voice_count: 0 as *mut sys::godot_method_bind,
get_voice_count: 0 as *mut sys::godot_method_bind,
set_voice_delay_ms: 0 as *mut sys::godot_method_bind,
get_voice_delay_ms: 0 as *mut sys::godot_method_bind,
set_voice_rate_hz: 0 as *mut sys::godot_method_bind,
get_voice_rate_hz: 0 as *mut sys::godot_method_bind,
set_voice_depth_ms: 0 as *mut sys::godot_method_bind,
get_voice_depth_ms: 0 as *mut sys::godot_method_bind,
set_voice_level_db: 0 as *mut sys::godot_method_bind,
get_voice_level_db: 0 as *mut sys::godot_method_bind,
set_voice_cutoff_hz: 0 as *mut sys::godot_method_bind,
get_voice_cutoff_hz: 0 as *mut sys::godot_method_bind,
set_voice_pan: 0 as *mut sys::godot_method_bind,
get_voice_pan: 0 as *mut sys::godot_method_bind,
set_wet: 0 as *mut sys::godot_method_bind,
get_wet: 0 as *mut sys::godot_method_bind,
set_dry: 0 as *mut sys::godot_method_bind,
get_dry: 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(|| {
AudioEffectChorusMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AudioEffectChorus\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_voice_count = (gd_api.godot_method_bind_get_method)(class_name, "set_voice_count\0".as_ptr() as *const c_char );
table.get_voice_count = (gd_api.godot_method_bind_get_method)(class_name, "get_voice_count\0".as_ptr() as *const c_char );
table.set_voice_delay_ms = (gd_api.godot_method_bind_get_method)(class_name, "set_voice_delay_ms\0".as_ptr() as *const c_char );
table.get_voice_delay_ms = (gd_api.godot_method_bind_get_method)(class_name, "get_voice_delay_ms\0".as_ptr() as *const c_char );
table.set_voice_rate_hz = (gd_api.godot_method_bind_get_method)(class_name, "set_voice_rate_hz\0".as_ptr() as *const c_char );
table.get_voice_rate_hz = (gd_api.godot_method_bind_get_method)(class_name, "get_voice_rate_hz\0".as_ptr() as *const c_char );
table.set_voice_depth_ms = (gd_api.godot_method_bind_get_method)(class_name, "set_voice_depth_ms\0".as_ptr() as *const c_char );
table.get_voice_depth_ms = (gd_api.godot_method_bind_get_method)(class_name, "get_voice_depth_ms\0".as_ptr() as *const c_char );
table.set_voice_level_db = (gd_api.godot_method_bind_get_method)(class_name, "set_voice_level_db\0".as_ptr() as *const c_char );
table.get_voice_level_db = (gd_api.godot_method_bind_get_method)(class_name, "get_voice_level_db\0".as_ptr() as *const c_char );
table.set_voice_cutoff_hz = (gd_api.godot_method_bind_get_method)(class_name, "set_voice_cutoff_hz\0".as_ptr() as *const c_char );
table.get_voice_cutoff_hz = (gd_api.godot_method_bind_get_method)(class_name, "get_voice_cutoff_hz\0".as_ptr() as *const c_char );
table.set_voice_pan = (gd_api.godot_method_bind_get_method)(class_name, "set_voice_pan\0".as_ptr() as *const c_char );
table.get_voice_pan = (gd_api.godot_method_bind_get_method)(class_name, "get_voice_pan\0".as_ptr() as *const c_char );
table.set_wet = (gd_api.godot_method_bind_get_method)(class_name, "set_wet\0".as_ptr() as *const c_char );
table.get_wet = (gd_api.godot_method_bind_get_method)(class_name, "get_wet\0".as_ptr() as *const c_char );
table.set_dry = (gd_api.godot_method_bind_get_method)(class_name, "set_dry\0".as_ptr() as *const c_char );
table.get_dry = (gd_api.godot_method_bind_get_method)(class_name, "get_dry\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AudioEffectChorus_set_voice_count(obj_ptr: *mut sys::godot_object, voices: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectChorusMethodTable::get(gd_api).set_voice_count;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&voices) 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 AudioEffectChorus_get_voice_count(obj_ptr: *mut sys::godot_object) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectChorusMethodTable::get(gd_api).get_voice_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 AudioEffectChorus_set_voice_delay_ms(obj_ptr: *mut sys::godot_object, voice_idx: i64, delay_ms: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectChorusMethodTable::get(gd_api).set_voice_delay_ms;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&voice_idx) as *const _ as *const _,
(&delay_ms) 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 AudioEffectChorus_get_voice_delay_ms(obj_ptr: *mut sys::godot_object, voice_idx: i64) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectChorusMethodTable::get(gd_api).get_voice_delay_ms;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&voice_idx) as *const _ as *const _,
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectChorus_set_voice_rate_hz(obj_ptr: *mut sys::godot_object, voice_idx: i64, rate_hz: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectChorusMethodTable::get(gd_api).set_voice_rate_hz;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&voice_idx) as *const _ as *const _,
(&rate_hz) 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 AudioEffectChorus_get_voice_rate_hz(obj_ptr: *mut sys::godot_object, voice_idx: i64) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectChorusMethodTable::get(gd_api).get_voice_rate_hz;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&voice_idx) as *const _ as *const _,
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectChorus_set_voice_depth_ms(obj_ptr: *mut sys::godot_object, voice_idx: i64, depth_ms: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectChorusMethodTable::get(gd_api).set_voice_depth_ms;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&voice_idx) as *const _ as *const _,
(&depth_ms) 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 AudioEffectChorus_get_voice_depth_ms(obj_ptr: *mut sys::godot_object, voice_idx: i64) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectChorusMethodTable::get(gd_api).get_voice_depth_ms;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&voice_idx) as *const _ as *const _,
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectChorus_set_voice_level_db(obj_ptr: *mut sys::godot_object, voice_idx: i64, level_db: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectChorusMethodTable::get(gd_api).set_voice_level_db;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&voice_idx) as *const _ as *const _,
(&level_db) 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 AudioEffectChorus_get_voice_level_db(obj_ptr: *mut sys::godot_object, voice_idx: i64) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectChorusMethodTable::get(gd_api).get_voice_level_db;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&voice_idx) as *const _ as *const _,
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectChorus_set_voice_cutoff_hz(obj_ptr: *mut sys::godot_object, voice_idx: i64, cutoff_hz: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectChorusMethodTable::get(gd_api).set_voice_cutoff_hz;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&voice_idx) as *const _ as *const _,
(&cutoff_hz) 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 AudioEffectChorus_get_voice_cutoff_hz(obj_ptr: *mut sys::godot_object, voice_idx: i64) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectChorusMethodTable::get(gd_api).get_voice_cutoff_hz;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&voice_idx) as *const _ as *const _,
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectChorus_set_voice_pan(obj_ptr: *mut sys::godot_object, voice_idx: i64, pan: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectChorusMethodTable::get(gd_api).set_voice_pan;
let mut argument_buffer : [*const libc::c_void; 2] = [
(&voice_idx) as *const _ as *const _,
(&pan) 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 AudioEffectChorus_get_voice_pan(obj_ptr: *mut sys::godot_object, voice_idx: i64) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectChorusMethodTable::get(gd_api).get_voice_pan;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&voice_idx) as *const _ as *const _,
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectChorus_set_wet(obj_ptr: *mut sys::godot_object, amount: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectChorusMethodTable::get(gd_api).set_wet;
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 AudioEffectChorus_get_wet(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectChorusMethodTable::get(gd_api).get_wet;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectChorus_set_dry(obj_ptr: *mut sys::godot_object, amount: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectChorusMethodTable::get(gd_api).set_dry;
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 AudioEffectChorus_get_dry(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectChorusMethodTable::get(gd_api).get_dry;
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 AudioEffectPannerMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_pan: *mut sys::godot_method_bind,
pub get_pan: *mut sys::godot_method_bind,
}
impl AudioEffectPannerMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AudioEffectPannerMethodTable = AudioEffectPannerMethodTable {
class_constructor: None,
set_pan: 0 as *mut sys::godot_method_bind,
get_pan: 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(|| {
AudioEffectPannerMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AudioEffectPanner\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_pan = (gd_api.godot_method_bind_get_method)(class_name, "set_pan\0".as_ptr() as *const c_char );
table.get_pan = (gd_api.godot_method_bind_get_method)(class_name, "get_pan\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AudioEffectPanner_set_pan(obj_ptr: *mut sys::godot_object, cpanume: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectPannerMethodTable::get(gd_api).set_pan;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&cpanume) 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 AudioEffectPanner_get_pan(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectPannerMethodTable::get(gd_api).get_pan;
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 AudioEffectStereoEnhanceMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_pan_pullout: *mut sys::godot_method_bind,
pub get_pan_pullout: *mut sys::godot_method_bind,
pub set_time_pullout: *mut sys::godot_method_bind,
pub get_time_pullout: *mut sys::godot_method_bind,
pub set_surround: *mut sys::godot_method_bind,
pub get_surround: *mut sys::godot_method_bind,
}
impl AudioEffectStereoEnhanceMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AudioEffectStereoEnhanceMethodTable = AudioEffectStereoEnhanceMethodTable {
class_constructor: None,
set_pan_pullout: 0 as *mut sys::godot_method_bind,
get_pan_pullout: 0 as *mut sys::godot_method_bind,
set_time_pullout: 0 as *mut sys::godot_method_bind,
get_time_pullout: 0 as *mut sys::godot_method_bind,
set_surround: 0 as *mut sys::godot_method_bind,
get_surround: 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(|| {
AudioEffectStereoEnhanceMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AudioEffectStereoEnhance\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_pan_pullout = (gd_api.godot_method_bind_get_method)(class_name, "set_pan_pullout\0".as_ptr() as *const c_char );
table.get_pan_pullout = (gd_api.godot_method_bind_get_method)(class_name, "get_pan_pullout\0".as_ptr() as *const c_char );
table.set_time_pullout = (gd_api.godot_method_bind_get_method)(class_name, "set_time_pullout\0".as_ptr() as *const c_char );
table.get_time_pullout = (gd_api.godot_method_bind_get_method)(class_name, "get_time_pullout\0".as_ptr() as *const c_char );
table.set_surround = (gd_api.godot_method_bind_get_method)(class_name, "set_surround\0".as_ptr() as *const c_char );
table.get_surround = (gd_api.godot_method_bind_get_method)(class_name, "get_surround\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AudioEffectStereoEnhance_set_pan_pullout(obj_ptr: *mut sys::godot_object, amount: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectStereoEnhanceMethodTable::get(gd_api).set_pan_pullout;
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 AudioEffectStereoEnhance_get_pan_pullout(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectStereoEnhanceMethodTable::get(gd_api).get_pan_pullout;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectStereoEnhance_set_time_pullout(obj_ptr: *mut sys::godot_object, amount: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectStereoEnhanceMethodTable::get(gd_api).set_time_pullout;
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 AudioEffectStereoEnhance_get_time_pullout(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectStereoEnhanceMethodTable::get(gd_api).get_time_pullout;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectStereoEnhance_set_surround(obj_ptr: *mut sys::godot_object, amount: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectStereoEnhanceMethodTable::get(gd_api).set_surround;
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 AudioEffectStereoEnhance_get_surround(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectStereoEnhanceMethodTable::get(gd_api).get_surround;
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 AudioEffectDelayMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_dry: *mut sys::godot_method_bind,
pub get_dry: *mut sys::godot_method_bind,
pub set_tap1_active: *mut sys::godot_method_bind,
pub is_tap1_active: *mut sys::godot_method_bind,
pub set_tap1_delay_ms: *mut sys::godot_method_bind,
pub get_tap1_delay_ms: *mut sys::godot_method_bind,
pub set_tap1_level_db: *mut sys::godot_method_bind,
pub get_tap1_level_db: *mut sys::godot_method_bind,
pub set_tap1_pan: *mut sys::godot_method_bind,
pub get_tap1_pan: *mut sys::godot_method_bind,
pub set_tap2_active: *mut sys::godot_method_bind,
pub is_tap2_active: *mut sys::godot_method_bind,
pub set_tap2_delay_ms: *mut sys::godot_method_bind,
pub get_tap2_delay_ms: *mut sys::godot_method_bind,
pub set_tap2_level_db: *mut sys::godot_method_bind,
pub get_tap2_level_db: *mut sys::godot_method_bind,
pub set_tap2_pan: *mut sys::godot_method_bind,
pub get_tap2_pan: *mut sys::godot_method_bind,
pub set_feedback_active: *mut sys::godot_method_bind,
pub is_feedback_active: *mut sys::godot_method_bind,
pub set_feedback_delay_ms: *mut sys::godot_method_bind,
pub get_feedback_delay_ms: *mut sys::godot_method_bind,
pub set_feedback_level_db: *mut sys::godot_method_bind,
pub get_feedback_level_db: *mut sys::godot_method_bind,
pub set_feedback_lowpass: *mut sys::godot_method_bind,
pub get_feedback_lowpass: *mut sys::godot_method_bind,
}
impl AudioEffectDelayMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AudioEffectDelayMethodTable = AudioEffectDelayMethodTable {
class_constructor: None,
set_dry: 0 as *mut sys::godot_method_bind,
get_dry: 0 as *mut sys::godot_method_bind,
set_tap1_active: 0 as *mut sys::godot_method_bind,
is_tap1_active: 0 as *mut sys::godot_method_bind,
set_tap1_delay_ms: 0 as *mut sys::godot_method_bind,
get_tap1_delay_ms: 0 as *mut sys::godot_method_bind,
set_tap1_level_db: 0 as *mut sys::godot_method_bind,
get_tap1_level_db: 0 as *mut sys::godot_method_bind,
set_tap1_pan: 0 as *mut sys::godot_method_bind,
get_tap1_pan: 0 as *mut sys::godot_method_bind,
set_tap2_active: 0 as *mut sys::godot_method_bind,
is_tap2_active: 0 as *mut sys::godot_method_bind,
set_tap2_delay_ms: 0 as *mut sys::godot_method_bind,
get_tap2_delay_ms: 0 as *mut sys::godot_method_bind,
set_tap2_level_db: 0 as *mut sys::godot_method_bind,
get_tap2_level_db: 0 as *mut sys::godot_method_bind,
set_tap2_pan: 0 as *mut sys::godot_method_bind,
get_tap2_pan: 0 as *mut sys::godot_method_bind,
set_feedback_active: 0 as *mut sys::godot_method_bind,
is_feedback_active: 0 as *mut sys::godot_method_bind,
set_feedback_delay_ms: 0 as *mut sys::godot_method_bind,
get_feedback_delay_ms: 0 as *mut sys::godot_method_bind,
set_feedback_level_db: 0 as *mut sys::godot_method_bind,
get_feedback_level_db: 0 as *mut sys::godot_method_bind,
set_feedback_lowpass: 0 as *mut sys::godot_method_bind,
get_feedback_lowpass: 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(|| {
AudioEffectDelayMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AudioEffectDelay\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_dry = (gd_api.godot_method_bind_get_method)(class_name, "set_dry\0".as_ptr() as *const c_char );
table.get_dry = (gd_api.godot_method_bind_get_method)(class_name, "get_dry\0".as_ptr() as *const c_char );
table.set_tap1_active = (gd_api.godot_method_bind_get_method)(class_name, "set_tap1_active\0".as_ptr() as *const c_char );
table.is_tap1_active = (gd_api.godot_method_bind_get_method)(class_name, "is_tap1_active\0".as_ptr() as *const c_char );
table.set_tap1_delay_ms = (gd_api.godot_method_bind_get_method)(class_name, "set_tap1_delay_ms\0".as_ptr() as *const c_char );
table.get_tap1_delay_ms = (gd_api.godot_method_bind_get_method)(class_name, "get_tap1_delay_ms\0".as_ptr() as *const c_char );
table.set_tap1_level_db = (gd_api.godot_method_bind_get_method)(class_name, "set_tap1_level_db\0".as_ptr() as *const c_char );
table.get_tap1_level_db = (gd_api.godot_method_bind_get_method)(class_name, "get_tap1_level_db\0".as_ptr() as *const c_char );
table.set_tap1_pan = (gd_api.godot_method_bind_get_method)(class_name, "set_tap1_pan\0".as_ptr() as *const c_char );
table.get_tap1_pan = (gd_api.godot_method_bind_get_method)(class_name, "get_tap1_pan\0".as_ptr() as *const c_char );
table.set_tap2_active = (gd_api.godot_method_bind_get_method)(class_name, "set_tap2_active\0".as_ptr() as *const c_char );
table.is_tap2_active = (gd_api.godot_method_bind_get_method)(class_name, "is_tap2_active\0".as_ptr() as *const c_char );
table.set_tap2_delay_ms = (gd_api.godot_method_bind_get_method)(class_name, "set_tap2_delay_ms\0".as_ptr() as *const c_char );
table.get_tap2_delay_ms = (gd_api.godot_method_bind_get_method)(class_name, "get_tap2_delay_ms\0".as_ptr() as *const c_char );
table.set_tap2_level_db = (gd_api.godot_method_bind_get_method)(class_name, "set_tap2_level_db\0".as_ptr() as *const c_char );
table.get_tap2_level_db = (gd_api.godot_method_bind_get_method)(class_name, "get_tap2_level_db\0".as_ptr() as *const c_char );
table.set_tap2_pan = (gd_api.godot_method_bind_get_method)(class_name, "set_tap2_pan\0".as_ptr() as *const c_char );
table.get_tap2_pan = (gd_api.godot_method_bind_get_method)(class_name, "get_tap2_pan\0".as_ptr() as *const c_char );
table.set_feedback_active = (gd_api.godot_method_bind_get_method)(class_name, "set_feedback_active\0".as_ptr() as *const c_char );
table.is_feedback_active = (gd_api.godot_method_bind_get_method)(class_name, "is_feedback_active\0".as_ptr() as *const c_char );
table.set_feedback_delay_ms = (gd_api.godot_method_bind_get_method)(class_name, "set_feedback_delay_ms\0".as_ptr() as *const c_char );
table.get_feedback_delay_ms = (gd_api.godot_method_bind_get_method)(class_name, "get_feedback_delay_ms\0".as_ptr() as *const c_char );
table.set_feedback_level_db = (gd_api.godot_method_bind_get_method)(class_name, "set_feedback_level_db\0".as_ptr() as *const c_char );
table.get_feedback_level_db = (gd_api.godot_method_bind_get_method)(class_name, "get_feedback_level_db\0".as_ptr() as *const c_char );
table.set_feedback_lowpass = (gd_api.godot_method_bind_get_method)(class_name, "set_feedback_lowpass\0".as_ptr() as *const c_char );
table.get_feedback_lowpass = (gd_api.godot_method_bind_get_method)(class_name, "get_feedback_lowpass\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AudioEffectDelay_set_dry(obj_ptr: *mut sys::godot_object, amount: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectDelayMethodTable::get(gd_api).set_dry;
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 AudioEffectDelay_get_dry(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectDelayMethodTable::get(gd_api).get_dry;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectDelay_set_tap1_active(obj_ptr: *mut sys::godot_object, amount: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectDelayMethodTable::get(gd_api).set_tap1_active;
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 AudioEffectDelay_is_tap1_active(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectDelayMethodTable::get(gd_api).is_tap1_active;
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 AudioEffectDelay_set_tap1_delay_ms(obj_ptr: *mut sys::godot_object, amount: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectDelayMethodTable::get(gd_api).set_tap1_delay_ms;
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 AudioEffectDelay_get_tap1_delay_ms(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectDelayMethodTable::get(gd_api).get_tap1_delay_ms;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectDelay_set_tap1_level_db(obj_ptr: *mut sys::godot_object, amount: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectDelayMethodTable::get(gd_api).set_tap1_level_db;
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 AudioEffectDelay_get_tap1_level_db(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectDelayMethodTable::get(gd_api).get_tap1_level_db;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectDelay_set_tap1_pan(obj_ptr: *mut sys::godot_object, amount: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectDelayMethodTable::get(gd_api).set_tap1_pan;
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 AudioEffectDelay_get_tap1_pan(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectDelayMethodTable::get(gd_api).get_tap1_pan;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectDelay_set_tap2_active(obj_ptr: *mut sys::godot_object, amount: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectDelayMethodTable::get(gd_api).set_tap2_active;
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 AudioEffectDelay_is_tap2_active(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectDelayMethodTable::get(gd_api).is_tap2_active;
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 AudioEffectDelay_set_tap2_delay_ms(obj_ptr: *mut sys::godot_object, amount: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectDelayMethodTable::get(gd_api).set_tap2_delay_ms;
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 AudioEffectDelay_get_tap2_delay_ms(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectDelayMethodTable::get(gd_api).get_tap2_delay_ms;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectDelay_set_tap2_level_db(obj_ptr: *mut sys::godot_object, amount: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectDelayMethodTable::get(gd_api).set_tap2_level_db;
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 AudioEffectDelay_get_tap2_level_db(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectDelayMethodTable::get(gd_api).get_tap2_level_db;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectDelay_set_tap2_pan(obj_ptr: *mut sys::godot_object, amount: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectDelayMethodTable::get(gd_api).set_tap2_pan;
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 AudioEffectDelay_get_tap2_pan(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectDelayMethodTable::get(gd_api).get_tap2_pan;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectDelay_set_feedback_active(obj_ptr: *mut sys::godot_object, amount: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectDelayMethodTable::get(gd_api).set_feedback_active;
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 AudioEffectDelay_is_feedback_active(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectDelayMethodTable::get(gd_api).is_feedback_active;
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 AudioEffectDelay_set_feedback_delay_ms(obj_ptr: *mut sys::godot_object, amount: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectDelayMethodTable::get(gd_api).set_feedback_delay_ms;
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 AudioEffectDelay_get_feedback_delay_ms(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectDelayMethodTable::get(gd_api).get_feedback_delay_ms;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectDelay_set_feedback_level_db(obj_ptr: *mut sys::godot_object, amount: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectDelayMethodTable::get(gd_api).set_feedback_level_db;
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 AudioEffectDelay_get_feedback_level_db(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectDelayMethodTable::get(gd_api).get_feedback_level_db;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectDelay_set_feedback_lowpass(obj_ptr: *mut sys::godot_object, amount: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectDelayMethodTable::get(gd_api).set_feedback_lowpass;
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 AudioEffectDelay_get_feedback_lowpass(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectDelayMethodTable::get(gd_api).get_feedback_lowpass;
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 AudioEffectCompressorMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_threshold: *mut sys::godot_method_bind,
pub get_threshold: *mut sys::godot_method_bind,
pub set_ratio: *mut sys::godot_method_bind,
pub get_ratio: *mut sys::godot_method_bind,
pub set_gain: *mut sys::godot_method_bind,
pub get_gain: *mut sys::godot_method_bind,
pub set_attack_us: *mut sys::godot_method_bind,
pub get_attack_us: *mut sys::godot_method_bind,
pub set_release_ms: *mut sys::godot_method_bind,
pub get_release_ms: *mut sys::godot_method_bind,
pub set_mix: *mut sys::godot_method_bind,
pub get_mix: *mut sys::godot_method_bind,
pub set_sidechain: *mut sys::godot_method_bind,
pub get_sidechain: *mut sys::godot_method_bind,
}
impl AudioEffectCompressorMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AudioEffectCompressorMethodTable = AudioEffectCompressorMethodTable {
class_constructor: None,
set_threshold: 0 as *mut sys::godot_method_bind,
get_threshold: 0 as *mut sys::godot_method_bind,
set_ratio: 0 as *mut sys::godot_method_bind,
get_ratio: 0 as *mut sys::godot_method_bind,
set_gain: 0 as *mut sys::godot_method_bind,
get_gain: 0 as *mut sys::godot_method_bind,
set_attack_us: 0 as *mut sys::godot_method_bind,
get_attack_us: 0 as *mut sys::godot_method_bind,
set_release_ms: 0 as *mut sys::godot_method_bind,
get_release_ms: 0 as *mut sys::godot_method_bind,
set_mix: 0 as *mut sys::godot_method_bind,
get_mix: 0 as *mut sys::godot_method_bind,
set_sidechain: 0 as *mut sys::godot_method_bind,
get_sidechain: 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(|| {
AudioEffectCompressorMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AudioEffectCompressor\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_threshold = (gd_api.godot_method_bind_get_method)(class_name, "set_threshold\0".as_ptr() as *const c_char );
table.get_threshold = (gd_api.godot_method_bind_get_method)(class_name, "get_threshold\0".as_ptr() as *const c_char );
table.set_ratio = (gd_api.godot_method_bind_get_method)(class_name, "set_ratio\0".as_ptr() as *const c_char );
table.get_ratio = (gd_api.godot_method_bind_get_method)(class_name, "get_ratio\0".as_ptr() as *const c_char );
table.set_gain = (gd_api.godot_method_bind_get_method)(class_name, "set_gain\0".as_ptr() as *const c_char );
table.get_gain = (gd_api.godot_method_bind_get_method)(class_name, "get_gain\0".as_ptr() as *const c_char );
table.set_attack_us = (gd_api.godot_method_bind_get_method)(class_name, "set_attack_us\0".as_ptr() as *const c_char );
table.get_attack_us = (gd_api.godot_method_bind_get_method)(class_name, "get_attack_us\0".as_ptr() as *const c_char );
table.set_release_ms = (gd_api.godot_method_bind_get_method)(class_name, "set_release_ms\0".as_ptr() as *const c_char );
table.get_release_ms = (gd_api.godot_method_bind_get_method)(class_name, "get_release_ms\0".as_ptr() as *const c_char );
table.set_mix = (gd_api.godot_method_bind_get_method)(class_name, "set_mix\0".as_ptr() as *const c_char );
table.get_mix = (gd_api.godot_method_bind_get_method)(class_name, "get_mix\0".as_ptr() as *const c_char );
table.set_sidechain = (gd_api.godot_method_bind_get_method)(class_name, "set_sidechain\0".as_ptr() as *const c_char );
table.get_sidechain = (gd_api.godot_method_bind_get_method)(class_name, "get_sidechain\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AudioEffectCompressor_set_threshold(obj_ptr: *mut sys::godot_object, threshold: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectCompressorMethodTable::get(gd_api).set_threshold;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&threshold) 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 AudioEffectCompressor_get_threshold(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectCompressorMethodTable::get(gd_api).get_threshold;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectCompressor_set_ratio(obj_ptr: *mut sys::godot_object, ratio: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectCompressorMethodTable::get(gd_api).set_ratio;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&ratio) 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 AudioEffectCompressor_get_ratio(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectCompressorMethodTable::get(gd_api).get_ratio;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectCompressor_set_gain(obj_ptr: *mut sys::godot_object, gain: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectCompressorMethodTable::get(gd_api).set_gain;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&gain) 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 AudioEffectCompressor_get_gain(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectCompressorMethodTable::get(gd_api).get_gain;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectCompressor_set_attack_us(obj_ptr: *mut sys::godot_object, attack_us: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectCompressorMethodTable::get(gd_api).set_attack_us;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&attack_us) 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 AudioEffectCompressor_get_attack_us(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectCompressorMethodTable::get(gd_api).get_attack_us;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectCompressor_set_release_ms(obj_ptr: *mut sys::godot_object, release_ms: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectCompressorMethodTable::get(gd_api).set_release_ms;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&release_ms) 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 AudioEffectCompressor_get_release_ms(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectCompressorMethodTable::get(gd_api).get_release_ms;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectCompressor_set_mix(obj_ptr: *mut sys::godot_object, mix: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectCompressorMethodTable::get(gd_api).set_mix;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&mix) 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 AudioEffectCompressor_get_mix(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectCompressorMethodTable::get(gd_api).get_mix;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectCompressor_set_sidechain(obj_ptr: *mut sys::godot_object, sidechain: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectCompressorMethodTable::get(gd_api).set_sidechain;
let mut argument_buffer : [*const libc::c_void; 1] = [
sidechain.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 AudioEffectCompressor_get_sidechain(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectCompressorMethodTable::get(gd_api).get_sidechain;
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 AudioEffectPitchShiftMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_pitch_scale: *mut sys::godot_method_bind,
pub get_pitch_scale: *mut sys::godot_method_bind,
}
impl AudioEffectPitchShiftMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AudioEffectPitchShiftMethodTable = AudioEffectPitchShiftMethodTable {
class_constructor: None,
set_pitch_scale: 0 as *mut sys::godot_method_bind,
get_pitch_scale: 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(|| {
AudioEffectPitchShiftMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AudioEffectPitchShift\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_pitch_scale = (gd_api.godot_method_bind_get_method)(class_name, "set_pitch_scale\0".as_ptr() as *const c_char );
table.get_pitch_scale = (gd_api.godot_method_bind_get_method)(class_name, "get_pitch_scale\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AudioEffectPitchShift_set_pitch_scale(obj_ptr: *mut sys::godot_object, rate: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectPitchShiftMethodTable::get(gd_api).set_pitch_scale;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&rate) 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 AudioEffectPitchShift_get_pitch_scale(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectPitchShiftMethodTable::get(gd_api).get_pitch_scale;
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 AudioEffectLimiterMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_ceiling_db: *mut sys::godot_method_bind,
pub get_ceiling_db: *mut sys::godot_method_bind,
pub set_threshold_db: *mut sys::godot_method_bind,
pub get_threshold_db: *mut sys::godot_method_bind,
pub set_soft_clip_db: *mut sys::godot_method_bind,
pub get_soft_clip_db: *mut sys::godot_method_bind,
pub set_soft_clip_ratio: *mut sys::godot_method_bind,
pub get_soft_clip_ratio: *mut sys::godot_method_bind,
}
impl AudioEffectLimiterMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AudioEffectLimiterMethodTable = AudioEffectLimiterMethodTable {
class_constructor: None,
set_ceiling_db: 0 as *mut sys::godot_method_bind,
get_ceiling_db: 0 as *mut sys::godot_method_bind,
set_threshold_db: 0 as *mut sys::godot_method_bind,
get_threshold_db: 0 as *mut sys::godot_method_bind,
set_soft_clip_db: 0 as *mut sys::godot_method_bind,
get_soft_clip_db: 0 as *mut sys::godot_method_bind,
set_soft_clip_ratio: 0 as *mut sys::godot_method_bind,
get_soft_clip_ratio: 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(|| {
AudioEffectLimiterMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AudioEffectLimiter\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_ceiling_db = (gd_api.godot_method_bind_get_method)(class_name, "set_ceiling_db\0".as_ptr() as *const c_char );
table.get_ceiling_db = (gd_api.godot_method_bind_get_method)(class_name, "get_ceiling_db\0".as_ptr() as *const c_char );
table.set_threshold_db = (gd_api.godot_method_bind_get_method)(class_name, "set_threshold_db\0".as_ptr() as *const c_char );
table.get_threshold_db = (gd_api.godot_method_bind_get_method)(class_name, "get_threshold_db\0".as_ptr() as *const c_char );
table.set_soft_clip_db = (gd_api.godot_method_bind_get_method)(class_name, "set_soft_clip_db\0".as_ptr() as *const c_char );
table.get_soft_clip_db = (gd_api.godot_method_bind_get_method)(class_name, "get_soft_clip_db\0".as_ptr() as *const c_char );
table.set_soft_clip_ratio = (gd_api.godot_method_bind_get_method)(class_name, "set_soft_clip_ratio\0".as_ptr() as *const c_char );
table.get_soft_clip_ratio = (gd_api.godot_method_bind_get_method)(class_name, "get_soft_clip_ratio\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AudioEffectLimiter_set_ceiling_db(obj_ptr: *mut sys::godot_object, ceiling: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectLimiterMethodTable::get(gd_api).set_ceiling_db;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&ceiling) 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 AudioEffectLimiter_get_ceiling_db(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectLimiterMethodTable::get(gd_api).get_ceiling_db;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectLimiter_set_threshold_db(obj_ptr: *mut sys::godot_object, threshold: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectLimiterMethodTable::get(gd_api).set_threshold_db;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&threshold) 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 AudioEffectLimiter_get_threshold_db(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectLimiterMethodTable::get(gd_api).get_threshold_db;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectLimiter_set_soft_clip_db(obj_ptr: *mut sys::godot_object, soft_clip: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectLimiterMethodTable::get(gd_api).set_soft_clip_db;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&soft_clip) 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 AudioEffectLimiter_get_soft_clip_db(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectLimiterMethodTable::get(gd_api).get_soft_clip_db;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectLimiter_set_soft_clip_ratio(obj_ptr: *mut sys::godot_object, soft_clip: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectLimiterMethodTable::get(gd_api).set_soft_clip_ratio;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&soft_clip) 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 AudioEffectLimiter_get_soft_clip_ratio(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectLimiterMethodTable::get(gd_api).get_soft_clip_ratio;
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 AudioEffectPhaserMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_range_min_hz: *mut sys::godot_method_bind,
pub get_range_min_hz: *mut sys::godot_method_bind,
pub set_range_max_hz: *mut sys::godot_method_bind,
pub get_range_max_hz: *mut sys::godot_method_bind,
pub set_rate_hz: *mut sys::godot_method_bind,
pub get_rate_hz: *mut sys::godot_method_bind,
pub set_feedback: *mut sys::godot_method_bind,
pub get_feedback: *mut sys::godot_method_bind,
pub set_depth: *mut sys::godot_method_bind,
pub get_depth: *mut sys::godot_method_bind,
}
impl AudioEffectPhaserMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AudioEffectPhaserMethodTable = AudioEffectPhaserMethodTable {
class_constructor: None,
set_range_min_hz: 0 as *mut sys::godot_method_bind,
get_range_min_hz: 0 as *mut sys::godot_method_bind,
set_range_max_hz: 0 as *mut sys::godot_method_bind,
get_range_max_hz: 0 as *mut sys::godot_method_bind,
set_rate_hz: 0 as *mut sys::godot_method_bind,
get_rate_hz: 0 as *mut sys::godot_method_bind,
set_feedback: 0 as *mut sys::godot_method_bind,
get_feedback: 0 as *mut sys::godot_method_bind,
set_depth: 0 as *mut sys::godot_method_bind,
get_depth: 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(|| {
AudioEffectPhaserMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AudioEffectPhaser\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_range_min_hz = (gd_api.godot_method_bind_get_method)(class_name, "set_range_min_hz\0".as_ptr() as *const c_char );
table.get_range_min_hz = (gd_api.godot_method_bind_get_method)(class_name, "get_range_min_hz\0".as_ptr() as *const c_char );
table.set_range_max_hz = (gd_api.godot_method_bind_get_method)(class_name, "set_range_max_hz\0".as_ptr() as *const c_char );
table.get_range_max_hz = (gd_api.godot_method_bind_get_method)(class_name, "get_range_max_hz\0".as_ptr() as *const c_char );
table.set_rate_hz = (gd_api.godot_method_bind_get_method)(class_name, "set_rate_hz\0".as_ptr() as *const c_char );
table.get_rate_hz = (gd_api.godot_method_bind_get_method)(class_name, "get_rate_hz\0".as_ptr() as *const c_char );
table.set_feedback = (gd_api.godot_method_bind_get_method)(class_name, "set_feedback\0".as_ptr() as *const c_char );
table.get_feedback = (gd_api.godot_method_bind_get_method)(class_name, "get_feedback\0".as_ptr() as *const c_char );
table.set_depth = (gd_api.godot_method_bind_get_method)(class_name, "set_depth\0".as_ptr() as *const c_char );
table.get_depth = (gd_api.godot_method_bind_get_method)(class_name, "get_depth\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AudioEffectPhaser_set_range_min_hz(obj_ptr: *mut sys::godot_object, hz: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectPhaserMethodTable::get(gd_api).set_range_min_hz;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&hz) 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 AudioEffectPhaser_get_range_min_hz(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectPhaserMethodTable::get(gd_api).get_range_min_hz;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectPhaser_set_range_max_hz(obj_ptr: *mut sys::godot_object, hz: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectPhaserMethodTable::get(gd_api).set_range_max_hz;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&hz) 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 AudioEffectPhaser_get_range_max_hz(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectPhaserMethodTable::get(gd_api).get_range_max_hz;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectPhaser_set_rate_hz(obj_ptr: *mut sys::godot_object, hz: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectPhaserMethodTable::get(gd_api).set_rate_hz;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&hz) 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 AudioEffectPhaser_get_rate_hz(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectPhaserMethodTable::get(gd_api).get_rate_hz;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectPhaser_set_feedback(obj_ptr: *mut sys::godot_object, fbk: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectPhaserMethodTable::get(gd_api).set_feedback;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&fbk) 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 AudioEffectPhaser_get_feedback(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectPhaserMethodTable::get(gd_api).get_feedback;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioEffectPhaser_set_depth(obj_ptr: *mut sys::godot_object, depth: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectPhaserMethodTable::get(gd_api).set_depth;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&depth) 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 AudioEffectPhaser_get_depth(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioEffectPhaserMethodTable::get(gd_api).get_depth;
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 AudioStreamPlayerMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_stream: *mut sys::godot_method_bind,
pub get_stream: *mut sys::godot_method_bind,
pub set_volume_db: *mut sys::godot_method_bind,
pub get_volume_db: *mut sys::godot_method_bind,
pub set_pitch_scale: *mut sys::godot_method_bind,
pub get_pitch_scale: *mut sys::godot_method_bind,
pub play: *mut sys::godot_method_bind,
pub seek: *mut sys::godot_method_bind,
pub stop: *mut sys::godot_method_bind,
pub is_playing: *mut sys::godot_method_bind,
pub get_playback_position: *mut sys::godot_method_bind,
pub set_bus: *mut sys::godot_method_bind,
pub get_bus: *mut sys::godot_method_bind,
pub set_autoplay: *mut sys::godot_method_bind,
pub is_autoplay_enabled: *mut sys::godot_method_bind,
pub set_mix_target: *mut sys::godot_method_bind,
pub get_mix_target: *mut sys::godot_method_bind,
pub _set_playing: *mut sys::godot_method_bind,
pub _is_active: *mut sys::godot_method_bind,
pub _bus_layout_changed: *mut sys::godot_method_bind,
pub set_stream_paused: *mut sys::godot_method_bind,
pub get_stream_paused: *mut sys::godot_method_bind,
}
impl AudioStreamPlayerMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AudioStreamPlayerMethodTable = AudioStreamPlayerMethodTable {
class_constructor: None,
set_stream: 0 as *mut sys::godot_method_bind,
get_stream: 0 as *mut sys::godot_method_bind,
set_volume_db: 0 as *mut sys::godot_method_bind,
get_volume_db: 0 as *mut sys::godot_method_bind,
set_pitch_scale: 0 as *mut sys::godot_method_bind,
get_pitch_scale: 0 as *mut sys::godot_method_bind,
play: 0 as *mut sys::godot_method_bind,
seek: 0 as *mut sys::godot_method_bind,
stop: 0 as *mut sys::godot_method_bind,
is_playing: 0 as *mut sys::godot_method_bind,
get_playback_position: 0 as *mut sys::godot_method_bind,
set_bus: 0 as *mut sys::godot_method_bind,
get_bus: 0 as *mut sys::godot_method_bind,
set_autoplay: 0 as *mut sys::godot_method_bind,
is_autoplay_enabled: 0 as *mut sys::godot_method_bind,
set_mix_target: 0 as *mut sys::godot_method_bind,
get_mix_target: 0 as *mut sys::godot_method_bind,
_set_playing: 0 as *mut sys::godot_method_bind,
_is_active: 0 as *mut sys::godot_method_bind,
_bus_layout_changed: 0 as *mut sys::godot_method_bind,
set_stream_paused: 0 as *mut sys::godot_method_bind,
get_stream_paused: 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(|| {
AudioStreamPlayerMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AudioStreamPlayer\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_stream = (gd_api.godot_method_bind_get_method)(class_name, "set_stream\0".as_ptr() as *const c_char );
table.get_stream = (gd_api.godot_method_bind_get_method)(class_name, "get_stream\0".as_ptr() as *const c_char );
table.set_volume_db = (gd_api.godot_method_bind_get_method)(class_name, "set_volume_db\0".as_ptr() as *const c_char );
table.get_volume_db = (gd_api.godot_method_bind_get_method)(class_name, "get_volume_db\0".as_ptr() as *const c_char );
table.set_pitch_scale = (gd_api.godot_method_bind_get_method)(class_name, "set_pitch_scale\0".as_ptr() as *const c_char );
table.get_pitch_scale = (gd_api.godot_method_bind_get_method)(class_name, "get_pitch_scale\0".as_ptr() as *const c_char );
table.play = (gd_api.godot_method_bind_get_method)(class_name, "play\0".as_ptr() as *const c_char );
table.seek = (gd_api.godot_method_bind_get_method)(class_name, "seek\0".as_ptr() as *const c_char );
table.stop = (gd_api.godot_method_bind_get_method)(class_name, "stop\0".as_ptr() as *const c_char );
table.is_playing = (gd_api.godot_method_bind_get_method)(class_name, "is_playing\0".as_ptr() as *const c_char );
table.get_playback_position = (gd_api.godot_method_bind_get_method)(class_name, "get_playback_position\0".as_ptr() as *const c_char );
table.set_bus = (gd_api.godot_method_bind_get_method)(class_name, "set_bus\0".as_ptr() as *const c_char );
table.get_bus = (gd_api.godot_method_bind_get_method)(class_name, "get_bus\0".as_ptr() as *const c_char );
table.set_autoplay = (gd_api.godot_method_bind_get_method)(class_name, "set_autoplay\0".as_ptr() as *const c_char );
table.is_autoplay_enabled = (gd_api.godot_method_bind_get_method)(class_name, "is_autoplay_enabled\0".as_ptr() as *const c_char );
table.set_mix_target = (gd_api.godot_method_bind_get_method)(class_name, "set_mix_target\0".as_ptr() as *const c_char );
table.get_mix_target = (gd_api.godot_method_bind_get_method)(class_name, "get_mix_target\0".as_ptr() as *const c_char );
table._set_playing = (gd_api.godot_method_bind_get_method)(class_name, "_set_playing\0".as_ptr() as *const c_char );
table._is_active = (gd_api.godot_method_bind_get_method)(class_name, "_is_active\0".as_ptr() as *const c_char );
table._bus_layout_changed = (gd_api.godot_method_bind_get_method)(class_name, "_bus_layout_changed\0".as_ptr() as *const c_char );
table.set_stream_paused = (gd_api.godot_method_bind_get_method)(class_name, "set_stream_paused\0".as_ptr() as *const c_char );
table.get_stream_paused = (gd_api.godot_method_bind_get_method)(class_name, "get_stream_paused\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AudioStreamPlayer_set_stream(obj_ptr: *mut sys::godot_object, stream: Option<AudioStream>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayerMethodTable::get(gd_api).set_stream;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = stream { 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 AudioStreamPlayer_get_stream(obj_ptr: *mut sys::godot_object) -> Option<AudioStream> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayerMethodTable::get(gd_api).get_stream;
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(AudioStream::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn AudioStreamPlayer_set_volume_db(obj_ptr: *mut sys::godot_object, volume_db: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayerMethodTable::get(gd_api).set_volume_db;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&volume_db) 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 AudioStreamPlayer_get_volume_db(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayerMethodTable::get(gd_api).get_volume_db;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioStreamPlayer_set_pitch_scale(obj_ptr: *mut sys::godot_object, pitch_scale: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayerMethodTable::get(gd_api).set_pitch_scale;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&pitch_scale) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AudioStreamPlayer_get_pitch_scale(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayerMethodTable::get(gd_api).get_pitch_scale;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioStreamPlayer_play(obj_ptr: *mut sys::godot_object, from_position: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayerMethodTable::get(gd_api).play;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&from_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 AudioStreamPlayer_seek(obj_ptr: *mut sys::godot_object, to_position: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayerMethodTable::get(gd_api).seek;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&to_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 AudioStreamPlayer_stop(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayerMethodTable::get(gd_api).stop;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AudioStreamPlayer_is_playing(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayerMethodTable::get(gd_api).is_playing;
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 AudioStreamPlayer_get_playback_position(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayerMethodTable::get(gd_api).get_playback_position;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioStreamPlayer_set_bus(obj_ptr: *mut sys::godot_object, bus: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayerMethodTable::get(gd_api).set_bus;
let mut argument_buffer : [*const libc::c_void; 1] = [
bus.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 AudioStreamPlayer_get_bus(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayerMethodTable::get(gd_api).get_bus;
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 AudioStreamPlayer_set_autoplay(obj_ptr: *mut sys::godot_object, enable: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayerMethodTable::get(gd_api).set_autoplay;
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 AudioStreamPlayer_is_autoplay_enabled(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayerMethodTable::get(gd_api).is_autoplay_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)]
pub unsafe fn AudioStreamPlayer_set_mix_target(obj_ptr: *mut sys::godot_object, mix_target: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayerMethodTable::get(gd_api).set_mix_target;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&mix_target) 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 AudioStreamPlayer_get_mix_target(obj_ptr: *mut sys::godot_object) -> AudioStreamPlayerMixTarget {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayerMethodTable::get(gd_api).get_mix_target;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: AudioStreamPlayerMixTarget = 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 AudioStreamPlayer__set_playing(obj_ptr: *mut sys::godot_object, enable: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayerMethodTable::get(gd_api)._set_playing;
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 AudioStreamPlayer__is_active(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayerMethodTable::get(gd_api)._is_active;
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 AudioStreamPlayer__bus_layout_changed(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayerMethodTable::get(gd_api)._bus_layout_changed;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AudioStreamPlayer_set_stream_paused(obj_ptr: *mut sys::godot_object, pause: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayerMethodTable::get(gd_api).set_stream_paused;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&pause) 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 AudioStreamPlayer_get_stream_paused(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayerMethodTable::get(gd_api).get_stream_paused;
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 AudioStreamPlayer2DMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_stream: *mut sys::godot_method_bind,
pub get_stream: *mut sys::godot_method_bind,
pub set_volume_db: *mut sys::godot_method_bind,
pub get_volume_db: *mut sys::godot_method_bind,
pub set_pitch_scale: *mut sys::godot_method_bind,
pub get_pitch_scale: *mut sys::godot_method_bind,
pub play: *mut sys::godot_method_bind,
pub seek: *mut sys::godot_method_bind,
pub stop: *mut sys::godot_method_bind,
pub is_playing: *mut sys::godot_method_bind,
pub get_playback_position: *mut sys::godot_method_bind,
pub set_bus: *mut sys::godot_method_bind,
pub get_bus: *mut sys::godot_method_bind,
pub set_autoplay: *mut sys::godot_method_bind,
pub is_autoplay_enabled: *mut sys::godot_method_bind,
pub _set_playing: *mut sys::godot_method_bind,
pub _is_active: *mut sys::godot_method_bind,
pub set_max_distance: *mut sys::godot_method_bind,
pub get_max_distance: *mut sys::godot_method_bind,
pub set_attenuation: *mut sys::godot_method_bind,
pub get_attenuation: *mut sys::godot_method_bind,
pub set_area_mask: *mut sys::godot_method_bind,
pub get_area_mask: *mut sys::godot_method_bind,
pub set_stream_paused: *mut sys::godot_method_bind,
pub get_stream_paused: *mut sys::godot_method_bind,
pub _bus_layout_changed: *mut sys::godot_method_bind,
}
impl AudioStreamPlayer2DMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AudioStreamPlayer2DMethodTable = AudioStreamPlayer2DMethodTable {
class_constructor: None,
set_stream: 0 as *mut sys::godot_method_bind,
get_stream: 0 as *mut sys::godot_method_bind,
set_volume_db: 0 as *mut sys::godot_method_bind,
get_volume_db: 0 as *mut sys::godot_method_bind,
set_pitch_scale: 0 as *mut sys::godot_method_bind,
get_pitch_scale: 0 as *mut sys::godot_method_bind,
play: 0 as *mut sys::godot_method_bind,
seek: 0 as *mut sys::godot_method_bind,
stop: 0 as *mut sys::godot_method_bind,
is_playing: 0 as *mut sys::godot_method_bind,
get_playback_position: 0 as *mut sys::godot_method_bind,
set_bus: 0 as *mut sys::godot_method_bind,
get_bus: 0 as *mut sys::godot_method_bind,
set_autoplay: 0 as *mut sys::godot_method_bind,
is_autoplay_enabled: 0 as *mut sys::godot_method_bind,
_set_playing: 0 as *mut sys::godot_method_bind,
_is_active: 0 as *mut sys::godot_method_bind,
set_max_distance: 0 as *mut sys::godot_method_bind,
get_max_distance: 0 as *mut sys::godot_method_bind,
set_attenuation: 0 as *mut sys::godot_method_bind,
get_attenuation: 0 as *mut sys::godot_method_bind,
set_area_mask: 0 as *mut sys::godot_method_bind,
get_area_mask: 0 as *mut sys::godot_method_bind,
set_stream_paused: 0 as *mut sys::godot_method_bind,
get_stream_paused: 0 as *mut sys::godot_method_bind,
_bus_layout_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(|| {
AudioStreamPlayer2DMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AudioStreamPlayer2D\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_stream = (gd_api.godot_method_bind_get_method)(class_name, "set_stream\0".as_ptr() as *const c_char );
table.get_stream = (gd_api.godot_method_bind_get_method)(class_name, "get_stream\0".as_ptr() as *const c_char );
table.set_volume_db = (gd_api.godot_method_bind_get_method)(class_name, "set_volume_db\0".as_ptr() as *const c_char );
table.get_volume_db = (gd_api.godot_method_bind_get_method)(class_name, "get_volume_db\0".as_ptr() as *const c_char );
table.set_pitch_scale = (gd_api.godot_method_bind_get_method)(class_name, "set_pitch_scale\0".as_ptr() as *const c_char );
table.get_pitch_scale = (gd_api.godot_method_bind_get_method)(class_name, "get_pitch_scale\0".as_ptr() as *const c_char );
table.play = (gd_api.godot_method_bind_get_method)(class_name, "play\0".as_ptr() as *const c_char );
table.seek = (gd_api.godot_method_bind_get_method)(class_name, "seek\0".as_ptr() as *const c_char );
table.stop = (gd_api.godot_method_bind_get_method)(class_name, "stop\0".as_ptr() as *const c_char );
table.is_playing = (gd_api.godot_method_bind_get_method)(class_name, "is_playing\0".as_ptr() as *const c_char );
table.get_playback_position = (gd_api.godot_method_bind_get_method)(class_name, "get_playback_position\0".as_ptr() as *const c_char );
table.set_bus = (gd_api.godot_method_bind_get_method)(class_name, "set_bus\0".as_ptr() as *const c_char );
table.get_bus = (gd_api.godot_method_bind_get_method)(class_name, "get_bus\0".as_ptr() as *const c_char );
table.set_autoplay = (gd_api.godot_method_bind_get_method)(class_name, "set_autoplay\0".as_ptr() as *const c_char );
table.is_autoplay_enabled = (gd_api.godot_method_bind_get_method)(class_name, "is_autoplay_enabled\0".as_ptr() as *const c_char );
table._set_playing = (gd_api.godot_method_bind_get_method)(class_name, "_set_playing\0".as_ptr() as *const c_char );
table._is_active = (gd_api.godot_method_bind_get_method)(class_name, "_is_active\0".as_ptr() as *const c_char );
table.set_max_distance = (gd_api.godot_method_bind_get_method)(class_name, "set_max_distance\0".as_ptr() as *const c_char );
table.get_max_distance = (gd_api.godot_method_bind_get_method)(class_name, "get_max_distance\0".as_ptr() as *const c_char );
table.set_attenuation = (gd_api.godot_method_bind_get_method)(class_name, "set_attenuation\0".as_ptr() as *const c_char );
table.get_attenuation = (gd_api.godot_method_bind_get_method)(class_name, "get_attenuation\0".as_ptr() as *const c_char );
table.set_area_mask = (gd_api.godot_method_bind_get_method)(class_name, "set_area_mask\0".as_ptr() as *const c_char );
table.get_area_mask = (gd_api.godot_method_bind_get_method)(class_name, "get_area_mask\0".as_ptr() as *const c_char );
table.set_stream_paused = (gd_api.godot_method_bind_get_method)(class_name, "set_stream_paused\0".as_ptr() as *const c_char );
table.get_stream_paused = (gd_api.godot_method_bind_get_method)(class_name, "get_stream_paused\0".as_ptr() as *const c_char );
table._bus_layout_changed = (gd_api.godot_method_bind_get_method)(class_name, "_bus_layout_changed\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AudioStreamPlayer2D_set_stream(obj_ptr: *mut sys::godot_object, stream: Option<AudioStream>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer2DMethodTable::get(gd_api).set_stream;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = stream { 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 AudioStreamPlayer2D_get_stream(obj_ptr: *mut sys::godot_object) -> Option<AudioStream> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer2DMethodTable::get(gd_api).get_stream;
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(AudioStream::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn AudioStreamPlayer2D_set_volume_db(obj_ptr: *mut sys::godot_object, volume_db: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer2DMethodTable::get(gd_api).set_volume_db;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&volume_db) 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 AudioStreamPlayer2D_get_volume_db(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer2DMethodTable::get(gd_api).get_volume_db;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioStreamPlayer2D_set_pitch_scale(obj_ptr: *mut sys::godot_object, pitch_scale: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer2DMethodTable::get(gd_api).set_pitch_scale;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&pitch_scale) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AudioStreamPlayer2D_get_pitch_scale(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer2DMethodTable::get(gd_api).get_pitch_scale;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioStreamPlayer2D_play(obj_ptr: *mut sys::godot_object, from_position: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer2DMethodTable::get(gd_api).play;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&from_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 AudioStreamPlayer2D_seek(obj_ptr: *mut sys::godot_object, to_position: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer2DMethodTable::get(gd_api).seek;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&to_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 AudioStreamPlayer2D_stop(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer2DMethodTable::get(gd_api).stop;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AudioStreamPlayer2D_is_playing(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer2DMethodTable::get(gd_api).is_playing;
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 AudioStreamPlayer2D_get_playback_position(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer2DMethodTable::get(gd_api).get_playback_position;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioStreamPlayer2D_set_bus(obj_ptr: *mut sys::godot_object, bus: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer2DMethodTable::get(gd_api).set_bus;
let mut argument_buffer : [*const libc::c_void; 1] = [
bus.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 AudioStreamPlayer2D_get_bus(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer2DMethodTable::get(gd_api).get_bus;
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 AudioStreamPlayer2D_set_autoplay(obj_ptr: *mut sys::godot_object, enable: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer2DMethodTable::get(gd_api).set_autoplay;
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 AudioStreamPlayer2D_is_autoplay_enabled(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer2DMethodTable::get(gd_api).is_autoplay_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)]
pub unsafe fn AudioStreamPlayer2D__set_playing(obj_ptr: *mut sys::godot_object, enable: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer2DMethodTable::get(gd_api)._set_playing;
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 AudioStreamPlayer2D__is_active(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer2DMethodTable::get(gd_api)._is_active;
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 AudioStreamPlayer2D_set_max_distance(obj_ptr: *mut sys::godot_object, pixels: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer2DMethodTable::get(gd_api).set_max_distance;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&pixels) 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 AudioStreamPlayer2D_get_max_distance(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer2DMethodTable::get(gd_api).get_max_distance;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioStreamPlayer2D_set_attenuation(obj_ptr: *mut sys::godot_object, curve: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer2DMethodTable::get(gd_api).set_attenuation;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&curve) 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 AudioStreamPlayer2D_get_attenuation(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer2DMethodTable::get(gd_api).get_attenuation;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioStreamPlayer2D_set_area_mask(obj_ptr: *mut sys::godot_object, mask: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer2DMethodTable::get(gd_api).set_area_mask;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&mask) 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 AudioStreamPlayer2D_get_area_mask(obj_ptr: *mut sys::godot_object) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer2DMethodTable::get(gd_api).get_area_mask;
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 AudioStreamPlayer2D_set_stream_paused(obj_ptr: *mut sys::godot_object, pause: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer2DMethodTable::get(gd_api).set_stream_paused;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&pause) 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 AudioStreamPlayer2D_get_stream_paused(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer2DMethodTable::get(gd_api).get_stream_paused;
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 AudioStreamPlayer2D__bus_layout_changed(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer2DMethodTable::get(gd_api)._bus_layout_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 AudioStreamPlayer3DMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_stream: *mut sys::godot_method_bind,
pub get_stream: *mut sys::godot_method_bind,
pub set_unit_db: *mut sys::godot_method_bind,
pub get_unit_db: *mut sys::godot_method_bind,
pub set_unit_size: *mut sys::godot_method_bind,
pub get_unit_size: *mut sys::godot_method_bind,
pub set_max_db: *mut sys::godot_method_bind,
pub get_max_db: *mut sys::godot_method_bind,
pub set_pitch_scale: *mut sys::godot_method_bind,
pub get_pitch_scale: *mut sys::godot_method_bind,
pub play: *mut sys::godot_method_bind,
pub seek: *mut sys::godot_method_bind,
pub stop: *mut sys::godot_method_bind,
pub is_playing: *mut sys::godot_method_bind,
pub get_playback_position: *mut sys::godot_method_bind,
pub set_bus: *mut sys::godot_method_bind,
pub get_bus: *mut sys::godot_method_bind,
pub set_autoplay: *mut sys::godot_method_bind,
pub is_autoplay_enabled: *mut sys::godot_method_bind,
pub _set_playing: *mut sys::godot_method_bind,
pub _is_active: *mut sys::godot_method_bind,
pub set_max_distance: *mut sys::godot_method_bind,
pub get_max_distance: *mut sys::godot_method_bind,
pub set_area_mask: *mut sys::godot_method_bind,
pub get_area_mask: *mut sys::godot_method_bind,
pub set_emission_angle: *mut sys::godot_method_bind,
pub get_emission_angle: *mut sys::godot_method_bind,
pub set_emission_angle_enabled: *mut sys::godot_method_bind,
pub is_emission_angle_enabled: *mut sys::godot_method_bind,
pub set_emission_angle_filter_attenuation_db: *mut sys::godot_method_bind,
pub get_emission_angle_filter_attenuation_db: *mut sys::godot_method_bind,
pub set_attenuation_filter_cutoff_hz: *mut sys::godot_method_bind,
pub get_attenuation_filter_cutoff_hz: *mut sys::godot_method_bind,
pub set_attenuation_filter_db: *mut sys::godot_method_bind,
pub get_attenuation_filter_db: *mut sys::godot_method_bind,
pub set_attenuation_model: *mut sys::godot_method_bind,
pub get_attenuation_model: *mut sys::godot_method_bind,
pub set_out_of_range_mode: *mut sys::godot_method_bind,
pub get_out_of_range_mode: *mut sys::godot_method_bind,
pub set_doppler_tracking: *mut sys::godot_method_bind,
pub get_doppler_tracking: *mut sys::godot_method_bind,
pub set_stream_paused: *mut sys::godot_method_bind,
pub get_stream_paused: *mut sys::godot_method_bind,
pub _bus_layout_changed: *mut sys::godot_method_bind,
}
impl AudioStreamPlayer3DMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AudioStreamPlayer3DMethodTable = AudioStreamPlayer3DMethodTable {
class_constructor: None,
set_stream: 0 as *mut sys::godot_method_bind,
get_stream: 0 as *mut sys::godot_method_bind,
set_unit_db: 0 as *mut sys::godot_method_bind,
get_unit_db: 0 as *mut sys::godot_method_bind,
set_unit_size: 0 as *mut sys::godot_method_bind,
get_unit_size: 0 as *mut sys::godot_method_bind,
set_max_db: 0 as *mut sys::godot_method_bind,
get_max_db: 0 as *mut sys::godot_method_bind,
set_pitch_scale: 0 as *mut sys::godot_method_bind,
get_pitch_scale: 0 as *mut sys::godot_method_bind,
play: 0 as *mut sys::godot_method_bind,
seek: 0 as *mut sys::godot_method_bind,
stop: 0 as *mut sys::godot_method_bind,
is_playing: 0 as *mut sys::godot_method_bind,
get_playback_position: 0 as *mut sys::godot_method_bind,
set_bus: 0 as *mut sys::godot_method_bind,
get_bus: 0 as *mut sys::godot_method_bind,
set_autoplay: 0 as *mut sys::godot_method_bind,
is_autoplay_enabled: 0 as *mut sys::godot_method_bind,
_set_playing: 0 as *mut sys::godot_method_bind,
_is_active: 0 as *mut sys::godot_method_bind,
set_max_distance: 0 as *mut sys::godot_method_bind,
get_max_distance: 0 as *mut sys::godot_method_bind,
set_area_mask: 0 as *mut sys::godot_method_bind,
get_area_mask: 0 as *mut sys::godot_method_bind,
set_emission_angle: 0 as *mut sys::godot_method_bind,
get_emission_angle: 0 as *mut sys::godot_method_bind,
set_emission_angle_enabled: 0 as *mut sys::godot_method_bind,
is_emission_angle_enabled: 0 as *mut sys::godot_method_bind,
set_emission_angle_filter_attenuation_db: 0 as *mut sys::godot_method_bind,
get_emission_angle_filter_attenuation_db: 0 as *mut sys::godot_method_bind,
set_attenuation_filter_cutoff_hz: 0 as *mut sys::godot_method_bind,
get_attenuation_filter_cutoff_hz: 0 as *mut sys::godot_method_bind,
set_attenuation_filter_db: 0 as *mut sys::godot_method_bind,
get_attenuation_filter_db: 0 as *mut sys::godot_method_bind,
set_attenuation_model: 0 as *mut sys::godot_method_bind,
get_attenuation_model: 0 as *mut sys::godot_method_bind,
set_out_of_range_mode: 0 as *mut sys::godot_method_bind,
get_out_of_range_mode: 0 as *mut sys::godot_method_bind,
set_doppler_tracking: 0 as *mut sys::godot_method_bind,
get_doppler_tracking: 0 as *mut sys::godot_method_bind,
set_stream_paused: 0 as *mut sys::godot_method_bind,
get_stream_paused: 0 as *mut sys::godot_method_bind,
_bus_layout_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(|| {
AudioStreamPlayer3DMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AudioStreamPlayer3D\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_stream = (gd_api.godot_method_bind_get_method)(class_name, "set_stream\0".as_ptr() as *const c_char );
table.get_stream = (gd_api.godot_method_bind_get_method)(class_name, "get_stream\0".as_ptr() as *const c_char );
table.set_unit_db = (gd_api.godot_method_bind_get_method)(class_name, "set_unit_db\0".as_ptr() as *const c_char );
table.get_unit_db = (gd_api.godot_method_bind_get_method)(class_name, "get_unit_db\0".as_ptr() as *const c_char );
table.set_unit_size = (gd_api.godot_method_bind_get_method)(class_name, "set_unit_size\0".as_ptr() as *const c_char );
table.get_unit_size = (gd_api.godot_method_bind_get_method)(class_name, "get_unit_size\0".as_ptr() as *const c_char );
table.set_max_db = (gd_api.godot_method_bind_get_method)(class_name, "set_max_db\0".as_ptr() as *const c_char );
table.get_max_db = (gd_api.godot_method_bind_get_method)(class_name, "get_max_db\0".as_ptr() as *const c_char );
table.set_pitch_scale = (gd_api.godot_method_bind_get_method)(class_name, "set_pitch_scale\0".as_ptr() as *const c_char );
table.get_pitch_scale = (gd_api.godot_method_bind_get_method)(class_name, "get_pitch_scale\0".as_ptr() as *const c_char );
table.play = (gd_api.godot_method_bind_get_method)(class_name, "play\0".as_ptr() as *const c_char );
table.seek = (gd_api.godot_method_bind_get_method)(class_name, "seek\0".as_ptr() as *const c_char );
table.stop = (gd_api.godot_method_bind_get_method)(class_name, "stop\0".as_ptr() as *const c_char );
table.is_playing = (gd_api.godot_method_bind_get_method)(class_name, "is_playing\0".as_ptr() as *const c_char );
table.get_playback_position = (gd_api.godot_method_bind_get_method)(class_name, "get_playback_position\0".as_ptr() as *const c_char );
table.set_bus = (gd_api.godot_method_bind_get_method)(class_name, "set_bus\0".as_ptr() as *const c_char );
table.get_bus = (gd_api.godot_method_bind_get_method)(class_name, "get_bus\0".as_ptr() as *const c_char );
table.set_autoplay = (gd_api.godot_method_bind_get_method)(class_name, "set_autoplay\0".as_ptr() as *const c_char );
table.is_autoplay_enabled = (gd_api.godot_method_bind_get_method)(class_name, "is_autoplay_enabled\0".as_ptr() as *const c_char );
table._set_playing = (gd_api.godot_method_bind_get_method)(class_name, "_set_playing\0".as_ptr() as *const c_char );
table._is_active = (gd_api.godot_method_bind_get_method)(class_name, "_is_active\0".as_ptr() as *const c_char );
table.set_max_distance = (gd_api.godot_method_bind_get_method)(class_name, "set_max_distance\0".as_ptr() as *const c_char );
table.get_max_distance = (gd_api.godot_method_bind_get_method)(class_name, "get_max_distance\0".as_ptr() as *const c_char );
table.set_area_mask = (gd_api.godot_method_bind_get_method)(class_name, "set_area_mask\0".as_ptr() as *const c_char );
table.get_area_mask = (gd_api.godot_method_bind_get_method)(class_name, "get_area_mask\0".as_ptr() as *const c_char );
table.set_emission_angle = (gd_api.godot_method_bind_get_method)(class_name, "set_emission_angle\0".as_ptr() as *const c_char );
table.get_emission_angle = (gd_api.godot_method_bind_get_method)(class_name, "get_emission_angle\0".as_ptr() as *const c_char );
table.set_emission_angle_enabled = (gd_api.godot_method_bind_get_method)(class_name, "set_emission_angle_enabled\0".as_ptr() as *const c_char );
table.is_emission_angle_enabled = (gd_api.godot_method_bind_get_method)(class_name, "is_emission_angle_enabled\0".as_ptr() as *const c_char );
table.set_emission_angle_filter_attenuation_db = (gd_api.godot_method_bind_get_method)(class_name, "set_emission_angle_filter_attenuation_db\0".as_ptr() as *const c_char );
table.get_emission_angle_filter_attenuation_db = (gd_api.godot_method_bind_get_method)(class_name, "get_emission_angle_filter_attenuation_db\0".as_ptr() as *const c_char );
table.set_attenuation_filter_cutoff_hz = (gd_api.godot_method_bind_get_method)(class_name, "set_attenuation_filter_cutoff_hz\0".as_ptr() as *const c_char );
table.get_attenuation_filter_cutoff_hz = (gd_api.godot_method_bind_get_method)(class_name, "get_attenuation_filter_cutoff_hz\0".as_ptr() as *const c_char );
table.set_attenuation_filter_db = (gd_api.godot_method_bind_get_method)(class_name, "set_attenuation_filter_db\0".as_ptr() as *const c_char );
table.get_attenuation_filter_db = (gd_api.godot_method_bind_get_method)(class_name, "get_attenuation_filter_db\0".as_ptr() as *const c_char );
table.set_attenuation_model = (gd_api.godot_method_bind_get_method)(class_name, "set_attenuation_model\0".as_ptr() as *const c_char );
table.get_attenuation_model = (gd_api.godot_method_bind_get_method)(class_name, "get_attenuation_model\0".as_ptr() as *const c_char );
table.set_out_of_range_mode = (gd_api.godot_method_bind_get_method)(class_name, "set_out_of_range_mode\0".as_ptr() as *const c_char );
table.get_out_of_range_mode = (gd_api.godot_method_bind_get_method)(class_name, "get_out_of_range_mode\0".as_ptr() as *const c_char );
table.set_doppler_tracking = (gd_api.godot_method_bind_get_method)(class_name, "set_doppler_tracking\0".as_ptr() as *const c_char );
table.get_doppler_tracking = (gd_api.godot_method_bind_get_method)(class_name, "get_doppler_tracking\0".as_ptr() as *const c_char );
table.set_stream_paused = (gd_api.godot_method_bind_get_method)(class_name, "set_stream_paused\0".as_ptr() as *const c_char );
table.get_stream_paused = (gd_api.godot_method_bind_get_method)(class_name, "get_stream_paused\0".as_ptr() as *const c_char );
table._bus_layout_changed = (gd_api.godot_method_bind_get_method)(class_name, "_bus_layout_changed\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AudioStreamPlayer3D_set_stream(obj_ptr: *mut sys::godot_object, stream: Option<AudioStream>) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).set_stream;
let mut argument_buffer : [*const libc::c_void; 1] = [
if let Some(arg) = stream { 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 AudioStreamPlayer3D_get_stream(obj_ptr: *mut sys::godot_object) -> Option<AudioStream> {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).get_stream;
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(AudioStream::from_sys(ret))
}
}
#[doc(hidden)]
pub unsafe fn AudioStreamPlayer3D_set_unit_db(obj_ptr: *mut sys::godot_object, unit_db: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).set_unit_db;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&unit_db) 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 AudioStreamPlayer3D_get_unit_db(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).get_unit_db;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioStreamPlayer3D_set_unit_size(obj_ptr: *mut sys::godot_object, unit_size: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).set_unit_size;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&unit_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 AudioStreamPlayer3D_get_unit_size(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).get_unit_size;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioStreamPlayer3D_set_max_db(obj_ptr: *mut sys::godot_object, max_db: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).set_max_db;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&max_db) 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 AudioStreamPlayer3D_get_max_db(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).get_max_db;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioStreamPlayer3D_set_pitch_scale(obj_ptr: *mut sys::godot_object, pitch_scale: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).set_pitch_scale;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&pitch_scale) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AudioStreamPlayer3D_get_pitch_scale(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).get_pitch_scale;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioStreamPlayer3D_play(obj_ptr: *mut sys::godot_object, from_position: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).play;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&from_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 AudioStreamPlayer3D_seek(obj_ptr: *mut sys::godot_object, to_position: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).seek;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&to_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 AudioStreamPlayer3D_stop(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).stop;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AudioStreamPlayer3D_is_playing(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).is_playing;
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 AudioStreamPlayer3D_get_playback_position(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).get_playback_position;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioStreamPlayer3D_set_bus(obj_ptr: *mut sys::godot_object, bus: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).set_bus;
let mut argument_buffer : [*const libc::c_void; 1] = [
bus.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 AudioStreamPlayer3D_get_bus(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).get_bus;
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 AudioStreamPlayer3D_set_autoplay(obj_ptr: *mut sys::godot_object, enable: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).set_autoplay;
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 AudioStreamPlayer3D_is_autoplay_enabled(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).is_autoplay_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)]
pub unsafe fn AudioStreamPlayer3D__set_playing(obj_ptr: *mut sys::godot_object, enable: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api)._set_playing;
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 AudioStreamPlayer3D__is_active(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api)._is_active;
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 AudioStreamPlayer3D_set_max_distance(obj_ptr: *mut sys::godot_object, metres: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).set_max_distance;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&metres) 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 AudioStreamPlayer3D_get_max_distance(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).get_max_distance;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioStreamPlayer3D_set_area_mask(obj_ptr: *mut sys::godot_object, mask: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).set_area_mask;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&mask) 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 AudioStreamPlayer3D_get_area_mask(obj_ptr: *mut sys::godot_object) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).get_area_mask;
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 AudioStreamPlayer3D_set_emission_angle(obj_ptr: *mut sys::godot_object, degrees: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).set_emission_angle;
let mut argument_buffer : [*const libc::c_void; 1] = [
(°rees) 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 AudioStreamPlayer3D_get_emission_angle(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).get_emission_angle;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioStreamPlayer3D_set_emission_angle_enabled(obj_ptr: *mut sys::godot_object, enabled: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).set_emission_angle_enabled;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&enabled) as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn AudioStreamPlayer3D_is_emission_angle_enabled(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).is_emission_angle_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)]
pub unsafe fn AudioStreamPlayer3D_set_emission_angle_filter_attenuation_db(obj_ptr: *mut sys::godot_object, db: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).set_emission_angle_filter_attenuation_db;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&db) 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 AudioStreamPlayer3D_get_emission_angle_filter_attenuation_db(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).get_emission_angle_filter_attenuation_db;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioStreamPlayer3D_set_attenuation_filter_cutoff_hz(obj_ptr: *mut sys::godot_object, degrees: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).set_attenuation_filter_cutoff_hz;
let mut argument_buffer : [*const libc::c_void; 1] = [
(°rees) 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 AudioStreamPlayer3D_get_attenuation_filter_cutoff_hz(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).get_attenuation_filter_cutoff_hz;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioStreamPlayer3D_set_attenuation_filter_db(obj_ptr: *mut sys::godot_object, db: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).set_attenuation_filter_db;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&db) 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 AudioStreamPlayer3D_get_attenuation_filter_db(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).get_attenuation_filter_db;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = 0.0f64;
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
ret
}
#[doc(hidden)]
pub unsafe fn AudioStreamPlayer3D_set_attenuation_model(obj_ptr: *mut sys::godot_object, model: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).set_attenuation_model;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&model) 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 AudioStreamPlayer3D_get_attenuation_model(obj_ptr: *mut sys::godot_object) -> AudioStreamPlayer3DAttenuationModel {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).get_attenuation_model;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: AudioStreamPlayer3DAttenuationModel = 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 AudioStreamPlayer3D_set_out_of_range_mode(obj_ptr: *mut sys::godot_object, mode: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).set_out_of_range_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 AudioStreamPlayer3D_get_out_of_range_mode(obj_ptr: *mut sys::godot_object) -> AudioStreamPlayer3DOutOfRangeMode {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).get_out_of_range_mode;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: AudioStreamPlayer3DOutOfRangeMode = 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 AudioStreamPlayer3D_set_doppler_tracking(obj_ptr: *mut sys::godot_object, mode: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).set_doppler_tracking;
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 AudioStreamPlayer3D_get_doppler_tracking(obj_ptr: *mut sys::godot_object) -> AudioStreamPlayer3DDopplerTracking {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).get_doppler_tracking;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: AudioStreamPlayer3DDopplerTracking = 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 AudioStreamPlayer3D_set_stream_paused(obj_ptr: *mut sys::godot_object, pause: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).set_stream_paused;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&pause) 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 AudioStreamPlayer3D_get_stream_paused(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api).get_stream_paused;
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 AudioStreamPlayer3D__bus_layout_changed(obj_ptr: *mut sys::godot_object) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamPlayer3DMethodTable::get(gd_api)._bus_layout_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 AudioStreamSampleMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_data: *mut sys::godot_method_bind,
pub get_data: *mut sys::godot_method_bind,
pub set_format: *mut sys::godot_method_bind,
pub get_format: *mut sys::godot_method_bind,
pub set_loop_mode: *mut sys::godot_method_bind,
pub get_loop_mode: *mut sys::godot_method_bind,
pub set_loop_begin: *mut sys::godot_method_bind,
pub get_loop_begin: *mut sys::godot_method_bind,
pub set_loop_end: *mut sys::godot_method_bind,
pub get_loop_end: *mut sys::godot_method_bind,
pub set_mix_rate: *mut sys::godot_method_bind,
pub get_mix_rate: *mut sys::godot_method_bind,
pub set_stereo: *mut sys::godot_method_bind,
pub is_stereo: *mut sys::godot_method_bind,
}
impl AudioStreamSampleMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AudioStreamSampleMethodTable = AudioStreamSampleMethodTable {
class_constructor: None,
set_data: 0 as *mut sys::godot_method_bind,
get_data: 0 as *mut sys::godot_method_bind,
set_format: 0 as *mut sys::godot_method_bind,
get_format: 0 as *mut sys::godot_method_bind,
set_loop_mode: 0 as *mut sys::godot_method_bind,
get_loop_mode: 0 as *mut sys::godot_method_bind,
set_loop_begin: 0 as *mut sys::godot_method_bind,
get_loop_begin: 0 as *mut sys::godot_method_bind,
set_loop_end: 0 as *mut sys::godot_method_bind,
get_loop_end: 0 as *mut sys::godot_method_bind,
set_mix_rate: 0 as *mut sys::godot_method_bind,
get_mix_rate: 0 as *mut sys::godot_method_bind,
set_stereo: 0 as *mut sys::godot_method_bind,
is_stereo: 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(|| {
AudioStreamSampleMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AudioStreamSample\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
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 );
table.set_format = (gd_api.godot_method_bind_get_method)(class_name, "set_format\0".as_ptr() as *const c_char );
table.get_format = (gd_api.godot_method_bind_get_method)(class_name, "get_format\0".as_ptr() as *const c_char );
table.set_loop_mode = (gd_api.godot_method_bind_get_method)(class_name, "set_loop_mode\0".as_ptr() as *const c_char );
table.get_loop_mode = (gd_api.godot_method_bind_get_method)(class_name, "get_loop_mode\0".as_ptr() as *const c_char );
table.set_loop_begin = (gd_api.godot_method_bind_get_method)(class_name, "set_loop_begin\0".as_ptr() as *const c_char );
table.get_loop_begin = (gd_api.godot_method_bind_get_method)(class_name, "get_loop_begin\0".as_ptr() as *const c_char );
table.set_loop_end = (gd_api.godot_method_bind_get_method)(class_name, "set_loop_end\0".as_ptr() as *const c_char );
table.get_loop_end = (gd_api.godot_method_bind_get_method)(class_name, "get_loop_end\0".as_ptr() as *const c_char );
table.set_mix_rate = (gd_api.godot_method_bind_get_method)(class_name, "set_mix_rate\0".as_ptr() as *const c_char );
table.get_mix_rate = (gd_api.godot_method_bind_get_method)(class_name, "get_mix_rate\0".as_ptr() as *const c_char );
table.set_stereo = (gd_api.godot_method_bind_get_method)(class_name, "set_stereo\0".as_ptr() as *const c_char );
table.is_stereo = (gd_api.godot_method_bind_get_method)(class_name, "is_stereo\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AudioStreamSample_set_data(obj_ptr: *mut sys::godot_object, data: ByteArray) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamSampleMethodTable::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 AudioStreamSample_get_data(obj_ptr: *mut sys::godot_object) -> ByteArray {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamSampleMethodTable::get(gd_api).get_data;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_pool_byte_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 _);
ByteArray::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AudioStreamSample_set_format(obj_ptr: *mut sys::godot_object, format: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamSampleMethodTable::get(gd_api).set_format;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&format) 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 AudioStreamSample_get_format(obj_ptr: *mut sys::godot_object) -> AudioStreamSampleFormat {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamSampleMethodTable::get(gd_api).get_format;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: AudioStreamSampleFormat = 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 AudioStreamSample_set_loop_mode(obj_ptr: *mut sys::godot_object, loop_mode: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamSampleMethodTable::get(gd_api).set_loop_mode;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&loop_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 AudioStreamSample_get_loop_mode(obj_ptr: *mut sys::godot_object) -> AudioStreamSampleLoopMode {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamSampleMethodTable::get(gd_api).get_loop_mode;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret: AudioStreamSampleLoopMode = 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 AudioStreamSample_set_loop_begin(obj_ptr: *mut sys::godot_object, loop_begin: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamSampleMethodTable::get(gd_api).set_loop_begin;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&loop_begin) 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 AudioStreamSample_get_loop_begin(obj_ptr: *mut sys::godot_object) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamSampleMethodTable::get(gd_api).get_loop_begin;
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 AudioStreamSample_set_loop_end(obj_ptr: *mut sys::godot_object, loop_end: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamSampleMethodTable::get(gd_api).set_loop_end;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&loop_end) 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 AudioStreamSample_get_loop_end(obj_ptr: *mut sys::godot_object) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamSampleMethodTable::get(gd_api).get_loop_end;
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 AudioStreamSample_set_mix_rate(obj_ptr: *mut sys::godot_object, mix_rate: i64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamSampleMethodTable::get(gd_api).set_mix_rate;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&mix_rate) 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 AudioStreamSample_get_mix_rate(obj_ptr: *mut sys::godot_object) -> i64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamSampleMethodTable::get(gd_api).get_mix_rate;
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 AudioStreamSample_set_stereo(obj_ptr: *mut sys::godot_object, stereo: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamSampleMethodTable::get(gd_api).set_stereo;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&stereo) 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 AudioStreamSample_is_stereo(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamSampleMethodTable::get(gd_api).is_stereo;
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 ResourceImporterOGGVorbisMethodTable {
pub class_constructor: sys::godot_class_constructor,
}
impl ResourceImporterOGGVorbisMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: ResourceImporterOGGVorbisMethodTable = ResourceImporterOGGVorbisMethodTable {
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(|| {
ResourceImporterOGGVorbisMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"ResourceImporterOGGVorbis\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 AudioStreamOGGVorbisMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_data: *mut sys::godot_method_bind,
pub get_data: *mut sys::godot_method_bind,
pub set_loop: *mut sys::godot_method_bind,
pub has_loop: *mut sys::godot_method_bind,
pub set_loop_offset: *mut sys::godot_method_bind,
pub get_loop_offset: *mut sys::godot_method_bind,
}
impl AudioStreamOGGVorbisMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: AudioStreamOGGVorbisMethodTable = AudioStreamOGGVorbisMethodTable {
class_constructor: None,
set_data: 0 as *mut sys::godot_method_bind,
get_data: 0 as *mut sys::godot_method_bind,
set_loop: 0 as *mut sys::godot_method_bind,
has_loop: 0 as *mut sys::godot_method_bind,
set_loop_offset: 0 as *mut sys::godot_method_bind,
get_loop_offset: 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(|| {
AudioStreamOGGVorbisMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"AudioStreamOGGVorbis\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
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 );
table.set_loop = (gd_api.godot_method_bind_get_method)(class_name, "set_loop\0".as_ptr() as *const c_char );
table.has_loop = (gd_api.godot_method_bind_get_method)(class_name, "has_loop\0".as_ptr() as *const c_char );
table.set_loop_offset = (gd_api.godot_method_bind_get_method)(class_name, "set_loop_offset\0".as_ptr() as *const c_char );
table.get_loop_offset = (gd_api.godot_method_bind_get_method)(class_name, "get_loop_offset\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn AudioStreamOGGVorbis_set_data(obj_ptr: *mut sys::godot_object, data: ByteArray) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamOGGVorbisMethodTable::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 AudioStreamOGGVorbis_get_data(obj_ptr: *mut sys::godot_object) -> ByteArray {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamOGGVorbisMethodTable::get(gd_api).get_data;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_pool_byte_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 _);
ByteArray::from_sys(ret)
}
#[doc(hidden)]
pub unsafe fn AudioStreamOGGVorbis_set_loop(obj_ptr: *mut sys::godot_object, enable: bool) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamOGGVorbisMethodTable::get(gd_api).set_loop;
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 AudioStreamOGGVorbis_has_loop(obj_ptr: *mut sys::godot_object) -> bool {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamOGGVorbisMethodTable::get(gd_api).has_loop;
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 AudioStreamOGGVorbis_set_loop_offset(obj_ptr: *mut sys::godot_object, seconds: f64) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamOGGVorbisMethodTable::get(gd_api).set_loop_offset;
let mut argument_buffer : [*const libc::c_void; 1] = [
(&seconds) 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 AudioStreamOGGVorbis_get_loop_offset(obj_ptr: *mut sys::godot_object) -> f64 {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = AudioStreamOGGVorbisMethodTable::get(gd_api).get_loop_offset;
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
}