Class

scalatags.DataConverters

CssNumber

Related Doc: package DataConverters

Permalink

class CssNumber[T] extends AnyRef

Extends numbers to provide a bunch of useful methods, allowing you to write CSS-lengths in a nice syntax without resorting to strings.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CssNumber
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CssNumber(x: T)(implicit arg0: Numeric[T])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def ch: String

    Permalink

    This unit represents the width, or more precisely the advance measure, of the glyph '0' zero, the Unicode character U+0030 in the element's font.

    This unit represents the width, or more precisely the advance measure, of the glyph '0' zero, the Unicode character U+0030 in the element's font.

    MDN

  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def cm: String

    Permalink

    One centimeter 10 millimeters.

    One centimeter 10 millimeters.

    MDN

  8. def deg: String

    Permalink

    An angle in degrees.

    An angle in degrees. One full circle is 360deg. E.g. 0deg, 90deg, 360deg.

  9. def em: String

    Permalink

    This unit represents the calculated font-size of the element.

    This unit represents the calculated font-size of the element. If used on the font-size property itself, it represents the inherited font-size of the element.

    MDN

  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def ex: String

    Permalink

    This unit represents the x-height of the element's font.

    This unit represents the x-height of the element's font. On fonts with the 'x' letter, this is generally the height of lowercase letters in the font; 1ex ≈ 0.5em in many fonts.

    MDN

  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def grad: String

    Permalink

    An angle in gradians.

    An angle in gradians. One full circle is 400grad. E.g. 0grad, 100grad, 400grad.

    MDN

  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. def in: String

    Permalink

    One inch 2.54 centimeters.

    One inch 2.54 centimeters.

    MDN

  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. def mm: String

    Permalink

    One millimeter.

    One millimeter.

    MDN

  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. def pc: String

    Permalink

    One pica which is 12 points.

    One pica which is 12 points.

    MDN

  24. def pct: String

    Permalink

    A percentage value

  25. def pt: String

    Permalink

    One point which is 1/72 of an inch.

    One point which is 1/72 of an inch.

    MDN

  26. def px: String

    Permalink

    Relative to the viewing device.

    Relative to the viewing device. For screen display, typically one device pixel (dot) of the display.

    For printers and very high resolution screens one CSS pixel implies multiple device pixels, so that the number of pixel per inch stays around 96.

    MDN

  27. def rad: String

    Permalink

    An angle in radians.

    An angle in radians. One full circle is 2π radians which approximates to 6.2832rad. 1rad is 180/π degrees. E.g. 0rad, 1.0708rad, 6.2832rad.

    MDN

  28. def rem: String

    Permalink

    This unit represents the font-size of the root element e.g.

    This unit represents the font-size of the root element e.g. the font-size of the html element. When used on the font-size on this root element, it represents its initial value.

    MDN

  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  31. def turn: String

    Permalink

    The number of turns the angle is.

    The number of turns the angle is. One full circle is 1turn. E.g. 0turn, 0.25turn, 1turn.

    MDN

  32. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped