Struct gdnative::ParallaxBackground [−][src]
pub struct ParallaxBackground { /* fields omitted */ }
core class ParallaxBackground : CanvasLayer
(manually managed)
Base class
ParallaxBackground inherits CanvasLayer 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 ParallaxBackground::free
.
Methods
impl ParallaxBackground
[src]
impl ParallaxBackground
pub fn as_canvas_layer(&self) -> CanvasLayer
[src]
pub fn as_canvas_layer(&self) -> CanvasLayer
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 ParallaxBackground::free
.
pub unsafe fn free(self)
[src]
pub unsafe fn free(self)
Manually deallocate the object.
pub fn _camera_moved(&mut self, arg0: Transform2D, arg1: Vector2)
[src]
pub fn _camera_moved(&mut self, arg0: Transform2D, arg1: Vector2)
pub fn set_scroll_offset(&mut self, ofs: Vector2)
[src]
pub fn set_scroll_offset(&mut self, ofs: Vector2)
pub fn get_scroll_offset(&self) -> Vector2
[src]
pub fn get_scroll_offset(&self) -> Vector2
pub fn set_scroll_base_offset(&mut self, ofs: Vector2)
[src]
pub fn set_scroll_base_offset(&mut self, ofs: Vector2)
pub fn get_scroll_base_offset(&self) -> Vector2
[src]
pub fn get_scroll_base_offset(&self) -> Vector2
pub fn set_scroll_base_scale(&mut self, scale: Vector2)
[src]
pub fn set_scroll_base_scale(&mut self, scale: Vector2)
pub fn get_scroll_base_scale(&self) -> Vector2
[src]
pub fn get_scroll_base_scale(&self) -> Vector2
pub fn set_limit_begin(&mut self, ofs: Vector2)
[src]
pub fn set_limit_begin(&mut self, ofs: Vector2)
pub fn get_limit_begin(&self) -> Vector2
[src]
pub fn get_limit_begin(&self) -> Vector2
pub fn set_limit_end(&mut self, ofs: Vector2)
[src]
pub fn set_limit_end(&mut self, ofs: Vector2)
pub fn get_limit_end(&self) -> Vector2
[src]
pub fn get_limit_end(&self) -> Vector2
pub fn set_ignore_camera_zoom(&mut self, ignore: bool)
[src]
pub fn set_ignore_camera_zoom(&mut self, ignore: bool)
pub fn is_ignore_camera_zoom(&mut self) -> bool
[src]
pub fn is_ignore_camera_zoom(&mut self) -> bool
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
Methods from Deref<Target = CanvasLayer>
pub fn as_node(&self) -> Node
[src]
pub fn as_node(&self) -> Node
Up-cast.
pub fn set_layer(&mut self, layer: i64)
[src]
pub fn set_layer(&mut self, layer: i64)
pub fn get_layer(&self) -> i64
[src]
pub fn get_layer(&self) -> i64
pub fn set_transform(&mut self, transform: Transform2D)
[src]
pub fn set_transform(&mut self, transform: Transform2D)
pub fn get_transform(&self) -> Transform2D
[src]
pub fn get_transform(&self) -> Transform2D
pub fn set_offset(&mut self, offset: Vector2)
[src]
pub fn set_offset(&mut self, offset: Vector2)
pub fn get_offset(&self) -> Vector2
[src]
pub fn get_offset(&self) -> Vector2
pub fn set_rotation(&mut self, radians: f64)
[src]
pub fn set_rotation(&mut self, radians: f64)
pub fn get_rotation(&self) -> f64
[src]
pub fn get_rotation(&self) -> f64
pub fn set_rotation_degrees(&mut self, degrees: f64)
[src]
pub fn set_rotation_degrees(&mut self, degrees: f64)
pub fn get_rotation_degrees(&self) -> f64
[src]
pub fn get_rotation_degrees(&self) -> f64
pub fn set_scale(&mut self, scale: Vector2)
[src]
pub fn set_scale(&mut self, scale: Vector2)
pub fn get_scale(&self) -> Vector2
[src]
pub fn get_scale(&self) -> Vector2
pub fn set_custom_viewport(&mut self, viewport: Option<Object>)
[src]
pub fn set_custom_viewport(&mut self, viewport: Option<Object>)
pub fn get_custom_viewport(&self) -> Option<Node>
[src]
pub fn get_custom_viewport(&self) -> Option<Node>
pub fn get_world_2d(&self) -> Option<World2D>
[src]
pub fn get_world_2d(&self) -> Option<World2D>
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
Trait Implementations
impl GodotObject for ParallaxBackground
[src]
impl GodotObject for ParallaxBackground
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 ParallaxBackground
[src]
impl Deref for ParallaxBackground
type Target = CanvasLayer
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
impl DerefMut for ParallaxBackground
[src]
impl DerefMut for ParallaxBackground
Auto Trait Implementations
impl !Send for ParallaxBackground
impl !Send for ParallaxBackground
impl !Sync for ParallaxBackground
impl !Sync for ParallaxBackground