Struct rokol::glue::sapp::Rokol[][src]

pub struct Rokol {
Show 14 fields 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,
}
Expand description

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

Runs rokol application. WARNING: you can’t use rokol::gfx until you setup rokol::gfx (c.f. run_delayed).

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.