[][src]Struct sixtyfps_corelib::items::TouchArea

#[repr(C)]pub struct TouchArea {
    pub x: Property<f32>,
    pub y: Property<f32>,
    pub width: Property<f32>,
    pub height: Property<f32>,
    pub pressed: Property<bool>,
    pub pressed_x: Property<f32>,
    pub pressed_y: Property<f32>,
    pub mouse_x: Property<f32>,
    pub mouse_y: Property<f32>,
    pub clicked: Signal<()>,
    pub cached_rendering_data: CachedRenderingData,
}

The implementation of the TouchArea element

Fields

x: Property<f32>y: Property<f32>width: Property<f32>height: Property<f32>pressed: Property<bool>

FIXME: We should anotate this as an "output" property.

pressed_x: Property<f32>

FIXME: there should be just one property for the point istead of two. Could even be merged with pressed in a Property<Option> (of course, in the implementation item only, for the compiler it would stay separate properties)

pressed_y: Property<f32>mouse_x: Property<f32>

FIXME: should maybe be as parameter to the mouse event instead. Or at least just one property

mouse_y: Property<f32>clicked: Signal<()>cached_rendering_data: CachedRenderingData

FIXME: remove this

Implementations

impl TouchArea[src]

pub const FIELD_OFFSETS: TouchAreaFieldsOffsets[src]

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

Trait Implementations

impl Default for TouchArea[src]

impl HasStaticVTable<ItemVTable> for TouchArea[src]

impl Item for TouchArea[src]

impl ItemConsts for TouchArea[src]

impl<'__dummy_lifetime> Unpin for TouchArea 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.