Struct playdate_ui_crank_indicator::CrankIndicator

source ·
pub struct CrankIndicator { /* private fields */ }

Implementations§

source§

impl CrankIndicator

source

pub fn new(scale: DisplayScale) -> Result<Self, ApiError>

source

pub fn set_scale(&self, scale: DisplayScale)

source

pub fn set_offset(&self, x: i8, y: i8)

Trait Implementations§

source§

impl AsRaw for CrankIndicator

§

type Type = LCDSprite

source§

unsafe fn as_raw(&self) -> *mut Self::Type

This method ia actually safe. Unsafety is because so we’re removing owners lifetime that used by some API parts.
source§

impl SpriteApi for CrankIndicator

§

type Api = Default

Type of inner API access-point.
source§

fn api(&self) -> Self::Api
where Self::Api: Copy,

Get a copy of inner api access point.
source§

fn api_ref(&self) -> &Self::Api

Get a ref to inner api access point.
source§

impl SpriteType for CrankIndicator

§

type Api = <CrankIndicator as SpriteApi>::Api

Type of API access-point.
§

type Userdata = <UpdateDraw as SpriteType>::Userdata

Associated user-data with sprite.
source§

const FREE_ON_DROP: bool = false

Should be freed when sprite is dropped.
source§

impl AnySprite for CrankIndicator

Auto Trait Implementations§

§

impl Freeze for CrankIndicator

§

impl RefUnwindSafe for CrankIndicator

§

impl !Send for CrankIndicator

§

impl !Sync for CrankIndicator

§

impl Unpin for CrankIndicator

§

impl UnwindSafe for CrankIndicator

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where 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>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 8 bytes