Struct rokol::Rokol[][src]

pub struct Rokol {
    pub w: u32,
    pub h: u32,
    pub title: String,
    pub msaa_sample_count: u32,
    pub swap_interval: u32,
    pub use_high_dpi: bool,
    pub is_full_screen: bool,
    pub enable_alpha: bool,
    pub use_user_cursor_image: bool,
    pub enable_clipboard: bool,
    pub max_clipboard_size_in_bytes: u32,
    pub enable_drag_and_drop: bool,
    pub n_max_dropped_files: u32,
    pub max_dropped_file_path_len_in_bytes: u32,
}

Entry point of Rokol applications

Basically a wrapper of rokol_ffi::app::sapp_desc.

Fields

w: u32

Preferred width of the window / canvas

h: u32

Preferred height of the window / canvas

title: String

Window title

msaa_sample_count: u32swap_interval: u32

(Platform) Preferred swap interval

use_high_dpi: boolis_full_screen: boolenable_alpha: bool

(Platform)

use_user_cursor_image: boolenable_clipboard: boolmax_clipboard_size_in_bytes: u32enable_drag_and_drop: booln_max_dropped_files: u32max_dropped_file_path_len_in_bytes: u32

Implementations

impl Rokol[src]

pub fn run<T: RApp>(&self, app: &mut T) -> Result[src]

Trait Implementations

impl Clone for Rokol[src]

impl Debug for Rokol[src]

impl Default for Rokol[src]

Auto Trait Implementations

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.