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