Home
last modified time | relevance | path

Searched refs:usize (Results 1 – 10 of 10) sorted by relevance

/StarryEngine/starry_server/src/base/
H A Dimage.rs34 Some(&self.data[start as usize..end as usize]) in next()
63 .split_at_mut(self.rect.top() as usize * self.w as usize) in next()
68 let (row, tail) = data.split_at_mut(self.w as usize); in next()
70 let start = self.rect.left() as usize; in next()
71 let end = self.rect.left() as usize + self.rect.width() as usize; in next()
99 &mut data[rect.top() as usize * w as usize..][..rect.height() as usize * w as usize]; in into_iter()
254 vec![color; (width * height) as usize].into_boxed_slice(), in from_color()
288 image.data[offset as usize] = in from_path()
338 let mut dst_color = vec![Color { data: 0 }; w as usize * h as usize].into_boxed_slice(); in resize()
348 self.w as usize, in resize()
[all …]
/StarryEngine/starry_toolkit/src/layout/
H A Dgrid.rs39 upper_limit: Cell<usize>,
41 current_row: Cell<usize>,
43 current_column: Cell<usize>,
45 pub max_row: Cell<usize>,
47 pub max_column: Cell<usize>,
49 pub elements: RefCell<BTreeMap<(usize, usize), Arc<dyn Widget>>>,
51 pub focused_id: Cell<Option<(usize, usize)>>,
90 pub fn set_upper_limit(&self, columns: usize) -> &Self { in set_upper_limit()
100 pub fn add_element<T: Widget>(&self, element: &Arc<T>) -> (usize, usize) { in add_element() argument
143 pub fn insert<T: Widget>(&self, column: usize, row: usize, element: &Arc<T>) { in insert() argument
[all …]
H A Dlist.rs41 current_index: Cell<usize>,
42 elements: RefCell<BTreeMap<usize, Arc<dyn Widget>>>,
43 focused_id: Cell<Option<usize>>,
84 pub fn add_element<T: Widget>(&self, element: &Arc<T>) -> usize { in add_element() argument
/StarryEngine/starry_client/src/base/
H A Drenderer.rs58 let old_color = &mut data[y as usize * w as usize + x as usize].data; in pixel()
86 let mut offset = (c as usize) * 16; in char()
127 let start = start as usize * self.width() as usize; in image_over()
139 let w = w as usize; in image_opaque()
140 let mut h = h as usize; in image_opaque()
141 let width = self.width() as usize; in image_opaque()
142 let height = self.height() as usize; in image_opaque()
143 let start_x = start_x as usize; in image_opaque()
144 let start_y = start_y as usize; in image_opaque()
174 let w = w as usize; in image_fast()
[all …]
/StarryEngine/starry_applications/src/asset_manager/code/
H A Dmod.rs25 items: BTreeMap<(usize, usize), Arc<AssetItemGrid>>,
137 .contains_key(&(nxt_row as usize, nxt_col as usize)) in init_grid()
149 .get(&(nxt_row as usize, nxt_col as usize)) in init_grid()
/StarryEngine/starry_server/src/core/
H A Dwindow_manager.rs55 _hover: RefCell<Option<usize>>,
57 pub order: RefCell<VecDeque<usize>>,
59 pub zbuffer: RefCell<Vec<(usize, WindowZOrderMode, usize)>>,
61 pub windows: RefCell<BTreeMap<usize, Window>>,
121 let id = self.next_id.get() as usize; // 新窗口的id in window_new()
H A Dmod.rs20 pub const SCREEN_WIDTH: usize = 1440;
23 pub const SCREEN_HEIGHT: usize = 900;
/StarryEngine/starry_client/src/
H A Dwindow.rs15 const SCREEN_WIDTH: usize = 1440;
18 const SCREEN_HEIGHT: usize = 900;
107 data_opt: Some(vec![color; (w * h) as usize].into_boxed_slice()), in new()
/StarryEngine/starry_toolkit/src/widgets/
H A Dlabel.rs92 let _ = omit_str.split_off(max_count as usize); in handle_overflow()
/StarryEngine/starry_toolkit/src/base/
H A Dpanel.rs200 pub fn add_child<T: Widget>(&self, widget: &Arc<T>) -> usize { in add_child() argument