pub struct CanvasDesc {
pub id: u32,
pub name: &'static str,
pub rect: [i32; 4],
pub view: CanvasView,
pub ver: u32,
pub content: Rc<dyn CanvasContent>,
pub gpu: CanvasGpu,
pub exact_pan: bool,
}Expand description
a canvas for ui.canvas_gpu
Fields§
§id: u32its identity in the window (the tiles live as long as it is drawn; ui.canvas_gpu_damage)
name: &'static strits name for jfgui_GPU_CANVAS_CPU / jfgui_GPU_CANVAS_PAN (“image”, “diagram”, …)
rect: [i32; 4]the window rectangle x, y, w, h the content fills, opaque (inside the custom command’s box)
view: CanvasView§ver: u32stands for everything the content shows: another value drops its tiles
content: Rc<dyn CanvasContent>§gpu: CanvasGpu§exact_pan: boolthe raster does not depend on the place: a move by whole pixels must match byte for byte (jfgui_GPU_VERIFY fails on a difference; else it is counted, GpuOutput::canvas_diff_*)
Auto Trait Implementations§
impl !RefUnwindSafe for CanvasDesc
impl !Send for CanvasDesc
impl !Sync for CanvasDesc
impl !UnwindSafe for CanvasDesc
impl Forget for CanvasDesc
impl Freeze for CanvasDesc
impl Unpin for CanvasDesc
impl UnsafeUnpin for CanvasDesc
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more