Searched refs:event (Results 1 – 11 of 11) sorted by relevance
/StarryEngine/starry_client/src/base/ |
H A D | event.rs | 79 pub fn from_event(event: Event) -> KeyEvent { in from_event() 81 character: char::from_u32(event.a as u32).unwrap_or('\0'), in from_event() 82 scancode: event.b as u8, in from_event() 83 pressed: event.b & (1 << 8) == (1 << 8), in from_event() 108 pub fn from_event(event: Event) -> MouseRelativeEvent { in from_event() 110 dx: event.a as i32, in from_event() 111 dy: event.b as i32, in from_event() 147 pub fn from_event(event: Event) -> ButtonEvent { in from_event() 149 left: event.a & (1 << 0) == 1, in from_event() 150 middle: event.a & (1 << 1) == 1, in from_event() [all …]
|
H A D | mod.rs | 2 pub mod event; module
|
/StarryEngine/starry_server/src/core/ |
H A D | window_manager.rs | 8 use starry_client::base::event::{ 163 pub fn send_event(&self, event: Event) { in send_event() 164 self.events.borrow_mut().push(event); in send_event() 174 while let Some(event) = self.events.borrow_mut().pop() { in handle_all_events() 175 self.handle_event(event); in handle_all_events() 189 EventOption::MouseRelative(event) => self.handle_mouse_relative_event(event), in handle_event() 190 EventOption::Button(event) => self.handle_button_event(event), in handle_event() 191 EventOption::Key(event) => self.handle_key_event(event), in handle_event() 192 EventOption::WindowMove(event) => self.handle_window_move_event(event), in handle_event() 193 EventOption::WindowResize(event) => self.handle_window_resize_event(event), in handle_event() [all …]
|
/StarryEngine/starry_toolkit/src/base/ |
H A D | panel.rs | 19 use super::{event::Event, rect::Rect}; 278 while let Some(event) = self.events.borrow_mut().pop() { in handle_events() 284 widget.handle_event(event, self.is_focused(widget), &self.redraw, &caught); in handle_events() 294 pub fn push_event(&self, event: Event) { in push_event() 295 self.events.borrow_mut().push(event); in push_event()
|
H A D | mod.rs | 1 pub mod event; module
|
/StarryEngine/starry_toolkit/src/layout/ |
H A D | grid.rs | 11 base::{event::Event, panel::Panel, rect::Rect, vector2::Vector2}, 288 event: Event, in handle_event() 293 match event { in handle_event()
|
H A D | list.rs | 217 _event: crate::base::event::Event, in handle_event()
|
/StarryEngine/starry_server/src/core/input/ |
H A D | mod.rs | 3 use starry_client::base::event::Event;
|
H A D | inputs.rs | 3 use starry_client::base::event::{ButtonEvent, Event, MouseRelativeEvent};
|
/StarryEngine/starry_server/src/base/ |
H A D | window.rs | 3 use starry_client::base::event::Event;
|
/StarryEngine/starry_toolkit/src/widgets/ |
H A D | mod.rs | 11 base::{event::Event, panel::Panel, rect::Rect, vector2::Vector2},
|