[][src]Struct gdnative_bindings::ParallaxBackground

pub struct ParallaxBackground { /* fields omitted */ }

core class ParallaxBackground inherits CanvasLayer (unsafe).

Official documentation

See the documentation of this class in the Godot engine's official documentation.

Memory management

Non reference counted objects such as the ones of this type are usually owned by the engine.

ParallaxBackground is an unsafe pointer, and all of its methods are unsafe.

In the cases where Rust code owns an object of this type, for example if the object was just created on the Rust side and not passed to the engine yet, ownership should be either given to the engine or the object must be manually destroyed using ParallaxBackground::free.

Class hierarchy

ParallaxBackground inherits methods from:

Methods

impl ParallaxBackground[src]

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 unsafe fn _camera_moved(&mut self, arg0: Transform2D, arg1: Vector2)[src]

pub unsafe fn get_limit_begin(&self) -> Vector2[src]

pub unsafe fn get_limit_end(&self) -> Vector2[src]

pub unsafe fn get_scroll_base_offset(&self) -> Vector2[src]

pub unsafe fn get_scroll_base_scale(&self) -> Vector2[src]

pub unsafe fn get_scroll_offset(&self) -> Vector2[src]

pub unsafe fn is_ignore_camera_zoom(&mut self) -> bool[src]

pub unsafe fn set_ignore_camera_zoom(&mut self, ignore: bool)[src]

pub unsafe fn set_limit_begin(&mut self, ofs: Vector2)[src]

pub unsafe fn set_limit_end(&mut self, ofs: Vector2)[src]

pub unsafe fn set_scroll_base_offset(&mut self, ofs: Vector2)[src]

pub unsafe fn set_scroll_base_scale(&mut self, scale: Vector2)[src]

pub unsafe fn set_scroll_offset(&mut self, ofs: Vector2)[src]

pub unsafe fn to_canvas_layer(&self) -> CanvasLayer[src]

Up-cast.

pub unsafe fn to_node(&self) -> Node[src]

Up-cast.

pub unsafe fn to_object(&self) -> Object[src]

Up-cast.

pub unsafe fn cast<T: GodotObject>(&self) -> Option<T>[src]

Generic dynamic cast.

Methods from Deref<Target = CanvasLayer>

pub unsafe fn get_canvas(&self) -> Rid[src]

pub unsafe fn get_custom_viewport(&self) -> Option<Node>[src]

pub unsafe fn get_layer(&self) -> i64[src]

pub unsafe fn get_offset(&self) -> Vector2[src]

pub unsafe fn get_rotation(&self) -> f64[src]

pub unsafe fn get_rotation_degrees(&self) -> f64[src]

pub unsafe fn get_scale(&self) -> Vector2[src]

pub unsafe fn get_transform(&self) -> Transform2D[src]

pub unsafe fn set_custom_viewport(&mut self, viewport: Option<Node>)[src]

pub unsafe fn set_layer(&mut self, layer: i64)[src]

pub unsafe fn set_offset(&mut self, offset: Vector2)[src]

pub unsafe fn set_rotation(&mut self, radians: f64)[src]

pub unsafe fn set_rotation_degrees(&mut self, degrees: f64)[src]

pub unsafe fn set_scale(&mut self, scale: Vector2)[src]

pub unsafe fn set_transform(&mut self, transform: Transform2D)[src]

pub unsafe fn to_node(&self) -> Node[src]

Up-cast.

pub unsafe fn to_object(&self) -> Object[src]

Up-cast.

pub unsafe fn cast<T: GodotObject>(&self) -> Option<T>[src]

Generic dynamic cast.

Trait Implementations

impl Clone for ParallaxBackground[src]

impl Copy for ParallaxBackground[src]

impl Debug for ParallaxBackground[src]

impl Deref for ParallaxBackground[src]

type Target = CanvasLayer

The resulting type after dereferencing.

impl DerefMut for ParallaxBackground[src]

impl Free for ParallaxBackground[src]

impl FromVariant for ParallaxBackground[src]

impl GodotObject for ParallaxBackground[src]

impl Instanciable for ParallaxBackground[src]

impl QueueFree for ParallaxBackground[src]

impl ToVariant for ParallaxBackground[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.