imgui-bindings 0.1.11-x86_64-darwin → 0.1.12-x86_64-darwin

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8d0db7bb61507e7f0cd40baae49a3b6ece67c3f5023a705eb8fc6b1f5a434f2b
4
- data.tar.gz: 3a32cd2bf74b656afe5074c30648d3de9f8ccaed92165cde8e0bad20fff23f29
3
+ metadata.gz: f24272fa2e666a411bbcb4b764dcb88b26f55cef9044605b8270aea015e40e79
4
+ data.tar.gz: 0d9ff78db93e86e6e58d5234eafdde414de4f3bc0aaaedf8f20b62b93b67aee2
5
5
  SHA512:
6
- metadata.gz: e81f189358e71976fad4973a6cf4a8e6de3a72e7bfc409749fabc9db19985cd252b2f63d1d8c27e2364fed35b73c3ac4595949641cda1e1195cc046b9aab9a20
7
- data.tar.gz: 7cc66b5e6d112bf4e4d52cba965364a9458efffbf35b43e277e0e6e3f6dc18c3f69c70d5132cd464f2ef7ca8e1a224ab8b4515a92136cbb6025f4edc136c54e8
6
+ metadata.gz: 8b3b01f1038fd7d2e3b93167d12eb2822b5f085733e286588cc920dcd569ea2c150182e7809d6f0329a6eee97663a10a949b8a34eb21ca8a067ad96c48b8291a
7
+ data.tar.gz: 17de91a0c722b8a16182fcf1fa121b22ea9e2ae8da86d86c938064d9463c904bc2610da84dcd981487c1f746b1d2b24ea80962749b2d91de86f25ae57682b567
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ 2024-04-13 vaiorabbit <http://twitter.com/vaiorabbit>
2
+
3
+ * ImGui v1.90.5
4
+
1
5
  2024-02-25 vaiorabbit <http://twitter.com/vaiorabbit>
2
6
 
3
7
  * ImGui v1.90.4
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  # Yet another ImGui wrapper for Ruby #
4
4
 
5
5
  * Created : 2019-01-05
6
- * Last modified : 2024-02-25
6
+ * Last modified : 2024-04-13
7
7
 
8
8
  <img src="https://raw.githubusercontent.com/vaiorabbit/ruby-imgui/master/doc/jpfont_test.png" width="250">
9
9
 
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 IDE: CTRL+comma ("Edit.GoToAll") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot.
618
- # With Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols in comments.
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
- ImGuiStyleVar_TabBarBorderSize = 23 # 23 # float TabBarBorderSize
644
- ImGuiStyleVar_ButtonTextAlign = 24 # 24 # ImVec2 ButtonTextAlign
645
- ImGuiStyleVar_SelectableTextAlign = 25 # 25 # ImVec2 SelectableTextAlign
646
- ImGuiStyleVar_SeparatorTextBorderSize = 26 # 26 # float SeparatorTextBorderSize
647
- ImGuiStyleVar_SeparatorTextAlign = 27 # 27 # ImVec2 SeparatorTextAlign
648
- ImGuiStyleVar_SeparatorTextPadding = 28 # 28 # ImVec2 SeparatorTextPadding
649
- ImGuiStyleVar_COUNT = 29 # 29
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: is created/managed by the application (rather than a dear imgui backend)
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, radius_x, radius_y, col, rot = 0.0, num_segments = 0, thickness = 1.0)
1019
- ImGui::ImDrawList_AddEllipse(self, center, radius_x, radius_y, col, rot, num_segments, thickness)
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, radius_x, radius_y, col, rot = 0.0, num_segments = 0)
1023
- ImGui::ImDrawList_AddEllipseFilled(self, center, radius_x, radius_y, col, rot, num_segments)
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, radius_x, radius_y, rot, a_min, a_max, num_segments = 0)
1143
- ImGui::ImDrawList_PathEllipticalArcTo(self, center, radius_x, radius_y, rot, a_min, a_max, num_segments)
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
- # - In 'docking' branch with multi-viewport enabled, we extend this concept to have multiple active viewports.
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, :float, :float, :uint, :float, :int, :float], :void],
2507
- [:ImDrawList_AddEllipseFilled, [:pointer, ImVec2.by_value, :float, :float, :uint, :float, :int], :void],
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, :float, :float, :float, :float, :float, :int], :void],
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 rendered one. Useful to quickly draw shapes/text behind dear imgui contents.
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.
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.11
4
+ version: 0.1.12
5
5
  platform: x86_64-darwin
6
6
  authors:
7
7
  - vaiorabbit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-25 00:00:00.000000000 Z
11
+ date: 2024-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi