Media

object Media
class Object
trait Matchable
class Any

Type members

Classlikes

case object All extends TypeA
case class AspectRatio(ratio: ValueExpr[Ratio]) extends Feature

Describes the aspect ratio of the targeted display area of the output device.

Describes the aspect ratio of the targeted display area of the output device.

case object Aural extends Type
case object Braille extends Type
case class Color(bits: Option[ValueExpr[ColorBits]]) extends Feature

Indicates the number of bits per color component of the output device. If the device is not a color device, this value is zero.

Indicates the number of bits per color component of the output device. If the device is not a color device, this value is zero.

case class ColorIndex(index: Option[ValueExpr[Int]]) extends Feature

Indicates the number of entries in the color look-up table for the output device.

Indicates the number of entries in the color look-up table for the output device.

case class DeviceAspectRatio(ratio: ValueExpr[Ratio]) extends Feature

Describes the aspect ratio of the output device.

Describes the aspect ratio of the output device.

case class DeviceHeight[N](length: ValueExpr[Length[N]]) extends Feature

Describes the height of the output device (meaning the entire screen or page, rather than just the rendering area, such as the document window).

Describes the height of the output device (meaning the entire screen or page, rather than just the rendering area, such as the document window).

case class DeviceWidth[N](length: ValueExpr[Length[N]]) extends Feature

Describes the width of the output device (meaning the entire screen or page, rather than just the rendering area, such as the document window).

Describes the width of the output device (meaning the entire screen or page, rather than just the rendering area, such as the document window).

case object Embossed extends Type
case class Eql[T](eql: T) extends ValueExpr[T]
sealed trait Feature
trait FeatureOps[Out]
case class Grid(value: Option[Int]) extends Feature

Determines whether the output device is a grid device or a bitmap device. If the device is grid-based (such as a TTY terminal or a phone display with only one font), the value is 1. Otherwise it is zero.

Determines whether the output device is a grid device or a bitmap device. If the device is grid-based (such as a TTY terminal or a phone display with only one font), the value is 1. Otherwise it is zero.

case object Handheld extends Type
case class Height[N](length: ValueExpr[Length[N]]) extends Feature

The height media feature describes the height of the output device's rendering surface (such as the height of the viewport or of the page box on a printer).

The height media feature describes the height of the output device's rendering surface (such as the height of the viewport or of the page box on a printer).

case object Interface extends ScanValue
case class Just(t: TypeA) extends TypeExpr
case object Landscape extends OrientationValue
case class Max[T](max: T) extends ValueExpr[T]
case class Min[T](min: T) extends ValueExpr[T]
case class Monochrome(bitsPerPx: Option[ValueExpr[Int]]) extends Feature

Indicates the number of bits per pixel on a monochrome (greyscale) device. If the device isn't monochrome, the device's value is 0.

Indicates the number of bits per pixel on a monochrome (greyscale) device. If the device isn't monochrome, the device's value is 0.

case class Not(t: TypeA) extends TypeExpr
case class Only(t: TypeA) extends TypeExpr
case class Orientation(value: OrientationValue) extends Feature

Indicates whether the viewport is in landscape (the display is wider than it is tall) or portrait (the display is taller than it is wide) mode.

Indicates whether the viewport is in landscape (the display is wider than it is tall) or portrait (the display is taller than it is wide) mode.

sealed abstract class OrientationValue(val value: String)
case object Portrait extends OrientationValue
case object Print extends Type
case object Progressive extends ScanValue
case object Projection extends Type
case class Query(head: Either[TypeExpr, Feature], tail: Vector[Feature]) extends FeatureOps[Query]
case class Resolution[N](res: ValueExpr[Resolution[N]]) extends Feature

Indicates the resolution (pixel density) of the output device.

Indicates the resolution (pixel density) of the output device.

case class Scan(value: ScanValue) extends Feature

Describes the scanning process of television output devices.

Describes the scanning process of television output devices.

sealed abstract class ScanValue(val value: String)
case object Screen extends Type
case object TTY extends Type
case object TV extends Type
sealed abstract class Type(value: String) extends TypeA
sealed abstract class TypeA(val value: String)
trait TypeAOps[Out]
sealed trait TypeExpr
sealed trait ValueExpr[T]
case class Width[N](length: ValueExpr[Length[N]]) extends Feature

Types

type ColorBits = Int

bits per color component

bits per color component

Value members

Concrete methods

def cssQueries(qs: NonEmptyVector[Query]): String

Concrete fields

val cssFeature: Feature => String
val cssTypeExpr: TypeExpr => String

Implicits

Implicits

implicit def univEqFeature: UnivEq[Feature]
implicit def univEqQuery: UnivEq[Query]
implicit def univEqScanValue: UnivEq[ScanValue]
implicit def univEqTypeA: UnivEq[TypeA]
implicit def univEqTypeExpr: UnivEq[TypeExpr]
@nowarn("cat=unused")
implicit def univEqValueExpr[T](implicit evidence$1: UnivEq[T]): UnivEq[ValueExpr[T]]