imgui-bindings 0.1.10-aarch64-linux → 0.1.11-aarch64-linux

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: a993e1ce7bfacabb3480f3593b5a722275ddb516955ccde17caaadb67ddcbb23
4
- data.tar.gz: 9ec7558285742d1098759193505a9b80d243b5e02bd059bdcd37fc225d4ab88b
3
+ metadata.gz: a7612c89a9bd6204dc3a2b6c6f99fe0c74003cc659b8dbbf3439cae92b55bb17
4
+ data.tar.gz: fc740cf7e477a04d417c0e3519a39913c6c3fca6afc29eb52c9f1c064c886621
5
5
  SHA512:
6
- metadata.gz: 696baedcb3fcdbb49bb51493cc5fe6fde7a39e267026e63a0c4275f7924fe5613a3630bbc9b779d745a7ccba933d749fed7e37eeb231c9e127d7934776fcb0c5
7
- data.tar.gz: 309fc2906e55aa9a37b69703ba56d9efc35eba0d3abbd9477f87bcb8090ec43252997c7141464a6830a0f6be5ed7a7bcdeb0887926a094d257e90c54d8916b0b
6
+ metadata.gz: 4fa7b43649b2492e14b692d9f12713a0ba8293f4e38d678875445712ab636d41e0d785edd7ae58a485a7957fd8a1f6a0a1db3a4c8902b1c42b44068ebffddad5
7
+ data.tar.gz: 0004da2b70f09e73535b8b943bde91f53863c610d184c2a4ce76ac3cba04e84783b92ea8e63facfb1a23102ed5ff23b308c467fc1752a8440371bc678504d9dc
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
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: aarch64-linux
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