Struct rust_rpg_toolkit::gui::GuiTheme[][src]

pub struct GuiTheme {
Show 41 fields pub font_size: u16, pub header_font_size: u16, pub window_title_size: u16, pub button_font_size: u16, pub text_color: Color, pub highlight_text_color: Color, pub warning_text_color: Color, pub window_title_color: Color, pub editbox_text_color: Color, pub button_text_color: Color, pub button_text_color_inactive: Color, pub window_margins: RectOffset, pub label_margins: RectOffset, pub header_label_margins: RectOffset, pub window_title_margins: RectOffset, pub button_margins: RectOffset, pub editbox_margins: RectOffset, pub checkbox_margins: RectOffset, pub button_height: f32, pub group_border_color: Color, pub group_border_color_hovered: Color, pub group_border_color_clicked: Color, pub group_margins: RectOffset, pub scrollbar_color: Color, pub scrollbar_color_hovered: Color, pub scrollbar_color_clicked: Color, pub scrollbar_handle_color: Color, pub scrollbar_handle_color_hovered: Color, pub scrollbar_handle_color_clicked: Color, pub window_bg: GuiImage, pub button_bg: GuiImage, pub button_bg_hovered: GuiImage, pub button_bg_clicked: GuiImage, pub button_bg_inactive: GuiImage, pub editbox_bg: GuiImage, pub checkbox_bg: GuiImage, pub checkbox_bg_hovered: GuiImage, pub checkbox_bg_clicked: GuiImage, pub checkbox_bg_selected: GuiImage, pub checkbox_bg_selected_hovered: GuiImage, pub menu_params: HashMap<String, MenuParams>,
}

Fields

font_size: u16header_font_size: u16window_title_size: u16button_font_size: u16text_color: Colorhighlight_text_color: Colorwarning_text_color: Colorwindow_title_color: Coloreditbox_text_color: Colorbutton_text_color: Colorbutton_text_color_inactive: Colorwindow_margins: RectOffsetlabel_margins: RectOffsetheader_label_margins: RectOffsetwindow_title_margins: RectOffsetbutton_margins: RectOffseteditbox_margins: RectOffsetcheckbox_margins: RectOffsetbutton_height: f32group_border_color: Colorgroup_border_color_hovered: Colorgroup_border_color_clicked: Colorgroup_margins: RectOffsetscrollbar_color: Colorscrollbar_color_hovered: Colorscrollbar_color_clicked: Colorscrollbar_handle_color: Colorscrollbar_handle_color_hovered: Colorscrollbar_handle_color_clicked: Colorwindow_bg: GuiImagebutton_bg: GuiImagebutton_bg_hovered: GuiImagebutton_bg_clicked: GuiImagebutton_bg_inactive: GuiImageeditbox_bg: GuiImagecheckbox_bg: GuiImagecheckbox_bg_hovered: GuiImagecheckbox_bg_clicked: GuiImagecheckbox_bg_selected: GuiImagecheckbox_bg_selected_hovered: GuiImagemenu_params: HashMap<String, MenuParams>

Implementations

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.