Struct sixtyfps_corelib::items::FocusScope [−][src]
#[repr(C)]pub struct FocusScope { pub x: Property<f32>, pub y: Property<f32>, pub width: Property<f32>, pub height: Property<f32>, pub has_focus: Property<bool>, pub key_pressed: Callback<(KeyEvent,), EventResult>, pub key_released: Callback<(KeyEvent,), EventResult>, pub cached_rendering_data: CachedRenderingData, }
A runtime item that exposes key
Fields
x: Property<f32>
y: Property<f32>
width: Property<f32>
height: Property<f32>
has_focus: Property<bool>
key_pressed: Callback<(KeyEvent,), EventResult>
key_released: Callback<(KeyEvent,), EventResult>
cached_rendering_data: CachedRenderingData
FIXME: remove this
Implementations
impl FocusScope
[src]
impl FocusScope
[src]pub const FIELD_OFFSETS: FocusScopeFieldsOffsets
[src]
Return a struct containing the offset of for the fields of this struct
impl FocusScope
[src]
impl FocusScope
[src]Trait Implementations
impl Default for FocusScope
[src]
impl Default for FocusScope
[src]fn default() -> FocusScope
[src]
impl HasStaticVTable<ItemVTable> for FocusScope
[src]
impl HasStaticVTable<ItemVTable> for FocusScope
[src]fn static_vtable() -> &'static ItemVTable
[src]
impl Item for FocusScope
[src]
impl Item for FocusScope
[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>,
_: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventFilterResult
[src]
self: Pin<&Self>,
_: 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>,
event: &KeyEvent,
_window: &ComponentWindow
) -> KeyEventResult
[src]
self: Pin<&Self>,
event: &KeyEvent,
_window: &ComponentWindow
) -> KeyEventResult
fn focus_event(self: Pin<&Self>, event: &FocusEvent, _window: &ComponentWindow)
[src]
fn render(self: Pin<&Self>, _backend: &mut &'_ mut dyn ItemRenderer)
[src]
impl ItemConsts for FocusScope
[src]
impl ItemConsts for FocusScope
[src]const cached_rendering_data_offset: FieldOffset<FocusScope, CachedRenderingData>
[src]
impl<'__dummy_lifetime> Unpin for FocusScope where
__MustNotImplUnpin<'__dummy_lifetime>: Unpin,
[src]
impl<'__dummy_lifetime> Unpin for FocusScope where
__MustNotImplUnpin<'__dummy_lifetime>: Unpin,
[src]Auto Trait Implementations
impl !RefUnwindSafe for FocusScope
impl !RefUnwindSafe for FocusScope
impl !Send for FocusScope
impl !Send for FocusScope
impl !Sync for FocusScope
impl !Sync for FocusScope
impl !UnwindSafe for FocusScope
impl !UnwindSafe for FocusScope