Struct sixtyfps_corelib::items::ClippedImage[][src]

#[repr(C)]
pub struct ClippedImage { pub source: Property<ImageReference>, pub x: Property<f32>, pub y: Property<f32>, pub width: Property<f32>, pub height: Property<f32>, pub image_fit: Property<ImageFit>, pub colorize: Property<Brush>, pub source_clip_x: Property<i32>, pub source_clip_y: Property<i32>, pub source_clip_width: Property<i32>, pub source_clip_height: Property<i32>, pub cached_rendering_data: CachedRenderingData, }

The implementation of the ClippedImage element

Fields

source: Property<ImageReference>x: Property<f32>y: Property<f32>width: Property<f32>height: Property<f32>image_fit: Property<ImageFit>colorize: Property<Brush>source_clip_x: Property<i32>source_clip_y: Property<i32>source_clip_width: Property<i32>source_clip_height: Property<i32>cached_rendering_data: CachedRenderingData

Implementations

impl ClippedImage[src]

pub const FIELD_OFFSETS: ClippedImageFieldsOffsets[src]

Return a struct containing the offset of for the fields of this struct

impl ClippedImage[src]

pub fn source(self: Pin<&Self>) -> ImageReference[src]

pub fn x(self: Pin<&Self>) -> f32[src]

pub fn y(self: Pin<&Self>) -> f32[src]

pub fn width(self: Pin<&Self>) -> f32[src]

pub fn height(self: Pin<&Self>) -> f32[src]

pub fn image_fit(self: Pin<&Self>) -> ImageFit[src]

pub fn colorize(self: Pin<&Self>) -> Brush[src]

pub fn source_clip_x(self: Pin<&Self>) -> i32[src]

pub fn source_clip_y(self: Pin<&Self>) -> i32[src]

pub fn source_clip_width(self: Pin<&Self>) -> i32[src]

pub fn source_clip_height(self: Pin<&Self>) -> i32[src]

Trait Implementations

impl Default for ClippedImage[src]

impl HasStaticVTable<ItemVTable> for ClippedImage[src]

impl Item for ClippedImage[src]

impl ItemConsts for ClippedImage[src]

impl<'__dummy_lifetime> Unpin for ClippedImage where
    __MustNotImplUnpin<'__dummy_lifetime>: Unpin
[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, 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.