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

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

The implementation of the TouchArea element

Fields

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

FIXME: We should anotate this as an “output” property.

has_hover: Property<bool>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: Callback<VoidArg>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

impl TouchArea[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 enabled(self: Pin<&Self>) -> bool[src]

pub fn pressed(self: Pin<&Self>) -> bool[src]

pub fn has_hover(self: Pin<&Self>) -> bool[src]

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

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

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

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

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.