Struct sapp_linux::_sapp_state
source · [−]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: bool
window_width: c_int
window_height: c_int
framebuffer_width: c_int
framebuffer_height: c_int
sample_count: c_int
swap_interval: c_int
dpi_scale: c_float
gles2_fallback: bool
first_frame: bool
init_called: bool
cleanup_called: bool
quit_requested: bool
quit_ordered: bool
html5_canvas_name: *const c_char
html5_ask_leave_site: bool
window_title: [c_char; 128]
window_title_wide: [i32; 128]
frame_count: u64
mouse_x: c_float
mouse_y: c_float
win32_mouse_tracked: bool
onscreen_keyboard_shown: bool
event: sapp_event
desc: sapp_desc
keycodes: [sapp_keycode; 512]
xdnd: sapp_xdnd
drop: sapp_drop
Trait Implementations
sourceimpl Clone for _sapp_state
impl Clone for _sapp_state
sourcefn clone(&self) -> _sapp_state
fn clone(&self) -> _sapp_state
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for _sapp_state
impl !Send for _sapp_state
impl !Sync for _sapp_state
impl Unpin for _sapp_state
impl UnwindSafe for _sapp_state
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more