Module vizia_core::vg
source · Expand description
Contains types and functions used for custom drawing within views. This is a re-export of skia-safe.
Modules§
- perlin_
noise_ shader Deprecated - FFI interoperability for skia-safe’s wrapper types.
Macros§
- Macro to mark a Rust type as NativeTransmutable and test its layout.
- Macro that implements Send and Sync.
- Macro that verifies a variant name at compile time.
Structs§
- Represents an arc along an oval boundary, or a closed wedge of the oval.
- Specify
b
andc
(each between 0…1) to create a shader that applies the corresponding cubic reconstruction filter to the image. - Filter
Options Deprecated - Wraps a native type that can be represented in Rust memory.
- Represents a
Canvas
that 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). - A wrapper type represented by a reference counted pointer to the native type.
- A wrapper type that represents a native type with a pointer to the native object.
Enums§
- These values match the orientation www.exif.org/Exif2-2.PDF.
Constants§
Traits§
- Trait representing encoded text.
- Implement this trait to use a pixel type in
Handle<Pixmap>::pixels()
.
Functions§
- Treat a
&[u16]
as UTF16 encoded text. - Treat a
&[u32]
as UTF32 encoded text.
Type Aliases§
Bitmap
describes a two-dimensional raster pixel array.Bitmap
is built onImageInfo
, containing integer width and height,ColorType
andAlphaType
describing the pixel format, andColorSpace
describing the range of colors.Bitmap
points toPixelRef
, which describes the physical array of pixels.ImageInfo
bounds may be located anywhere fully inside PixelRef bounds.- Blender represents a custom blend function in the Skia pipeline. When an Blender is present in a paint, the
BlendMode
is ignored. A blender combines a source color (the result of our paint) and destination color (from the canvas) into a final color. - Budgeted
Deprecated ColorTable
holds the lookup tables for each channel (ARGB) used to define the filter behavior ofSkColorFilters::Table
, and provides a way to share the table data between client code and the returnedcrate::ColorFilter
. Once created, anColorTable
is immutable.- MaskFilter is the base class for object that perform transformations on the mask before drawing it. An example subclass is Blur.
- Sampling
Mode Deprecated Surface
is responsible for managing the pixels that a canvas draws into. The pixels can be allocated either in CPU memory (a raster surface) or on the GPU (aRenderTarget
surface).Surface
takes care of allocating aCanvas
that will draw into the surface. Callsurface_get_canvas()
to use that canvas (but don’t delete it, it is owned by the surface).Surface
always has non-zero dimensions. If there is a request for a new surface, and either of the requested dimensions are zero, thenNone
will be returned.- Specifies the structure of planes for a YUV image with optional alpha. The actual planar data is not part of this structure and depending on usage is in external textures or pixmaps.
- Helper to store Pixmap planes as described by a YUVAPixmapInfo. Can be responsible for allocating/freeing memory for pixmaps or use external memory.