h2d.Text
h2d.Text
Inherits from: h2d.Drawable
Fields
| Name | Type | |
|---|---|---|
font | h2d.Font | |
text | String | |
textColor | I32 | |
maxWidth | Null | |
dropShadow | Virtual[alpha, color, dx, dy] | |
textWidth | I32 | |
textHeight | I32 | |
textAlign | h2d.Align | |
letterSpacing | I32 | |
lineSpacing | I32 | |
glyphs | h2d.TileGroup | |
calcDone | Bool | |
calcXMin | I32 | |
calcYMin | I32 | |
calcWidth | I32 | |
calcHeight | I32 | |
calcSizeHeight | I32 | |
constraintWidth | F64 | |
realMaxWidth | F64 |
Protos
f@3377set_font(h2d.Text, h2d.Font) → h2d.Fontf@3378set_textAlign(h2d.Text, h2d.Align) → h2d.Alignf@3379set_letterSpacing(h2d.Text, I32) → I32f@3380set_lineSpacing(h2d.Text, I32) → I32f@3381constraintSize(h2d.Text, F64, F64) → Voidf@3382onAdd(h2d.Text) → Voidf@3383draw(h2d.Text, h2d.RenderContext) → Voidf@3384set_text(h2d.Text, String) → Stringf@3385rebuild(h2d.Text) → Voidf@3386calcTextWidth(h2d.Text, String) → I32f@3387splitText(h2d.Text, String, Ref, Ref) → Stringf@3388initGlyphs(h2d.Text, String, Ref, Ref, hl.types.ArrayBytes_Int) → Voidf@3389get_textHeight(h2d.Text) → I32f@3390get_textWidth(h2d.Text) → I32f@3391set_maxWidth(h2d.Text, Null) → Nullf@3392updateConstraint(h2d.Text) → Voidf@3393set_textColor(h2d.Text, I32) → I32f@3394getBoundsRec(h2d.Text, h2d.Object, h2d.col.Bounds, Bool) → Void
Bindings
- static
f@3395__constructor__(h2d.Text, h2d.Font, h2d.Object) → Void