[−][src]Struct gdnative_bindings::ParallaxBackground
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]
fn clone(&self) -> ParallaxBackground
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ParallaxBackground
[src]
impl Debug for ParallaxBackground
[src]
impl Deref for ParallaxBackground
[src]
type Target = CanvasLayer
The resulting type after dereferencing.
fn deref(&self) -> &CanvasLayer
[src]
impl DerefMut for ParallaxBackground
[src]
fn deref_mut(&mut self) -> &mut CanvasLayer
[src]
impl Free for ParallaxBackground
[src]
unsafe fn godot_free(self)
[src]
impl FromVariant for ParallaxBackground
[src]
fn from_variant(variant: &Variant) -> Option<Self>
[src]
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 Instanciable for ParallaxBackground
[src]
impl QueueFree for ParallaxBackground
[src]
unsafe fn godot_queue_free(&mut self)
[src]
impl ToVariant for ParallaxBackground
[src]
fn to_variant(&self) -> Variant
[src]
Auto Trait Implementations
impl RefUnwindSafe for ParallaxBackground
impl !Send for ParallaxBackground
impl !Sync for ParallaxBackground
impl Unpin for ParallaxBackground
impl UnwindSafe for ParallaxBackground
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,