Module canvas
Modules§
Structs§
- Auto
Restored Canvas - Stack helper class calls
Canvas::restore_to_count()whenAutoCanvasRestoregoes out of scope. Use this to guarantee that the canvas is restored to a known state. - Canvas
Canvasprovides an interface for drawing, and how the drawing is clipped and transformed.Canvascontains a stack ofMatrixand clip values.- Lattice
Latticedividescrate::Bitmaporcrate::Imageinto a rectangular grid. Grid entries on even columns and even rows are fixed; these entries are always drawn at their original size if the destination is large enough. If the destination side is too small to hold the fixed entries, all fixed entries are proportionately scaled down to fit. The grid entries not on even columns and rows are scaled to fit the remaining space, if any.- Owned
Canvas - Represents a
Canvasthat is owned and dropped when it goes out of scope and is bound to the lifetime of some other value (an array of pixels for example). - Save
Layer Flags SaveLayerFlagsprovides options that may be used in any combination inSaveLayerRec, defining how layer allocated byCanvas::save_layer()operates. It may be set to zero, [PRESERVE_LCD_TEXT], [INIT_WITH_PREVIOUS], or both flags.- Save
Layer Rec SaveLayerReccontains the state used to create the layer.- TopLayer
Pixels - Provides access to Canvas’s pixels.
Enums§
- Auto
Canvas Restore - Glyph
Positions - Used to pass either a slice of
PointorRSXformtoCanvas::draw_glyphs_at. - Point
Mode - SrcRect
Constraint