com.alecdorrington.laminarcomponents.TextCaret
See theTextCaret companion class
object TextCaret
Attributes
Members list
Type members
Classlikes
enum Selection
A reader's selection, as far as an element's text goes.
A reader's selection, as far as an element's text goes.
Attributes
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Where a caret stands on the screen.
Where a caret stands on the screen.
Value parameters
- height
-
Its line's height, in pixels.
- top
-
Its line's top, from the window's top edge, in pixels.
- x
-
Its distance from the window's left edge, in pixels.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Value members
Concrete methods
Empties the page's selection.
Empties the page's selection.
Attributes
Reads an element's line height, before any room is made in a line.
Reads an element's line height, before any room is made in a line.
Value parameters
- root
-
The element.
Attributes
- Returns
-
Its line height, in pixels, or
0where it has none in pixels.
In this article