pub struct ScrollOptions {
    pub max_height: usize,
    pub interval: f32,
}
Available on crate feature svg only.
Expand description

Options that influence the scrolling animation.

The animation is only displayed if the console exceeds Self::max_height. In this case, the console will be scrolled vertically with the interval of Self::interval seconds between every frame. The view is moved 4 lines of text per scroll.

Fields

max_height: usize

Maximum height of the console, in pixels. The default value allows to fit 19 lines of text into the view (potentially, slightly less because of vertical margins around user inputs).

interval: f32

Interval between keyframes in seconds. The default value is 4.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.