Searched refs:data (Results 1 – 8 of 8) sorted by relevance
/StarryEngine/starry_server/src/base/ |
H A D | image.rs | 21 data: &'a [Color], field 34 Some(&self.data[start as usize..end as usize]) in next() 48 data: &'a mut [Color], field 58 let mut data = mem::take(&mut self.data); in next() localVariable 62 data = data in next() 68 let (row, tail) = data.split_at_mut(self.w as usize); in next() 69 self.data = tail; in next() 87 data: &'a mut [Color], field 96 let Self { rect, w, data } = self; in into_iter() 98 let data = in into_iter() localVariable [all …]
|
/StarryEngine/starry_client/src/base/ |
H A D | renderer.rs | 28 fn data(&self) -> &[Color]; in data() method 53 let data = self.data_mut(); in pixel() localVariable 56 let new_color = color.data; in pixel() 58 let old_color = &mut data[y as usize * w as usize + x as usize].data; in pixel() 113 fn image(&mut self, start_x: i32, start_y: i32, w: u32, h: u32, data: &[Color]) { in image() 115 RenderMode::Blend => self.image_fast(start_x, start_y, w, h, data), in image() 116 RenderMode::Overwrite => self.image_opaque(start_x, start_y, w, h, data), in image() 201 let new = image_data[i].data; in image_fast() 204 let old = &mut window_data[start + k].data; in image_fast() 471 let alpha = (color.data >> 24) & 0xFF; in rect() [all …]
|
H A D | color.rs | 7 pub data: u32, field 15 data: 0xFF000000 | ((r as u32) << 16) | ((g as u32) << 8) | (b as u32), in rgb() 22 data: ((a as u32) << 24) | ((r as u32) << 16) | (g as u32) << 8 | (b as u32), in rgba() 28 ((self.data & 0x00FF0000) >> 16) as u8 in r() 33 ((self.data & 0x0000FF00) >> 8) as u8 in g() 38 (self.data & 0x000000FF) as u8 in b() 43 ((self.data & 0xFF000000) >> 24) as u8 in a() 80 write!(f, "{:#010X}", { self.data }) in fmt()
|
/StarryEngine/starry_client/src/font/ |
H A D | unifont.rs | 24 let mut data = [0; 16]; in main() localVariable 26 for i in 0..data.len() { in main() 28 data[i] = u8::from_str_radix(string, 16).unwrap(); in main() 30 println!("{:>04X}:{:?}", num, data); in main() 32 output.write(&data).unwrap(); in main()
|
/StarryEngine/starry_toolkit/src/base/ |
H A D | panel.rs | 56 fn data(&self) -> &[Color] { in data() method 57 self.window.data() in data()
|
/StarryEngine/starry_client/src/ |
H A D | window.rs | 59 fn data(&self) -> &[Color] { in data() method
|
/StarryEngine/starry_toolkit/src/widgets/ |
H A D | image.rs | 132 image.data(), in draw()
|
/StarryEngine/ |
H A D | LICENSE | 144 such as by intimate data communication or control flow between those
|