Crate skia_safe Copy item path Source pub use codec::codecs ;
pub use codec::Codec ;
pub use codec::EncodedOrigin ;
annotate arc All Sk* types are accessible via skia_safe:: blenders canvas All Sk* types are accessible via skia_safe:: codec color_filter All Sk* types are accessible via skia_safe:: color_filters color_matrix color_matrix_filter colors contour_measure All Sk* types are accessible via skia_safe:: corner_path_effect dash_path_effect discrete_path_effect document All Sk* types are accessible via skia_safe:: drawable All Sk* types are accessible via skia_safe:: encode font All Sk* types are accessible via skia_safe:: font_arguments All Sk* types are accessible via skia_safe:: font_metrics All Sk* types are accessible via skia_safe:: font_parameters All Sk* types are accessible via skia_safe:: font_style All Sk* types are accessible via skia_safe:: gpu gradient_shader graphics All Sk* types are accessible via skia_safe:: high_contrast_config high_contrast_filter icu image All Sk* types are accessible via skia_safe:: image_filter All Sk* types are accessible via skia_safe:: image_filters images jpeg_encoder line_2d_path_effect luma_color_filter matrix All Sk* types are accessible via skia_safe:: named_primaries Color primaries defined by ITU-T H.273, table 2. Names are given by the first
specification referenced in the value’s row. named_transfer_fn overdraw_color_filter paint All Sk* types are accessible via skia_safe:: path All Sk* types are accessible via skia_safe:: path_1d_path_effect path_2d_path_effect path_effect All Sk* types are accessible via skia_safe:: path_measure All Sk* types are accessible via skia_safe:: path_types All Sk* types are accessible via skia_safe:: path_utils All Sk* types are accessible via skia_safe:: pdf perlin_noise_shader Deprecated picture_recorder All Sk* types are accessible via skia_safe:: png_encoder region All Sk* types are accessible via skia_safe:: resources rrect All Sk* types are accessible via skia_safe:: runtime_effect sampling_options All Sk* types are accessible via skia_safe:: shader All Sk* types are accessible via skia_safe:: shader_mask_filter shaders All Sk* types are accessible via skia_safe:: shaper shapers stroke_rec All Sk* types are accessible via skia_safe:: surface All Sk* types are accessible via skia_safe:: surfaces svg table_color_filter table_mask_filter textlayout tiled_image_utils All Sk* types are accessible via skia_safe:: trim_path_effect typeface All Sk* types are accessible via skia_safe:: utils vertices All Sk* types are accessible via skia_safe:: webp_encoder wrapper FFI interoperability for skia-safe’s wrapper types. yuva_info All Sk* types are accessible via skia_safe:: yuva_pixmap_info yuva_pixmaps All Sk* types are accessible via skia_safe:: impl_default_make native_transmutable Macro to mark a Rust type as NativeTransmutable and test its layout. require_base_type require_type_equality unsafe_send_sync Macro that implements Send and Sync. variant_name Macro that verifies a variant name at compile time. Arc Represents an arc along an oval boundary, or a closed wedge of the oval. Borrows Canvas Canvas
provides an interface for drawing, and how the drawing is clipped and transformed.
Canvas
contains a stack of Matrix
and clip values.Color Color4f ColorChannelFlag ColorSpacePrimaries ColorSpaceTransferFn CubicMap CubicResampler Specify b
and c
(each between 0…1) to create a shader that applies the corresponding
cubic reconstruction filter to the image. DateTime Document FilterOptions Deprecated FontArguments FontMetrics FontStyle FourByteTag HSV Handle Wraps a native type that can be represented in Rust memory. HighContrastConfig IPoint IRect ISize IVector Iter M44 Matrix OwnedCanvas 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). PathSegmentMask Pixmap Point Point3 RCHandle A wrapper type represented by a reference counted pointer
to the native type. RGB RRect RSXform Rect RefHandle A wrapper type that represents a native type with a pointer to
the native object. SamplingOptions Sendable Size SurfaceProps SurfacePropsFlags TextBlobRun V2 V3 V4 XYZD50Hash AlphaType AutoCanvasRestore BlendMode BlendModeCoeff BlurStyle ClipOp CodecResult ColorChannel ColorType Describes how pixel bits encode color. A pixel may be an alpha mask, a grayscale, RGB, or ARGB. CoverageMode EncodedImageFormat FilterMode FontHinting MipmapMode PaintCap PaintJoin PaintStyle PathDirection PathFillType PathOp PathVerb PixelGeometry TextEncoding TextureCompressionType Skia | GL_COMPRESSED_* | MTLPixelFormat* | VK_FORMAT_*_BLOCK TileMode YUVColorSpace EMPTY_IRECT MILESTONE ConditionallySend Contains All Sk* types are accessible via skia_safe:: EncodedText Trait representing encoded text. Flattenable NativeFlattenable Pixel Implement this trait to use a pixel type in Handle<Pixmap>::pixels()
. QuickReject All Sk* types are accessible via skia_safe:: RoundOut Scalar Scalars as_utf16_unchecked ⚠ Treat a &[u16]
as UTF16 encoded text. as_utf32_unchecked ⚠ Treat a &[u32]
as UTF32 encoded text. as_winding op pre_multiply_argb pre_multiply_color radians_to_degrees simplify swap_rb swap_rb_inplace tight_bounds Deprecated BBHFactory BBoxHierarchy Bitmap Bitmap
describes a two-dimensional raster pixel array. Bitmap
is built on ImageInfo
,
containing integer width and height, ColorType
and AlphaType
describing the pixel
format, and ColorSpace
describing the range of colors. Bitmap
points to PixelRef
,
which describes the physical array of pixels. ImageInfo
bounds may be located anywhere fully
inside PixelRef bounds.Blender Blender
represents a custom blend function in the Skia pipeline. A blender combines a source
color (the result of our paint) and destination color (from the canvas) into a final color.Budgeted Deprecated Color3f ColorFilter ColorInfo ColorMatrix ColorSpace ColorTable ColorTable
holds the lookup tables for each channel (ARGB) used to define the filter behavior
of SkColorFilters::Table
, and provides a way to share the table data between client code and
the returned crate::ColorFilter
. Once created, an ColorTable
is immutable.ContourMeasure ContourMeasureIter Data DataTable Drawable Font FontMgr FontStyleSet GlyphId Image Image
describes a two dimensional array of pixels to draw. The pixels may be
decoded in a raster bitmap, encoded in a Picture
or compressed data stream,
or located in GPU memory as a GPU texture.ImageFilter ImageGenerator ImageInfo MaskFilter MaskFilter is the base class for object that perform transformations on the mask before drawing
it. An example subclass is Blur. OpBuilder PMColor Paint Path PathBuilder PathEffect PathMeasure Picture PictureRecorder PixelRef Region RuntimeEffect SamplingMode Deprecated Shader Shaper StrokeRec Surface 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 (a RenderTarget
surface).
Surface
takes care of allocating a Canvas
that will draw into the surface. Call
surface_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, then None
will be returned.TextBlob TextBlobBuilder TextBlobIter Typeface Unichar Vector Vector3 Vertices YUVAInfo 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. YUVAPixmapInfo YUVAInfo combined with per-plane ColorType s and row bytes. Fully specifies the Pixmap `s
for a YUVA image without the actual pixel memory and data.YUVAPixmaps Helper to store Pixmap planes as described by a YUVAPixmapInfo . Can be responsible for
allocating/freeing memory for pixmaps or use external memory. scalar