Releases: imgui-rs/imgui-rs
Releases · imgui-rs/imgui-rs
v0.0.19
Added
- New things in imgui/cimgui 1.53.1
- Style: Add
PopupRounding
,FrameBorderSize
,WindowBorderSize
,PopupBorderSize
. - DemoWindow: Add
no_close
state. - Input: Add
no_undo_redo
method. - imgui-sys:
igStyleColorsDark
andigStyleColorsLight
- DragDrop low level API
igGetFrameHeight
igBeginCombo
,igEndCombo
igSetItemDefaultFocus
igGetOverlayDrawList
andigGetDrawListSharedData
ImFontConfig_DefaultConstructor
ImDrawList_AddImageRounded
- Style: Add
- Input: Add
read_only
andpassword
methods. - Various utility functions
- Support for changing the mouse cursor
- Custom font support
- Support for item grouping (
group
function) - Custom drawing with draw list manipulation
- Drag widgets
- Input: Add
input_text_multiline
method
Changed
- Upgrade to imgui/cimgui 1.53.1
- Rename
Ui::show_test_window
toUi::show_demo_window
. Keep redirection. - Rename
sys::igGetItemsLineHeightWithSpacing
tosys::igGetFrameHeightWithSpacing
.
Keep redirection. - Rename
ImGuiTreeNodeFlags::AllowOverlapMode
toImGuiTreeNodeFlags::AllowItemOverlap
.
sys::igSetNextWindowContentSize()
. Keep redirection. - Rename
sys::ImGuiTextBuffer_append()
helper toappendf()
. - Rename
ImGuiStyleVar::ChildWindowRounding
toImGuiStyleVar::ChildRounding
.
Keep redirection. - Rename
StyleVar::ChildWindowRounding
toStyleVar::ChildRounding
.
Keep redirection. - Rename
ImGuiCol::ChildWindowBg
toImGuiCol::ChildBg
.
Keep redirection.
- Rename
- Upgrade glium to 0.22.0. This updates winit to 0.16. This changes the way
HIDPI are calculated. Depending on your needs, you may want to set HIDPI to 1
by setting the environment variableWINIT_HIDPI_FACTOR=1
if you use X11. frame()
now takes a singleFrameSize
argument- Bump minimum Rust version to 1.24
set_mouse_down
takes button states by value, not by reference
Deprecated
- Various imgui-sys things that were deprecated in imgui/cimgui 1.53.1
- Obsolete
sys::igIsRootWindowFocused()
in favor of using
sys::igIsWindowFocused(ImGuiFocusedFlags::RootWindow)
. - Obsolete
sys::igIsRootWindowOrAnyChildFocused()
in favor of using
sys::igIsWindowFocused(ImGuiFocusedFlags::RootAndChildWindows)
. - Obsolete
sys::igIsRootWindowOrAnyChildHovered()
in favor of using
sys::igIsWindowHovered(ImGuiHoveredFlags::RootAndChildWindows)
. - Obsolete
sys::SetNextWindowContentWidth()
in favor of using - Obsolete
Window::show_borders
. UseStyleVar
instead. - Obsolete
ImGuiCol::ComboBg
. UsePopupBg
instead.
- Obsolete
Removed
- Features that were removed in imgui/cimgui 1.53.1
- Remove
anti_aliased: bool
final parameter ofsys::ImDrawList_AddPolyline
andsys::ImDrawList_AddConvexPolyFilled
. - Remove
ImGuiWindowFlags::ShowBorders
window flag. Borders are now fully
set up in the ImGuiStyle structure.
- Remove
- Various imgui-sys things that were deprecated in imgui/cimgui 1.52
v0.0.18
Added
is_item_hovered
tooltip
tooltip_text
Changed
- Upgrade to imgui/cimgui 1.52
- Upgrade to glium 0.19
Deprecated
- Various imgui-sys things that were deprecated in imgui/cimgui 1.52
Removed
- Non-namespaced flags
- Various imgui-sys things that were deprecated in imgui/cimgui 1.51
Window::bg_alpha
. Push a color change withwith_color_var
insteadcolor_edit3
color_edit4
v0.0.17
Added
- Namespaced flags (e.g.
ImGuiWindowFlags
) - Color picker widget
- Color button widget
imgui_sys
is now re-exported assys
in the main createimgui::get_style_color_name
Changed
- Upgrade to imgui/cimgui 1.51
- Adapt to latest cimgui API changes
- Bump minimum Rust version to 1.20
- Upgrade to bitflags 1.0
- Various minor ImString/ImStr changes
text
now accepts normal Rust strings. ImStr is still needed everywhere else
Fixed
- Default impl for ImString was incorrect and could cause a crash
Deprecated
- Non-namespaced flags
- Various imgui-sys things that were deprecated in imgui/cimgui 1.51
Window::bg_alpha
. Push a color change withwith_color_var
insteadcolor_edit3
. Usecolor_edit
insteadcolor_edit4
. Usecolor_edit
instead
Removed
- ImStr -> str Deref. Use
to_str
instead.
v0.0.16
Added
- OpenGL ES 2.0+ support in gfx and glium renderers
- Separate OpenGL 2.0, 3.0, 4.0 shaders in both renderers. This should fix an
issue with some systems that refuse to use old GLSL shaders with modern
OpenGL contexts ImGui::add_font_global_scale
- Support for radio buttons
Changed
- Upgrade to glium 0.18
- imgui-gfx-renderer
Renderer::init
now requires ashaders: Shaders
parameter. Please see examples/support_gfx/mod.rs for a shader resolution
example - Bump minimum Rust version to 1.19 because some dependencies require it.
Fixed
- Glium renderer now uses MinifySamplerFilter::Nearest. This fixes a blurry font
issue in some configurations
Removed
ImString::from_string_unchecked
ImString::from_bytes_unchecked
ImStr::from_bytes_unchecked
v0.0.15
Added
- Support for new_line function
- Support for text size calculation
- Support for scoped style customization
- Support for scoped color customization
- Support for child frames
- Unsafe ImString/ImStr creation functions for advanced users:
ImString::from_utf8_unchecked
(renamed fromImString::from_bytes_unchecked
)ImString::from_utf8_with_nul_unchecked
)ImStr::from_utf8_with_nul_unchecked
(renamed fromImStr::from_bytes_unchecked
)
Changed
- Button, selectable, histogram, plotlines, and progress bar accept size with
Into<ImVec2>
ImString::new
always succeeds and any interior NULs truncate the string. Breaking change- All builder constructor functions (e.g. Window::new) now take
&Ui
reference
to tie the lifetime of the builder to it. - Bumped minimum Rust version to 1.17 because some dependencies require it.
- Upgrade to glium 0.17
Deprecated
ImString::from_string_unchecked
(please useImString::new
)ImString::from_bytes_unchecked
(renamed toImString::from_utf8_unchecked
)ImStr::from_bytes_unchecked
(renamed toImStr::from_utf8_with_nul_unchecked
)
Fixed
- Histogram, plotlines, progressbar builders were not tied to the
&Ui
lifetime, so it was possible to misuse them.
v0.0.14
Added
- ImString owned type for strings
- Experimental support for gfx-rs in imgui-sys
- Experimental renderer for gfx-rs
Changed
- ImStr is now "a dear imgui -compatible string slice". This change
significantly affects how strings are handled. - Upgrade to imgui/cimgui 1.50
- Upgrade to bitflags 0.9
Fixed
- String pointer compilation problems on ARM
v0.0.13
v0.0.12
Added
- Support for progress bar
- Support for push/pop item width
- Support for ID stack manipulation (integer values)
- Support for 2-4 -element int sliders
- Support for 2-4 -element float sliders
ImVec4::zero()
Into
array and tuple conversions for ImVec2 and ImVec4- gfx 0.15 support in imgui-sys
- gfx 0.15 renderer implementation
Changed
- imgui-sys no longer includes glium support by default
- Move Glium renderer to a separate crate
Removed
Window::always_vertical_scollbar
(typo)igPushStyleVavrVec
(typo)ImGuiInputTextFlags::with
ImGuiTreeNodeFlags::with
ImGuiWindowFlags::with
v0.0.11
Added
ImVec2::zero()
- Support for buttons
- Support for closing current popup
Window::always_vertical_scrollbar
(fix typo)igPushStyleVarVec
(fix typo)
Changed
- Upgrade to bitflags 0.8
- Upgrade to glium 0.16
- Replace libc dependency with
std::os::raw
- Upgrade cimgui to include MinGW compilation fix
Deprecated
Window::always_vertical_scollbar
(typo)igPushStyleVavrVec
(typo)ImGuiInputTextFlags::with
ImGuiTreeNodeFlags::with
ImGuiWindowFlags::with