Struct gdnative::NativeScript [−][src]
pub struct NativeScript { /* fields omitted */ }
core class NativeScript : Script
(reference counted)
Base class
NativeScript inherits Script and all of its methods.
Memory management
The lifetime of this object is automatically managed through reference counting.
Methods
impl NativeScript
[src]
impl NativeScript
pub fn as_script(&self) -> Script
[src]
pub fn as_script(&self) -> Script
Up-cast.
pub fn new() -> Self
[src]
pub fn new() -> Self
pub fn new_ref(&self) -> Self
[src]
pub fn new_ref(&self) -> Self
Creates a new reference to the same object.
pub fn set_class_name(&mut self, class_name: GodotString)
[src]
pub fn set_class_name(&mut self, class_name: GodotString)
pub fn get_class_name(&self) -> GodotString
[src]
pub fn get_class_name(&self) -> GodotString
pub fn set_library(&mut self, library: Option<GDNativeLibrary>)
[src]
pub fn set_library(&mut self, library: Option<GDNativeLibrary>)
pub fn get_library(&self) -> Option<GDNativeLibrary>
[src]
pub fn get_library(&self) -> Option<GDNativeLibrary>
pub fn _new(&mut self, varargs: &[Variant]) -> Option<Object>
[src]
pub fn _new(&mut self, varargs: &[Variant]) -> Option<Object>
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
Methods from Deref<Target = Script>
pub fn as_resource(&self) -> Resource
[src]
pub fn as_resource(&self) -> Resource
Up-cast.
pub fn can_instance(&self) -> bool
[src]
pub fn can_instance(&self) -> bool
pub fn instance_has(&self, base_object: Option<Object>) -> bool
[src]
pub fn instance_has(&self, base_object: Option<Object>) -> bool
pub fn has_source_code(&self) -> bool
[src]
pub fn has_source_code(&self) -> bool
pub fn get_source_code(&self) -> GodotString
[src]
pub fn get_source_code(&self) -> GodotString
pub fn set_source_code(&mut self, source: GodotString)
[src]
pub fn set_source_code(&mut self, source: GodotString)
pub fn reload(&mut self, keep_state: bool) -> GodotResult
[src]
pub fn reload(&mut self, keep_state: bool) -> GodotResult
pub fn get_base_script(&self) -> Option<Script>
[src]
pub fn get_base_script(&self) -> Option<Script>
pub fn get_instance_base_type(&self) -> GodotString
[src]
pub fn get_instance_base_type(&self) -> GodotString
pub fn has_script_signal(&self, signal_name: GodotString) -> bool
[src]
pub fn has_script_signal(&self, signal_name: GodotString) -> bool
pub fn is_tool(&self) -> bool
[src]
pub fn is_tool(&self) -> bool
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
Trait Implementations
impl GodotObject for NativeScript
[src]
impl GodotObject for NativeScript
fn class_name() -> &'static str
[src]
fn class_name() -> &'static str
unsafe fn from_sys(obj: *mut godot_object) -> Self
[src]
unsafe fn from_sys(obj: *mut godot_object) -> Self
unsafe fn to_sys(&self) -> *mut godot_object
[src]
unsafe fn to_sys(&self) -> *mut godot_object
impl Deref for NativeScript
[src]
impl Deref for NativeScript
type Target = Script
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
impl DerefMut for NativeScript
[src]
impl DerefMut for NativeScript
impl Drop for NativeScript
[src]
impl Drop for NativeScript
Auto Trait Implementations
impl !Send for NativeScript
impl !Send for NativeScript
impl !Sync for NativeScript
impl !Sync for NativeScript