Struct comfy_wgpu::GlobalState
source · pub struct GlobalState {Show 20 fields
pub mouse_wheel: (f32, f32),
pub mouse_position: Vec2,
pub mouse_rel: IVec2,
pub mouse_world: Vec2,
pub mouse_locked: bool,
pub egui_scale_factor: f32,
pub frame: u32,
pub fps: i32,
pub mesh_queue: Vec<MeshDraw, Global>,
pub text_queue: Vec<DrawText, Global>,
pub clear_color: Color,
pub screen_size: Vec2,
pub pressed: HashSet<KeyCode, RandomState>,
pub just_pressed: HashSet<KeyCode, RandomState>,
pub just_released: HashSet<KeyCode, RandomState>,
pub mouse_pressed: HashSet<MouseButton, RandomState>,
pub mouse_just_pressed: HashSet<MouseButton, RandomState>,
pub mouse_just_released: HashSet<MouseButton, RandomState>,
pub play_sound_queue: Vec<Sound, Global>,
pub stop_sound_queue: Vec<Sound, Global>,
}Fields§
§mouse_wheel: (f32, f32)§mouse_position: Vec2§mouse_rel: IVec2§mouse_world: Vec2§mouse_locked: bool§egui_scale_factor: f32§frame: u32§fps: i32§mesh_queue: Vec<MeshDraw, Global>§text_queue: Vec<DrawText, Global>§clear_color: Color§screen_size: Vec2§pressed: HashSet<KeyCode, RandomState>§just_pressed: HashSet<KeyCode, RandomState>§just_released: HashSet<KeyCode, RandomState>§mouse_pressed: HashSet<MouseButton, RandomState>§mouse_just_pressed: HashSet<MouseButton, RandomState>§mouse_just_released: HashSet<MouseButton, RandomState>§play_sound_queue: Vec<Sound, Global>§stop_sound_queue: Vec<Sound, Global>Trait Implementations§
source§impl Default for GlobalState
impl Default for GlobalState
source§fn default() -> GlobalState
fn default() -> GlobalState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for GlobalState
impl Send for GlobalState
impl Sync for GlobalState
impl Unpin for GlobalState
impl UnwindSafe for GlobalState
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more