Expand description
This crate uses glfw-passthrough
crate as a window backend for egui.
Re-exports§
pub use glfw;
Structs§
- This is the window backend for egui using
glfw
You can configure most of it at startup usingGlfwConfig
. - The configuration struct for Glfw Backend creation
Functions§
- This converts egui’s cursor icon into glfw’s cursor which can be set by glfw. we can get some sample cursor images and use them in place of missing icons (like diagonal resizing cursor)
- will return true if pressed, false if released and None if repeat this allows us to use
unwrap_or_default
to get pressed as false when we get a key repeat event - glfw separates keys into two categories.
- a function to get the matching egui key event for a given glfw key. egui does not support all the keys provided here. This just matches the enum to map to the relevant egui key.
Type Aliases§
- Signature of Glfw callback function inside
GlfwConfig
- This is the signature for window callback inside new function of
GlfwBackend