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]

pub const FIELD_OFFSETS: WindowFieldsOffsets[src]

Return a struct containing the offset of for the fields of this struct

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]

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 Default for Window[src]

impl HasStaticVTable<ItemVTable> for Window[src]

impl Item for Window[src]

impl ItemConsts for Window[src]

impl<'__dummy_lifetime> Unpin for Window where
    __MustNotImplUnpin<'__dummy_lifetime>: Unpin
[src]

Auto Trait Implementations

impl !RefUnwindSafe for Window

impl Send for Window

impl !Sync for Window

impl UnwindSafe for Window

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.