Struct sixtyfps_corelib::items::Window [−][src]
#[repr(C)]pub struct Window { pub width: Property<f32>, pub height: Property<f32>, pub background: Property<Color>, pub title: Property<SharedString>, pub default_font_family: Property<SharedString>, pub default_font_size: Property<f32>, pub default_font_weight: Property<i32>, pub cached_rendering_data: CachedRenderingData, }
The implementation of the Window
element
Fields
width: Property<f32>
height: Property<f32>
background: Property<Color>
title: Property<SharedString>
default_font_family: Property<SharedString>
default_font_size: Property<f32>
default_font_weight: Property<i32>
cached_rendering_data: CachedRenderingData
Implementations
impl Window
[src]
impl Window
[src]pub const FIELD_OFFSETS: WindowFieldsOffsets
[src]
Return a struct containing the offset of for the fields of this struct
impl Window
[src]
impl Window
[src]pub fn width(self: Pin<&Self>) -> f32
[src]
pub fn height(self: Pin<&Self>) -> f32
[src]
pub fn background(self: Pin<&Self>) -> Color
[src]
pub fn title(self: Pin<&Self>) -> SharedString
[src]
pub fn default_font_family(self: Pin<&Self>) -> SharedString
[src]
pub fn default_font_size(self: Pin<&Self>) -> f32
[src]
pub fn default_font_weight(self: Pin<&Self>) -> i32
[src]
impl Window
[src]
impl Window
[src]pub fn default_font_properties(self: Pin<&Self>) -> FontRequest
[src]
Returns the font properties that can be used as defaults for child items
Trait Implementations
impl HasStaticVTable<ItemVTable> for Window
[src]
impl HasStaticVTable<ItemVTable> for Window
[src]fn static_vtable() -> &'static ItemVTable
[src]
impl Item for Window
[src]
impl Item for Window
[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>,
_: &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 Window
[src]
impl ItemConsts for Window
[src]