public final class ImGuiStyle
extends java.lang.Object
Constructor and Description |
---|
ImGuiStyle()
This class will create a native structure.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
float |
getAlpha()
Global alpha applies to everything in Dear ImGui.
|
boolean |
getAntiAliasedFill()
Enable anti-aliasing on filled shapes (rounded rectangles, circles, etc.)
|
boolean |
getAntiAliasedLines()
Enable anti-aliasing on lines/borders.
|
void |
getButtonTextAlign(ImVec2 dstImVec2)
Alignment of button text when button is larger than text.
|
float |
getChildBorderSize()
Thickness of border around child windows.
|
float |
getChildRounding()
Radius of child window corners rounding.
|
float |
getCircleSegmentMaxError()
Maximum error (in pixels) allowed when using AddCircle()/AddCircleFilled() or drawing rounded corner rectangles with no explicit segment count specified.
|
void |
getColor(int imGuiCol,
ImVec4 dstImVec4) |
int |
getColorButtonPosition()
Side of the color button in the ColorEdit4 widget (left/right).
|
void |
getColors(float[][] buff)
BINDING NOTICE: colors is a 2d array with sizes: [ImGuiCol_COUNT][4]
|
float |
getColumnsMinSpacing()
Minimum horizontal spacing between two columns.
|
float |
getCurveTessellationTol()
Tessellation tolerance when using PathBezierCurveTo() without a specific number of segments.
|
void |
getDisplaySafeAreaPadding(ImVec2 dstImVec2)
If you cannot see the edges of your screen (e.g.
|
void |
getDisplayWindowPadding(ImVec2 dstImVec2)
Window position are clamped to be visible within the display area by at least this amount.
|
float |
getFrameBorderSize()
Thickness of border around frames.
|
void |
getFramePadding(ImVec2 dstImVec2)
Padding within a framed rectangle (used by most widgets).
|
float |
getFrameRounding()
Radius of frame corners rounding.
|
float |
getGrabMinSize()
Minimum width/height of a grab box for slider/scrollbar.
|
float |
getGrabRounding()
Radius of grabs corners rounding.
|
float |
getIndentSpacing()
Horizontal indentation when e.g.
|
void |
getItemInnerSpacing(ImVec2 dstImVec2)
Horizontal and vertical spacing between within elements of a composed widget (e.g.
|
void |
getItemSpacing(ImVec2 dstImVec2)
Horizontal and vertical spacing between widgets/lines.
|
float |
getMouseCursorScale()
Scale software rendered mouse cursor (when io.MouseDrawCursor is enabled).
|
float |
getPopupBorderSize()
Thickness of border around popup/tooltip windows.
|
float |
getPopupRounding()
Radius of popup window corners rounding.
|
float |
getScrollbarRounding()
Radius of grab corners for scrollbar.
|
float |
getScrollbarSize()
Width of the vertical scrollbar, Height of the horizontal scrollbar.
|
void |
getSelectableTextAlign(ImVec2 dstImVec2)
Alignment of selectable text when selectable is larger than text.
|
float |
getTabBorderSize()
Thickness of border around tabs.
|
float |
getTabRounding()
Radius of upper corners of a tab.
|
void |
getTouchExtraPadding(ImVec2 dstImVec2)
Expand reactive bounding box for touch-based system where touch position is not accurate enough.
|
float |
getWindowBorderSize()
Thickness of border around windows.
|
int |
getWindowMenuButtonPosition()
Side of the collapsing/docking button in the title bar (None/Left/Right).
|
void |
getWindowMinSize(ImVec2 dstImVec2)
Minimum window size.
|
void |
getWindowPadding(ImVec2 dstImVec2)
Padding within a window.
|
float |
getWindowRounding()
Radius of window corners rounding.
|
void |
getWindowTitleAlign(ImVec2 dstImVec2)
Alignment for title bar text.
|
void |
scaleAllSizes(float scaleFactor) |
void |
setAlpha(float alpha)
Global alpha applies to everything in Dear ImGui.
|
void |
setAntiAliasedFill(boolean antiAliasedFill)
Enable anti-aliasing on filled shapes (rounded rectangles, circles, etc.)
|
void |
setAntiAliasedLines(boolean antiAliasedLines)
Enable anti-aliasing on lines/borders.
|
void |
setButtonTextAlign(float x,
float y)
Alignment of button text when button is larger than text.
|
void |
setChildBorderSize(float childBorderSize)
Thickness of border around child windows.
|
void |
setChildRounding(float childRounding)
Radius of child window corners rounding.
|
void |
setCircleSegmentMaxError(float circleSegmentMaxError)
Maximum error (in pixels) allowed when using AddCircle()/AddCircleFilled() or drawing rounded corner rectangles with no explicit segment count specified.
|
void |
setColor(int imGuiCol,
float r,
float g,
float b,
float a) |
void |
setColorButtonPosition(int colorButtonPosition)
Side of the color button in the ColorEdit4 widget (left/right).
|
void |
setColors(float[][] colors)
BINDING NOTICE: colors is a 2d array with sizes: [ImGuiCol_COUNT][4]
|
void |
setColumnsMinSpacing(float columnsMinSpacing)
Minimum horizontal spacing between two columns.
|
void |
setCurveTessellationTol(float curveTessellationTol)
Tessellation tolerance when using PathBezierCurveTo() without a specific number of segments.
|
void |
setDisplaySafeAreaPadding(float x,
float y)
If you cannot see the edges of your screen (e.g.
|
void |
setDisplayWindowPadding(float x,
float y)
Window position are clamped to be visible within the display area by at least this amount.
|
void |
setFrameBorderSize(float frameBorderSize)
Thickness of border around frames.
|
void |
setFramePadding(float x,
float y)
Padding within a framed rectangle (used by most widgets).
|
void |
setFrameRounding(float frameRounding)
Radius of frame corners rounding.
|
void |
setGrabMinSize(float grabMinSize)
Minimum width/height of a grab box for slider/scrollbar.
|
void |
setGrabRounding(float grabRounding)
Radius of grabs corners rounding.
|
void |
setIndentSpacing(float indentSpacing)
Horizontal indentation when e.g.
|
void |
setItemInnerSpacing(float x,
float y)
Horizontal and vertical spacing between within elements of a composed widget (e.g.
|
void |
setItemSpacing(float x,
float y)
Horizontal and vertical spacing between widgets/lines.
|
void |
setMouseCursorScale(float mouseCursorScale)
Scale software rendered mouse cursor (when io.MouseDrawCursor is enabled).
|
void |
setPopupBorderSize(float popupBorderSize)
Thickness of border around popup/tooltip windows.
|
void |
setPopupRounding(float popupRounding)
Radius of popup window corners rounding.
|
void |
setScrollbarRounding(float scrollbarRounding)
Radius of grab corners for scrollbar.
|
void |
setScrollbarSize(float scrollbarSize)
Width of the vertical scrollbar, Height of the horizontal scrollbar.
|
void |
setSelectableTextAlign(float x,
float y)
Alignment of selectable text when selectable is larger than text.
|
void |
setTabBorderSize(float tabBorderSize)
Thickness of border around tabs.
|
void |
setTabRounding(float tabRounding)
Radius of upper corners of a tab.
|
void |
setTouchExtraPadding(float x,
float y)
Expand reactive bounding box for touch-based system where touch position is not accurate enough.
|
void |
setWindowBorderSize(float windowBorderSize)
Thickness of border around windows.
|
void |
setWindowMenuButtonPosition(int windowMenuButtonPosition)
Side of the collapsing/docking button in the title bar (None/Left/Right).
|
void |
setWindowMinSize(float x,
float y)
Minimum window size.
|
void |
setWindowPadding(float x,
float y)
Padding within a window.
|
void |
setWindowRounding(float windowRounding)
Radius of window corners rounding.
|
void |
setWindowTitleAlign(float x,
float y)
Alignment for title bar text.
|
public ImGuiStyle()
destroy()
method to manually free used memory.public void destroy()
public float getAlpha()
public void setAlpha(float alpha)
public void getWindowPadding(ImVec2 dstImVec2)
public void setWindowPadding(float x, float y)
public float getWindowRounding()
public void setWindowRounding(float windowRounding)
public float getWindowBorderSize()
public void setWindowBorderSize(float windowBorderSize)
public void getWindowMinSize(ImVec2 dstImVec2)
public void setWindowMinSize(float x, float y)
public void getWindowTitleAlign(ImVec2 dstImVec2)
public void setWindowTitleAlign(float x, float y)
public int getWindowMenuButtonPosition()
public void setWindowMenuButtonPosition(int windowMenuButtonPosition)
public float getChildRounding()
public void setChildRounding(float childRounding)
public float getChildBorderSize()
public void setChildBorderSize(float childBorderSize)
public float getPopupRounding()
public void setPopupRounding(float popupRounding)
public float getPopupBorderSize()
public void setPopupBorderSize(float popupBorderSize)
public void getFramePadding(ImVec2 dstImVec2)
public void setFramePadding(float x, float y)
public float getFrameRounding()
public void setFrameRounding(float frameRounding)
public float getFrameBorderSize()
public void setFrameBorderSize(float frameBorderSize)
public void getItemSpacing(ImVec2 dstImVec2)
public void setItemSpacing(float x, float y)
public void getItemInnerSpacing(ImVec2 dstImVec2)
public void setItemInnerSpacing(float x, float y)
public void getTouchExtraPadding(ImVec2 dstImVec2)
public void setTouchExtraPadding(float x, float y)
public float getIndentSpacing()
public void setIndentSpacing(float indentSpacing)
public float getColumnsMinSpacing()
public void setColumnsMinSpacing(float columnsMinSpacing)
public float getScrollbarSize()
public void setScrollbarSize(float scrollbarSize)
public float getScrollbarRounding()
public void setScrollbarRounding(float scrollbarRounding)
public float getGrabMinSize()
public void setGrabMinSize(float grabMinSize)
public float getGrabRounding()
public void setGrabRounding(float grabRounding)
public float getTabRounding()
public void setTabRounding(float tabRounding)
public float getTabBorderSize()
public void setTabBorderSize(float tabBorderSize)
public int getColorButtonPosition()
public void setColorButtonPosition(int colorButtonPosition)
public void getButtonTextAlign(ImVec2 dstImVec2)
public void setButtonTextAlign(float x, float y)
public void getSelectableTextAlign(ImVec2 dstImVec2)
public void setSelectableTextAlign(float x, float y)
public void getDisplayWindowPadding(ImVec2 dstImVec2)
public void setDisplayWindowPadding(float x, float y)
public void getDisplaySafeAreaPadding(ImVec2 dstImVec2)
public void setDisplaySafeAreaPadding(float x, float y)
public float getMouseCursorScale()
public void setMouseCursorScale(float mouseCursorScale)
public boolean getAntiAliasedLines()
public void setAntiAliasedLines(boolean antiAliasedLines)
public boolean getAntiAliasedFill()
public void setAntiAliasedFill(boolean antiAliasedFill)
public float getCurveTessellationTol()
public void setCurveTessellationTol(float curveTessellationTol)
public float getCircleSegmentMaxError()
public void setCircleSegmentMaxError(float circleSegmentMaxError)
public void getColors(float[][] buff)
public void setColors(float[][] colors)
public void getColor(int imGuiCol, ImVec4 dstImVec4)
public void setColor(int imGuiCol, float r, float g, float b, float a)
public void scaleAllSizes(float scaleFactor)