类 NativePainter
java.lang.Object
polaris.sdk.ui.render.NativePainter
- 所有已实现的接口:
AutoCloseable, Painter
Collects clipped drawing commands and submits them with one JNI call per UI frame.
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidbackdrop()Freeze the already drawn UI into a new backdrop for overlays.voidbegin(float width, float height) voidbegin(float width, float height, int pixelWidth, int pixelHeight) Supply physical dimensions before text layout to avoid a first-frame DPI mismatch.voidvoidclose()voidcolorPlane(float x, float y, float w, float h, float hue) voidcolorPlaneAlpha(float x, float y, float w, float h, float hue, float alpha) intvoidCalled by Ui.render before any widget drawing; custom backends may override.voidcorners(CornerRadii profile) Scoped profile for the current widget.voidfill(float x, float y, float w, float h, float radius, int color) voidflush(int framebuffer, int colorAttachment, int pw, int ph, float sigma, float mx, float my) voidflushWindow(int width, int height, float sigma, float mx, float my) voidintvoidline(float x, float y, float x2, float y2, float thickness, int color) voidPop only the last shaped content clip; does not change the rectangular scissor.voidpushShapeClip(Rect bounds, float radius, CornerRadii profile) Push an intersecting rounded content clip.voidring(float x, float y, float size, float thickness, float progress, float start, int color) intvoidstroke(float x, float y, float w, float h, float radius, float thickness, int color) voidvoidtextScaled(String text, float x, float y, float size, int color, float scale) Affine text scaling without regenerating rasterized glyphs on every animated frame.voidtextWeight(String text, float x, float y, float size, int color, int weight) voidtextWeightScaled(String text, float x, float y, float size, int color, int weight, float scale) floatfloat
-
字段详细资料
-
STRIDE
- 另请参阅:
-
-
构造器详细资料
-
NativePainter
-
-
方法详细资料
-
begin
Supply physical dimensions before text layout to avoid a first-frame DPI mismatch. -
configure
-
corners
从接口复制的说明:PainterScoped profile for the current widget. Null restores its normal radius argument. -
begin
-
flush
public void flush(int framebuffer, int colorAttachment, int pw, int ph, float sigma, float mx, float my) -
flushWindow
-
commandCount
-
glyphCount
-
sdfGlyphCount
-
fontFamily
-
clip
-
pushShapeClip
从接口复制的说明:PainterPush an intersecting rounded content clip. Coordinates are logical/absolute. A null profile follows the active theme, with the supplied radius. Max native depth: 32. Custom painters that do not override these methods retain the existing rectangular clips.- 指定者:
pushShapeClip在接口中Painter
-
popShapeClip
从接口复制的说明:PainterPop only the last shaped content clip; does not change the rectangular scissor.- 指定者:
popShapeClip在接口中Painter
-
glass
-
fill
-
stroke
-
line
-
ring
-
colorPlane
- 指定者:
colorPlane在接口中Painter
-
colorPlaneAlpha
- 指定者:
colorPlaneAlpha在接口中Painter
-
text
-
textScaled
从接口复制的说明:PainterAffine text scaling without regenerating rasterized glyphs on every animated frame.- 指定者:
textScaled在接口中Painter
-
textWeight
- 指定者:
textWeight在接口中Painter
-
textWeightScaled
public void textWeightScaled(String text, float x, float y, float size, int color, int weight, float scale) - 指定者:
textWeightScaled在接口中Painter
-
textWidth
-
textWidth
-
backdrop
-
close
- 指定者:
close在接口中AutoCloseable
-