Package gui
Class ImGuiWrapper
java.lang.Object
gui.ImGuiWrapper
public class ImGuiWrapper
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
ImGuiWrapper.DashContext
static class
ImGuiWrapper.InputTextStatus
-
Constructor Summary
Constructors Constructor Description ImGuiWrapper(imgui.ImGui a_imgui)
-
Method Summary
Modifier and Type Method Description void
addArrow(glm_.vec2.Vec2 m_start, glm_.vec2.Vec2 a_dir, int a_color)
void
addCircle(glm_.vec2.Vec2 a_center, float a_radius, int a_color, int a_segments, float a_thickness)
void
addCircleFilled(glm_.vec2.Vec2 a_center, float a_radius, int a_color, int a_segments)
void
addCircleSegment(glm_.vec2.Vec2 a_center, float a_radius, int a_color, int a_segments, float a_startAngle, float a_endAngle, float a_thickness)
void
addCurve(glm_.vec2.Vec2 a_start, glm_.vec2.Vec2 a_control, glm_.vec2.Vec2 a_end, int a_color, int a_thickness)
void
addCurve(glm_.vec2.Vec2 a_start, glm_.vec2.Vec2 a_startControl, glm_.vec2.Vec2 a_end, glm_.vec2.Vec2 a_endControl, int a_color, int a_thickness)
void
addDashedCircle(glm_.vec2.Vec2 a_center, float a_radius, int a_color, int a_segments, float a_thickness, float a_holeLength, float a_dashlength)
void
addDashedCircleSegment(glm_.vec2.Vec2 a_center, float a_radius, int a_color, int a_segments, float a_startAngle, float a_endAngle, float a_thickness, float a_holeLength, float a_dashlength)
void
addDashedCircleSegment(glm_.vec2.Vec2 a_center, float a_radius, int a_color, int a_segments, float a_startAngle, float a_endAngle, float a_thickness, float a_holeLength, float a_dashlength, ImGuiWrapper.DashContext a_dc)
void
addDashedLine(glm_.vec2.Vec2 a_p1, glm_.vec2.Vec2 a_p2, int a_color, float a_thickness, float a_holeLength, float a_dashlength, ImGuiWrapper.DashContext a_dc)
void
addDashedRect(glm_.vec2.Vec2 a_tl, glm_.vec2.Vec2 a_br, int a_color, float a_thickness, float a_holeLength, float a_dashLength)
void
addDashedRect(glm_.vec2.Vec2 a_tl, glm_.vec2.Vec2 a_br, int a_color, float a_thickness, float a_holeLength, float a_dashLength, float a_rounding)
void
addFilledCircleSegment(glm_.vec2.Vec2 a_center, float a_radius, int a_color, int a_segments, float a_startAngle, float a_endAngle)
void
addLine(glm_.vec2.Vec2 a_p1, glm_.vec2.Vec2 a_p2, int a_color, float a_thickness)
void
addRect(glm_.vec2.Vec2 a_tl, glm_.vec2.Vec2 a_br, int a_color, float a_rounding, int a_corners, float a_thickness)
void
addRectFilled(glm_.vec2.Vec2 a_tl, glm_.vec2.Vec2 a_br, int a_color, float a_rounding, int a_corners)
void
addText(glm_.vec2.Vec2 a_pos, int a_color, java.lang.String a_text)
boolean
beginPopupContextWindow(java.lang.String a_strId, int a_mouseButton, boolean a_alsoOverItems)
boolean
beginTooltip()
boolean
button(java.lang.String a_text, float a_width)
glm_.vec2.Vec2
calcTextSize(java.lang.String a_str, boolean a_hideTextAfterDoubleHash)
void
closeCurrentPopup()
boolean
collapsingHeader(java.lang.String a_text, int a_flags)
void
endPopup()
void
endTooltip()
static glm_.vec4.Vec4
fromColor(int a_color)
void
getCurvePoints(int a_segments, java.util.ArrayList<glm_.vec2.Vec2> a_outPoints, glm_.vec2.Vec2 a_start, glm_.vec2.Vec2 a_startControl, glm_.vec2.Vec2 a_end, glm_.vec2.Vec2 a_endControl)
java.lang.String
getLongestSubString(java.lang.String a_str, float a_maxLength, java.lang.String a_regexSplitter)
glm_.vec2.Vec2
getMouseDragDelta(int a_button, float a_lockThreshold)
glm_.vec2.Vec2
getMousePos()
float
getTextLineHeightWithSpacing()
imgui.ImGui
imgui()
ImGuiWrapper.InputTextStatus
inputTextSingleLine(glm_.vec2.Vec2 a_pos, float a_width, java.lang.String a_label, char[] a_buffer)
java.lang.String
inputTextSingleLine(java.lang.String a_label, java.lang.String a_text)
imgui.MouseButton
int2MB(int a_button)
boolean
isCurrentWindowActive()
boolean
isCurrentWindowInFocus()
boolean
isInside(glm_.vec2.Vec2 a_center, float a_radius, glm_.vec2.Vec2 a_pos)
boolean
isInside(glm_.vec2.Vec2 a_p1, glm_.vec2.Vec2 a_p2, double a_thickness, glm_.vec2.Vec2 a_pos)
boolean
isInside(imgui.internal.classes.Rect a_rect, glm_.vec2.Vec2 a_pos)
boolean
isInsideClipRect(glm_.vec2.Vec2 a_pos)
boolean
isMouseClicked(int a_button, boolean a_doRepeat)
boolean
isMouseDoubleClicked(int a_button)
(package private) boolean
isMouseDown(int a_button)
boolean
isMouseDragging(int a_button, float a_lockThreshold)
boolean
menuItem(java.lang.String a_label, java.lang.String a_shortCut, boolean a_selected, boolean a_enabled)
void
popDisableWidgets()
void
pushDisableWidgets()
void
sameLine(int a_offsetFromStartX)
void
stopWindowDrag()
void
text(java.lang.String a_text)
glm_.vec2.Vec2
text(java.lang.String a_text, glm_.vec2.Vec2 a_position, int a_color, float a_angle)
static int
toColor(int a_r, int a_g, int a_b, int a_a)
static int
toColor(glm_.vec4.Vec4 a_v)
-
Constructor Details
-
ImGuiWrapper
public ImGuiWrapper(imgui.ImGui a_imgui)
-
-
Method Details
-
imgui
public imgui.ImGui imgui() -
beginPopupContextWindow
public boolean beginPopupContextWindow(java.lang.String a_strId, int a_mouseButton, boolean a_alsoOverItems) -
closeCurrentPopup
public void closeCurrentPopup() -
endPopup
public void endPopup() -
addCurve
public void addCurve(glm_.vec2.Vec2 a_start, glm_.vec2.Vec2 a_control, glm_.vec2.Vec2 a_end, int a_color, int a_thickness) -
getCurvePoints
public void getCurvePoints(int a_segments, java.util.ArrayList<glm_.vec2.Vec2> a_outPoints, glm_.vec2.Vec2 a_start, glm_.vec2.Vec2 a_startControl, glm_.vec2.Vec2 a_end, glm_.vec2.Vec2 a_endControl) -
addCurve
public void addCurve(glm_.vec2.Vec2 a_start, glm_.vec2.Vec2 a_startControl, glm_.vec2.Vec2 a_end, glm_.vec2.Vec2 a_endControl, int a_color, int a_thickness) -
addArrow
public void addArrow(glm_.vec2.Vec2 m_start, glm_.vec2.Vec2 a_dir, int a_color) -
collapsingHeader
public boolean collapsingHeader(java.lang.String a_text, int a_flags) -
menuItem
public boolean menuItem(java.lang.String a_label, java.lang.String a_shortCut, boolean a_selected, boolean a_enabled) -
addDashedCircle
public void addDashedCircle(glm_.vec2.Vec2 a_center, float a_radius, int a_color, int a_segments, float a_thickness, float a_holeLength, float a_dashlength) -
getLongestSubString
public java.lang.String getLongestSubString(java.lang.String a_str, float a_maxLength, java.lang.String a_regexSplitter) -
text
public glm_.vec2.Vec2 text(java.lang.String a_text, glm_.vec2.Vec2 a_position, int a_color, float a_angle) -
addFilledCircleSegment
public void addFilledCircleSegment(glm_.vec2.Vec2 a_center, float a_radius, int a_color, int a_segments, float a_startAngle, float a_endAngle) -
addCircleSegment
public void addCircleSegment(glm_.vec2.Vec2 a_center, float a_radius, int a_color, int a_segments, float a_startAngle, float a_endAngle, float a_thickness) -
addDashedCircleSegment
public void addDashedCircleSegment(glm_.vec2.Vec2 a_center, float a_radius, int a_color, int a_segments, float a_startAngle, float a_endAngle, float a_thickness, float a_holeLength, float a_dashlength) -
addDashedCircleSegment
public void addDashedCircleSegment(glm_.vec2.Vec2 a_center, float a_radius, int a_color, int a_segments, float a_startAngle, float a_endAngle, float a_thickness, float a_holeLength, float a_dashlength, ImGuiWrapper.DashContext a_dc) -
addDashedRect
public void addDashedRect(glm_.vec2.Vec2 a_tl, glm_.vec2.Vec2 a_br, int a_color, float a_thickness, float a_holeLength, float a_dashLength, float a_rounding) -
addDashedRect
public void addDashedRect(glm_.vec2.Vec2 a_tl, glm_.vec2.Vec2 a_br, int a_color, float a_thickness, float a_holeLength, float a_dashLength) -
addDashedLine
public void addDashedLine(glm_.vec2.Vec2 a_p1, glm_.vec2.Vec2 a_p2, int a_color, float a_thickness, float a_holeLength, float a_dashlength, ImGuiWrapper.DashContext a_dc) -
inputTextSingleLine
public java.lang.String inputTextSingleLine(java.lang.String a_label, java.lang.String a_text) -
inputTextSingleLine
public ImGuiWrapper.InputTextStatus inputTextSingleLine(glm_.vec2.Vec2 a_pos, float a_width, java.lang.String a_label, char[] a_buffer) -
addRect
public void addRect(glm_.vec2.Vec2 a_tl, glm_.vec2.Vec2 a_br, int a_color, float a_rounding, int a_corners, float a_thickness) -
addRectFilled
public void addRectFilled(glm_.vec2.Vec2 a_tl, glm_.vec2.Vec2 a_br, int a_color, float a_rounding, int a_corners) -
addText
public void addText(glm_.vec2.Vec2 a_pos, int a_color, java.lang.String a_text) -
addCircle
public void addCircle(glm_.vec2.Vec2 a_center, float a_radius, int a_color, int a_segments, float a_thickness) -
addCircleFilled
public void addCircleFilled(glm_.vec2.Vec2 a_center, float a_radius, int a_color, int a_segments) -
addLine
public void addLine(glm_.vec2.Vec2 a_p1, glm_.vec2.Vec2 a_p2, int a_color, float a_thickness) -
getTextLineHeightWithSpacing
public float getTextLineHeightWithSpacing() -
calcTextSize
public glm_.vec2.Vec2 calcTextSize(java.lang.String a_str, boolean a_hideTextAfterDoubleHash) -
beginTooltip
public boolean beginTooltip() -
pushDisableWidgets
public void pushDisableWidgets() -
popDisableWidgets
public void popDisableWidgets() -
endTooltip
public void endTooltip() -
text
public void text(java.lang.String a_text) -
getMousePos
public glm_.vec2.Vec2 getMousePos() -
isMouseDoubleClicked
public boolean isMouseDoubleClicked(int a_button) -
isMouseClicked
public boolean isMouseClicked(int a_button, boolean a_doRepeat) -
int2MB
public imgui.MouseButton int2MB(int a_button) -
sameLine
public void sameLine(int a_offsetFromStartX) -
isMouseDown
boolean isMouseDown(int a_button) -
getMouseDragDelta
public glm_.vec2.Vec2 getMouseDragDelta(int a_button, float a_lockThreshold) -
isMouseDragging
public boolean isMouseDragging(int a_button, float a_lockThreshold) -
stopWindowDrag
public void stopWindowDrag() -
isInside
public boolean isInside(glm_.vec2.Vec2 a_center, float a_radius, glm_.vec2.Vec2 a_pos) -
fromColor
public static glm_.vec4.Vec4 fromColor(int a_color) -
toColor
public static int toColor(int a_r, int a_g, int a_b, int a_a) -
toColor
public static int toColor(glm_.vec4.Vec4 a_v) -
isCurrentWindowInFocus
public boolean isCurrentWindowInFocus() -
isCurrentWindowActive
public boolean isCurrentWindowActive() -
isInside
public boolean isInside(glm_.vec2.Vec2 a_p1, glm_.vec2.Vec2 a_p2, double a_thickness, glm_.vec2.Vec2 a_pos) -
isInside
public boolean isInside(imgui.internal.classes.Rect a_rect, glm_.vec2.Vec2 a_pos) -
isInsideClipRect
public boolean isInsideClipRect(glm_.vec2.Vec2 a_pos) -
button
public boolean button(java.lang.String a_text, float a_width)
-