imgui-bindings 0.1.10 → 0.1.11

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: e160bbc6de11474be8b789ef9da4406485f1eaf287007d24d924abd70da046c5
4
- data.tar.gz: ccfaf322d30b67c3bc21294de95c8a509d21ee05d17f54427c4888a721d7e252
3
+ metadata.gz: 2f4ab82ec1b7b3864037f67ece6ac3a0030142feb80b76a4dad18796b482563a
4
+ data.tar.gz: 1b90387f2ee8740f3189a1c45f1ef11400cd9ce71d62df47c3c533d5c7176985
5
5
  SHA512:
6
- metadata.gz: 6134209486b6866eec12dc1664e1928399c956fe87cbdd770e40f69e1e23247f151733e9114a377ff48359e6dcb28a6e056d01bdb3223b8c07da18b0fee197af
7
- data.tar.gz: 3af69715d7f64e056d8ee187fec3a174cc413dceb9f37e66039a07c838aea576ea098235d6847a8ed9b12c49e39e0d81a794ad5a0824b13fce9649604ddb566a
6
+ metadata.gz: 5253284c99162d8def4fdfa281e2cbb8c9093860470cb9ecd8f748950ee2fd82e80e21374e7cc2f2887458845c7631b6df47144b1b08c2ea998bf1da4981f50d
7
+ data.tar.gz: 64763edd313a24856c05de4fe0fd5953f48175faeb5a6a4bf9ed64a2e59360be231ce06a9467f26ca64551c6000e03de00fc21ddb5225c4edd554dd8dbac0ae8
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ 2024-02-25 vaiorabbit <http://twitter.com/vaiorabbit>
2
+
3
+ * ImGui v1.90.4
4
+
1
5
  2024-01-12 vaiorabbit <http://twitter.com/vaiorabbit>
2
6
 
3
7
  * ImGui v1.90.1
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-01-12
6
+ * Last modified : 2024-02-25
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.aarch64.so CHANGED
Binary file
Binary file
data/lib/imgui.dll CHANGED
Binary file
data/lib/imgui.rb CHANGED
@@ -113,7 +113,7 @@ ImGuiButtonFlags_MouseButtonDefault_ = 1 # ImGuiButtonFlags_MouseButtonLeft
113
113
 
114
114
  # ImGuiChildFlags_
115
115
  # Flags for ImGui::BeginChild()
116
- # (Legacy: bot 0 must always correspond to ImGuiChildFlags_Border to be backward compatible with old API using 'bool border = false'.
116
+ # (Legacy: bit 0 must always correspond to ImGuiChildFlags_Border to be backward compatible with old API using 'bool border = false'.
117
117
  # About using AutoResizeX/AutoResizeY flags:
118
118
  # - May be combined with SetNextWindowSizeConstraints() to set a min/max size for each axis (see "Demo->Child->Auto-resize with Constraints").
119
119
  # - Size measurement for a given axis is only performed when the child window is within visible boundaries, or is just appearing.
@@ -122,7 +122,7 @@ ImGuiButtonFlags_MouseButtonDefault_ = 1 # ImGuiButtonFlags_MouseButtonLeft
122
122
  # - You may also use ImGuiChildFlags_AlwaysAutoResize to force an update even when child window is not in view.
123
123
  # HOWEVER PLEASE UNDERSTAND THAT DOING SO WILL PREVENT BeginChild() FROM EVER RETURNING FALSE, disabling benefits of coarse clipping.
124
124
  ImGuiChildFlags_None = 0 # 0
125
- ImGuiChildFlags_Border = 1 # 1 << 0 # Show an outer border and enable WindowPadding. (Important: this is always == 1 == true for legacy reason)
125
+ ImGuiChildFlags_Border = 1 # 1 << 0 # Show an outer border and enable WindowPadding. (IMPORTANT: this is always == 1 == true for legacy reason)
126
126
  ImGuiChildFlags_AlwaysUseWindowPadding = 2 # 1 << 1 # Pad with style.WindowPadding even if no border are drawn (no padding by default for non-bordered child windows because it makes more sense)
127
127
  ImGuiChildFlags_ResizeX = 4 # 1 << 2 # Allow resize from right border (layout direction). Enable .ini saving (unless ImGuiWindowFlags_NoSavedSettings passed to window flags)
128
128
  ImGuiChildFlags_ResizeY = 8 # 1 << 3 # Allow resize from bottom border (layout direction). "
@@ -563,24 +563,25 @@ ImGuiMouseSource_COUNT = 3 # 3
563
563
 
564
564
  # ImGuiPopupFlags_
565
565
  # Flags for OpenPopup*(), BeginPopupContext*(), IsPopupOpen() functions.
566
- # - To be backward compatible with older API which took an 'int mouse_button = 1' argument, we need to treat
567
- # small flags values as a mouse button index, so we encode the mouse button in the first few bits of the flags.
566
+ # - To be backward compatible with older API which took an 'int mouse_button = 1' argument instead of 'ImGuiPopupFlags flags',
567
+ # we need to treat small flags values as a mouse button index, so we encode the mouse button in the first few bits of the flags.
568
568
  # It is therefore guaranteed to be legal to pass a mouse button index in ImGuiPopupFlags.
569
569
  # - For the same reason, we exceptionally default the ImGuiPopupFlags argument of BeginPopupContextXXX functions to 1 instead of 0.
570
570
  # IMPORTANT: because the default parameter is 1 (==ImGuiPopupFlags_MouseButtonRight), if you rely on the default parameter
571
571
  # and want to use another flag, you need to pass in the ImGuiPopupFlags_MouseButtonRight flag explicitly.
572
572
  # - Multiple buttons currently cannot be combined/or-ed in those functions (we could allow it later).
573
- ImGuiPopupFlags_None = 0 # 0
574
- ImGuiPopupFlags_MouseButtonLeft = 0 # 0 # For BeginPopupContext*(): open on Left Mouse release. Guaranteed to always be == 0 (same as ImGuiMouseButton_Left)
575
- ImGuiPopupFlags_MouseButtonRight = 1 # 1 # For BeginPopupContext*(): open on Right Mouse release. Guaranteed to always be == 1 (same as ImGuiMouseButton_Right)
576
- ImGuiPopupFlags_MouseButtonMiddle = 2 # 2 # For BeginPopupContext*(): open on Middle Mouse release. Guaranteed to always be == 2 (same as ImGuiMouseButton_Middle)
577
- ImGuiPopupFlags_MouseButtonMask_ = 31 # 0x1F
578
- ImGuiPopupFlags_MouseButtonDefault_ = 1 # 1
579
- ImGuiPopupFlags_NoOpenOverExistingPopup = 32 # 1 << 5 # For OpenPopup*(), BeginPopupContext*(): don't open if there's already a popup at the same level of the popup stack
580
- ImGuiPopupFlags_NoOpenOverItems = 64 # 1 << 6 # For BeginPopupContextWindow(): don't return true when hovering items, only when hovering empty space
581
- ImGuiPopupFlags_AnyPopupId = 128 # 1 << 7 # For IsPopupOpen(): ignore the ImGuiID parameter and test for any popup.
582
- ImGuiPopupFlags_AnyPopupLevel = 256 # 1 << 8 # For IsPopupOpen(): search/test at any level of the popup stack (default test in the current level)
583
- ImGuiPopupFlags_AnyPopup = 384 # ImGuiPopupFlags_AnyPopupId | ImGuiPopupFlags_AnyPopupLevel
573
+ ImGuiPopupFlags_None = 0 # 0
574
+ ImGuiPopupFlags_MouseButtonLeft = 0 # 0 # For BeginPopupContext*(): open on Left Mouse release. Guaranteed to always be == 0 (same as ImGuiMouseButton_Left)
575
+ ImGuiPopupFlags_MouseButtonRight = 1 # 1 # For BeginPopupContext*(): open on Right Mouse release. Guaranteed to always be == 1 (same as ImGuiMouseButton_Right)
576
+ ImGuiPopupFlags_MouseButtonMiddle = 2 # 2 # For BeginPopupContext*(): open on Middle Mouse release. Guaranteed to always be == 2 (same as ImGuiMouseButton_Middle)
577
+ ImGuiPopupFlags_MouseButtonMask_ = 31 # 0x1F
578
+ ImGuiPopupFlags_MouseButtonDefault_ = 1 # 1
579
+ ImGuiPopupFlags_NoReopen = 32 # 1 << 5 # For OpenPopup*(), BeginPopupContext*(): don't reopen same popup if already open (won't reposition, won't reinitialize navigation)
580
+ ImGuiPopupFlags_NoOpenOverExistingPopup = 128 # 1 << 7 # For OpenPopup*(), BeginPopupContext*(): don't open if there's already a popup at the same level of the popup stack
581
+ ImGuiPopupFlags_NoOpenOverItems = 256 # 1 << 8 # For BeginPopupContextWindow(): don't return true when hovering items, only when hovering empty space
582
+ ImGuiPopupFlags_AnyPopupId = 1024 # 1 << 10 # For IsPopupOpen(): ignore the ImGuiID parameter and test for any popup.
583
+ ImGuiPopupFlags_AnyPopupLevel = 2048 # 1 << 11 # For IsPopupOpen(): search/test at any level of the popup stack (default test in the current level)
584
+ ImGuiPopupFlags_AnyPopup = 3072 # ImGuiPopupFlags_AnyPopupId | ImGuiPopupFlags_AnyPopupLevel
584
585
 
585
586
  # ImGuiSelectableFlags_
586
587
  # Flags for ImGui::Selectable()
@@ -1449,6 +1450,7 @@ end
1449
1450
  # - Windows are generally trying to stay within the Work Area of their host viewport.
1450
1451
  class ImGuiViewport < FFI::Struct
1451
1452
  layout(
1453
+ :ID, :uint,
1452
1454
  :Flags, :int,
1453
1455
  :Pos, ImVec2.by_value,
1454
1456
  :Size, ImVec2.by_value,
@@ -1815,7 +1817,6 @@ class ImGuiIO < FFI::Struct
1815
1817
  :MetricsRenderWindows, :int,
1816
1818
  :MetricsActiveWindows, :int,
1817
1819
  :MouseDelta, ImVec2.by_value,
1818
- :_UnusedPadding, :pointer,
1819
1820
  :Ctx, :pointer,
1820
1821
  :MousePos, ImVec2.by_value,
1821
1822
  :MouseDown, [:bool, 5],
@@ -2770,6 +2771,7 @@ module ImGui
2770
2771
  [:igCreateContext, [:pointer], :pointer],
2771
2772
  [:igDebugCheckVersionAndDataLayout, [:pointer, :size_t, :size_t, :size_t, :size_t, :size_t, :size_t], :bool],
2772
2773
  [:igDebugFlashStyleColor, [:int], :void],
2774
+ [:igDebugStartItemPicker, [], :void],
2773
2775
  [:igDebugTextEncoding, [:pointer], :void],
2774
2776
  [:igDestroyContext, [:pointer], :void],
2775
2777
  [:igDragFloat, [:pointer, :pointer, :float, :float, :float, :pointer, :int], :bool],
@@ -2807,7 +2809,7 @@ module ImGui
2807
2809
  [:igGetClipboardText, [], :pointer],
2808
2810
  [:igGetColorU32_Col, [:int, :float], :uint],
2809
2811
  [:igGetColorU32_Vec4, [ImVec4.by_value], :uint],
2810
- [:igGetColorU32_U32, [:uint], :uint],
2812
+ [:igGetColorU32_U32, [:uint, :float], :uint],
2811
2813
  [:igGetColumnIndex, [], :int],
2812
2814
  [:igGetColumnOffset, [:int], :float],
2813
2815
  [:igGetColumnWidth, [:int], :float],
@@ -3520,6 +3522,11 @@ module ImGui
3520
3522
  igDebugFlashStyleColor(idx)
3521
3523
  end
3522
3524
 
3525
+ # ret: void
3526
+ def self.DebugStartItemPicker()
3527
+ igDebugStartItemPicker()
3528
+ end
3529
+
3523
3530
  # arg: text(const char*)
3524
3531
  # ret: void
3525
3532
  #
@@ -3744,10 +3751,10 @@ module ImGui
3744
3751
  igGetColorU32_Vec4(col)
3745
3752
  end
3746
3753
 
3747
- # arg: col(ImU32)
3754
+ # arg: col(ImU32), alpha_mul(float)
3748
3755
  # ret: uint
3749
- def self.GetColorU32_U32(col)
3750
- igGetColorU32_U32(col)
3756
+ def self.GetColorU32_U32(col, alpha_mul = 1.0)
3757
+ igGetColorU32_U32(col, alpha_mul)
3751
3758
  end
3752
3759
 
3753
3760
  # ret: int
@@ -5492,7 +5499,7 @@ module ImGui
5492
5499
  # - Use child windows to begin into a self-contained independent scrolling/clipping regions within a host window. Child windows can embed their own child.
5493
5500
  # - Before 1.90 (November 2023), the "ImGuiChildFlags child_flags = 0" parameter was "bool border = false".
5494
5501
  # This API is backward compatible with old code, as we guarantee that ImGuiChildFlags_Border == true.
5495
- # Consider updating your old call sites:
5502
+ # Consider updating your old code:
5496
5503
  # BeginChild("Name", size, false) -> Begin("Name", size, 0); or Begin("Name", size, ImGuiChildFlags_None);
5497
5504
  # BeginChild("Name", size, true) -> Begin("Name", size, ImGuiChildFlags_Border);
5498
5505
  # - Manual sizing (each axis can use a different setting e.g. ImVec2(0.0f, 400.0f)):
@@ -5556,9 +5563,9 @@ module ImGui
5556
5563
  # arg: 0:col(ImVec4)
5557
5564
  # ret: uint
5558
5565
  return igGetColorU32_Vec4(arg[0]) if arg.length == 1 && (arg[0].kind_of?(ImVec4))
5559
- # arg: 0:col(ImU32)
5566
+ # arg: 0:col(ImU32), 1:alpha_mul(float)
5560
5567
  # ret: uint
5561
- return igGetColorU32_U32(arg[0]) if arg.length == 1 && (arg[0].kind_of?(Integer))
5568
+ return igGetColorU32_U32(arg[0], arg[1]) if arg.length == 2 && (arg[0].kind_of?(Integer) && arg[1].kind_of?(Float))
5562
5569
  $stderr.puts("[Warning] GetColorU32 : No matching functions found (#{arg})")
5563
5570
  end
5564
5571
 
Binary file
data/lib/imgui.x86_64.so CHANGED
Binary file
Binary file
Binary file
data/lib/imnodes.dll CHANGED
Binary file
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.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - vaiorabbit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-13 00:00:00.000000000 Z
11
+ date: 2024-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  requirements: []
91
- rubygems_version: 3.5.3
91
+ rubygems_version: 3.5.5
92
92
  signing_key:
93
93
  specification_version: 4
94
94
  summary: Bindings for Dear ImGui