DrawTextLayoutParams describes a DrawTextLayout. DefaultFont is used to render any text that is not attributed sufficiently in String. Width determines the width of the bounding box of the text; the height is determined automatically.
| 478 | // sufficiently in String. Width determines the width of the bounding |
| 479 | // box of the text; the height is determined automatically. |
| 480 | type DrawTextLayoutParams struct { |
| 481 | String *AttributedString |
| 482 | DefaultFont *FontDescriptor |
| 483 | Width float64 |
| 484 | Align DrawTextAlign |
| 485 | } |
| 486 | |
| 487 | // DrawNewTextLayout() creates a new DrawTextLayout from |
| 488 | // the given parameters. |
nothing calls this directly
no outgoing calls
no test coverage detected