[−][src]Struct sixtyfps_corelib::items::TouchArea
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
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]
fn static_vtable() -> &'static ItemVTable
[src]
impl Item for TouchArea
[src]
fn init(self: Pin<&Self>, _window: &ComponentWindow)
[src]
fn geometry(self: Pin<&Self>) -> Rect
[src]
fn rendering_primitive(
self: Pin<&Self>,
_window: &ComponentWindow
) -> HighLevelRenderingPrimitive
[src]
self: Pin<&Self>,
_window: &ComponentWindow
) -> HighLevelRenderingPrimitive
fn rendering_variables(
self: Pin<&Self>,
_window: &ComponentWindow
) -> SharedArray<RenderingVariable>
[src]
self: Pin<&Self>,
_window: &ComponentWindow
) -> SharedArray<RenderingVariable>
fn layouting_info(self: Pin<&Self>, _window: &ComponentWindow) -> LayoutInfo
[src]
fn input_event(
self: Pin<&Self>,
event: MouseEvent,
_window: &ComponentWindow,
_app_component: ComponentRefPin<'_>
) -> InputEventResult
[src]
self: Pin<&Self>,
event: MouseEvent,
_window: &ComponentWindow,
_app_component: ComponentRefPin<'_>
) -> InputEventResult
fn key_event(
self: Pin<&Self>,
_: &KeyEvent,
_window: &ComponentWindow
) -> KeyEventResult
[src]
self: Pin<&Self>,
_: &KeyEvent,
_window: &ComponentWindow
) -> KeyEventResult
fn focus_event(self: Pin<&Self>, _: &FocusEvent, _window: &ComponentWindow)
[src]
impl ItemConsts for TouchArea
[src]
const cached_rendering_data_offset: FieldOffset<TouchArea, CachedRenderingData>
[src]
impl<'__dummy_lifetime> Unpin for TouchArea where
__MustNotImplUnpin<'__dummy_lifetime>: Unpin,
[src]
__MustNotImplUnpin<'__dummy_lifetime>: Unpin,
Auto Trait Implementations
impl !RefUnwindSafe for TouchArea
impl !Send for TouchArea
impl !Sync for TouchArea
impl !UnwindSafe for TouchArea
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,
pub 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, 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.
pub 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>,