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 only useful for writing and reading the Style and FontDefinitions from disk. This is essentially a container for Style and FontDefinitions In addition, it will also serialize the egui::FontData into base64 format to encode the font data directly into the theme

Implementations

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

Extracts the file information and consumes the theme to retreive the Style and FontDefinitions This is the only supported way to move the style and font data into Egui. This should only be used when loading the theme from disk for the first time.

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.