struct ImGui::ImGuiStyle
 
  - ImGui::ImGuiStyle
- Struct
- Value
- Object
Overview
Included Modules
- ImGui::ClassType(LibImGui::ImGuiStyle)
Defined in:
obj.crConstructors
Instance Method Summary
- 
        #alpha : Float32
        
          Global alpha applies to everything in Dear ImGui. 
- #alpha=(alpha : Float32)
- 
        #anti_aliased_fill : Bool
        
          Enable anti-aliased edges around filled shapes (rounded rectangles, circles, etc.). 
- #anti_aliased_fill=(anti_aliased_fill : Bool)
- 
        #anti_aliased_lines : Bool
        
          Enable anti-aliased lines/borders. 
- #anti_aliased_lines=(anti_aliased_lines : Bool)
- 
        #anti_aliased_lines_use_tex : Bool
        
          Enable anti-aliased lines/borders using textures where possible. 
- #anti_aliased_lines_use_tex=(anti_aliased_lines_use_tex : Bool)
- 
        #button_text_align : ImVec2
        
          Alignment of button text when button is larger than text. 
- #button_text_align=(button_text_align : ImVec2)
- 
        #cell_padding : ImVec2
        
          Padding within a table cell. 
- #cell_padding=(cell_padding : ImVec2)
- 
        #child_border_size : Float32
        
          Thickness of border around child windows. 
- #child_border_size=(child_border_size : Float32)
- 
        #child_rounding : Float32
        
          Radius of child window corners rounding. 
- #child_rounding=(child_rounding : Float32)
- 
        #circle_tessellation_max_error : Float32
        
          Maximum error (in pixels) allowed when using AddCircle()/AddCircleFilled() or drawing rounded corner rectangles with no explicit segment count specified. 
- #circle_tessellation_max_error=(circle_tessellation_max_error : Float32)
- 
        #color_button_position : ImGuiDir
        
          Side of the color button in the ColorEdit4 widget (left/right). 
- #color_button_position=(color_button_position : ImGuiDir)
- #colors : Slice(ImVec4)
- #colors=(colors : Slice(ImVec4))
- 
        #columns_min_spacing : Float32
        
          Minimum horizontal spacing between two columns. 
- #columns_min_spacing=(columns_min_spacing : Float32)
- 
        #curve_tessellation_tol : Float32
        
          Tessellation tolerance when using PathBezierCurveTo() without a specific number of segments. 
- #curve_tessellation_tol=(curve_tessellation_tol : Float32)
- 
        #disabled_alpha : Float32
        
          Additional alpha multiplier applied by BeginDisabled(). 
- #disabled_alpha=(disabled_alpha : Float32)
- 
        #display_safe_area_padding : ImVec2
        
          If you cannot see the edges of your screen (e.g. 
- #display_safe_area_padding=(display_safe_area_padding : ImVec2)
- 
        #display_window_padding : ImVec2
        
          Window position are clamped to be visible within the display area or monitors by at least this amount. 
- #display_window_padding=(display_window_padding : ImVec2)
- 
        #frame_border_size : Float32
        
          Thickness of border around frames. 
- #frame_border_size=(frame_border_size : Float32)
- 
        #frame_padding : ImVec2
        
          Padding within a framed rectangle (used by most widgets). 
- #frame_padding=(frame_padding : ImVec2)
- 
        #frame_rounding : Float32
        
          Radius of frame corners rounding. 
- #frame_rounding=(frame_rounding : Float32)
- 
        #grab_min_size : Float32
        
          Minimum width/height of a grab box for slider/scrollbar. 
- #grab_min_size=(grab_min_size : Float32)
- 
        #grab_rounding : Float32
        
          Radius of grabs corners rounding. 
- #grab_rounding=(grab_rounding : Float32)
- 
        #hover_delay_normal : Float32
        
          Delay for IsItemHovered(ImGuiHoveredFlags_DelayNormal). 
- #hover_delay_normal=(hover_delay_normal : Float32)
- 
        #hover_delay_short : Float32
        
          Delay for IsItemHovered(ImGuiHoveredFlags_DelayShort). 
- #hover_delay_short=(hover_delay_short : Float32)
- 
        #hover_flags_for_tooltip_mouse : ImGuiHoveredFlags
        
          Default flags when using IsItemHovered(ImGuiHoveredFlags_ForTooltip) or BeginItemTooltip()/SetItemTooltip() while using mouse. 
- #hover_flags_for_tooltip_mouse=(hover_flags_for_tooltip_mouse : ImGuiHoveredFlags)
- 
        #hover_flags_for_tooltip_nav : ImGuiHoveredFlags
        
          Default flags when using IsItemHovered(ImGuiHoveredFlags_ForTooltip) or BeginItemTooltip()/SetItemTooltip() while using keyboard/gamepad. 
- #hover_flags_for_tooltip_nav=(hover_flags_for_tooltip_nav : ImGuiHoveredFlags)
- 
        #hover_stationary_delay : Float32
        
          Delay for IsItemHovered(ImGuiHoveredFlags_Stationary). 
- #hover_stationary_delay=(hover_stationary_delay : Float32)
- 
        #indent_spacing : Float32
        
          Horizontal indentation when e.g. 
- #indent_spacing=(indent_spacing : Float32)
- 
        #item_inner_spacing : ImVec2
        
          Horizontal and vertical spacing between within elements of a composed widget (e.g. 
- #item_inner_spacing=(item_inner_spacing : ImVec2)
- 
        #item_spacing : ImVec2
        
          Horizontal and vertical spacing between widgets/lines. 
- #item_spacing=(item_spacing : ImVec2)
- 
        #log_slider_deadzone : Float32
        
          The size in pixels of the dead-zone around zero on logarithmic sliders that cross zero. 
- #log_slider_deadzone=(log_slider_deadzone : Float32)
- 
        #mouse_cursor_scale : Float32
        
          Scale software rendered mouse cursor (when io.MouseDrawCursor is enabled). 
- #mouse_cursor_scale=(mouse_cursor_scale : Float32)
- 
        #popup_border_size : Float32
        
          Thickness of border around popup/tooltip windows. 
- #popup_border_size=(popup_border_size : Float32)
- 
        #popup_rounding : Float32
        
          Radius of popup window corners rounding. 
- #popup_rounding=(popup_rounding : Float32)
- #scale_all_sizes(scale_factor : Float32) : Void
- 
        #scrollbar_rounding : Float32
        
          Radius of grab corners for scrollbar. 
- #scrollbar_rounding=(scrollbar_rounding : Float32)
- 
        #scrollbar_size : Float32
        
          Width of the vertical scrollbar, Height of the horizontal scrollbar. 
- #scrollbar_size=(scrollbar_size : Float32)
- 
        #selectable_text_align : ImVec2
        
          Alignment of selectable text. 
- #selectable_text_align=(selectable_text_align : ImVec2)
- 
        #separator_text_align : ImVec2
        
          Alignment of text within the separator. 
- #separator_text_align=(separator_text_align : ImVec2)
- 
        #separator_text_border_size : Float32
        
          Thickkness of border in SeparatorText() 
- #separator_text_border_size=(separator_text_border_size : Float32)
- 
        #separator_text_padding : ImVec2
        
          Horizontal offset of text from each edge of the separator + spacing on other axis. 
- #separator_text_padding=(separator_text_padding : ImVec2)
- 
        #tab_bar_border_size : Float32
        
          Thickness of tab-bar separator, which takes on the tab active color to denote focus. 
- #tab_bar_border_size=(tab_bar_border_size : Float32)
- 
        #tab_border_size : Float32
        
          Thickness of border around tabs. 
- #tab_border_size=(tab_border_size : Float32)
- 
        #tab_min_width_for_close_button : Float32
        
          Minimum width for close button to appear on an unselected tab when hovered. 
- #tab_min_width_for_close_button=(tab_min_width_for_close_button : Float32)
- 
        #tab_rounding : Float32
        
          Radius of upper corners of a tab. 
- #tab_rounding=(tab_rounding : Float32)
- 
        #table_angled_headers_angle : Float32
        
          Angle of angled headers (supported values range from -50.0f degrees to +50.0f degrees). 
- #table_angled_headers_angle=(table_angled_headers_angle : Float32)
- 
        #table_angled_headers_text_align : ImVec2
        
          Alignment of angled headers within the cell 
- #table_angled_headers_text_align=(table_angled_headers_text_align : ImVec2)
- #to_unsafe : Pointer(T)
- 
        #touch_extra_padding : ImVec2
        
          Expand reactive bounding box for touch-based system where touch position is not accurate enough. 
- #touch_extra_padding=(touch_extra_padding : ImVec2)
- 
        #window_border_size : Float32
        
          Thickness of border around windows. 
- #window_border_size=(window_border_size : Float32)
- 
        #window_menu_button_position : ImGuiDir
        
          Side of the collapsing/docking button in the title bar (None/Left/Right). 
- #window_menu_button_position=(window_menu_button_position : ImGuiDir)
- 
        #window_min_size : ImVec2
        
          Minimum window size. 
- #window_min_size=(window_min_size : ImVec2)
- 
        #window_padding : ImVec2
        
          Padding within a window. 
- #window_padding=(window_padding : ImVec2)
- 
        #window_rounding : Float32
        
          Radius of window corners rounding. 
- #window_rounding=(window_rounding : Float32)
- 
        #window_title_align : ImVec2
        
          Alignment for title bar text. 
- #window_title_align=(window_title_align : ImVec2)
Constructor Detail
Instance Method Detail
Enable anti-aliased edges around filled shapes (rounded rectangles, circles, etc.). Disable if you are really tight on CPU/GPU. Latched at the beginning of the frame (copied to ImDrawList).
Enable anti-aliased lines/borders. Disable if you are really tight on CPU/GPU. Latched at the beginning of the frame (copied to ImDrawList).
Enable anti-aliased lines/borders using textures where possible. Require backend to render with bilinear filtering (NOT point/nearest filtering). Latched at the beginning of the frame (copied to ImDrawList).
Alignment of button text when button is larger than text. Defaults to (0.5f, 0.5f) (centered).
Padding within a table cell. Cellpadding.x is locked for entire table. CellPadding.y may be altered between different rows.
Thickness of border around child windows. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly).
Radius of child window corners rounding. Set to 0.0f to have rectangular windows.
Maximum error (in pixels) allowed when using AddCircle()/AddCircleFilled() or drawing rounded corner rectangles with no explicit segment count specified. Decrease for higher quality but more geometry.
Side of the color button in the ColorEdit4 widget (left/right). Defaults to ImGuiDir_Right.
Minimum horizontal spacing between two columns. Preferably > (FramePadding.x + 1).
Tessellation tolerance when using PathBezierCurveTo() without a specific number of segments. Decrease for highly tessellated curves (higher quality, more polygons), increase to reduce quality.
Additional alpha multiplier applied by BeginDisabled(). Multiply over current value of Alpha.
If you cannot see the edges of your screen (e.g. on a TV) increase the safe area padding. Apply to popups/tooltips as well regular windows. NB: Prefer configuring your TV sets correctly!
Window position are clamped to be visible within the display area or monitors by at least this amount. Only applies to regular windows.
Thickness of border around frames. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly).
Padding within a framed rectangle (used by most widgets).
Radius of frame corners rounding. Set to 0.0f to have rectangular frame (used by most widgets).
Radius of grabs corners rounding. Set to 0.0f to have rectangular slider grabs.
Delay for IsItemHovered(ImGuiHoveredFlags_DelayShort). Usually used along with HoverStationaryDelay.
Default flags when using IsItemHovered(ImGuiHoveredFlags_ForTooltip) or BeginItemTooltip()/SetItemTooltip() while using mouse.
Delay for IsItemHovered(ImGuiHoveredFlags_Stationary). Time required to consider mouse stationary.
Horizontal indentation when e.g. entering a tree node. Generally == (FontSize + FramePadding.x*2).
Horizontal and vertical spacing between within elements of a composed widget (e.g. a slider and its label).
The size in pixels of the dead-zone around zero on logarithmic sliders that cross zero.
Scale software rendered mouse cursor (when io.MouseDrawCursor is enabled). May be removed later.
Thickness of border around popup/tooltip windows. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly).
Radius of popup window corners rounding. (Note that tooltip windows use WindowRounding)
Alignment of selectable text. Defaults to (0.0f, 0.0f) (top-left aligned). It's generally important to keep this left-aligned if you want to lay multiple items on a same line.
Alignment of text within the separator. Defaults to (0.0f, 0.5f) (left aligned, center).
Horizontal offset of text from each edge of the separator + spacing on other axis. Generally small values. .y is recommended to be == FramePadding.y.
Thickness of tab-bar separator, which takes on the tab active color to denote focus.
Minimum width for close button to appear on an unselected tab when hovered. Set to 0.0f to always show when hovering, set to FLT_MAX to never show close button unless selected.
Radius of upper corners of a tab. Set to 0.0f to have rectangular tabs.
Angle of angled headers (supported values range from -50.0f degrees to +50.0f degrees).
Alignment of angled headers within the cell
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!
Thickness of border around windows. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly).
Minimum window size. This is a global setting. If you want to constrain individual windows, use SetNextWindowSizeConstraints().
Radius of window corners rounding. Set to 0.0f to have rectangular windows. Large values tend to lead to variety of artifacts and are not recommended.
Alignment for title bar text. Defaults to (0.0f,0.5f) for left-aligned,vertically centered.