Module rokol::app [−][src]
Application (FFI
)
crate::Rokol::run
runs an implementation of RApp
.
Structs
Mod | Rokol modifier keys as bitflags |
Enums
EventType | Type of |
Key |
|
Mouse |
|
Traits
RApp |
|
RAppFfiCallback |
|
Functions
cancel_quit | Cancel a pending quit (when |
clipboard | (Clipboard) Read string from clipboard (usually during |
color_fmt | TODO: use |
consume_event | Call from inside event callback to consume the current event (don't forward to platform) |
depth_format | TODO: use |
dpi_scale | Dpi scaling factor (window pixels to framebuffer pixels) |
dropped_file_path | (Drag) The dropped file paths |
frame_count | Current frame counter (for comparison with sapp_event.frame_count) |
height | Height of the current frame buffer in pixels |
height_f | |
is_fullscreen | |
is_high_dpi | True when high_dpi was requested and actually running in a high-dpi scenario |
is_kbd_shown | (Mobile) True if the mobile device onscreen keyboard is currently shown |
is_mouse_locked | True if in mouse-pointer-lock mode (this may toggle a few frames later) |
is_mouse_shown | Show or hide the mouse cursor |
is_valid | Returns true after Rokol app is initialized |
n_dropped_files | (Drag) The total number of dropped files (after an |
quit | Initiate a "hard quit" (quit application without sending |
request_quit | Initiate a "soft quit" (sends |
sample_count | Default frame buffer count |
set_clipboard | (Clipboard) Write string into clipboard |
set_lock_mouse | |
set_show_kbd | (Mobile) Show or hide the mobile device onscreen keyboard |
set_show_mouse | Show or hide the mouse cursor |
set_win_title | (Desktop) Set the window title (only on desktop platforms) |
size | (Non-Sokol) size of the current frame buffer in pixels |
size_f | (Non-Sokol) size of the current frame buffer in pixels |
size_f_scaled | (Non-Sokol) size of the window (not the frame buffer) |
size_scaled | (Non-Sokol) size of the window (not the frame buffer) |
toggle_fullscreen | |
width | Width of the current frame buffer in pixels |
width_f |
Type Definitions
Event |
|
TouchPoint |
|