imgui-bindings 0.1.4 → 0.1.6

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: 8ecd0711005debbc893498e3512237755a62c489a0355c42b126ca83e9968295
4
- data.tar.gz: 3ec44fee4b91bf293c2470f80be0b975eab6715027edb126937048e06c19f353
3
+ metadata.gz: c83fd74ace483d3fad20687051620c6eadfb37477be060d9d38c6c326b6f93e7
4
+ data.tar.gz: 518f45d471448b3e0bb8c94ed55ca82ae5d7c92aa09f919252a5ee2243ed5df5
5
5
  SHA512:
6
- metadata.gz: a286359ad4882026a276ba01d1cee4830c2997dc0c700a3b199bd2610d9eecf781cf0c57e15c2e33270e02d5315374e536c84135314701f90b36fb48ddd08bf9
7
- data.tar.gz: 990ea8cbaaa20a2217173d9be5e5910a9372006b7eb48cbc386d7c675c76bb079a24c0e1536c9cb5ec6d9d5d02cd4863668d18267e12b38283a102c7365239ba
6
+ metadata.gz: 7bb218578c33e4ce2f7aab0012a5903f424c2ba168c880cbbf61f8fc42ce26c595f232d72739eb5b830dcd25b19132b080734fd48885f327310fc2365fd926a6
7
+ data.tar.gz: 8a38f2834592b0d1dfb9104158a473955fec1e01458aa6413f0dcd500825069fd38e5cf944e4940fc877c4880a9c9361112cc7c2694716defa050a23e466df67
data/ChangeLog CHANGED
@@ -1,3 +1,11 @@
1
+ 2023-07-02 vaiorabbit <http://twitter.com/vaiorabbit>
2
+
3
+ * ImGui v1.89.6
4
+
5
+ 2023-04-15 vaiorabbit <http://twitter.com/vaiorabbit>
6
+
7
+ * ImGui v1.89.5
8
+
1
9
  2023-03-19 vaiorabbit <http://twitter.com/vaiorabbit>
2
10
 
3
11
  * 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-07-02
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.
@@ -1527,8 +1538,9 @@ class ImGuiIO < FFI::Struct
1527
1538
  :ConfigWindowsResizeFromEdges, :bool, # = true // Enable resizing of windows from their edges and from the lower-left corner. This requires (io.BackendFlags & ImGuiBackendFlags_HasMouseCursors) because it needs mouse cursor feedback. (This used to be a per-window ImGuiWindowFlags_ResizeFromAnySide flag)
1528
1539
  :ConfigWindowsMoveFromTitleBarOnly, :bool, # = false // Enable allowing to move windows only when clicking on their title bar. Does not apply to windows without a title bar.
1529
1540
  :ConfigMemoryCompactTimer, :float, # = 60.0f // Timer (in seconds) to free transient windows/tables memory buffers when unused. Set to -1.0f to disable.
1530
- :ConfigDebugBeginReturnValueOnce, :bool, # = false // First-time calls to Begin()/BeginChild() will return false. NEEDS TO BE SET AT APPLICATION BOOT TIME if you don't want to miss windows.
1531
- :ConfigDebugBeginReturnValueLoop, :bool, # = false // Some calls to Begin()/BeginChild() will return false. Will cycle through window depths then repeat. Suggested use: add "io.ConfigDebugBeginReturnValue = io.KeyShift" in your main loop then occasionally press SHIFT. Windows should be flickering while running.
1541
+ :ConfigDebugBeginReturnValueOnce, :bool, # = false // First-time calls to Begin()/BeginChild() will return false. NEEDS TO BE SET AT APPLICATION BOOT TIME if you don't want to miss windows.
1542
+ :ConfigDebugBeginReturnValueLoop, :bool, # = false // Some calls to Begin()/BeginChild() will return false. Will cycle through window depths then repeat. Suggested use: add "io.ConfigDebugBeginReturnValue = io.KeyShift" in your main loop then occasionally press SHIFT. Windows should be flickering while running.
1543
+ :ConfigDebugIgnoreFocusLoss, :bool, # = false // Ignore io.AddFocusEvent(false), consequently not calling io.ClearInputKeys() in input processing.
1532
1544
  :BackendPlatformName, :pointer, # = NULL
1533
1545
  :BackendRendererName, :pointer, # = NULL
1534
1546
  :BackendPlatformUserData, :pointer, # = NULL // User data for platform backend
@@ -1561,6 +1573,7 @@ class ImGuiIO < FFI::Struct
1561
1573
  :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
1574
  :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
1575
  :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.
1576
+ :MouseSource, :int, # Mouse actual input peripheral (Mouse/TouchScreen/Pen).
1564
1577
  :KeyCtrl, :bool, # Keyboard modifier down: Control
1565
1578
  :KeyShift, :bool, # Keyboard modifier down: Shift
1566
1579
  :KeyAlt, :bool, # Keyboard modifier down: Alt
@@ -1578,6 +1591,7 @@ class ImGuiIO < FFI::Struct
1578
1591
  :MouseReleased, [:bool, 5], # Mouse button went from Down to !Down
1579
1592
  :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
1593
  :MouseDownOwnedUnlessPopupClose, [:bool, 5], # Track if button was clicked inside a dear imgui window.
1594
+ :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
1595
  :MouseDownDuration, [:float, 5], # Duration the mouse button has been down (0.0f == just clicked)
1582
1596
  :MouseDownDurationPrev, [:float, 5], # Previous time the mouse button has been down
1583
1597
  :MouseDragMaxDistanceSqr, [:float, 5], # Squared maximum distance of how much mouse has traveled from the clicking point (used for moving thresholds)
@@ -1622,6 +1636,10 @@ class ImGuiIO < FFI::Struct
1622
1636
  ImGui::ImGuiIO_AddMousePosEvent(self, x, y)
1623
1637
  end
1624
1638
 
1639
+ def AddMouseSourceEvent(source)
1640
+ ImGui::ImGuiIO_AddMouseSourceEvent(self, source)
1641
+ end
1642
+
1625
1643
  def AddMouseWheelEvent(wheel_x, wheel_y)
1626
1644
  ImGui::ImGuiIO_AddMouseWheelEvent(self, wheel_x, wheel_y)
1627
1645
  end
@@ -2009,6 +2027,7 @@ module ImGui
2009
2027
  [:ImGuiIO_AddKeyEvent, [:pointer, :int, :bool], :void],
2010
2028
  [:ImGuiIO_AddMouseButtonEvent, [:pointer, :int, :bool], :void],
2011
2029
  [:ImGuiIO_AddMousePosEvent, [:pointer, :float, :float], :void],
2030
+ [:ImGuiIO_AddMouseSourceEvent, [:pointer, :int], :void],
2012
2031
  [:ImGuiIO_AddMouseWheelEvent, [:pointer, :float, :float], :void],
2013
2032
  [:ImGuiIO_ClearInputCharacters, [:pointer], :void],
2014
2033
  [:ImGuiIO_ClearInputKeys, [:pointer], :void],
@@ -4913,7 +4932,7 @@ module ImGui
4913
4932
 
4914
4933
  #
4915
4934
  # 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.
4935
+ # Read the FAQ (docs/FAQ.md or http://dearimgui.com/faq) for more details about how ID are handled in dear imgui.
4917
4936
  # - Those questions are answered and impacted by understanding of the ID stack system:
4918
4937
  # - "Q: Why is my widget not reacting when I click on it?"
4919
4938
  # - "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.6
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-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  - !ruby/object:Gem::Version
87
87
  version: '0'
88
88
  requirements: []
89
- rubygems_version: 3.4.6
89
+ rubygems_version: 3.4.14
90
90
  signing_key:
91
91
  specification_version: 4
92
92
  summary: Bindings for Dear ImGui