imgui-bindings 0.1.10-arm64-darwin → 0.1.11-arm64-darwin

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: 26483c75649de7ecbf1d7adefdd757118577255be70878596bf2c2f8543e9e99
4
- data.tar.gz: 66318fc1ff6197625b773a389081e2be5c32b1b87ed1399ff91104f6d77e5fb4
3
+ metadata.gz: d46ec248815df2d6ee7e2de9334c219cbb3d926f3c250eea411cc3c85b95e8e9
4
+ data.tar.gz: f0af3d78f2cad4fbcdf358badbd06a95ae3c0366ca37fee54fbab1e1042b7293
5
5
  SHA512:
6
- metadata.gz: f676b7f31ec606e79b002488641241a77afbf83dd90e65dd60c2bc9c2f973395f7b3d72b171e067655b7e2a7031b61eb7007be15cce0e6f4d04f31f908fc5fcb
7
- data.tar.gz: 59ba2104168cc177157f8e1363a3c9a8d2877608f03fc3f411f54c061d8db929a7de569e6dd4bde63564da4cb75a951c0ac617455bc5c09ec7a12be78ad0fdff
6
+ metadata.gz: 47c28dc1e0e6171ee151747d71aa202d57f18ee99955fcc3933005459ff4436c62f6c0089606e39d94a345b04a2474665936ab3954ff412a23c2cfb84f29e6bf
7
+ data.tar.gz: 71c4012fb82bda41041977c40b79103c86c26972d029a07c570590e93cad4137fac73be9ad99549822f6cb28de5bd05dc4e6c0849d20ffb09c34ef315efcad37
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
 
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
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: arm64-darwin
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
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  - !ruby/object:Gem::Version
81
81
  version: '0'
82
82
  requirements: []
83
- rubygems_version: 3.5.3
83
+ rubygems_version: 3.5.5
84
84
  signing_key:
85
85
  specification_version: 4
86
86
  summary: Bindings for Dear ImGui