Package icyllis.arc3d.granite
Class SubRunContainer
java.lang.Object
icyllis.arc3d.granite.SubRunContainer
A SubRun represents a method to draw a subregion of a GlyphRun, where
GlyphRun represents the shaped text (positioned glyphs) and a strike.
SubRun is the basic unit that is ready for GPU task generation, except
that it does not contain the current transformation matrix.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static final class
static class
SubRun defines the most basic functionality of a SubRun; the ability to draw, and the ability to be in a list.static final class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canReuse
(@NonNull Paint paint, @NonNull Matrixc positionMatrix, float glyphRunListX, float glyphRunListY) void
draw
(Canvas canvas, float originX, float originY, Paint paint, GraniteDevice device) long
static boolean
isDirect
(float approximateDeviceTextSize) static boolean
boolean
isEmpty()
static @NonNull SubRunContainer
make
(@NonNull GlyphRunList glyphRunList, @NonNull Matrixc positionMatrix, @NonNull Paint runPaint, @NonNull StrikeCache strikeCache)
-
Constructor Details
-
SubRunContainer
-
-
Method Details
-
isDirect
-
isDirect
@Contract(pure=true) public static boolean isDirect(float approximateDeviceTextSize) -
make
public static @NonNull SubRunContainer make(@NonNull GlyphRunList glyphRunList, @NonNull Matrixc positionMatrix, @NonNull Paint runPaint, @NonNull StrikeCache strikeCache) -
draw
-
initialPosition
-
isEmpty
public boolean isEmpty() -
canReuse
-
getMemorySize
public long getMemorySize()
-