scalatags

DataTypes

object DataTypes

Contains the trait and case class definitions for the most commonly used CSS data types. Not really necessary if you are declaring your CSS inline with your fragments, but useful if you want to pass CSS values around and need a type to put in a parameter list or collection.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DataTypes
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. case class Angle(number: Double, unit: String) extends NumberUnit with Product with Serializable

  2. trait Color extends ColorStop

    The Color CSS data type denotes a color in the sRGB color space.

  3. trait ColorStop extends AnyRef

    Something that can be used in as a color stop in a gradient.

  4. case class ColorStopPair(c: Color, p: Length) extends ColorStop with Product with Serializable

    Pair of Color and Length to be used in a gradient

  5. case class Element(selector: String) extends Image with Product with Serializable

    An image created via a portion of the DOM, selected by a CSS selector

  6. trait Gradient extends Image

    An image which is a gradient, either Linear or Radial

  7. case class Hex(s: String) extends Color with Product with Serializable

    A color represented as a hex string e.

  8. case class Hsl(h: Int, s: Int, l: Int) extends Color with Product with Serializable

    A color represented as Hue (0-360), Saturation (0-100) and Lightness (0-100)

  9. case class Hsla(h: Int, s: Int, l: Int, a: Double) extends Color with Product with Serializable

    A color represented as Hue (0-360), Saturation (0-100) and Lightness (0-100) as well as an alpha (opacity) from 0.

  10. trait Image extends AnyRef

    The Image CSS data type represents a 2D image.

  11. case class Length(number: Double, unit: String) extends NumberUnit with Product with Serializable

    The Length CSS data type denotes distance measurements.

  12. case class LinearGradient(direction: String, colors: ColorStop*) extends Gradient with Product with Serializable

    The CSS linear-gradient() function creates an Image which represents a linear gradient of colors.

  13. trait Position extends AnyRef

  14. case class RadialGradient(sections: Seq[String], colors: ColorStop*) extends Gradient with Product with Serializable

    The CSS radial-gradient() function creates an Image which represents a gradient of colors radiating from an origin, the center of the gradient.

  15. trait Ratio extends AnyRef

  16. case class Rgb(r: Int, g: Int, b: Int) extends Color with Product with Serializable

    A color represented as its 3 primary components, from 0 to 255

  17. case class Rgba(r: Int, g: Int, b: Int, a: Double) extends Color with Product with Serializable

    A color represented as its 3 primary components, from 0 to 255, as well as an alpha (opacity) from 0.

  18. case class Time(number: Double, unit: String) extends NumberUnit with Product with Serializable

  19. case class Url(url: String) extends Image with Product with Serializable

    An image found at a particular URL

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  18. def toString(): String

    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped