/StarryEngine/starry_toolkit/src/ |
H A D | main.rs | 9 widgets::image::Image, 21 let image1 = Image::new_from_color(32, 32, Color::rgb(128, 255, 255)); in main() 22 let image2 = Image::new_from_color(32, 32, Color::rgb(128, 255, 255)); in main() 23 let image3 = Image::new_from_color(32, 32, Color::rgb(128, 255, 255)); in main() 24 let image4 = Image::new_from_color(32, 32, Color::rgb(128, 255, 255)); in main() 25 let image5 = Image::new_from_color(32, 32, Color::rgb(128, 255, 255)); in main()
|
/StarryEngine/starry_server/src/base/ |
H A D | image.rs | 232 pub struct Image { struct 243 impl Image { argument 246 Image::from_color(width, height, Color::rgb(0, 0, 0)) in new() 251 Image::from_data( in from_color() 260 Image { in from_data() 282 let mut image = Image::new(img_width as i32, img_heigh as i32); in from_path() 357 Image::from_data(w as i32, h as i32, dst_color) in resize() 361 impl Renderer for Image { implementation
|
H A D | display.rs | 4 image::{Image, ImageRoi}, 15 pub image: Image, 24 image: Image::new(width, height), in new() 64 self.image = Image::new(width, height) in resize()
|
H A D | window.rs | 7 use super::{display::Display, image::Image, rect::Rect}; 42 pub image: Image, 61 image: Image::from_path(image_path) in new() 62 .unwrap_or(Image::new(SCREEN_HEIGHT as i32, SCREEN_HEIGHT as i32)), in new()
|
/StarryEngine/starry_toolkit/src/widgets/ |
H A D | image.rs | 16 use crate::starry_server::base::image::Image as ImageResource; 18 pub struct Image { struct 19 self_ref: RefCell<Weak<Image>>, argument 30 impl Image { argument 44 let image = Arc::new(Image { in new_from_image() 85 impl Widget for Image { implementation
|
/StarryEngine/starry_server/src/core/ |
H A D | mod.rs | 4 base::{display::Display, image::Image}, 38 pub cursors: RefCell<BTreeMap<CursorKind, Image>>, 45 cursors.insert(CursorKind::None, Image::new(0, 0)); in new() 48 Image::from_path(CURSOR_NORMAL).unwrap_or(Image::new(10, 10)), in new()
|
/StarryEngine/starry_applications/src/asset_manager/code/ |
H A D | asset_item_grid.rs | 13 image::Image, 19 use crate::starry_server::base::image::Image as ImageResource; 60 Image::new_from_color(Self::ITEM_WIDTH, Self::ITEM_HEIGHT, Color::rgba(0, 0, 0, 0)); in new() 69 let icon = Image::new_from_image(icon); in new() 133 .downcast_ref::<Image>() in draw()
|
H A D | mod.rs | 5 use starry_server::base::image::Image as ImageResource; 12 widgets::image::Image, 157 self.panel.add_child(&Image::new_from_image( in init_grid() 172 self.panel.add_child(&Image::new_from_image( in init_list() 181 self.loading_panel.add_child(&Image::new_from_image( in init_loading_panel()
|
H A D | asset_item_list.rs | 13 image::Image, 52 let bg = Image::new_from_color( in new()
|