Struct gdnative::Tween [−][src]
pub struct Tween { /* fields omitted */ }
core class Tween : Node
(manually managed)
Base class
Tween inherits Node and all of its methods.
Memory management
Non reference counted objects such as the ones of this type are usually owned by the engine.
In the cases where Rust code owns an object of this type, ownership should be either passed
to the engine or the object must be manually destroyed using Tween::free
.
Methods
impl Tween
[src]
impl Tween
pub fn as_node(&self) -> Node
[src]
pub fn as_node(&self) -> Node
Up-cast.
pub fn new() -> Self
[src]
pub fn new() -> Self
Constructor.
Because this type is not reference counted, the lifetime of the returned object
is not automatically managed.
Immediately after creation, the object is owned by the caller, and can be
passed to the engine (in which case the engine will be responsible for
destroying the object) or destroyed manually using Tween::free
.
pub unsafe fn free(self)
[src]
pub unsafe fn free(self)
Manually deallocate the object.
pub fn is_active(&self) -> bool
[src]
pub fn is_active(&self) -> bool
pub fn set_active(&mut self, active: bool)
[src]
pub fn set_active(&mut self, active: bool)
pub fn is_repeat(&self) -> bool
[src]
pub fn is_repeat(&self) -> bool
pub fn set_repeat(&mut self, repeat: bool)
[src]
pub fn set_repeat(&mut self, repeat: bool)
pub fn set_speed_scale(&mut self, speed: f64)
[src]
pub fn set_speed_scale(&mut self, speed: f64)
pub fn get_speed_scale(&self) -> f64
[src]
pub fn get_speed_scale(&self) -> f64
pub fn set_tween_process_mode(&mut self, mode: i64)
[src]
pub fn set_tween_process_mode(&mut self, mode: i64)
pub fn start(&mut self) -> bool
[src]
pub fn start(&mut self) -> bool
pub fn reset(&mut self, object: Option<Object>, key: GodotString) -> bool
[src]
pub fn reset(&mut self, object: Option<Object>, key: GodotString) -> bool
pub fn reset_all(&mut self) -> bool
[src]
pub fn reset_all(&mut self) -> bool
pub fn stop(&mut self, object: Option<Object>, key: GodotString) -> bool
[src]
pub fn stop(&mut self, object: Option<Object>, key: GodotString) -> bool
pub fn stop_all(&mut self) -> bool
[src]
pub fn stop_all(&mut self) -> bool
pub fn resume(&mut self, object: Option<Object>, key: GodotString) -> bool
[src]
pub fn resume(&mut self, object: Option<Object>, key: GodotString) -> bool
pub fn resume_all(&mut self) -> bool
[src]
pub fn resume_all(&mut self) -> bool
pub fn remove(&mut self, object: Option<Object>, key: GodotString) -> bool
[src]
pub fn remove(&mut self, object: Option<Object>, key: GodotString) -> bool
pub fn _remove(
&mut self,
object: Option<Object>,
key: GodotString,
first_only: bool
)
[src]
pub fn _remove(
&mut self,
object: Option<Object>,
key: GodotString,
first_only: bool
)
pub fn remove_all(&mut self) -> bool
[src]
pub fn remove_all(&mut self) -> bool
pub fn seek(&mut self, time: f64) -> bool
[src]
pub fn seek(&mut self, time: f64) -> bool
pub fn tell(&self) -> f64
[src]
pub fn tell(&self) -> f64
pub fn get_runtime(&self) -> f64
[src]
pub fn get_runtime(&self) -> f64
pub fn interpolate_property(
&mut self,
object: Option<Object>,
property: NodePath,
initial_val: Variant,
final_val: Variant,
duration: f64,
trans_type: i64,
ease_type: i64,
delay: f64
) -> bool
[src]
pub fn interpolate_property(
&mut self,
object: Option<Object>,
property: NodePath,
initial_val: Variant,
final_val: Variant,
duration: f64,
trans_type: i64,
ease_type: i64,
delay: f64
) -> bool
pub fn interpolate_method(
&mut self,
object: Option<Object>,
method: GodotString,
initial_val: Variant,
final_val: Variant,
duration: f64,
trans_type: i64,
ease_type: i64,
delay: f64
) -> bool
[src]
pub fn interpolate_method(
&mut self,
object: Option<Object>,
method: GodotString,
initial_val: Variant,
final_val: Variant,
duration: f64,
trans_type: i64,
ease_type: i64,
delay: f64
) -> bool
pub fn interpolate_callback(
&mut self,
object: Option<Object>,
duration: f64,
callback: GodotString,
arg1: Variant,
arg2: Variant,
arg3: Variant,
arg4: Variant,
arg5: Variant
) -> bool
[src]
pub fn interpolate_callback(
&mut self,
object: Option<Object>,
duration: f64,
callback: GodotString,
arg1: Variant,
arg2: Variant,
arg3: Variant,
arg4: Variant,
arg5: Variant
) -> bool
pub fn interpolate_deferred_callback(
&mut self,
object: Option<Object>,
duration: f64,
callback: GodotString,
arg1: Variant,
arg2: Variant,
arg3: Variant,
arg4: Variant,
arg5: Variant
) -> bool
[src]
pub fn interpolate_deferred_callback(
&mut self,
object: Option<Object>,
duration: f64,
callback: GodotString,
arg1: Variant,
arg2: Variant,
arg3: Variant,
arg4: Variant,
arg5: Variant
) -> bool
pub fn follow_property(
&mut self,
object: Option<Object>,
property: NodePath,
initial_val: Variant,
target: Option<Object>,
target_property: NodePath,
duration: f64,
trans_type: i64,
ease_type: i64,
delay: f64
) -> bool
[src]
pub fn follow_property(
&mut self,
object: Option<Object>,
property: NodePath,
initial_val: Variant,
target: Option<Object>,
target_property: NodePath,
duration: f64,
trans_type: i64,
ease_type: i64,
delay: f64
) -> bool
pub fn follow_method(
&mut self,
object: Option<Object>,
method: GodotString,
initial_val: Variant,
target: Option<Object>,
target_method: GodotString,
duration: f64,
trans_type: i64,
ease_type: i64,
delay: f64
) -> bool
[src]
pub fn follow_method(
&mut self,
object: Option<Object>,
method: GodotString,
initial_val: Variant,
target: Option<Object>,
target_method: GodotString,
duration: f64,
trans_type: i64,
ease_type: i64,
delay: f64
) -> bool
pub fn targeting_property(
&mut self,
object: Option<Object>,
property: NodePath,
initial: Option<Object>,
initial_val: NodePath,
final_val: Variant,
duration: f64,
trans_type: i64,
ease_type: i64,
delay: f64
) -> bool
[src]
pub fn targeting_property(
&mut self,
object: Option<Object>,
property: NodePath,
initial: Option<Object>,
initial_val: NodePath,
final_val: Variant,
duration: f64,
trans_type: i64,
ease_type: i64,
delay: f64
) -> bool
pub fn targeting_method(
&mut self,
object: Option<Object>,
method: GodotString,
initial: Option<Object>,
initial_method: GodotString,
final_val: Variant,
duration: f64,
trans_type: i64,
ease_type: i64,
delay: f64
) -> bool
[src]
pub fn targeting_method(
&mut self,
object: Option<Object>,
method: GodotString,
initial: Option<Object>,
initial_method: GodotString,
final_val: Variant,
duration: f64,
trans_type: i64,
ease_type: i64,
delay: f64
) -> bool
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
Methods from Deref<Target = Node>
pub fn as_object(&self) -> Object
[src]
pub fn as_object(&self) -> Object
Up-cast.
pub fn _process(&mut self, delta: f64)
[src]
pub fn _process(&mut self, delta: f64)
pub fn _physics_process(&mut self, delta: f64)
[src]
pub fn _physics_process(&mut self, delta: f64)
pub fn _enter_tree(&mut self)
[src]
pub fn _enter_tree(&mut self)
pub fn _exit_tree(&mut self)
[src]
pub fn _exit_tree(&mut self)
pub fn _ready(&mut self)
[src]
pub fn _ready(&mut self)
pub fn _input(&mut self, event: Option<InputEvent>)
[src]
pub fn _input(&mut self, event: Option<InputEvent>)
pub fn _unhandled_input(&mut self, event: Option<InputEvent>)
[src]
pub fn _unhandled_input(&mut self, event: Option<InputEvent>)
pub fn _unhandled_key_input(&mut self, event: Option<InputEventKey>)
[src]
pub fn _unhandled_key_input(&mut self, event: Option<InputEventKey>)
pub fn add_child_below_node(
&mut self,
node: Option<Object>,
child_node: Option<Object>,
legible_unique_name: bool
)
[src]
pub fn add_child_below_node(
&mut self,
node: Option<Object>,
child_node: Option<Object>,
legible_unique_name: bool
)
pub fn set_name(&mut self, name: GodotString)
[src]
pub fn set_name(&mut self, name: GodotString)
pub fn get_name(&self) -> GodotString
[src]
pub fn get_name(&self) -> GodotString
pub fn add_child(&mut self, node: Option<Object>, legible_unique_name: bool)
[src]
pub fn add_child(&mut self, node: Option<Object>, legible_unique_name: bool)
pub fn remove_child(&mut self, node: Option<Object>)
[src]
pub fn remove_child(&mut self, node: Option<Object>)
pub fn get_child_count(&self) -> i64
[src]
pub fn get_child_count(&self) -> i64
pub fn get_children(&self) -> VariantArray
[src]
pub fn get_children(&self) -> VariantArray
pub fn get_child(&self, idx: i64) -> Option<Node>
[src]
pub fn get_child(&self, idx: i64) -> Option<Node>
pub fn has_node(&self, path: NodePath) -> bool
[src]
pub fn has_node(&self, path: NodePath) -> bool
pub fn get_node(&self, path: NodePath) -> Option<Node>
[src]
pub fn get_node(&self, path: NodePath) -> Option<Node>
pub fn get_parent(&self) -> Option<Node>
[src]
pub fn get_parent(&self) -> Option<Node>
pub fn find_node(
&self,
mask: GodotString,
recursive: bool,
owned: bool
) -> Option<Node>
[src]
pub fn find_node(
&self,
mask: GodotString,
recursive: bool,
owned: bool
) -> Option<Node>
pub fn has_node_and_resource(&self, path: NodePath) -> bool
[src]
pub fn has_node_and_resource(&self, path: NodePath) -> bool
pub fn get_node_and_resource(&mut self, path: NodePath) -> VariantArray
[src]
pub fn get_node_and_resource(&mut self, path: NodePath) -> VariantArray
pub fn is_inside_tree(&self) -> bool
[src]
pub fn is_inside_tree(&self) -> bool
pub fn is_a_parent_of(&self, node: Option<Object>) -> bool
[src]
pub fn is_a_parent_of(&self, node: Option<Object>) -> bool
pub fn is_greater_than(&self, node: Option<Object>) -> bool
[src]
pub fn is_greater_than(&self, node: Option<Object>) -> bool
pub fn get_path(&self) -> NodePath
[src]
pub fn get_path(&self) -> NodePath
pub fn get_path_to(&self, node: Option<Object>) -> NodePath
[src]
pub fn get_path_to(&self, node: Option<Object>) -> NodePath
pub fn add_to_group(&mut self, group: GodotString, persistent: bool)
[src]
pub fn add_to_group(&mut self, group: GodotString, persistent: bool)
pub fn remove_from_group(&mut self, group: GodotString)
[src]
pub fn remove_from_group(&mut self, group: GodotString)
pub fn is_in_group(&self, group: GodotString) -> bool
[src]
pub fn is_in_group(&self, group: GodotString) -> bool
pub fn move_child(&mut self, child_node: Option<Object>, to_position: i64)
[src]
pub fn move_child(&mut self, child_node: Option<Object>, to_position: i64)
pub fn get_groups(&self) -> VariantArray
[src]
pub fn get_groups(&self) -> VariantArray
pub fn raise(&mut self)
[src]
pub fn raise(&mut self)
pub fn set_owner(&mut self, owner: Option<Object>)
[src]
pub fn set_owner(&mut self, owner: Option<Object>)
pub fn get_owner(&self) -> Option<Node>
[src]
pub fn get_owner(&self) -> Option<Node>
pub fn remove_and_skip(&mut self)
[src]
pub fn remove_and_skip(&mut self)
pub fn get_index(&self) -> i64
[src]
pub fn get_index(&self) -> i64
pub fn print_tree(&mut self)
[src]
pub fn print_tree(&mut self)
pub fn set_filename(&mut self, filename: GodotString)
[src]
pub fn set_filename(&mut self, filename: GodotString)
pub fn get_filename(&self) -> GodotString
[src]
pub fn get_filename(&self) -> GodotString
pub fn propagate_notification(&mut self, what: i64)
[src]
pub fn propagate_notification(&mut self, what: i64)
pub fn propagate_call(
&mut self,
method: GodotString,
args: VariantArray,
parent_first: bool
)
[src]
pub fn propagate_call(
&mut self,
method: GodotString,
args: VariantArray,
parent_first: bool
)
pub fn set_physics_process(&mut self, enable: bool)
[src]
pub fn set_physics_process(&mut self, enable: bool)
pub fn get_physics_process_delta_time(&self) -> f64
[src]
pub fn get_physics_process_delta_time(&self) -> f64
pub fn is_physics_processing(&self) -> bool
[src]
pub fn is_physics_processing(&self) -> bool
pub fn get_process_delta_time(&self) -> f64
[src]
pub fn get_process_delta_time(&self) -> f64
pub fn set_process(&mut self, enable: bool)
[src]
pub fn set_process(&mut self, enable: bool)
pub fn is_processing(&self) -> bool
[src]
pub fn is_processing(&self) -> bool
pub fn set_process_input(&mut self, enable: bool)
[src]
pub fn set_process_input(&mut self, enable: bool)
pub fn is_processing_input(&self) -> bool
[src]
pub fn is_processing_input(&self) -> bool
pub fn set_process_unhandled_input(&mut self, enable: bool)
[src]
pub fn set_process_unhandled_input(&mut self, enable: bool)
pub fn is_processing_unhandled_input(&self) -> bool
[src]
pub fn is_processing_unhandled_input(&self) -> bool
pub fn set_process_unhandled_key_input(&mut self, enable: bool)
[src]
pub fn set_process_unhandled_key_input(&mut self, enable: bool)
pub fn is_processing_unhandled_key_input(&self) -> bool
[src]
pub fn is_processing_unhandled_key_input(&self) -> bool
pub fn set_pause_mode(&mut self, mode: i64)
[src]
pub fn set_pause_mode(&mut self, mode: i64)
pub fn can_process(&self) -> bool
[src]
pub fn can_process(&self) -> bool
pub fn print_stray_nodes(&mut self)
[src]
pub fn print_stray_nodes(&mut self)
pub fn get_position_in_parent(&self) -> i64
[src]
pub fn get_position_in_parent(&self) -> i64
pub fn set_display_folded(&mut self, fold: bool)
[src]
pub fn set_display_folded(&mut self, fold: bool)
pub fn is_displayed_folded(&self) -> bool
[src]
pub fn is_displayed_folded(&self) -> bool
pub fn set_process_internal(&mut self, enable: bool)
[src]
pub fn set_process_internal(&mut self, enable: bool)
pub fn is_processing_internal(&self) -> bool
[src]
pub fn is_processing_internal(&self) -> bool
pub fn set_physics_process_internal(&mut self, enable: bool)
[src]
pub fn set_physics_process_internal(&mut self, enable: bool)
pub fn is_physics_processing_internal(&self) -> bool
[src]
pub fn is_physics_processing_internal(&self) -> bool
pub fn get_tree(&self) -> Option<SceneTree>
[src]
pub fn get_tree(&self) -> Option<SceneTree>
pub fn duplicate(&self, flags: i64) -> Option<Node>
[src]
pub fn duplicate(&self, flags: i64) -> Option<Node>
pub fn replace_by(&mut self, node: Option<Object>, keep_data: bool)
[src]
pub fn replace_by(&mut self, node: Option<Object>, keep_data: bool)
pub fn set_scene_instance_load_placeholder(&mut self, load_placeholder: bool)
[src]
pub fn set_scene_instance_load_placeholder(&mut self, load_placeholder: bool)
pub fn get_scene_instance_load_placeholder(&self) -> bool
[src]
pub fn get_scene_instance_load_placeholder(&self) -> bool
pub fn get_viewport(&self) -> Option<Viewport>
[src]
pub fn get_viewport(&self) -> Option<Viewport>
pub fn queue_free(&mut self)
[src]
pub fn queue_free(&mut self)
pub fn request_ready(&mut self)
[src]
pub fn request_ready(&mut self)
pub fn set_network_master(&mut self, id: i64, recursive: bool)
[src]
pub fn set_network_master(&mut self, id: i64, recursive: bool)
pub fn get_network_master(&self) -> i64
[src]
pub fn get_network_master(&self) -> i64
pub fn is_network_master(&self) -> bool
[src]
pub fn is_network_master(&self) -> bool
pub fn rpc_config(&mut self, method: GodotString, mode: i64)
[src]
pub fn rpc_config(&mut self, method: GodotString, mode: i64)
pub fn rset_config(&mut self, property: GodotString, mode: i64)
[src]
pub fn rset_config(&mut self, property: GodotString, mode: i64)
pub fn _set_import_path(&mut self, import_path: NodePath)
[src]
pub fn _set_import_path(&mut self, import_path: NodePath)
pub fn _get_import_path(&self) -> NodePath
[src]
pub fn _get_import_path(&self) -> NodePath
pub fn rpc(&mut self, method: GodotString, varargs: &[Variant]) -> Variant
[src]
pub fn rpc(&mut self, method: GodotString, varargs: &[Variant]) -> Variant
pub fn rpc_unreliable(
&mut self,
method: GodotString,
varargs: &[Variant]
) -> Variant
[src]
pub fn rpc_unreliable(
&mut self,
method: GodotString,
varargs: &[Variant]
) -> Variant
pub fn rpc_id(
&mut self,
peer_id: i64,
method: GodotString,
varargs: &[Variant]
) -> Variant
[src]
pub fn rpc_id(
&mut self,
peer_id: i64,
method: GodotString,
varargs: &[Variant]
) -> Variant
pub fn rpc_unreliable_id(
&mut self,
peer_id: i64,
method: GodotString,
varargs: &[Variant]
) -> Variant
[src]
pub fn rpc_unreliable_id(
&mut self,
peer_id: i64,
method: GodotString,
varargs: &[Variant]
) -> Variant
pub fn rset(&mut self, property: GodotString, value: Variant)
[src]
pub fn rset(&mut self, property: GodotString, value: Variant)
pub fn rset_id(&mut self, peer_id: i64, property: GodotString, value: Variant)
[src]
pub fn rset_id(&mut self, peer_id: i64, property: GodotString, value: Variant)
pub fn rset_unreliable(&mut self, property: GodotString, value: Variant)
[src]
pub fn rset_unreliable(&mut self, property: GodotString, value: Variant)
pub fn rset_unreliable_id(
&mut self,
peer_id: i64,
property: GodotString,
value: Variant
)
[src]
pub fn rset_unreliable_id(
&mut self,
peer_id: i64,
property: GodotString,
value: Variant
)
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
Trait Implementations
impl GodotObject for Tween
[src]
impl GodotObject for Tween
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 Tween
[src]
impl Deref for Tween
type Target = Node
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
impl DerefMut for Tween
[src]
impl DerefMut for Tween