Searched refs:SCREEN_WIDTH (Results 1 – 9 of 9) sorted by relevance
/StarryEngine/starry_server/src/core/ |
H A D | window_manager.rs | 18 core::{SCREEN_HEIGHT, SCREEN_WIDTH}, 83 cursor_x: Cell::new(SCREEN_WIDTH as i32 / 2), in new() 129 x = cmp::max(0, (SCREEN_WIDTH as i32 - width) / 2); in window_new() 205 let max_x: i32 = SCREEN_WIDTH as i32; in handle_mouse_relative_event()
|
H A D | mod.rs | 20 pub const SCREEN_WIDTH: usize = 1440; constant 79 SCREEN_WIDTH as i32, in run()
|
H A D | compositor.rs | 12 use super::{starry_server, window_manager::window_manager, SCREEN_WIDTH}; 124 let offset = (((y + display_redraw.top()) * SCREEN_WIDTH as i32) in redraw_all()
|
/StarryEngine/starry_client/src/ |
H A D | window.rs | 15 const SCREEN_WIDTH: usize = 1440; constant 69 let width = min(self.width() as i32, SCREEN_WIDTH as i32 - self.x); in sync() 75 let offset = (((y + self.y()) * SCREEN_WIDTH as i32) + x + self.x()) * 4; in sync()
|
/StarryEngine/starry_server/src/ |
H A D | main.rs | 6 core::{starry_server, StarryServer, SCREEN_HEIGHT, SCREEN_WIDTH}, 15 SCREEN_WIDTH as i32, in main()
|
/StarryEngine/starry_applications/src/asset_manager/code/ |
H A D | mod.rs | 6 use starry_server::core::{SCREEN_HEIGHT, SCREEN_WIDTH}; 42 Rect::new(0, 0, SCREEN_WIDTH as u32, SCREEN_HEIGHT as u32), in new() 47 Rect::new(SCREEN_WIDTH as i32 - 64, SCREEN_HEIGHT as i32 - 64, 64, 64), in new()
|
/StarryEngine/starry_toolkit/src/ |
H A D | main.rs | 2 use starry_server::core::{SCREEN_HEIGHT, SCREEN_WIDTH}; 14 Rect::new(0, 0, SCREEN_WIDTH as u32, SCREEN_HEIGHT as u32), in main()
|
/StarryEngine/starry_server/src/base/ |
H A D | image.rs | 10 use crate::core::{SCREEN_HEIGHT, SCREEN_WIDTH}; 273 if img_width > SCREEN_WIDTH as u32 || img_heigh > SCREEN_HEIGHT as u32 { in from_path() 275 SCREEN_WIDTH as u32, in from_path()
|
/StarryEngine/starry_toolkit/src/widgets/ |
H A D | mod.rs | 8 use starry_server::core::{SCREEN_HEIGHT, SCREEN_WIDTH}; 159 Rect::new(0, 0, SCREEN_WIDTH as u32, SCREEN_HEIGHT as u32) in arrange_self_base()
|