Struct style::values::computed::font::FontSize [] [src]

pub struct FontSize {
    pub size: NonNegativeLength,
    pub keyword_info: Option<KeywordInfo>,
}

The computed value of font-size

Fields

The size.

If derived from a keyword, the keyword and additional transformations applied to it

Methods

impl FontSize
[src]

[src]

The actual computed font size.

[src]

Get default value of font size.

[src]

FIXME(emilio): This is very complex. Also, it should move to StyleBuilder.

[src]

Cascade the initial value for the font-size property.

FIXME(emilio): This is the only function that is outside of the StyleBuilder, and should really move inside!

Can we move the font stuff there?

Trait Implementations

impl Animate for FontSize
[src]

[src]

Animate a value towards another one, given an animation procedure.

impl ComputeSquaredDistance for FontSize
[src]

[src]

Computes the squared distance between two animatable values.

impl MallocSizeOf for FontSize
[src]

[src]

Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more

impl ToAnimatedZero for FontSize
[src]

[src]

Returns a value that, when added with an underlying value, will produce the underlying value. This is used for SMIL animation's "by-animation" where SMIL first interpolates from the zero value to the 'by' value, and then adds the result to the underlying value. Read more

impl Clone for FontSize
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for FontSize
[src]

impl Debug for FontSize
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for FontSize
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl ToCss for FontSize
[src]

[src]

Serialize self in CSS syntax, writing to dest.

[src]

Serialize self in CSS syntax and return a string. Read more

impl ToAnimatedValue for FontSize
[src]

XXXManishearth it might be better to animate this as computed, however this complicates clamping and might not be the right thing to do. We should figure it out.

The type of the animated value.

[src]

Converts this value to an animated value.

[src]

Converts back an animated value into a computed value.