zscript-doc/api/drawing/BrokenLines.md

28 lines
437 B
Markdown
Raw Permalink Normal View History

2018-12-29 16:05:19 -08:00
# BrokenLines
A container representing an array of lines of text that have been broken up to
fit the screen and clipping region.
2018-12-29 16:05:19 -08:00
```
class BrokenLines : Object
2018-12-29 16:05:19 -08:00
{
2019-08-14 03:32:51 -07:00
int Count();
string StringAt(int line);
int StringWidth(int line);
2018-12-29 16:05:19 -08:00
}
```
2019-08-14 03:31:41 -07:00
### `Count`
2018-12-29 16:05:19 -08:00
2019-08-14 03:31:41 -07:00
Returns the amount of lines in this container.
2018-12-29 16:05:19 -08:00
2019-08-14 03:31:41 -07:00
### `StringAt`
2018-12-29 16:05:19 -08:00
2019-08-14 03:31:41 -07:00
Returns the text of line `line`.
2018-12-29 16:05:19 -08:00
2019-08-14 03:31:41 -07:00
### `StringWidth`
2018-12-29 16:05:19 -08:00
2019-08-14 03:31:41 -07:00
Returns the width (in pixels) of line `line`.
2018-12-29 16:05:19 -08:00
<!-- EOF -->