[][src]Struct winflip::Desc

pub struct Desc {
    pub init_cb: fn(),
    pub frame_cb: fn(),
    pub cleanup_cb: fn(),
    pub event_cb: fn(_: &Event),
    pub fail_cb: fn(),
    pub width: u32,
    pub height: u32,
    pub sample_count: u32,
    pub swap_interval: u32,
    pub high_dpi: bool,
    pub alpha: bool,
    pub window_title: String,
    pub user_cursor: bool,
    pub enable_clipboard: bool,
    pub clipboard_size: usize,
}

sapp_desc type TODO: Pull functions out into a trait or such

TODO: Add user data. C's concept of initialization and ownership doesn't work well for us here.

Fields

init_cb: fn()frame_cb: fn()cleanup_cb: fn()event_cb: fn(_: &Event)fail_cb: fn()width: u32height: u32sample_count: u32swap_interval: u32high_dpi: boolalpha: boolwindow_title: Stringuser_cursor: boolenable_clipboard: boolclipboard_size: usize

Trait Implementations

impl Clone for Desc[src]

Auto Trait Implementations

impl RefUnwindSafe for Desc

impl Send for Desc

impl Sync for Desc

impl Unpin for Desc

impl UnwindSafe for Desc

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.