imgui-bindings 0.1.11 → 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +4 -0
- data/README.md +1 -1
- data/lib/imgui.aarch64.so +0 -0
- data/lib/imgui.arm64.dylib +0 -0
- data/lib/imgui.dll +0 -0
- data/lib/imgui.rb +35 -29
- data/lib/imgui.x86_64.dylib +0 -0
- data/lib/imgui.x86_64.so +0 -0
- data/lib/imnodes.dll +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4eb4f50581b7a47b6e09a91b258a30ce75385f5619bdf6ddedd0c49b4a00f4fa
|
4
|
+
data.tar.gz: 490ea29358668f366efd8aae97ab43354f8172f6bddf3ed4bc6ccd17d81b2b83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ce3055925aab98e75cb309717397d15f2853c42b2b61b6495f7ca2ae2d5e98ff0e991bccec131ef7ab69c10867ad61212daf55dd81109316d817879f62554d6
|
7
|
+
data.tar.gz: cbb24b7836dbe1e44da05e5302acfa5ef6ba7f03ed25403103dc6cd8e09197e3dc17305965472a485fb25b7fd47c183293eccbb9323e923e9ed819c2e2add404
|
data/ChangeLog
CHANGED
data/README.md
CHANGED
data/lib/imgui.aarch64.so
CHANGED
Binary file
|
data/lib/imgui.arm64.dylib
CHANGED
Binary file
|
data/lib/imgui.dll
CHANGED
Binary file
|
data/lib/imgui.rb
CHANGED
@@ -614,8 +614,9 @@ ImGuiSortDirection_Descending = 2 # 2 # Descending = 9->0, Z->A etc.
|
|
614
614
|
# - The enum only refers to fields of ImGuiStyle which makes sense to be pushed/popped inside UI code.
|
615
615
|
# During initialization or between frames, feel free to just poke into ImGuiStyle directly.
|
616
616
|
# - Tip: Use your programming IDE navigation facilities on the names in the _second column_ below to find the actual members and their description.
|
617
|
-
# In Visual Studio
|
618
|
-
#
|
617
|
+
# - In Visual Studio: CTRL+comma ("Edit.GoToAll") can follow symbols inside comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot.
|
618
|
+
# - In Visual Studio w/ Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols inside comments.
|
619
|
+
# - In VS Code, CLion, etc.: CTRL+click can follow symbols inside comments.
|
619
620
|
# - When changing this enum, you need to update the associated internal table GStyleVarInfo[] accordingly. This is where we link enum values to members offset/type.
|
620
621
|
ImGuiStyleVar_Alpha = 0 # 0 # float Alpha
|
621
622
|
ImGuiStyleVar_DisabledAlpha = 1 # 1 # float DisabledAlpha
|
@@ -640,13 +641,15 @@ ImGuiStyleVar_ScrollbarRounding = 19 # 19 # float ScrollbarRounding
|
|
640
641
|
ImGuiStyleVar_GrabMinSize = 20 # 20 # float GrabMinSize
|
641
642
|
ImGuiStyleVar_GrabRounding = 21 # 21 # float GrabRounding
|
642
643
|
ImGuiStyleVar_TabRounding = 22 # 22 # float TabRounding
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
644
|
+
ImGuiStyleVar_TabBorderSize = 23 # 23 # float TabBorderSize
|
645
|
+
ImGuiStyleVar_TabBarBorderSize = 24 # 24 # float TabBarBorderSize
|
646
|
+
ImGuiStyleVar_TableAngledHeadersAngle = 25 # 25 # float TableAngledHeadersAngle
|
647
|
+
ImGuiStyleVar_ButtonTextAlign = 26 # 26 # ImVec2 ButtonTextAlign
|
648
|
+
ImGuiStyleVar_SelectableTextAlign = 27 # 27 # ImVec2 SelectableTextAlign
|
649
|
+
ImGuiStyleVar_SeparatorTextBorderSize = 28 # 28 # float SeparatorTextBorderSize
|
650
|
+
ImGuiStyleVar_SeparatorTextAlign = 29 # 29 # ImVec2 SeparatorTextAlign
|
651
|
+
ImGuiStyleVar_SeparatorTextPadding = 30 # 30 # ImVec2 SeparatorTextPadding
|
652
|
+
ImGuiStyleVar_COUNT = 31 # 31
|
650
653
|
|
651
654
|
# ImGuiTabBarFlags_
|
652
655
|
# Flags for ImGui::BeginTabBar()
|
@@ -812,7 +815,7 @@ ImGuiTreeNodeFlags_CollapsingHeader = 26 # ImGuiTreeNodeFlags_Framed | Im
|
|
812
815
|
ImGuiViewportFlags_None = 0 # 0
|
813
816
|
ImGuiViewportFlags_IsPlatformWindow = 1 # 1 << 0 # Represent a Platform Window
|
814
817
|
ImGuiViewportFlags_IsPlatformMonitor = 2 # 1 << 1 # Represent a Platform Monitor (unused yet)
|
815
|
-
ImGuiViewportFlags_OwnedByApp = 4 # 1 << 2 # Platform Window:
|
818
|
+
ImGuiViewportFlags_OwnedByApp = 4 # 1 << 2 # Platform Window: Was created/managed by the user application? (rather than our backend)
|
816
819
|
|
817
820
|
# ImGuiWindowFlags_
|
818
821
|
# Flags for ImGui::Begin()
|
@@ -1007,6 +1010,10 @@ class ImDrawList < FFI::Struct
|
|
1007
1010
|
ImGui::ImDrawList_AddCircleFilled(self, center, radius, col, num_segments)
|
1008
1011
|
end
|
1009
1012
|
|
1013
|
+
def AddConcavePolyFilled(points, num_points, col)
|
1014
|
+
ImGui::ImDrawList_AddConcavePolyFilled(self, points, num_points, col)
|
1015
|
+
end
|
1016
|
+
|
1010
1017
|
def AddConvexPolyFilled(points, num_points, col)
|
1011
1018
|
ImGui::ImDrawList_AddConvexPolyFilled(self, points, num_points, col)
|
1012
1019
|
end
|
@@ -1015,12 +1022,12 @@ class ImDrawList < FFI::Struct
|
|
1015
1022
|
ImGui::ImDrawList_AddDrawCmd(self)
|
1016
1023
|
end
|
1017
1024
|
|
1018
|
-
def AddEllipse(center,
|
1019
|
-
ImGui::ImDrawList_AddEllipse(self, center,
|
1025
|
+
def AddEllipse(center, radius, col, rot = 0.0, num_segments = 0, thickness = 1.0)
|
1026
|
+
ImGui::ImDrawList_AddEllipse(self, center, radius, col, rot, num_segments, thickness)
|
1020
1027
|
end
|
1021
1028
|
|
1022
|
-
def AddEllipseFilled(center,
|
1023
|
-
ImGui::ImDrawList_AddEllipseFilled(self, center,
|
1029
|
+
def AddEllipseFilled(center, radius, col, rot = 0.0, num_segments = 0)
|
1030
|
+
ImGui::ImDrawList_AddEllipseFilled(self, center, radius, col, rot, num_segments)
|
1024
1031
|
end
|
1025
1032
|
|
1026
1033
|
def AddImage(user_texture_id, p_min, p_max, uv_min = ImVec2.create(0,0), uv_max = ImVec2.create(1,1), col = ImColor.col32(255,255,255,255))
|
@@ -1139,8 +1146,12 @@ class ImDrawList < FFI::Struct
|
|
1139
1146
|
ImGui::ImDrawList_PathClear(self)
|
1140
1147
|
end
|
1141
1148
|
|
1142
|
-
def PathEllipticalArcTo(center,
|
1143
|
-
ImGui::ImDrawList_PathEllipticalArcTo(self, center,
|
1149
|
+
def PathEllipticalArcTo(center, radius, rot, a_min, a_max, num_segments = 0)
|
1150
|
+
ImGui::ImDrawList_PathEllipticalArcTo(self, center, radius, rot, a_min, a_max, num_segments)
|
1151
|
+
end
|
1152
|
+
|
1153
|
+
def PathFillConcave(col)
|
1154
|
+
ImGui::ImDrawList_PathFillConcave(self, col)
|
1144
1155
|
end
|
1145
1156
|
|
1146
1157
|
def PathFillConvex(col)
|
@@ -1442,7 +1453,7 @@ class ImGuiKeyData < FFI::Struct
|
|
1442
1453
|
end
|
1443
1454
|
|
1444
1455
|
# - Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows.
|
1445
|
-
# -
|
1456
|
+
# - With multi-viewport enabled, we extend this concept to have multiple active viewports.
|
1446
1457
|
# - In the future we will extend this concept further to also represent Platform Monitor and support a "no main platform window" operation mode.
|
1447
1458
|
# - About Main Area vs Work Area:
|
1448
1459
|
# - Main Area = entire viewport.
|
@@ -2501,10 +2512,11 @@ module ImGui
|
|
2501
2512
|
[:ImDrawList_AddCallback, [:pointer, :ImDrawCallback, :pointer], :void],
|
2502
2513
|
[:ImDrawList_AddCircle, [:pointer, ImVec2.by_value, :float, :uint, :int, :float], :void],
|
2503
2514
|
[:ImDrawList_AddCircleFilled, [:pointer, ImVec2.by_value, :float, :uint, :int], :void],
|
2515
|
+
[:ImDrawList_AddConcavePolyFilled, [:pointer, :pointer, :int, :uint], :void],
|
2504
2516
|
[:ImDrawList_AddConvexPolyFilled, [:pointer, :pointer, :int, :uint], :void],
|
2505
2517
|
[:ImDrawList_AddDrawCmd, [:pointer], :void],
|
2506
|
-
[:ImDrawList_AddEllipse, [:pointer, ImVec2.by_value,
|
2507
|
-
[:ImDrawList_AddEllipseFilled, [:pointer, ImVec2.by_value,
|
2518
|
+
[:ImDrawList_AddEllipse, [:pointer, ImVec2.by_value, ImVec2.by_value, :uint, :float, :int, :float], :void],
|
2519
|
+
[:ImDrawList_AddEllipseFilled, [:pointer, ImVec2.by_value, ImVec2.by_value, :uint, :float, :int], :void],
|
2508
2520
|
[:ImDrawList_AddImage, [:pointer, :pointer, ImVec2.by_value, ImVec2.by_value, ImVec2.by_value, ImVec2.by_value, :uint], :void],
|
2509
2521
|
[:ImDrawList_AddImageQuad, [:pointer, :pointer, ImVec2.by_value, ImVec2.by_value, ImVec2.by_value, ImVec2.by_value, ImVec2.by_value, ImVec2.by_value, ImVec2.by_value, ImVec2.by_value, :uint], :void],
|
2510
2522
|
[:ImDrawList_AddImageRounded, [:pointer, :pointer, ImVec2.by_value, ImVec2.by_value, ImVec2.by_value, ImVec2.by_value, :uint, :float, :int], :void],
|
@@ -2533,7 +2545,8 @@ module ImGui
|
|
2533
2545
|
[:ImDrawList_PathBezierCubicCurveTo, [:pointer, ImVec2.by_value, ImVec2.by_value, ImVec2.by_value, :int], :void],
|
2534
2546
|
[:ImDrawList_PathBezierQuadraticCurveTo, [:pointer, ImVec2.by_value, ImVec2.by_value, :int], :void],
|
2535
2547
|
[:ImDrawList_PathClear, [:pointer], :void],
|
2536
|
-
[:ImDrawList_PathEllipticalArcTo, [:pointer, ImVec2.by_value,
|
2548
|
+
[:ImDrawList_PathEllipticalArcTo, [:pointer, ImVec2.by_value, ImVec2.by_value, :float, :float, :float, :int], :void],
|
2549
|
+
[:ImDrawList_PathFillConcave, [:pointer, :uint], :void],
|
2537
2550
|
[:ImDrawList_PathFillConvex, [:pointer, :uint], :void],
|
2538
2551
|
[:ImDrawList_PathLineTo, [:pointer, ImVec2.by_value], :void],
|
2539
2552
|
[:ImDrawList_PathLineToMergeDuplicate, [:pointer, ImVec2.by_value], :void],
|
@@ -2840,7 +2853,6 @@ module ImGui
|
|
2840
2853
|
[:igGetItemRectMax, [:pointer], :void],
|
2841
2854
|
[:igGetItemRectMin, [:pointer], :void],
|
2842
2855
|
[:igGetItemRectSize, [:pointer], :void],
|
2843
|
-
[:igGetKeyIndex, [:int], :int],
|
2844
2856
|
[:igGetKeyName, [:int], :pointer],
|
2845
2857
|
[:igGetKeyPressedAmount, [:int, :float, :float], :int],
|
2846
2858
|
[:igGetMainViewport, [], :pointer],
|
@@ -3727,7 +3739,7 @@ module ImGui
|
|
3727
3739
|
# ret: pointer
|
3728
3740
|
#
|
3729
3741
|
# Background/Foreground Draw Lists
|
3730
|
-
def self.GetBackgroundDrawList() # this draw list will be the first
|
3742
|
+
def self.GetBackgroundDrawList() # get background draw list for the viewport associated to the current window. this draw list will be the first rendering one. Useful to quickly draw shapes/text behind dear imgui contents.
|
3731
3743
|
igGetBackgroundDrawList()
|
3732
3744
|
end
|
3733
3745
|
|
@@ -3878,7 +3890,7 @@ module ImGui
|
|
3878
3890
|
end
|
3879
3891
|
|
3880
3892
|
# ret: pointer
|
3881
|
-
def self.GetForegroundDrawList() # this draw list will be the last rendered one. Useful to quickly draw shapes/text over dear imgui contents.
|
3893
|
+
def self.GetForegroundDrawList() # get foreground draw list for the viewport associated to the current window. this draw list will be the last rendered one. Useful to quickly draw shapes/text over dear imgui contents.
|
3882
3894
|
igGetForegroundDrawList()
|
3883
3895
|
end
|
3884
3896
|
|
@@ -3948,12 +3960,6 @@ module ImGui
|
|
3948
3960
|
return pOut
|
3949
3961
|
end
|
3950
3962
|
|
3951
|
-
# arg: key(ImGuiKey)
|
3952
|
-
# ret: int
|
3953
|
-
def self.GetKeyIndex(key)
|
3954
|
-
igGetKeyIndex(key)
|
3955
|
-
end
|
3956
|
-
|
3957
3963
|
# arg: key(ImGuiKey)
|
3958
3964
|
# ret: pointer
|
3959
3965
|
def self.GetKeyName(key) # [DEBUG] returns English name of the key. Those names a provided for debugging purpose and are not meant to be saved persistently not compared.
|
data/lib/imgui.x86_64.dylib
CHANGED
Binary file
|
data/lib/imgui.x86_64.so
CHANGED
Binary file
|
data/lib/imnodes.dll
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: imgui-bindings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vaiorabbit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|