Struct aflak_imgui::ImGuiStyle[][src]

#[repr(C)]
pub struct ImGuiStyle { pub alpha: f32, pub window_padding: ImVec2, pub window_rounding: f32, pub window_border_size: f32, pub window_min_size: ImVec2, pub window_title_align: ImVec2, pub child_rounding: f32, pub child_border_size: f32, pub popup_rounding: f32, pub popup_border_size: f32, pub frame_padding: ImVec2, pub frame_rounding: f32, pub frame_border_size: f32, pub item_spacing: ImVec2, pub item_inner_spacing: ImVec2, pub touch_extra_padding: ImVec2, pub indent_spacing: f32, pub columns_min_spacing: f32, pub scrollbar_size: f32, pub scrollbar_rounding: f32, pub grab_min_size: f32, pub grab_rounding: f32, pub button_text_align: ImVec2, pub display_window_padding: ImVec2, pub display_safe_area_padding: ImVec2, pub anti_aliased_lines: bool, pub anti_aliased_fill: bool, pub curve_tessellation_tol: f32, pub colors: [ImVec4; 43], }

Runtime data for styling/colors

Fields

Global alpha applies to everything in ImGui

Padding within a window

Radius of window corners rounding. Set to 0.0f to have rectangular windows

Thickness of border around windows. Generally set to 0.0f or 1.0f. Other values not well tested.

Minimum window size

Alignment for title bar text. Defaults to (0.0f, 0.5f) for left-aligned, vertically centered

Radius of child window corners rounding. Set to 0.0f to have rectangular child windows

Thickness of border around child windows. Generally set to 0.0f or 1.0f. Other values not well tested.

Radius of popup window corners rounding. Set to 0.0f to have rectangular child windows

Thickness of border around popup or tooltip windows. Generally set to 0.0f or 1.0f. Other values not well tested.

Padding within a framed rectangle (used by most widgets)

Radius of frame corners rounding. Set to 0.0f to have rectangular frames (used by most widgets).

Thickness of border around frames. Generally set to 0.0f or 1.0f. Other values not well tested.

Horizontal and vertical spacing between widgets/lines

Horizontal and vertical spacing between within elements of a composed widget (e.g. a slider and its label)

Expand reactive bounding box for touch-based system where touch position is not accurate enough. Unfortunately we don't sort widgets so priority on overlap will always be given to the first widget. So don't grow this too much!

Horizontal spacing when e.g. entering a tree node. Generally == (FontSize + FramePadding.x*2).

Minimum horizontal spacing between two columns

Width of the vertical scrollbar, Height of the horizontal scrollbar

Width of the vertical scrollbar, Height of the horizontal scrollbar

Minimum width/height of a grab box for slider/scrollbar

Radius of grabs corners rounding. Set to 0.0f to have rectangular slider grabs.

Alignment of button text when button is larger than text. Defaults to (0.5f, 0.5f) for horizontally + vertically centered

Window positions are clamped to be visible within the display area by at least this amount. Only covers regular windows.

If you cannot see the edge of your screen (e.g. on a TV) increase the safe area padding. Covers popups/tooltips as well regular windows.

Enable anti-aliasing on lines/borders. Disable if you are really short on CPU/GPU.

Enable anti-aliasing on filled shapes (rounded rectangles, circles, etc.)

Tessellation tolerance. Decrease for highly tessellated curves (higher quality, more polygons), increase to reduce quality.

Colors for the user interface

Auto Trait Implementations

impl Send for ImGuiStyle

impl Sync for ImGuiStyle