TextCaret

com.alecdorrington.laminarcomponents.TextCaret
See theTextCaret companion class
object TextCaret

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
TextCaret.type

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 Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class Spot(x: Double, top: Double, height: Double)

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 Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def clear(): Unit

Empties the page's selection.

Empties the page's selection.

Attributes

def lineHeight(root: Element): Double

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 0 where it has none in pixels.