androidx.ink.brush


Interfaces

TextureBitmapStore

Interface for a callback to allow the caller to provide a particular Bitmap corresponding to a client-provided texture ID.

Classes

Brush

Defines how stroke inputs are interpreted to create the visual representation of a stroke.

Brush.Builder

Builder for Brush.

BrushBehavior

A behavior describing how stroke input properties should affect the shape and color of the brush tip.

BrushCoat

A BrushCoat represents one coat of ink applied by a brush.

BrushCoat.Builder

Builder for BrushCoat.

BrushFamily

A BrushFamily describes a family of brushes (e.g. “highlighter” or “pressure pen”), irrespective of their size or color.

BrushFamily.Builder

Builder for BrushFamily.

BrushFamily.InputModel

Specifies a model for turning a sequence of raw hardware inputs (e.g. from a stylus, touchscreen, or mouse) into a sequence of smoothed, modeled inputs.

BrushFamily.InputModel.SlidingWindowModel

An InputModel that averages nearby inputs together within a sliding time window.

BrushPaint

Parameters that control stroke mesh rendering.

BrushPaint.ColorFunction

A ColorFunction defines a mapping over colors.

BrushPaint.ColorFunction.OpacityMultiplier

A ColorFunction that scales the color opacity by a specified multiplier.

BrushPaint.ColorFunction.ReplaceColor

A ColorFunction that ignores the input color and replaces it with the specified color.

BrushPaint.StampingTexture

A texture that is "stamped" onto each particle of the stroke, scaled or rotated appropriately to cover the whole particle.

BrushPaint.StampingTexture.Builder

Builder for StampingTexture.

BrushPaint.TextureLayer
BrushPaint.TextureLayer.BlendMode

The method by which the combined texture layers (index <= i) are blended with the next layer.

BrushPaint.TextureLayer.SizeUnit

Units for specifying TextureLayer dimensions.

BrushPaint.TextureLayer.Wrap

Wrap modes for specifying TextureLayer wrapping behavior.

BrushPaint.TilingTexture

A texture layer that will repeat according to a 2D affine transformation of vertex positions.

BrushPaint.TilingTexture.Builder

Builder for TilingTexture.

BrushPaint.TilingTexture.Origin

Specification of the origin point to use for the texture.

BrushTip

A BrushTip consists of parameters that control how stroke inputs are used to model the tip shape and color, and create vertices for the stroke mesh.

BrushTip.Builder

Builder for BrushTip.

BrushUtil
InputToolType

The type of input tool used in producing androidx.ink.strokes.StrokeInput, used by BrushBehavior to define when a behavior is applicable.

SelfOverlap

Specifies how parts of the stroke that intersect itself should be treated during the rendering process.

StockBrushes.DashedLineVersion

Version option for the dashedLine stock brush factory function.

StockBrushes.EmojiHighlighterVersion

Version option for the emojiHighlighter stock brush factory function.

StockBrushes.HighlighterVersion

Version option for the highlighter stock brush factory function.

StockBrushes.MarkerVersion

Version option for the marker stock brush factory function.

StockBrushes.PressurePenVersion

Version option for the pressurePen stock brush factory function.

Version

A Version represents a version of the Ink library's brush customization format.

Brush.Companion
BrushFamily.Companion
StockBrushes

Provides a fixed set of stock BrushFamily objects that any app can use.