You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* - The last item modified its value in this frame
183
183
* - Was pressed
184
184
*/
185
-
val isItemEdited:Boolean get() =ImGui.isItemEdited()
185
+
val isItemEdited:Boolean get() = isItemEdited()
186
186
187
187
/**
188
188
* Returns whether the last item was made active.
189
189
*/
190
-
val isItemActivated:Boolean get() =ImGui.isItemActivated()
190
+
val isItemActivated:Boolean get() = isItemActivated()
191
191
192
192
/**
193
193
* Returns whether the last item was made inactive
194
194
*
195
195
* Useful for Undo/Redo patterns with widgets that require continuous editing.
196
196
*/
197
-
val isItemDeactivated:Boolean get() =ImGui.isItemDeactivated()
197
+
val isItemDeactivated:Boolean get() = isItemDeactivated()
198
198
199
199
/**
200
200
* Returns whether the last item was made inactive and its value was changed when active (e.g. Slider/Drag moved).
201
201
*
202
202
* Useful for Undo/Redo patterns with widgets that require continuous editing. Note that you may get false positives (some widgets such as Combo()/ListBox()/Selectable() will return true even when clicking an already selected item).
203
203
*/
204
-
val isItemDeactivatedAfterEdit:Boolean get() =ImGui.isItemDeactivatedAfterEdit()
204
+
val isItemDeactivatedAfterEdit:Boolean get() = isItemDeactivatedAfterEdit()
205
205
206
206
/**
207
207
* Returns whether the last item state toggled (set by TreeNode()).
208
208
*/
209
-
val isItemToggledOpen:Boolean get() =ImGui.isItemToggledOpen()
209
+
val isItemToggledOpen:Boolean get() = isItemToggledOpen()
210
210
211
211
/**
212
212
* Returns the ID of last item (~~ often same ImGui::GetID(label) beforehand)
213
213
*/
214
-
val itemID:Int get() =ImGui.getItemID()
214
+
val itemID:Int get() = getItemID()
215
215
216
216
217
-
val font:ImFont get() =ImGui.getFont()
217
+
val font:ImFont get() = getFont()
218
218
219
219
/**
220
220
* Returns the font size (= height in pixels) with the current scale applied.
221
221
*/
222
-
val fontSize:Int get() =ImGui.getFontSize()
222
+
val fontSize:Int get() = getFontSize()
223
223
224
224
225
225
/**
@@ -490,9 +490,9 @@ object ImGuiBuilder {
490
490
flags:Int = ImGuiComboFlags.None,
491
491
block: () ->Unit = {},
492
492
) {
493
-
if (ImGui.beginCombo(label, preview, flags)) {
493
+
if (beginCombo(label, preview, flags)) {
494
494
block()
495
-
ImGui.endCombo()
495
+
endCombo()
496
496
}
497
497
}
498
498
@@ -579,7 +579,7 @@ object ImGuiBuilder {
579
579
flags:Int = 0,
580
580
block: (ImFloat) ->Unit = {},
581
581
) {
582
-
if (ImGui.dragFloat(label, value.data, vSpeed, vMin, vMax, format, flags))
582
+
if (dragFloat(label, value.data, vSpeed, vMin, vMax, format, flags))
583
583
block(value)
584
584
}
585
585
@@ -618,7 +618,7 @@ object ImGuiBuilder {
618
618
flags:Int = 0,
619
619
block: (ImInt) ->Unit = {},
620
620
) {
621
-
if (ImGui.dragInt(label, value.data, vSpeed, vMin, vMax, format, flags))
621
+
if (dragInt(label, value.data, vSpeed, vMin, vMax, format, flags))
622
622
block(value)
623
623
}
624
624
@@ -654,7 +654,7 @@ object ImGuiBuilder {
654
654
flags:Int = 0,
655
655
block: (ImFloat) ->Unit = {},
656
656
) {
657
-
if (ImGui.sliderFloat(label, value.data, vMin, vMax, format, flags))
657
+
if (sliderFloat(label, value.data, vMin, vMax, format, flags))
658
658
block(value)
659
659
}
660
660
@@ -690,7 +690,7 @@ object ImGuiBuilder {
690
690
flags:Int = 0,
691
691
block: (ImInt) ->Unit = {},
692
692
) {
693
-
if (ImGui.sliderInt(label, value.data, vMin, vMax, format, flags))
693
+
if (sliderInt(label, value.data, vMin, vMax, format, flags))
694
694
block(value)
695
695
}
696
696
@@ -831,7 +831,7 @@ object ImGuiBuilder {
831
831
flags:Int = ImGuiInputTextFlags.None,
832
832
block: (ImFloat) ->Unit = {}
833
833
) {
834
-
if (ImGui.inputFloat(label, value, step, stepFast, format, flags))
834
+
if (inputFloat(label, value, step, stepFast, format, flags))
835
835
block(value)
836
836
}
837
837
@@ -853,7 +853,7 @@ object ImGuiBuilder {
853
853
flags:Int = ImGuiInputTextFlags.None,
854
854
block: (FloatArray) ->Unit = {}
855
855
) {
856
-
if (ImGui.inputFloat2(label, values, format, flags))
856
+
if (inputFloat2(label, values, format, flags))
857
857
block(values)
858
858
}
859
859
@@ -868,7 +868,7 @@ object ImGuiBuilder {
868
868
) {
869
869
val floats = floatArrayOf(vec.x, vec.y)
870
870
871
-
if (ImGui.inputFloat2(label, floats, format, flags))
871
+
if (inputFloat2(label, floats, format, flags))
872
872
block(Vec2f(floats[0], floats[1]))
873
873
}
874
874
@@ -890,7 +890,7 @@ object ImGuiBuilder {
890
890
flags:Int = ImGuiInputTextFlags.None,
891
891
block: (FloatArray) ->Unit = {}
892
892
) {
893
-
if (ImGui.inputFloat3(label, values, format, flags))
893
+
if (inputFloat3(label, values, format, flags))
894
894
block(values)
895
895
}
896
896
@@ -912,7 +912,7 @@ object ImGuiBuilder {
912
912
flags:Int = ImGuiInputTextFlags.None,
913
913
block: (FloatArray) ->Unit = {}
914
914
) {
915
-
if (ImGui.inputFloat4(label, values, format, flags))
915
+
if (inputFloat4(label, values, format, flags))
916
916
block(values)
917
917
}
918
918
@@ -938,7 +938,7 @@ object ImGuiBuilder {
938
938
flags:Int = ImGuiInputTextFlags.None,
939
939
block: (Double) ->Unit = {},
940
940
) = withDouble(value) {
941
-
if (ImGui.inputDouble(label, it, step, stepFast, format, flags)) {
941
+
if (inputDouble(label, it, step, stepFast, format, flags)) {
942
942
value.set(it.get())
943
943
block(it.get())
944
944
}
@@ -964,7 +964,7 @@ object ImGuiBuilder {
964
964
) {
965
965
val doubles = floatArrayOf(vec.x.toFloat(), vec.y.toFloat())
966
966
967
-
if (ImGui.inputFloat3(label, doubles, format, flags))
967
+
if (inputFloat3(label, doubles, format, flags))
968
968
block(Vec2d(doubles[0], doubles[1]))
969
969
}
970
970
@@ -988,7 +988,7 @@ object ImGuiBuilder {
988
988
) {
989
989
val doubles = floatArrayOf(vec.x.toFloat(), vec.y.toFloat(), vec.z.toFloat())
990
990
991
-
if (ImGui.inputFloat3(label, doubles, format, flags))
0 commit comments