pub struct _sapp_state {
Show 28 fields pub valid: bool, pub window_width: c_int, pub window_height: c_int, pub framebuffer_width: c_int, pub framebuffer_height: c_int, pub sample_count: c_int, pub swap_interval: c_int, pub dpi_scale: c_float, pub gles2_fallback: bool, pub first_frame: bool, pub init_called: bool, pub cleanup_called: bool, pub quit_requested: bool, pub quit_ordered: bool, pub html5_canvas_name: *const c_char, pub html5_ask_leave_site: bool, pub window_title: [c_char; 128], pub window_title_wide: [i32; 128], pub frame_count: u64, pub mouse_x: c_float, pub mouse_y: c_float, pub win32_mouse_tracked: bool, pub onscreen_keyboard_shown: bool, pub event: sapp_event, pub desc: sapp_desc, pub keycodes: [sapp_keycode; 512], pub xdnd: sapp_xdnd, pub drop: sapp_drop,
}

Fields

valid: boolwindow_width: c_intwindow_height: c_intframebuffer_width: c_intframebuffer_height: c_intsample_count: c_intswap_interval: c_intdpi_scale: c_floatgles2_fallback: boolfirst_frame: boolinit_called: boolcleanup_called: boolquit_requested: boolquit_ordered: boolhtml5_canvas_name: *const c_charhtml5_ask_leave_site: boolwindow_title: [c_char; 128]window_title_wide: [i32; 128]frame_count: u64mouse_x: c_floatmouse_y: c_floatwin32_mouse_tracked: boolonscreen_keyboard_shown: boolevent: sapp_eventdesc: sapp_desckeycodes: [sapp_keycode; 512]xdnd: sapp_xdnddrop: sapp_drop

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.