Struct egui_theme::EguiTheme[][src]

pub struct EguiTheme { /* fields omitted */ }
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.

Returns the version of this theme.

Extracts the theme information destructively. This will encode all of the serialized data into an egui::Context ready format.

Important

The theme will no longer be usable after extraction and will move the Style and FontDefinitions data for use.

Style and font data should be managed by your application after extraction.

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

Performs the conversion.

Performs the conversion.

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.