Skip to content

h2d.Text

h2d.Text

Inherits from: h2d.Drawable

Fields

NameType
fonth2d.Font
textString
textColorI32
maxWidthNull
dropShadowVirtual[alpha, color, dx, dy]
textWidthI32
textHeightI32
textAlignh2d.Align
letterSpacingI32
lineSpacingI32
glyphsh2d.TileGroup
calcDoneBool
calcXMinI32
calcYMinI32
calcWidthI32
calcHeightI32
calcSizeHeightI32
constraintWidthF64
realMaxWidthF64

Protos

  • f@3377 set_font(h2d.Text, h2d.Font) → h2d.Font
  • f@3378 set_textAlign(h2d.Text, h2d.Align) → h2d.Align
  • f@3379 set_letterSpacing(h2d.Text, I32) → I32
  • f@3380 set_lineSpacing(h2d.Text, I32) → I32
  • f@3381 constraintSize(h2d.Text, F64, F64) → Void
  • f@3382 onAdd(h2d.Text) → Void
  • f@3383 draw(h2d.Text, h2d.RenderContext) → Void
  • f@3384 set_text(h2d.Text, String) → String
  • f@3385 rebuild(h2d.Text) → Void
  • f@3386 calcTextWidth(h2d.Text, String) → I32
  • f@3387 splitText(h2d.Text, String, Ref, Ref) → String
  • f@3388 initGlyphs(h2d.Text, String, Ref, Ref, hl.types.ArrayBytes_Int) → Void
  • f@3389 get_textHeight(h2d.Text) → I32
  • f@3390 get_textWidth(h2d.Text) → I32
  • f@3391 set_maxWidth(h2d.Text, Null) → Null
  • f@3392 updateConstraint(h2d.Text) → Void
  • f@3393 set_textColor(h2d.Text, I32) → I32
  • f@3394 getBoundsRec(h2d.Text, h2d.Object, h2d.col.Bounds, Bool) → Void

Bindings

  • static f@3395 __constructor__(h2d.Text, h2d.Font, h2d.Object) → Void