类 TransformPainter

java.lang.Object
polaris.sdk.ui.TransformPainter
所有已实现的接口:
Painter

public final class TransformPainter extends Object implements Painter
Draw-only affine transform. SDF evaluation stays in GLSL; input bounds do not shrink.
  • 构造器概要

    构造器
    构造器
    说明
    TransformPainter(Painter p, float cx, float cy, float scale, float tx, float ty, float alpha, Rect clip)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    Freeze the already drawn UI into a new backdrop for overlays.
    void
     
    void
    colorPlane(float x, float y, float w, float h, float hue)
     
    void
    colorPlaneAlpha(float x, float y, float w, float h, float hue, float nestedAlpha)
     
    void
    Called by Ui.render before any widget drawing; custom backends may override.
    void
    Scoped profile for the current widget.
    void
    fill(float x, float y, float w, float h, float r, int c)
     
    void
    glass(float x, float y, float w, float h, float radius, Theme t, float blur)
     
    void
    line(float x, float y, float x2, float y2, float thickness, int c)
     
    void
    Pop only the last shaped content clip; does not change the rectangular scissor.
    void
    pushShapeClip(Rect r, float radius, CornerRadii profile)
    Push an intersecting rounded content clip.
    void
    ring(float x, float y, float size, float thickness, float progress, float start, int c)
     
    void
    stroke(float x, float y, float w, float h, float r, float thickness, int c)
     
    void
    text(String s, float x, float y, float size, int c)
     
    void
    textScaled(String s, float x, float y, float size, int c, float nestedScale)
    Affine text scaling without regenerating rasterized glyphs on every animated frame.
    void
    textWeight(String s, float x, float y, float size, int c, int weight)
     
    void
    textWeightScaled(String s, float x, float y, float size, int c, int weight, float nestedScale)
     
    float
    textWidth(String s, float size)
     
    float
    textWidth(String s, float size, int weight)
     
  • 构造器详细资料

    • TransformPainter

      public TransformPainter(Painter p, float cx, float cy, float scale, float tx, float ty, float alpha, Rect clip)
  • 方法详细资料

    • configure

      public void configure(Theme theme)
      从接口复制的说明: Painter
      Called by Ui.render before any widget drawing; custom backends may override.
      指定者:
      configure 在接口中 Painter
    • corners

      public void corners(CornerRadii profile)
      从接口复制的说明: Painter
      Scoped profile for the current widget. Null restores its normal radius argument.
      指定者:
      corners 在接口中 Painter
    • clip

      public void clip(Rect r)
      指定者:
      clip 在接口中 Painter
    • pushShapeClip

      public void pushShapeClip(Rect r, float radius, CornerRadii profile)
      从接口复制的说明: Painter
      Push 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

      public void popShapeClip()
      从接口复制的说明: Painter
      Pop only the last shaped content clip; does not change the rectangular scissor.
      指定者:
      popShapeClip 在接口中 Painter
    • glass

      public void glass(float x, float y, float w, float h, float radius, Theme t, float blur)
      指定者:
      glass 在接口中 Painter
    • fill

      public void fill(float x, float y, float w, float h, float r, int c)
      指定者:
      fill 在接口中 Painter
    • stroke

      public void stroke(float x, float y, float w, float h, float r, float thickness, int c)
      指定者:
      stroke 在接口中 Painter
    • line

      public void line(float x, float y, float x2, float y2, float thickness, int c)
      指定者:
      line 在接口中 Painter
    • ring

      public void ring(float x, float y, float size, float thickness, float progress, float start, int c)
      指定者:
      ring 在接口中 Painter
    • colorPlane

      public void colorPlane(float x, float y, float w, float h, float hue)
      指定者:
      colorPlane 在接口中 Painter
    • colorPlaneAlpha

      public void colorPlaneAlpha(float x, float y, float w, float h, float hue, float nestedAlpha)
      指定者:
      colorPlaneAlpha 在接口中 Painter
    • text

      public void text(String s, float x, float y, float size, int c)
      指定者:
      text 在接口中 Painter
    • textScaled

      public void textScaled(String s, float x, float y, float size, int c, float nestedScale)
      从接口复制的说明: Painter
      Affine text scaling without regenerating rasterized glyphs on every animated frame.
      指定者:
      textScaled 在接口中 Painter
    • textWeight

      public void textWeight(String s, float x, float y, float size, int c, int weight)
      指定者:
      textWeight 在接口中 Painter
    • textWeightScaled

      public void textWeightScaled(String s, float x, float y, float size, int c, int weight, float nestedScale)
      指定者:
      textWeightScaled 在接口中 Painter
    • textWidth

      public float textWidth(String s, float size)
      指定者:
      textWidth 在接口中 Painter
    • textWidth

      public float textWidth(String s, float size, int weight)
      指定者:
      textWidth 在接口中 Painter
    • backdrop

      public void backdrop()
      从接口复制的说明: Painter
      Freeze the already drawn UI into a new backdrop for overlays.
      指定者:
      backdrop 在接口中 Painter