Home
last modified time | relevance | path

Searched refs:image (Results 1 – 15 of 15) sorted by relevance

/StarryEngine/starry_toolkit/src/widgets/
H A Dimage.rs16 use crate::starry_server::base::image::Image as ImageResource;
27 image: RefCell<ImageResource>, field
43 pub fn new_from_image(image: ImageResource) -> Arc<Self> { in new_from_image()
44 let image = Arc::new(Image { in new_from_image() localVariable
46 rect: Cell::new(Rect::new(0, 0, image.width() as u32, image.height() as u32)), in new_from_image()
52 image: RefCell::new(image), in new_from_image()
55 (*image.self_ref.borrow_mut()) = Arc::downgrade(&image); in new_from_image()
57 return image; in new_from_image()
61 if let Some(image) = ImageResource::from_path(path) { in new_from_path()
62 Some(Self::new_from_image(image)) in new_from_path()
[all …]
H A Dmod.rs15 pub mod image; module
/StarryEngine/starry_server/src/base/
H A Ddisplay.rs4 image::{Image, ImageRoi},
15 pub image: Image, field
24 image: Image::new(width, height), in new()
35 self.image.rect( in rect()
54 self.image.roi(&Rect::new( in roi()
64 self.image = Image::new(width, height) in resize()
69 Rect::new(self.x, self.y, self.image.width(), self.image.height()) in screen_rect()
H A Dwindow.rs7 use super::{display::Display, image::Image, rect::Rect};
42 pub image: Image, field
61 image: Image::from_path(image_path) in new()
70 self.image.width() in width()
75 self.image.height() in height()
100 .image in draw()
108 .image in draw()
H A Dimage.rs3 use image::GenericImageView;
269 if let Ok(mut img) = image::load_from_memory(path) { in from_path()
277 image::imageops::FilterType::Gaussian, in from_path()
282 let mut image = Image::new(img_width as i32, img_heigh as i32); in from_path() localVariable
288 image.data[offset as usize] = in from_path()
298 return Some(image); in from_path()
H A Dmod.rs2 pub mod image; module
/StarryEngine/starry_server/src/core/
H A Dwindow_manager.rs272 if let Some(image) = server.cursors.borrow().get(&self.cursor_i.get()) { in cursor_rect()
276 image.width(), in cursor_rect()
277 image.height(), in cursor_rect()
H A Dmod.rs4 base::{display::Display, image::Image},
H A Dcompositor.rs120 let pixel = display.image.get_pixel( in redraw_all()
/StarryEngine/starry_applications/src/asset_manager/code/
H A Dasset_item_grid.rs13 image::Image,
19 use crate::starry_server::base::image::Image as ImageResource;
H A Dmod.rs5 use starry_server::base::image::Image as ImageResource;
12 widgets::image::Image,
H A Dasset_item_list.rs13 image::Image,
/StarryEngine/starry_server/
H A DCargo.toml17 image = "0.24.7"
/StarryEngine/starry_toolkit/src/
H A Dmain.rs9 widgets::image::Image,
/StarryEngine/starry_client/src/base/
H A Drenderer.rs113 fn image(&mut self, start_x: i32, start_y: i32, w: u32, h: u32, data: &[Color]) { in image() method