Lines Matching refs:image
16 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()
69 if let Some(image) = ImageResource::from_path(path) { in set_from_path()
70 (*self.image.borrow_mut()) = image; in set_from_path()
77 (*self.image.borrow_mut()) = ImageResource::from_color( in set_from_color()
123 let image = self.image.borrow(); in draw() localVariable
127 renderer.image( in draw()
132 image.data(), in draw()