Home
last modified time | relevance | path

Searched refs:len (Results 1 – 9 of 9) sorted by relevance

/StarryEngine/starry_client/src/base/ !
H A Drenderer.rs88 let row_data = if offset < FONT_ASSET.len() { in char()
129 let stop = cmp::min(start + image_data.len(), window_data.len()); in image_over()
130 let end = cmp::min(image_data.len(), window_data.len() - start); in image_over()
200 if i < image_data.len() { in image_fast()
203 if alpha > 0 && (start + k) < window_data.len() && (start + k) < stop { in image_fast()
413 } else if points.len() == 1 {
416 for i in 0..points.len() - 1 {
502 for i in 0..data.len() as isize { in set()
526 if p >= self.data().len() { in get_pixel()
/StarryEngine/starry_server/src/base/ !
H A Dimage.rs157 let len = cmp::min(self_row.len(), other_row.len()); in cover() localVariable
159 ptr::copy(other_row.as_ptr(), self_row.as_mut_ptr(), len); in cover()
341 unsafe { slice::from_raw_parts(self.data.as_ptr() as *const u8, self.data.len() * 4) }; in resize()
344 slice::from_raw_parts_mut(dst_color.as_mut_ptr() as *mut u8, dst_color.len() * 4) in resize()
/StarryEngine/starry_toolkit/src/layout/ !
H A Dgrid.rs180 while col >= cols.len() { in arrange_elements()
183 while row >= rows.len() { in arrange_elements()
201 self.max_row.set(rows.len()); in arrange_elements()
202 self.max_column.set(cols.len()); in arrange_elements()
219 let grid_width = cols.len() as i32 * (cols[0].width as i32 + space_x) - space_x; in arrange_elements()
220 let grid_height = rows.len() as i32 * (rows[0].width as i32 + space_y) - space_y; in arrange_elements()
/StarryEngine/starry_server/src/core/ !
H A Dcompositor.rs79 let len = zbuffer.len(); in redraw_all() localVariable
80 for index in (0..len).rev() { in redraw_all()
H A Dwindow_manager.rs289 for index in 0..order.len() { in rezbuffer()
/StarryEngine/starry_toolkit/src/widgets/ !
H A Dlabel.rs83 self.resize_base(text.len() as u32 * 8 as u32, 16); in handle_overflow()
89 if text.len() as u32 * 8 > rect.width { in handle_overflow()
102 self.show_text.borrow().len() as u32 * 8, in handle_overflow()
/StarryEngine/starry_applications/src/asset_manager/code/ !
H A Dmod.rs77 if asset_manager.cur_path.len() == 1 { in init_grid()
81 &asset_manager.cur_path[..asset_manager.cur_path.len() - 1]; in init_grid()
/StarryEngine/starry_client/src/font/ !
H A Dunifont.rs26 for i in 0..data.len() { in main()
/StarryEngine/starry_toolkit/src/base/ !
H A Dpanel.rs207 let id = widgets.len(); in add_child()