pub struct EguiTheme { /* private fields */ }
Expand description

The EguiTheme is the serializable contents of the relevant font information. This is intended to only be used when reading and writing the Style and FontDefinition information to/from disk.

The FontData is stored directly into the theme as base64 encoded Strings.

Important

This should only be used during the Serialization/Deserialization process. Once the loading has completed, this should be extracted directly to an egui::Context as soon as it has been fully loaded.

Implementations

Create a new style from the required information. style the egui style information font_definitions the current font definitions.

Consumes the deserialized theme destructively to product the style/font

Trait Implementations

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