imgui-bindings 0.1.10-x86_64-linux → 0.1.11-x86_64-linux
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +4 -0
- data/README.md +1 -1
- data/lib/imgui.rb +30 -23
- data/lib/imgui.x86_64.so +0 -0
- data/lib/imnodes.x86_64.so +0 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b87f550ad90c88f9f64a7bdca345bfbf5ae34bda59132857e1e761ecbc923d6
|
4
|
+
data.tar.gz: c268a7cd4f5dd142472006649bed68a2c28a9f38134eee172ebcb59e8e172a75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 222c069c4a3d56cc51acbc8f8f7a89c1b2f86e6700703d6614daae68d996a27d1958287e8eb95dffac8dfd3631d82250238968719719dc56630919539a2f90b1
|
7
|
+
data.tar.gz: b5666de539d2875464af747a14bdcdc48436fe0595eb0912147cc9eb29fa6d66c0c289bf2defc6be10b7143bc3fce3e77dfae70e7827b1f1bfa8398e26e47d3d
|
data/ChangeLog
CHANGED
data/README.md
CHANGED
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:
|
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. (
|
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
|
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
|
574
|
-
ImGuiPopupFlags_MouseButtonLeft = 0
|
575
|
-
ImGuiPopupFlags_MouseButtonRight = 1
|
576
|
-
ImGuiPopupFlags_MouseButtonMiddle = 2
|
577
|
-
ImGuiPopupFlags_MouseButtonMask_ = 31
|
578
|
-
ImGuiPopupFlags_MouseButtonDefault_ = 1
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
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
|
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 ==
|
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
|
|
data/lib/imgui.x86_64.so
CHANGED
Binary file
|
data/lib/imnodes.x86_64.so
CHANGED
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
|
+
version: 0.1.11
|
5
5
|
platform: x86_64-linux
|
6
6
|
authors:
|
7
7
|
- vaiorabbit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
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.
|
83
|
+
rubygems_version: 3.5.5
|
84
84
|
signing_key:
|
85
85
|
specification_version: 4
|
86
86
|
summary: Bindings for Dear ImGui
|