BrushFamily


public final class BrushFamily


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

For now, BrushFamily is an opaque type that can only be instantiated via StockBrushes. A future version of this module will allow creating fully custom BrushFamily objects.

BrushFamily objects are immutable.

Summary

Nested types

public static class BrushFamily.Companion

Public methods

boolean
equals(Object other)
int
@NonNull String

Protected methods

final void

Deletes native BrushFamily memory.

Extension functions

final void

Write the gzip-compressed serialized representation of the BrushFamily to the given OutputStream.

final void

Write the gzip-compressed serialized representation of the BrushFamily to the given OutputStream.

Public methods

equals

public boolean equals(Object other)

hashCode

public int hashCode()

toString

public @NonNull String toString()

Protected methods

finalize

Added in 1.0.0-alpha04
protected final void finalize()

Deletes native BrushFamily memory.

Extension functions

AndroidBrushFamilyExtensions.encode

@ExperimentalInkCustomBrushApi
public final void AndroidBrushFamilyExtensions.encode(
    @NonNull BrushFamily receiver,
    @NonNull OutputStream output,
    @NonNull TextureBitmapStore textureBitmapStore
)

Write the gzip-compressed serialized representation of the BrushFamily to the given OutputStream.

BrushFamilyExtensions.encode

public final void BrushFamilyExtensions.encode(
    @NonNull BrushFamily receiver,
    @NonNull OutputStream output
)

Write the gzip-compressed serialized representation of the BrushFamily to the given OutputStream.