struct ImGui::ImGuiStyle

Overview

struct ImGuiStyle

Included Modules

Defined in:

obj.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new : ImGuiStyle #

[View source]

Instance Method Detail

def alpha : Float32 #

Global alpha applies to everything in Dear ImGui.


[View source]
def alpha=(alpha : Float32) #

[View source]
def anti_aliased_fill : Bool #

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).


[View source]
def anti_aliased_fill=(anti_aliased_fill : Bool) #

[View source]
def anti_aliased_lines : Bool #

Enable anti-aliased lines/borders. Disable if you are really tight on CPU/GPU. Latched at the beginning of the frame (copied to ImDrawList).


[View source]
def anti_aliased_lines=(anti_aliased_lines : Bool) #

[View source]
def anti_aliased_lines_use_tex : Bool #

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).


[View source]
def anti_aliased_lines_use_tex=(anti_aliased_lines_use_tex : Bool) #

[View source]
def button_text_align : ImVec2 #

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


[View source]
def button_text_align=(button_text_align : ImVec2) #

[View source]
def cell_padding : ImVec2 #

Padding within a table cell. CellPadding.y may be altered between different rows.


[View source]
def cell_padding=(cell_padding : ImVec2) #

[View source]
def child_border_size : Float32 #

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).


[View source]
def child_border_size=(child_border_size : Float32) #

[View source]
def child_rounding : Float32 #

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


[View source]
def child_rounding=(child_rounding : Float32) #

[View source]
def 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. Decrease for higher quality but more geometry.


[View source]
def circle_tessellation_max_error=(circle_tessellation_max_error : Float32) #

[View source]
def color_button_position : ImGuiDir #

Side of the color button in the ColorEdit4 widget (left/right). Defaults to ImGuiDir_Right.


[View source]
def color_button_position=(color_button_position : ImGuiDir) #

[View source]
def colors : Slice(ImVec4) #

[View source]
def colors=(colors : Slice(ImVec4)) #

[View source]
def columns_min_spacing : Float32 #

Minimum horizontal spacing between two columns. Preferably > (FramePadding.x + 1).


[View source]
def columns_min_spacing=(columns_min_spacing : Float32) #

[View source]
def curve_tessellation_tol : Float32 #

Tessellation tolerance when using PathBezierCurveTo() without a specific number of segments. Decrease for highly tessellated curves (higher quality, more polygons), increase to reduce quality.


[View source]
def curve_tessellation_tol=(curve_tessellation_tol : Float32) #

[View source]
def disabled_alpha : Float32 #

Additional alpha multiplier applied by BeginDisabled(). Multiply over current value of Alpha.


[View source]
def disabled_alpha=(disabled_alpha : Float32) #

[View source]
def display_safe_area_padding : ImVec2 #

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!


[View source]
def display_safe_area_padding=(display_safe_area_padding : ImVec2) #

[View source]
def display_window_padding : ImVec2 #

Window position are clamped to be visible within the display area or monitors by at least this amount. Only applies to regular windows.


[View source]
def display_window_padding=(display_window_padding : ImVec2) #

[View source]
def frame_border_size : Float32 #

Thickness of border around frames. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly).


[View source]
def frame_border_size=(frame_border_size : Float32) #

[View source]
def frame_padding : ImVec2 #

Padding within a framed rectangle (used by most widgets).


[View source]
def frame_padding=(frame_padding : ImVec2) #

[View source]
def frame_rounding : Float32 #

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


[View source]
def frame_rounding=(frame_rounding : Float32) #

[View source]
def grab_min_size : Float32 #

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


[View source]
def grab_min_size=(grab_min_size : Float32) #

[View source]
def grab_rounding : Float32 #

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


[View source]
def grab_rounding=(grab_rounding : Float32) #

[View source]
def hover_delay_normal : Float32 #

Delay for IsItemHovered(ImGuiHoveredFlags_DelayNormal). "


[View source]
def hover_delay_normal=(hover_delay_normal : Float32) #

[View source]
def hover_delay_short : Float32 #

Delay for IsItemHovered(ImGuiHoveredFlags_DelayShort). Usually used along with HoverStationaryDelay.


[View source]
def hover_delay_short=(hover_delay_short : Float32) #

[View source]
def hover_flags_for_tooltip_mouse : ImGuiHoveredFlags #

Default flags when using IsItemHovered(ImGuiHoveredFlags_ForTooltip) or BeginItemTooltip()/SetItemTooltip() while using mouse.


[View source]
def hover_flags_for_tooltip_mouse=(hover_flags_for_tooltip_mouse : ImGuiHoveredFlags) #

[View source]
def hover_flags_for_tooltip_nav : ImGuiHoveredFlags #

Default flags when using IsItemHovered(ImGuiHoveredFlags_ForTooltip) or BeginItemTooltip()/SetItemTooltip() while using keyboard/gamepad.


[View source]
def hover_flags_for_tooltip_nav=(hover_flags_for_tooltip_nav : ImGuiHoveredFlags) #

[View source]
def hover_stationary_delay : Float32 #

Delay for IsItemHovered(ImGuiHoveredFlags_Stationary). Time required to consider mouse stationary.


[View source]
def hover_stationary_delay=(hover_stationary_delay : Float32) #

[View source]
def indent_spacing : Float32 #

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


[View source]
def indent_spacing=(indent_spacing : Float32) #

[View source]
def item_inner_spacing : ImVec2 #

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


[View source]
def item_inner_spacing=(item_inner_spacing : ImVec2) #

[View source]
def item_spacing : ImVec2 #

Horizontal and vertical spacing between widgets/lines.


[View source]
def item_spacing=(item_spacing : ImVec2) #

[View source]
def log_slider_deadzone : Float32 #

The size in pixels of the dead-zone around zero on logarithmic sliders that cross zero.


[View source]
def log_slider_deadzone=(log_slider_deadzone : Float32) #

[View source]
def mouse_cursor_scale : Float32 #

Scale software rendered mouse cursor (when io.MouseDrawCursor is enabled). May be removed later.


[View source]
def mouse_cursor_scale=(mouse_cursor_scale : Float32) #

[View source]
def popup_border_size : Float32 #

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).


[View source]
def popup_border_size=(popup_border_size : Float32) #

[View source]
def popup_rounding : Float32 #

Radius of popup window corners rounding. (Note that tooltip windows use WindowRounding)


[View source]
def popup_rounding=(popup_rounding : Float32) #

[View source]
def scale_all_sizes(scale_factor : Float32) : Void #

[View source]
def scrollbar_rounding : Float32 #

Radius of grab corners for scrollbar.


[View source]
def scrollbar_rounding=(scrollbar_rounding : Float32) #

[View source]
def scrollbar_size : Float32 #

Width of the vertical scrollbar, Height of the horizontal scrollbar.


[View source]
def scrollbar_size=(scrollbar_size : Float32) #

[View source]
def selectable_text_align : ImVec2 #

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.


[View source]
def selectable_text_align=(selectable_text_align : ImVec2) #

[View source]
def separator_text_align : ImVec2 #

Alignment of text within the separator. Defaults to (0.0f, 0.5f) (left aligned, center).


[View source]
def separator_text_align=(separator_text_align : ImVec2) #

[View source]
def separator_text_border_size : Float32 #

Thickkness of border in SeparatorText()


[View source]
def separator_text_border_size=(separator_text_border_size : Float32) #

[View source]
def separator_text_padding : ImVec2 #

Horizontal offset of text from each edge of the separator + spacing on other axis. Generally small values. .y is recommended to be == FramePadding.y.


[View source]
def separator_text_padding=(separator_text_padding : ImVec2) #

[View source]
def tab_border_size : Float32 #

Thickness of border around tabs.


[View source]
def tab_border_size=(tab_border_size : Float32) #

[View source]
def tab_min_width_for_close_button : Float32 #

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.


[View source]
def tab_min_width_for_close_button=(tab_min_width_for_close_button : Float32) #

[View source]
def tab_rounding : Float32 #

Radius of upper corners of a tab. Set to 0.0f to have rectangular tabs.


[View source]
def tab_rounding=(tab_rounding : Float32) #

[View source]
def to_unsafe : Pointer(T) #

[View source]
def touch_extra_padding : ImVec2 #

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!


[View source]
def touch_extra_padding=(touch_extra_padding : ImVec2) #

[View source]
def window_border_size : Float32 #

Thickness of border around windows. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly).


[View source]
def window_border_size=(window_border_size : Float32) #

[View source]
def window_menu_button_position : ImGuiDir #

Side of the collapsing/docking button in the title bar (None/Left/Right). Defaults to ImGuiDir_Left.


[View source]
def window_menu_button_position=(window_menu_button_position : ImGuiDir) #

[View source]
def window_min_size : ImVec2 #

Minimum window size. This is a global setting. If you want to constrain individual windows, use SetNextWindowSizeConstraints().


[View source]
def window_min_size=(window_min_size : ImVec2) #

[View source]
def window_padding : ImVec2 #

Padding within a window.


[View source]
def window_padding=(window_padding : ImVec2) #

[View source]
def window_rounding : Float32 #

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.


[View source]
def window_rounding=(window_rounding : Float32) #

[View source]
def window_title_align : ImVec2 #

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


[View source]
def window_title_align=(window_title_align : ImVec2) #

[View source]