DslNum

final class DslNum[N](self: N) extends AnyVal
class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def %%: Percentage[N]

Size as a percentage.

Size as a percentage.

def *(l: Length[N])(implicit N: Numeric[N]): Length[N]
def *(l: Resolution[N])(implicit N: Numeric[N]): Resolution[N]
def ch: Length[N]

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.

def cm: Length[N]

Centimeters.

Centimeters.

def dpcm: Resolution[N]

Dots per centimeter

Dots per centimeter

def dpi: Resolution[N]

Dots per inch

Dots per inch

def dppx: Resolution[N]

This unit represents the number of dots per px unit. Due to the 1:96 fixed ratio of CSS in to CSS px, 1dppx is equivalent to 96dpi, that corresponds to the default resolution of images displayed in CSS as defined by image-resolution.

This unit represents the number of dots per px unit. Due to the 1:96 fixed ratio of CSS in to CSS px, 1dppx is equivalent to 96dpi, that corresponds to the default resolution of images displayed in CSS as defined by image-resolution.

def em: Length[N]

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.

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.

def ex: Length[N]

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.

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.

def in: Length[N]

Inches (1in = 2.54 cm).

Inches (1in = 2.54 cm).

def mm: Length[N]

Millimeters.

Millimeters.

def pc: Length[N]

Picas (1pc = 12pt).

Picas (1pc = 12pt).

def pt: Length[N]

Points (1pt = 1/72 of 1in).

Points (1pt = 1/72 of 1in).

def px: Length[N]

Pixel. 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.

Pixel. 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.

def rem: Length[N]

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.

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.

def vh: Length[N]

1/100th of the height of the viewport.

1/100th of the height of the viewport.

def vmax: Length[N]

1/100th of the maximum value between the height and the width of the viewport.

1/100th of the maximum value between the height and the width of the viewport.

def vmin: Length[N]

1/100th of the minimum value between the height and the width of the viewport.

1/100th of the minimum value between the height and the width of the viewport.

def vw: Length[N]

1/100th of the width of the viewport.

1/100th of the width of the viewport.