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