imgui-bindings 0.1.4 → 0.1.5

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: 8ecd0711005debbc893498e3512237755a62c489a0355c42b126ca83e9968295
4
- data.tar.gz: 3ec44fee4b91bf293c2470f80be0b975eab6715027edb126937048e06c19f353
3
+ metadata.gz: 953ebd938f07e22b04fd3b5b731b39af52cefc662756aef62e379911ec6b4069
4
+ data.tar.gz: d9c4141d0061ab02a812040f235fc2ba0f934aa52becba340c9d1556055b936e
5
5
  SHA512:
6
- metadata.gz: a286359ad4882026a276ba01d1cee4830c2997dc0c700a3b199bd2610d9eecf781cf0c57e15c2e33270e02d5315374e536c84135314701f90b36fb48ddd08bf9
7
- data.tar.gz: 990ea8cbaaa20a2217173d9be5e5910a9372006b7eb48cbc386d7c675c76bb079a24c0e1536c9cb5ec6d9d5d02cd4863668d18267e12b38283a102c7365239ba
6
+ metadata.gz: 33267f484dad0070ed7ccb5f3abe07c5f279d810847792e37efaac8222aae5b3fb99b722e4986645ed940c0283c520b55d62405c150c978098988d139a6ddc3c
7
+ data.tar.gz: a275549e370cac4bfe71ae0c28fd719193204c999663391b5b9c2e2df23ebc7acc80f22a002ef70734fc29aa38b6e28500d122a71c05c43a96ae38abbb4e4e7e
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ 2023-04-15 vaiorabbit <http://twitter.com/vaiorabbit>
2
+
3
+ * ImGui v1.89.5
4
+
1
5
  2023-03-19 vaiorabbit <http://twitter.com/vaiorabbit>
2
6
 
3
7
  * ImGui v1.89.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 : 2023-03-19
6
+ * Last modified : 2023-04-15
7
7
 
8
8
  <img src="https://raw.githubusercontent.com/vaiorabbit/ruby-imgui/master/doc/jpfont_test.png" width="250">
9
9
 
@@ -16,7 +16,7 @@
16
16
  * [Windows] https://rubyinstaller.org/downloads/ Ruby+Devkit
17
17
  * ruby 3.2.0 (2022-12-25 revision a528908271) [x64-mingw-ucrt]
18
18
  * [macOS]
19
- * ruby 3.2.0 (2022-12-25 revision a528908271) [arm64-darwin21]
19
+ * ruby 3.2.1 (2023-02-08 revision 31819e82c8) [arm64-darwin22]
20
20
  * [Linux]
21
21
  * ruby 3.2.0 (2022-12-25 revision a528908271) [aarch64-linux]
22
22
  * Ruby Gems
@@ -42,6 +42,7 @@
42
42
  * ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x64-mingw32]
43
43
  * ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x64-mingw32]
44
44
  * [macOS]
45
+ * ruby 3.2.0 (2022-12-25 revision a528908271) [arm64-darwin21]
45
46
  * ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [arm64-darwin21]
46
47
  * ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [arm64-darwin21]
47
48
  * ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [arm64-darwin20]
data/lib/imgui.aarch64.so CHANGED
Binary file
data/lib/imgui.dll CHANGED
Binary file
data/lib/imgui.dylib CHANGED
Binary file
data/lib/imgui.rb CHANGED
@@ -57,6 +57,7 @@ FFI.typedef :ushort, :ImWchar
57
57
  FFI.typedef :ushort, :ImWchar16
58
58
  FFI.typedef :uint, :ImWchar32
59
59
  FFI.typedef :int, :ImGuiKey
60
+ FFI.typedef :int, :ImGuiMouseSource
60
61
 
61
62
  # ImDrawFlags_
62
63
  # Flags for ImDrawList functions
@@ -508,6 +509,16 @@ ImGuiMouseCursor_Hand = 7 # 7 # (Unused by Dear ImGui functions. Use for e
508
509
  ImGuiMouseCursor_NotAllowed = 8 # 8 # When hovering something with disallowed interaction. Usually a crossed circle.
509
510
  ImGuiMouseCursor_COUNT = 9 # 9
510
511
 
512
+ # ImGuiMouseSource
513
+ # Enumeration for AddMouseSourceEvent() actual source of Mouse Input data.
514
+ # Historically we use "Mouse" terminology everywhere to indicate pointer data, e.g. MousePos, IsMousePressed(), io.AddMousePosEvent()
515
+ # But that "Mouse" data can come from different source which occasionally may be useful for application to know about.
516
+ # You can submit a change of pointer type using io.AddMouseSourceEvent().
517
+ ImGuiMouseSource_Mouse = 0 # 0 # Input is coming from an actual mouse.
518
+ ImGuiMouseSource_TouchScreen = 1 # 1 # Input is coming from a touch screen (no hovering prior to initial press, less precise initial press aiming, dual-axis wheeling possible).
519
+ ImGuiMouseSource_Pen = 2 # 2 # Input is coming from a pressure/magnetic pen (often used in conjunction with high-sampling rates).
520
+ ImGuiMouseSource_COUNT = 3 # 3
521
+
511
522
  # ImGuiNavInput
512
523
  # OBSOLETED in 1.88 (from July 2022): ImGuiNavInput and io.NavInputs[].
513
524
  # Official backends between 1.60 and 1.86: will keep working and feed gamepad inputs as long as IMGUI_DISABLE_OBSOLETE_KEYIO is not set.
@@ -1561,6 +1572,7 @@ class ImGuiIO < FFI::Struct
1561
1572
  :MouseDown, [:bool, 5], # Mouse buttons: 0=left, 1=right, 2=middle + extras (ImGuiMouseButton_COUNT == 5). Dear ImGui mostly uses left and right buttons. Other buttons allow us to track if the mouse is being used by your application + available to user as a convenience via IsMouse** API.
1562
1573
  :MouseWheel, :float, # Mouse wheel Vertical: 1 unit scrolls about 5 lines text. >0 scrolls Up, <0 scrolls Down. Hold SHIFT to turn vertical scroll into horizontal scroll.
1563
1574
  :MouseWheelH, :float, # Mouse wheel Horizontal. >0 scrolls Left, <0 scrolls Right. Most users don't have a mouse with a horizontal wheel, may not be filled by all backends.
1575
+ :MouseSource, :int, # Mouse actual input peripheral (Mouse/TouchScreen/Pen).
1564
1576
  :KeyCtrl, :bool, # Keyboard modifier down: Control
1565
1577
  :KeyShift, :bool, # Keyboard modifier down: Shift
1566
1578
  :KeyAlt, :bool, # Keyboard modifier down: Alt
@@ -1578,6 +1590,7 @@ class ImGuiIO < FFI::Struct
1578
1590
  :MouseReleased, [:bool, 5], # Mouse button went from Down to !Down
1579
1591
  :MouseDownOwned, [:bool, 5], # Track if button was clicked inside a dear imgui window or over void blocked by a popup. We don't request mouse capture from the application if click started outside ImGui bounds.
1580
1592
  :MouseDownOwnedUnlessPopupClose, [:bool, 5], # Track if button was clicked inside a dear imgui window.
1593
+ :MouseWheelRequestAxisSwap, :bool, # On a non-Mac system, holding SHIFT requests WheelY to perform the equivalent of a WheelX event. On a Mac system this is already enforced by the system.
1581
1594
  :MouseDownDuration, [:float, 5], # Duration the mouse button has been down (0.0f == just clicked)
1582
1595
  :MouseDownDurationPrev, [:float, 5], # Previous time the mouse button has been down
1583
1596
  :MouseDragMaxDistanceSqr, [:float, 5], # Squared maximum distance of how much mouse has traveled from the clicking point (used for moving thresholds)
@@ -1622,6 +1635,10 @@ class ImGuiIO < FFI::Struct
1622
1635
  ImGui::ImGuiIO_AddMousePosEvent(self, x, y)
1623
1636
  end
1624
1637
 
1638
+ def AddMouseSourceEvent(source)
1639
+ ImGui::ImGuiIO_AddMouseSourceEvent(self, source)
1640
+ end
1641
+
1625
1642
  def AddMouseWheelEvent(wheel_x, wheel_y)
1626
1643
  ImGui::ImGuiIO_AddMouseWheelEvent(self, wheel_x, wheel_y)
1627
1644
  end
@@ -2009,6 +2026,7 @@ module ImGui
2009
2026
  [:ImGuiIO_AddKeyEvent, [:pointer, :int, :bool], :void],
2010
2027
  [:ImGuiIO_AddMouseButtonEvent, [:pointer, :int, :bool], :void],
2011
2028
  [:ImGuiIO_AddMousePosEvent, [:pointer, :float, :float], :void],
2029
+ [:ImGuiIO_AddMouseSourceEvent, [:pointer, :int], :void],
2012
2030
  [:ImGuiIO_AddMouseWheelEvent, [:pointer, :float, :float], :void],
2013
2031
  [:ImGuiIO_ClearInputCharacters, [:pointer], :void],
2014
2032
  [:ImGuiIO_ClearInputKeys, [:pointer], :void],
@@ -4913,7 +4931,7 @@ module ImGui
4913
4931
 
4914
4932
  #
4915
4933
  # ID stack/scopes
4916
- # Read the FAQ (docs/FAQ.md or http://dearimgui.org/faq) for more details about how ID are handled in dear imgui.
4934
+ # Read the FAQ (docs/FAQ.md or http://dearimgui.com/faq) for more details about how ID are handled in dear imgui.
4917
4935
  # - Those questions are answered and impacted by understanding of the ID stack system:
4918
4936
  # - "Q: Why is my widget not reacting when I click on it?"
4919
4937
  # - "Q: How can I have widgets with an empty label?"
data/lib/imgui.x86_64.so CHANGED
Binary file
Binary file
data/lib/imnodes.dll CHANGED
Binary file
data/lib/imnodes.dylib 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.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - vaiorabbit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-21 00:00:00.000000000 Z
11
+ date: 2023-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi