/StarryEngine/starry_client/src/base/ |
H A D | color.rs | 13 pub const fn rgb(r: u8, g: u8, b: u8) -> Self { in rgb() argument 20 pub const fn rgba(r: u8, g: u8, b: u8, a: u8) -> Self { in rgba() argument 27 pub fn r(&self) -> u8 { in r() argument 28 ((self.data & 0x00FF0000) >> 16) as u8 in r() 32 pub fn g(&self) -> u8 { in g() argument 33 ((self.data & 0x0000FF00) >> 8) as u8 in g() 37 pub fn b(&self) -> u8 { in b() argument 38 (self.data & 0x000000FF) as u8 in b() 42 pub fn a(&self) -> u8 { in a() argument 43 ((self.data & 0xFF000000) >> 24) as u8 in a() [all …]
|
H A D | event.rs | 63 pub scancode: u8, 82 scancode: event.b as u8, in from_event() 129 pub fn new(byte: u8) -> Self { in new()
|
H A D | renderer.rs | 8 static FONT_ASSET: &[u8] = include_bytes!("../font/unifont.font"); 224 fn arc(&mut self, x0: i32, y0: i32, radius: i32, parts: u8, color: Color) { in arc() argument
|
/StarryEngine/starry_server/src/core/input/ |
H A D | inputs.rs | 12 pub struct MouseFlags: u8 { 44 packet_index: u8, 52 scale: u8, 79 fn handle(&mut self, packet: u8) -> Vec<Event> { in handle() 82 fn sign_extend(value: u8) -> i16 { in handle() 154 fn handle(&mut self, _packet: u8) -> Vec<Event> { in handle()
|
H A D | mod.rs | 60 fn handle(&mut self, packet: u8) -> Vec<Event>; in handle() 64 let mut buf: [u8; 1024] = [0; 1024]; in polling()
|
/StarryEngine/starry_server/src/core/ |
H A D | mod.rs | 25 static DESKTOP_BG: &[u8] = include_bytes!("../resource/desktop_bg.png"); 26 static CURSOR_NORMAL: &[u8] = include_bytes!("../resource/cursor_normal.png");
|
H A D | window_manager.rs | 117 image_path: &[u8], in window_new() argument
|
/StarryEngine/starry_server/src/base/ |
H A D | image.rs | 268 pub fn from_path(path: &[u8]) -> Option<Self> { in from_path() 341 unsafe { slice::from_raw_parts(self.data.as_ptr() as *const u8, self.data.len() * 4) }; in resize() constant 344 slice::from_raw_parts_mut(dst_color.as_mut_ptr() as *mut u8, dst_color.len() * 4) in resize()
|
H A D | window.rs | 50 pub fn new(x: i32, y: i32, _w: i32, _h: i32, scale: i32, image_path: &[u8]) -> Window { in new()
|
/StarryEngine/starry_toolkit/src/widgets/ |
H A D | image.rs | 60 pub fn new_from_path(path: &[u8]) -> Option<Arc<Self>> { in new_from_path() 68 pub fn set_from_path(&self, path: &[u8]) { in set_from_path() argument
|
/StarryEngine/starry_applications/src/asset_manager/code/ |
H A D | asset_item_grid.rs | 21 const FILE_ICON_PATH: &[u8] = include_bytes!("../resource/file_icon.png"); 22 const DIR_ICON_PATH: &[u8] = include_bytes!("../resource/dir_icon.png");
|
H A D | mod.rs | 18 const DESKTOP_BG_PATH: &[u8] = include_bytes!("../resource/desktop_bg.png"); 19 const LOADING_IMG_PATH: &[u8] = include_bytes!("../resource/loading.png");
|
/StarryEngine/starry_client/src/font/ |
H A D | unifont.rs | 28 data[i] = u8::from_str_radix(string, 16).unwrap(); in main()
|
/StarryEngine/starry_toolkit/src/base/ |
H A D | panel.rs | 318 let mut bufffer: [u8; 128] = [0; 128]; in polling_tty()
|