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
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]
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]
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 HasStaticVTable<ItemVTable> for TouchArea
[src]
impl HasStaticVTable<ItemVTable> for TouchArea
[src]fn static_vtable() -> &'static ItemVTable
[src]
impl Item for TouchArea
[src]
impl Item for TouchArea
[src]fn init(self: Pin<&Self>, _window: &ComponentWindow)
[src]
fn geometry(self: Pin<&Self>) -> Rect
[src]
fn layouting_info(self: Pin<&Self>, _window: &ComponentWindow) -> LayoutInfo
[src]
fn implicit_size(self: Pin<&Self>, _window: &ComponentWindow) -> Size
[src]
fn input_event_filter_before_children(
self: Pin<&Self>,
event: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventFilterResult
[src]
self: Pin<&Self>,
event: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventFilterResult
fn input_event(
self: Pin<&Self>,
event: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventResult
[src]
self: Pin<&Self>,
event: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> 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]
fn render(self: Pin<&Self>, _backend: &mut &'_ mut dyn ItemRenderer)
[src]
impl ItemConsts for TouchArea
[src]
impl ItemConsts for TouchArea
[src]const cached_rendering_data_offset: FieldOffset<TouchArea, CachedRenderingData>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for TouchArea
impl !RefUnwindSafe for TouchArea
impl !UnwindSafe for TouchArea
impl !UnwindSafe for TouchArea