use std::os::raw::c_char;
use std::ptr;
use std::mem;
#[allow(non_camel_case_types)]
#[derive(Debug)]
pub struct VideoStream {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VideoStream {
fn class_name() -> &'static str {
"VideoStream"
}
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 VideoStream {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VideoStream {
#[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 VideoStreamTheora {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VideoStreamTheora {
fn class_name() -> &'static str {
"VideoStreamTheora"
}
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 VideoStreamTheora {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VideoStreamTheora {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VideoStreamTheoraMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VideoStreamTheora {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_file(&mut self, file: GodotString) -> () {
unsafe { VideoStreamTheora_set_file(self.this, file) }
}
#[inline]
pub fn get_file(&mut self) -> GodotString {
unsafe { VideoStreamTheora_get_file(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_video_stream(&self) -> VideoStream {
unsafe {{ object::add_ref(self.this); }}
VideoStream { 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 VideoStreamTheora {
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 VideoStreamWebm {
#[doc(hidden)]
pub this: *mut sys::godot_object,
}
unsafe impl GodotObject for VideoStreamWebm {
fn class_name() -> &'static str {
"VideoStreamWebm"
}
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 VideoStreamWebm {
fn to_variant(&self) -> Variant { Variant::from_object(self) }
fn from_variant(variant: &Variant) -> Option<Self> { variant.try_to_object::<Self>() }
}
impl VideoStreamWebm {
pub fn new() -> Self {
unsafe {
let gd_api = get_api();
let ctor = VideoStreamWebmMethodTable::get(gd_api).class_constructor.unwrap();
let obj = ctor();
object::init_ref_count(obj);
VideoStreamWebm {
this: obj
}
}
}
pub fn new_ref(&self) -> Self {
unsafe {
object::add_ref(self.this);
Self {
this: self.this,
}
}
}
#[inline]
pub fn set_file(&mut self, file: GodotString) -> () {
unsafe { VideoStreamWebm_set_file(self.this, file) }
}
#[inline]
pub fn get_file(&mut self) -> GodotString {
unsafe { VideoStreamWebm_get_file(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_video_stream(&self) -> VideoStream {
unsafe {{ object::add_ref(self.this); }}
VideoStream { 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 VideoStreamWebm {
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 VideoStreamMethodTable {
pub class_constructor: sys::godot_class_constructor,
}
impl VideoStreamMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VideoStreamMethodTable = VideoStreamMethodTable {
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(|| {
VideoStreamMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VideoStream\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 VideoStreamTheoraMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_file: *mut sys::godot_method_bind,
pub get_file: *mut sys::godot_method_bind,
}
impl VideoStreamTheoraMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VideoStreamTheoraMethodTable = VideoStreamTheoraMethodTable {
class_constructor: None,
set_file: 0 as *mut sys::godot_method_bind,
get_file: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
VideoStreamTheoraMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VideoStreamTheora\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_file = (gd_api.godot_method_bind_get_method)(class_name, "set_file\0".as_ptr() as *const c_char );
table.get_file = (gd_api.godot_method_bind_get_method)(class_name, "get_file\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn VideoStreamTheora_set_file(obj_ptr: *mut sys::godot_object, file: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VideoStreamTheoraMethodTable::get(gd_api).set_file;
let mut argument_buffer : [*const libc::c_void; 1] = [
file.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn VideoStreamTheora_get_file(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VideoStreamTheoraMethodTable::get(gd_api).get_file;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}
#[doc(hidden)]
#[allow(non_camel_case_types)]
pub struct VideoStreamWebmMethodTable {
pub class_constructor: sys::godot_class_constructor,
pub set_file: *mut sys::godot_method_bind,
pub get_file: *mut sys::godot_method_bind,
}
impl VideoStreamWebmMethodTable {
unsafe fn get_mut() -> &'static mut Self {
static mut TABLE: VideoStreamWebmMethodTable = VideoStreamWebmMethodTable {
class_constructor: None,
set_file: 0 as *mut sys::godot_method_bind,
get_file: 0 as *mut sys::godot_method_bind,
};
&mut TABLE
}
pub unsafe fn unchecked_get() -> &'static Self {
Self::get_mut()
}
pub fn get(gd_api: &GodotApi) -> &'static Self {
unsafe {
let table = Self::get_mut();
static INIT: Once = ONCE_INIT;
INIT.call_once(|| {
VideoStreamWebmMethodTable::init(table, gd_api);
});
table
}
}
#[inline(never)]
fn init(table: &mut Self, gd_api: &GodotApi) {
unsafe {
let class_name = b"VideoStreamWebm\0".as_ptr() as *const c_char;
table.class_constructor = (gd_api.godot_get_class_constructor)(class_name);
table.set_file = (gd_api.godot_method_bind_get_method)(class_name, "set_file\0".as_ptr() as *const c_char );
table.get_file = (gd_api.godot_method_bind_get_method)(class_name, "get_file\0".as_ptr() as *const c_char );
}
}
}
#[doc(hidden)]
pub unsafe fn VideoStreamWebm_set_file(obj_ptr: *mut sys::godot_object, file: GodotString) -> () {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VideoStreamWebmMethodTable::get(gd_api).set_file;
let mut argument_buffer : [*const libc::c_void; 1] = [
file.sys() as *const _ as *const _,
];
let ret_ptr = ptr::null_mut();
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
}
#[doc(hidden)]
pub unsafe fn VideoStreamWebm_get_file(obj_ptr: *mut sys::godot_object) -> GodotString {
let gd_api = get_api();
let method_bind: *mut sys::godot_method_bind = VideoStreamWebmMethodTable::get(gd_api).get_file;
let mut argument_buffer : [*const libc::c_void; 0] = [
];
let mut ret = sys::godot_string::default();
let ret_ptr = &mut ret as *mut _;
(gd_api.godot_method_bind_ptrcall)(method_bind, obj_ptr, argument_buffer.as_mut_ptr() as *mut _, ret_ptr as *mut _);
GodotString::from_sys(ret)
}