imgui-bindings 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c10e23d8df31f275178936f70391b59f02a4ef8df36c0585a84ac0d290c353bd
4
- data.tar.gz: 6379ad79835a62a9e9b9d2c35fac3e8ff2e500250da86fd1dd22db73e468317c
3
+ metadata.gz: 5bbd987161848c4f790e55cfffd04dfb2ae144186f451b278b4d1eb2e77d69d5
4
+ data.tar.gz: c4ef36ccc46ec591c516374e69224ca54e08a8b9131f39d95c1cc1f250a64ba7
5
5
  SHA512:
6
- metadata.gz: 66d81501eacdc2dd8bed179c920ffbc8b5331fa935345a530d508b7e8a9f9ed0a0da3e139cf3c121763474f5521fb91777b1d949630d4e76d6d9e76b68ec6929
7
- data.tar.gz: b4f4fda351cf14c59760c43c9d35746182dd19343d72e00d5212e798db7ecd9927341eabbe81e46a5d2ef8e99a6a900bd1d115d990f049c7fb67ca2004a1733d
6
+ metadata.gz: c485d9548d2a35387cee22080ea30d6f19f16ad240dbffc0c0922e4d16d1f96847078388ce1506569b378bf7e48bd6f3f180bdc1b706240e7e0a3ef5bada8607
7
+ data.tar.gz: 596bb4901a35014d5688d539c7c87671652a95e9317db863268ae83f9d4fab062612da9549eca3e26e715c8bdfc80179ffabc4afab8136e83d535105924d66b6
data/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ 2022-07-02 vaiorabbit <http://twitter.com/vaiorabbit>
2
+
3
+ * (macOS) ImGui 1.88
4
+ * (Windows) ImGui 1.88
5
+
1
6
  2022-02-12 vaiorabbit <http://twitter.com/vaiorabbit>
2
7
 
3
8
  * imgui_impl_sdl2.rb: Updated to use event API
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 : 2022-02-12
6
+ * Last modified : 2022-07-02
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.dll CHANGED
Binary file
data/lib/imgui.dylib CHANGED
Binary file
data/lib/imgui.rb CHANGED
@@ -25,9 +25,9 @@ FFI.typedef :int, :ImGuiHoveredFlags
25
25
  FFI.typedef :uint, :ImGuiID
26
26
  FFI.typedef :int, :ImGuiInputTextFlags
27
27
  FFI.typedef :int, :ImGuiKey
28
- FFI.typedef :int, :ImGuiKeyModFlags
29
28
  FFI.typedef :pointer, :ImGuiMemAllocFunc
30
29
  FFI.typedef :pointer, :ImGuiMemFreeFunc
30
+ FFI.typedef :int, :ImGuiModFlags
31
31
  FFI.typedef :int, :ImGuiMouseButton
32
32
  FFI.typedef :int, :ImGuiMouseCursor
33
33
  FFI.typedef :int, :ImGuiNavInput
@@ -270,6 +270,7 @@ ImGuiHoveredFlags_AllowWhenBlockedByPopup = 32 # 1 << 5
270
270
  ImGuiHoveredFlags_AllowWhenBlockedByActiveItem = 128 # 1 << 7
271
271
  ImGuiHoveredFlags_AllowWhenOverlapped = 256 # 1 << 8
272
272
  ImGuiHoveredFlags_AllowWhenDisabled = 512 # 1 << 9
273
+ ImGuiHoveredFlags_NoNavOverride = 1024 # 1 << 10
273
274
  ImGuiHoveredFlags_RectOnly = 416 # ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped
274
275
  ImGuiHoveredFlags_RootAndChildWindows = 3 # ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows
275
276
 
@@ -296,13 +297,6 @@ ImGuiInputTextFlags_CharsScientific = 131072 # 1 << 17
296
297
  ImGuiInputTextFlags_CallbackResize = 262144 # 1 << 18
297
298
  ImGuiInputTextFlags_CallbackEdit = 524288 # 1 << 19
298
299
 
299
- # ImGuiKeyModFlags_
300
- ImGuiKeyModFlags_None = 0 # 0
301
- ImGuiKeyModFlags_Ctrl = 1 # 1 << 0
302
- ImGuiKeyModFlags_Shift = 2 # 1 << 1
303
- ImGuiKeyModFlags_Alt = 4 # 1 << 2
304
- ImGuiKeyModFlags_Super = 8 # 1 << 3
305
-
306
300
  # ImGuiKey_
307
301
  ImGuiKey_None = 0 # 0
308
302
  ImGuiKey_Tab = 512 # 512
@@ -445,6 +439,13 @@ ImGuiKey_NamedKey_COUNT = 133 # ImGuiKey_NamedKey_END - ImGuiKey_NamedKey_BEGIN
445
439
  ImGuiKey_KeysData_SIZE = 645 # ImGuiKey_COUNT
446
440
  ImGuiKey_KeysData_OFFSET = 0 # 0
447
441
 
442
+ # ImGuiModFlags_
443
+ ImGuiModFlags_None = 0 # 0
444
+ ImGuiModFlags_Ctrl = 1 # 1 << 0
445
+ ImGuiModFlags_Shift = 2 # 1 << 1
446
+ ImGuiModFlags_Alt = 4 # 1 << 2
447
+ ImGuiModFlags_Super = 8 # 1 << 3
448
+
448
449
  # ImGuiMouseButton_
449
450
  ImGuiMouseButton_Left = 0 # 0
450
451
  ImGuiMouseButton_Right = 1 # 1
@@ -1388,7 +1389,7 @@ class ImGuiIO < FFI::Struct
1388
1389
  :MetricsActiveAllocations, :int,
1389
1390
  :MouseDelta, ImVec2.by_value,
1390
1391
  :KeyMap, [:int, 645],
1391
- :KeysDown, [:bool, 512],
1392
+ :KeysDown, [:bool, 645],
1392
1393
  :MousePos, ImVec2.by_value,
1393
1394
  :MouseDown, [:bool, 5],
1394
1395
  :MouseWheel, :float,
@@ -1399,7 +1400,6 @@ class ImGuiIO < FFI::Struct
1399
1400
  :KeySuper, :bool,
1400
1401
  :NavInputs, [:float, 20],
1401
1402
  :KeyMods, :int,
1402
- :KeyModsPrev, :int,
1403
1403
  :KeysData, [ImGuiKeyData.by_value, 645],
1404
1404
  :WantCaptureMouseUnlessPopupClose, :bool,
1405
1405
  :MousePosPrev, ImVec2.by_value,
@@ -1419,6 +1419,7 @@ class ImGuiIO < FFI::Struct
1419
1419
  :NavInputsDownDurationPrev, [:float, 20],
1420
1420
  :PenPressure, :float,
1421
1421
  :AppFocusLost, :bool,
1422
+ :AppAcceptingEvents, :bool,
1422
1423
  :BackendUsingLegacyKeyArrays, :char,
1423
1424
  :BackendUsingLegacyNavInputArray, :bool,
1424
1425
  :InputQueueSurrogate, :ushort,
@@ -1473,6 +1474,10 @@ class ImGuiIO < FFI::Struct
1473
1474
  return ImGuiIO.new(ImGui::ImGuiIO_ImGuiIO())
1474
1475
  end
1475
1476
 
1477
+ def SetAppAcceptingEvents(accepting_events)
1478
+ ImGui::ImGuiIO_SetAppAcceptingEvents(self, accepting_events)
1479
+ end
1480
+
1476
1481
  def SetKeyEventNativeData(key, native_keycode, native_scancode, native_legacy_index = -1)
1477
1482
  ImGui::ImGuiIO_SetKeyEventNativeData(self, key, native_keycode, native_scancode, native_legacy_index)
1478
1483
  end
@@ -1842,6 +1847,7 @@ module ImGui
1842
1847
  :ImGuiIO_ClearInputCharacters,
1843
1848
  :ImGuiIO_ClearInputKeys,
1844
1849
  :ImGuiIO_ImGuiIO,
1850
+ :ImGuiIO_SetAppAcceptingEvents,
1845
1851
  :ImGuiIO_SetKeyEventNativeData,
1846
1852
  :ImGuiIO_destroy,
1847
1853
  :ImGuiStyle_ImGuiStyle,
@@ -1889,8 +1895,6 @@ module ImGui
1889
1895
  :igButton,
1890
1896
  :igCalcItemWidth,
1891
1897
  :igCalcTextSize,
1892
- :igCaptureKeyboardFromApp,
1893
- :igCaptureMouseFromApp,
1894
1898
  :igCheckbox,
1895
1899
  :igCheckboxFlags_IntPtr,
1896
1900
  :igCheckboxFlags_UintPtr,
@@ -1912,6 +1916,7 @@ module ImGui
1912
1916
  :igCombo_FnBoolPtr,
1913
1917
  :igCreateContext,
1914
1918
  :igDebugCheckVersionAndDataLayout,
1919
+ :igDebugTextEncoding,
1915
1920
  :igDestroyContext,
1916
1921
  :igDragFloat,
1917
1922
  :igDragFloat2,
@@ -2131,6 +2136,8 @@ module ImGui
2131
2136
  :igSetItemDefaultFocus,
2132
2137
  :igSetKeyboardFocusHere,
2133
2138
  :igSetMouseCursor,
2139
+ :igSetNextFrameWantCaptureKeyboard,
2140
+ :igSetNextFrameWantCaptureMouse,
2134
2141
  :igSetNextItemOpen,
2135
2142
  :igSetNextItemWidth,
2136
2143
  :igSetNextWindowBgAlpha,
@@ -2159,6 +2166,7 @@ module ImGui
2159
2166
  :igSetWindowSize_Vec2,
2160
2167
  :igSetWindowSize_Str,
2161
2168
  :igShowAboutWindow,
2169
+ :igShowDebugLogWindow,
2162
2170
  :igShowDemoWindow,
2163
2171
  :igShowFontSelector,
2164
2172
  :igShowMetricsWindow,
@@ -2340,6 +2348,7 @@ module ImGui
2340
2348
  :ImGuiIO_ClearInputCharacters => [:pointer],
2341
2349
  :ImGuiIO_ClearInputKeys => [:pointer],
2342
2350
  :ImGuiIO_ImGuiIO => [],
2351
+ :ImGuiIO_SetAppAcceptingEvents => [:pointer, :bool],
2343
2352
  :ImGuiIO_SetKeyEventNativeData => [:pointer, :int, :int, :int, :int],
2344
2353
  :ImGuiIO_destroy => [:pointer],
2345
2354
  :ImGuiStyle_ImGuiStyle => [],
@@ -2387,8 +2396,6 @@ module ImGui
2387
2396
  :igButton => [:pointer, ImVec2.by_value],
2388
2397
  :igCalcItemWidth => [],
2389
2398
  :igCalcTextSize => [:pointer, :pointer, :pointer, :bool, :float],
2390
- :igCaptureKeyboardFromApp => [:bool],
2391
- :igCaptureMouseFromApp => [:bool],
2392
2399
  :igCheckbox => [:pointer, :pointer],
2393
2400
  :igCheckboxFlags_IntPtr => [:pointer, :pointer, :int],
2394
2401
  :igCheckboxFlags_UintPtr => [:pointer, :pointer, :uint],
@@ -2410,6 +2417,7 @@ module ImGui
2410
2417
  :igCombo_FnBoolPtr => [:pointer, :pointer, :pointer, :pointer, :int, :int],
2411
2418
  :igCreateContext => [:pointer],
2412
2419
  :igDebugCheckVersionAndDataLayout => [:pointer, :size_t, :size_t, :size_t, :size_t, :size_t, :size_t],
2420
+ :igDebugTextEncoding => [:pointer],
2413
2421
  :igDestroyContext => [:pointer],
2414
2422
  :igDragFloat => [:pointer, :pointer, :float, :float, :float, :pointer, :int],
2415
2423
  :igDragFloat2 => [:pointer, :pointer, :float, :float, :float, :pointer, :int],
@@ -2629,6 +2637,8 @@ module ImGui
2629
2637
  :igSetItemDefaultFocus => [],
2630
2638
  :igSetKeyboardFocusHere => [:int],
2631
2639
  :igSetMouseCursor => [:int],
2640
+ :igSetNextFrameWantCaptureKeyboard => [:bool],
2641
+ :igSetNextFrameWantCaptureMouse => [:bool],
2632
2642
  :igSetNextItemOpen => [:bool, :int],
2633
2643
  :igSetNextItemWidth => [:float],
2634
2644
  :igSetNextWindowBgAlpha => [:float],
@@ -2657,6 +2667,7 @@ module ImGui
2657
2667
  :igSetWindowSize_Vec2 => [ImVec2.by_value, :int],
2658
2668
  :igSetWindowSize_Str => [:pointer, ImVec2.by_value, :int],
2659
2669
  :igShowAboutWindow => [:pointer],
2670
+ :igShowDebugLogWindow => [:pointer],
2660
2671
  :igShowDemoWindow => [:pointer],
2661
2672
  :igShowFontSelector => [:pointer],
2662
2673
  :igShowMetricsWindow => [:pointer],
@@ -2838,6 +2849,7 @@ module ImGui
2838
2849
  :ImGuiIO_ClearInputCharacters => :void,
2839
2850
  :ImGuiIO_ClearInputKeys => :void,
2840
2851
  :ImGuiIO_ImGuiIO => :pointer,
2852
+ :ImGuiIO_SetAppAcceptingEvents => :void,
2841
2853
  :ImGuiIO_SetKeyEventNativeData => :void,
2842
2854
  :ImGuiIO_destroy => :void,
2843
2855
  :ImGuiStyle_ImGuiStyle => :pointer,
@@ -2885,8 +2897,6 @@ module ImGui
2885
2897
  :igButton => :bool,
2886
2898
  :igCalcItemWidth => :float,
2887
2899
  :igCalcTextSize => :void,
2888
- :igCaptureKeyboardFromApp => :void,
2889
- :igCaptureMouseFromApp => :void,
2890
2900
  :igCheckbox => :bool,
2891
2901
  :igCheckboxFlags_IntPtr => :bool,
2892
2902
  :igCheckboxFlags_UintPtr => :bool,
@@ -2908,6 +2918,7 @@ module ImGui
2908
2918
  :igCombo_FnBoolPtr => :bool,
2909
2919
  :igCreateContext => :pointer,
2910
2920
  :igDebugCheckVersionAndDataLayout => :bool,
2921
+ :igDebugTextEncoding => :void,
2911
2922
  :igDestroyContext => :void,
2912
2923
  :igDragFloat => :bool,
2913
2924
  :igDragFloat2 => :bool,
@@ -3127,6 +3138,8 @@ module ImGui
3127
3138
  :igSetItemDefaultFocus => :void,
3128
3139
  :igSetKeyboardFocusHere => :void,
3129
3140
  :igSetMouseCursor => :void,
3141
+ :igSetNextFrameWantCaptureKeyboard => :void,
3142
+ :igSetNextFrameWantCaptureMouse => :void,
3130
3143
  :igSetNextItemOpen => :void,
3131
3144
  :igSetNextItemWidth => :void,
3132
3145
  :igSetNextWindowBgAlpha => :void,
@@ -3155,6 +3168,7 @@ module ImGui
3155
3168
  :igSetWindowSize_Vec2 => :void,
3156
3169
  :igSetWindowSize_Str => :void,
3157
3170
  :igShowAboutWindow => :void,
3171
+ :igShowDebugLogWindow => :void,
3158
3172
  :igShowDemoWindow => :void,
3159
3173
  :igShowFontSelector => :void,
3160
3174
  :igShowMetricsWindow => :void,
@@ -3406,18 +3420,6 @@ module ImGui
3406
3420
  return pOut
3407
3421
  end
3408
3422
 
3409
- # arg: want_capture_keyboard_value(bool)
3410
- # ret: void
3411
- def self.CaptureKeyboardFromApp(want_capture_keyboard_value = true)
3412
- igCaptureKeyboardFromApp(want_capture_keyboard_value)
3413
- end
3414
-
3415
- # arg: want_capture_mouse_value(bool)
3416
- # ret: void
3417
- def self.CaptureMouseFromApp(want_capture_mouse_value = true)
3418
- igCaptureMouseFromApp(want_capture_mouse_value)
3419
- end
3420
-
3421
3423
  # arg: label(const char*), v(bool*)
3422
3424
  # ret: bool
3423
3425
  def self.Checkbox(label, v)
@@ -3545,6 +3547,12 @@ module ImGui
3545
3547
  igDebugCheckVersionAndDataLayout(version_str, sz_io, sz_style, sz_vec2, sz_vec4, sz_drawvert, sz_drawidx)
3546
3548
  end
3547
3549
 
3550
+ # arg: text(const char*)
3551
+ # ret: void
3552
+ def self.DebugTextEncoding(text)
3553
+ igDebugTextEncoding(text)
3554
+ end
3555
+
3548
3556
  # arg: ctx(ImGuiContext*)
3549
3557
  # ret: void
3550
3558
  def self.DestroyContext(ctx = nil)
@@ -4795,6 +4803,18 @@ module ImGui
4795
4803
  igSetMouseCursor(cursor_type)
4796
4804
  end
4797
4805
 
4806
+ # arg: want_capture_keyboard(bool)
4807
+ # ret: void
4808
+ def self.SetNextFrameWantCaptureKeyboard(want_capture_keyboard)
4809
+ igSetNextFrameWantCaptureKeyboard(want_capture_keyboard)
4810
+ end
4811
+
4812
+ # arg: want_capture_mouse(bool)
4813
+ # ret: void
4814
+ def self.SetNextFrameWantCaptureMouse(want_capture_mouse)
4815
+ igSetNextFrameWantCaptureMouse(want_capture_mouse)
4816
+ end
4817
+
4798
4818
  # arg: is_open(bool), cond(ImGuiCond)
4799
4819
  # ret: void
4800
4820
  def self.SetNextItemOpen(is_open, cond = 0)
@@ -4961,6 +4981,12 @@ module ImGui
4961
4981
  igShowAboutWindow(p_open)
4962
4982
  end
4963
4983
 
4984
+ # arg: p_open(bool*)
4985
+ # ret: void
4986
+ def self.ShowDebugLogWindow(p_open = nil)
4987
+ igShowDebugLogWindow(p_open)
4988
+ end
4989
+
4964
4990
  # arg: p_open(bool*)
4965
4991
  # ret: void
4966
4992
  def self.ShowDemoWindow(p_open = nil)
data/lib/imgui_debug.dll CHANGED
Binary file
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.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - vaiorabbit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-12 00:00:00.000000000 Z
11
+ date: 2022-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi