Crate egui_winit

Crate egui_winit 

Source
Expand description

egui bindings for winit.

The library translates winit events to egui, handled copy/paste, updates the cursor, open links clicked in egui, etc.

ยงFeature flags

Re-exportsยง

pub use accesskit_winit;
pub use egui;
pub use winit;

Modulesยง

clipboard
safe_area ๐Ÿ”’
window_settings ๐Ÿ”’

Structsยง

EventResponse
State
Handles the integration between egui and a winit Window.
WindowSettings
Can be used to store native window settings (position and size).

Enumsยง

ActionRequested

Functionsยง

apply_viewport_builder_to_window
Applies what create_winit_window_builder couldnโ€™t
create_window
Build and intitlaize a window.
create_winit_window_attributes
inner_rect_in_points
is_copy_command ๐Ÿ”’
is_cut_command ๐Ÿ”’
is_paste_command ๐Ÿ”’
is_printable_char ๐Ÿ”’
Winit sends special keys (backspace, delete, F1, โ€ฆ) as characters. Ignore those. We also ignore โ€˜\rโ€™, โ€˜\nโ€™, โ€˜\tโ€™. Newlines are handled by the Key::Enter event.
key_from_key_code ๐Ÿ”’
key_from_named_key ๐Ÿ”’
key_from_winit_key ๐Ÿ”’
open_url_in_browser ๐Ÿ”’
outer_rect_in_points
pixels_per_point
Calculate the pixels_per_point for a given window, given the current egui zoom factor
process_viewport_command ๐Ÿ”’
process_viewport_commands
screen_size_in_pixels
short_device_event_description
Short and fast description of a device event. Useful for logging and profiling.
short_window_event_description
Short and fast description of a window event. Useful for logging and profiling.
to_egui_theme ๐Ÿ”’
to_winit_icon ๐Ÿ”’
translate_cursor ๐Ÿ”’
translate_mouse_button ๐Ÿ”’
update_viewport_info
Update the given viewport info with the current state of the window.