ITADN

版本发布 8

v0.14.1
? · 2025-05-27

## Summary Hi there! This is a :lady_beetle: bugfix :lady_beetle: release for [v0.14.1](https://github.com/AllenDang/giu/releases/tag/v0.14.0). This fixes crash caused by combos without filter. ## What's Changed * Fix combos without filter by @theaino in https://github.com/AllenDang/giu/pull/991 **Full Changelog**: https://github.com/AllenDang/giu/compare/v0.14.0...v0.14.1

v0.13.0
? · 2025-04-02

# Intro Hi there! Today we come with a new giu minor release. It brings several small but really handy additions. ## Release Highlights - **BREAKING:** `DragInt` widget was redesigned. - Check out `go doc giu.DragIntWidget` - Changed in the following way: `DragInt("id", &i, min, max)` => `DragInt(&i).ID("id").MinValue(min).MaxValue(max)` - You can use this regex to modify your code `s/DragInt(\(.*\),\(.*\),\(.*\),\(.*\))/DragInt(\2)\.Label(\1)\.MinValue(\3).MaxValue(\4)/g` - `DragFloatWidget` was added. - you can now merge 2 `StyleSetter` by adding them together (e.g. `s1.Add(s2)`) - `giu.MasterWindow` has `SetTheme` now, which takes `StyleSetter` argument. - Default theme could be obtained by `DefaultTheme` and then modified. - a new `LinkWidget` was added - This version of giu uses cimgui-go v1.3.1, which fixes `go mod tidy` bug. - Some fixes has been applied to the following widgets - `TabItemWidget` now allows attaching `EventHandler` (like `TreeNodeWidget`) - `Plot` axis can now set `Scale`. - `TableWidget` supports sorting (when `TableFlagsSortable` set); see examples/sortable-table ## Detailed Changelog * build(deps): bump golang.org/x/image from 0.23.0 to 0.24.0 by @dependabot in https://github.com/AllenDang/giu/pull/939 * build(deps): bump golang.org/x/image from 0.24.0 to 0.25.0 by @dependabot in https://github.com/AllenDang/giu/pull/941 * Add Plot Scale fields for setting time/log/symlog on x, y, y2, and y3 axis by @diamondo25 in https://github.com/AllenDang/giu/pull/945 * Set style for MasterWindow | #773 by @theaino in https://github.com/AllenDang/giu/pull/943 * deps: update cimgui-go to v1.3.1 by @gucio321 in https://github.com/AllenDang/giu/pull/946 * golangci: remove deprecated configurations by @gucio321 in https://github.com/AllenDang/giu/pull/947 * Fix lint issues by @gucio321 in https://github.com/AllenDang/giu/pull/948 * Example for setting MasterWindow.SetStyle by @theaino in https://github.com/AllenDang/giu/pull/949 * style setter: add Add method by @gucio321 in https://github.com/AllenDang/giu/pull/951 * Default Theme: convert to StyleSetter by @gucio321 in https://github.com/AllenDang/giu/pull/952 * build(deps): bump golangci/golangci-lint-action from 6 to 7 by @dependabot in https://github.com/AllenDang/giu/pull/954 * TabItem: add possibility to attach an EventHandler by @gucio321 in https://github.com/AllenDang/giu/pull/956 * Mmigrate to golangci v2 by @gucio321 in https://github.com/AllenDang/giu/pull/957 * widgets/DragIntWidget: add OnChange method by @gucio321 in https://github.com/AllenDang/giu/pull/958 * Drag widgets rework by @gucio321 in https://github.com/AllenDang/giu/pull/959 * add Link Widget by @gucio321 in https://github.com/AllenDang/giu/pull/960 * Table sort by @gucio321 in https://github.com/AllenDang/giu/pull/962 * sortable-table: only run sort on sortable tables by @tg-- in https://github.com/AllenDang/giu/pull/963 * table widget: fix lint error by @gucio321 in https://github.com/AllenDang/giu/pull/964 ## New Contributors * @diamondo25 made their first contribution in https://github.com/AllenDang/giu/pull/945 * @theaino made their first contribution in https://github.com/AllenDang/giu/pull/943 * @tg-- made their first contribution in https://github.com/AllenDang/giu/pull/963 **Full Changelog**: https://github.com/AllenDang/giu/compare/v0.12.0...v0.13.0

v0.12.0
? · 2025-01-20

# Intro Hi everyone! After 2 months since last release w present v0.12.0 which comes with a bunch of fixes and enhancements to the project. ## Release highlights - add missing ID() methods to the following widgets - ComboWidget - CheckboxWidget - ImageButtonWidget - Fix a minor inconsistence in `EventHandler` pinned to `TreeNodeWidget` - Now you can pin `EventHandler` directly to the `TreeNode` header (previously it worked only for closed nodes) - Invisible Button now has a default size of `(-1, -1)` which makes it take all available space. - Until now it was `(0, 0)`. Leaving it at this state caused a panic. - GIU now has its own imgui backend implementation (currently copy of GLFWBackend). - This will make it possible to change backends in the future. - Transparent example has been updated so that it shows more useful use-case ![image](https://github.com/user-attachments/assets/ee2c5d91-ea30-4ca9-86a1-580708fb53e9) - Check out [examples/transparent](https://github.com/AllenDang/giu/blob/ac3f0dcf3691079ff888290392e884b2ac6809fe/examples/transparent/transparent.go) - Thank you @cjbrigato ## What's Changed * readme: do not recommend tdm-gcc anymore by @gucio321 in https://github.com/AllenDang/giu/pull/912 * build(deps): bump github.com/stretchr/testify from 1.9.0 to 1.10.0 by @dependabot in https://github.com/AllenDang/giu/pull/914 * widgets: add ID() method to the ComboWidget by @gucio321 in https://github.com/AllenDang/giu/pull/915 * CheckboxWidget: add ID method by @gucio321 in https://github.com/AllenDang/giu/pull/916 * TreeNode: allow pinning EventHandler to TreeNode by @gucio321 in https://github.com/AllenDang/giu/pull/918 * context: use sync.Map for widget counter by @gucio321 in https://github.com/AllenDang/giu/pull/920 * Clickable widget: push auto ids by @gucio321 in https://github.com/AllenDang/giu/pull/924 * feat(SplitLayout): support different sashPos interpretations by @gucio321 in https://github.com/AllenDang/giu/pull/925 * build(deps): bump golang.org/x/image from 0.22.0 to 0.23.0 by @dependabot in https://github.com/AllenDang/giu/pull/926 * build(deps): bump github.com/AllenDang/cimgui-go from 1.2.0 to 1.3.0 by @dependabot in https://github.com/AllenDang/giu/pull/929 * Backend abstraction layer by @gucio321 in https://github.com/AllenDang/giu/pull/932 * fix(InvisibleButton): Set default size to -1, -1 by @gucio321 in https://github.com/AllenDang/giu/pull/934 * Transparent example: makes frameless windows movable by @cjbrigato in https://github.com/AllenDang/giu/pull/935 **Full Changelog**: https://github.com/AllenDang/giu/compare/v0.11.0...v0.12.0

v0.11.0
? · 2024-11-13

# Intro Hi everyone! Here we present a new version of giu! If you need help with giu or cimgui-go, you can join our new discord server! \ [![Discord Shield](https://discord.com/api/guilds/1306199225616306248/widget.png?style=shield)](https://discord.gg/Tt7eq6YKQS) ## Release Highlights - Re-enable `CodeEditorWidget` - didn't work since v0.7.0 due to a migration to cimgui-go - Re-enable `MarkdownWidget` - since cimgui-go v1.2.0, this widget is usable again. ![image](https://github.com/user-attachments/assets/0c0ad6ad-96f2-4d52-8311-6a2de41391b7) ## What's Changed - detailed changelog * Reenable code editor by @gucio321 in https://github.com/AllenDang/giu/pull/902 * Upgrade cimgui go (introduce func names changes) by @gucio321 in https://github.com/AllenDang/giu/pull/903 * build(deps): bump golang.org/x/image from 0.21.0 to 0.22.0 by @dependabot in https://github.com/AllenDang/giu/pull/907 * Add markdown widget by @gucio321 in https://github.com/AllenDang/giu/pull/705 * github: update versions in bug_report issue template by @gucio321 in https://github.com/AllenDang/giu/pull/908 * Update readme by @gucio321 in https://github.com/AllenDang/giu/pull/909 **Full Changelog**: https://github.com/AllenDang/giu/compare/v0.10.0...v0.11.0

v0.10.0
? · 2024-10-30

## Release Highlights - Important bugfix in ReflectiveBoundTexture - ReflectiveBoundTexture used broken cimgui-go's implementation of texture, which caused app crashes while GC. - A new Gizmo widget - Since v1.1.0 cimgui-go implements [ImGuizmo](https://github.com/CedricGuillemet/ImGuizmo) which is now aailable as an easy-to-use giu widget. - Gizmos API is similar to Plots mechanism. - The following Gizmos are currently available - Grid - Cube - Manipulate - View Manipulat - For usage details, check out [examples/gizmo](https://github.com/AllenDang/giu/tree/master/examples/gizmo) ![image](https://github.com/user-attachments/assets/8fe84369-73e7-49e5-8122-c7acdab738c0) - Added Plots styling - Now you can apply Color and Var style to Plots. - StyleSetter itself now implements `PlotWidget` interface so it can be applied to a single Plot. - Plots styling works with CSS as well ## What's Changed - detailed changelog * ReflectiveBoundTexture: Custom texture binding by @cjbrigato in https://github.com/AllenDang/giu/pull/875 * Add WindowFlagsNoDocking by @cjbrigato in https://github.com/AllenDang/giu/pull/877 * build(deps): bump golang.org/x/image from 0.20.0 to 0.21.0 by @dependabot in https://github.com/AllenDang/giu/pull/878 * go mod: update go version bugfix number by @gucio321 in https://github.com/AllenDang/giu/pull/882 * build(deps): bump github.com/AllenDang/cimgui-go from 1.0.1 to 1.0.2 by @dependabot in https://github.com/AllenDang/giu/pull/876 * mainthread: lock main os threa on Windows by @gucio321 in https://github.com/AllenDang/giu/pull/887 * build(deps): bump github.com/AllenDang/cimgui-go from 1.0.2 to 1.0.3 by @dependabot in https://github.com/AllenDang/giu/pull/889 * Texture releasing by @gucio321 in https://github.com/AllenDang/giu/pull/891 * fix(SplitLayout): height of 2nd child in V-split by @gucio321 in https://github.com/AllenDang/giu/pull/892 * Fix image widget click event detection by @SleepyPrince in https://github.com/AllenDang/giu/pull/894 * Upgrade cimgui go to v1.1.0 by @gucio321 in https://github.com/AllenDang/giu/pull/895 * add Gizmo widget and example for it by @gucio321 in https://github.com/AllenDang/giu/pull/897 * Plot styling by @gucio321 in https://github.com/AllenDang/giu/pull/898 ## New Contributors * @SleepyPrince made their first contribution in https://github.com/AllenDang/giu/pull/894 **Full Changelog**: https://github.com/AllenDang/giu/compare/v0.9.0...v0.10.0

v0.9.0
? · 2024-10-04

# Introduction Today we come with the new release of giu, which includes: - Upgrade of [cimgui-go](https://github.com/ALlenDang/cimgui-go) - this is now a stable version v1.0.1 - Fix to bug in ImageWithRgbaWidget (causing giu crashes on some platforms) - Completion of the missing documentation - now new PRs are forced to add the docs by revive linter. - Addition of a new way for Texture management (ReflectiveBoundTexture) along with fully functional `paint` example. - And much more! See the list below for full changelog. ## What's Changed * tooltip: add possibility to set layout to which the tooltip will be a… by @gucio321 in https://github.com/AllenDang/giu/pull/800 * Update golangci-lint.yaml by @MisustinIvan in https://github.com/AllenDang/giu/pull/817 * Added the option for image to take its original size by @MisustinIvan in https://github.com/AllenDang/giu/pull/815 * feat: use generics for RangeBuilder by @zenlor in https://github.com/AllenDang/giu/pull/824 * build(deps): bump github.com/mazznoer/csscolorparser from 0.1.3 to 0.1.4 by @dependabot in https://github.com/AllenDang/giu/pull/826 * Add NoHeader() to TableWidget by @JetSetIlly in https://github.com/AllenDang/giu/pull/830 * Fixed issue with resizing events in GLFW master window by @JetSetIlly in https://github.com/AllenDang/giu/pull/831 * Context: fix invalid reference to not-existing variable by @gucio321 in https://github.com/AllenDang/giu/pull/825 * update cimgui-go to latest version by @lzytaro in https://github.com/AllenDang/giu/pull/833 * build(deps): bump golang.org/x/image from 0.18.0 to 0.19.0 by @dependabot in https://github.com/AllenDang/giu/pull/835 * fix bug of center and right alignment by @lzytaro in https://github.com/AllenDang/giu/pull/834 * re-run go generate by @gucio321 in https://github.com/AllenDang/giu/pull/845 * css: replace \r\n in LoadCSS by @gucio321 in https://github.com/AllenDang/giu/pull/846 * build(deps): bump github.com/mazznoer/csscolorparser from 0.1.4 to 0.1.5 by @dependabot in https://github.com/AllenDang/giu/pull/844 * build(deps): bump golang.org/x/image from 0.19.0 to 0.20.0 by @dependabot in https://github.com/AllenDang/giu/pull/848 * readme: Add fancy docs badge by @greenthepear in https://github.com/AllenDang/giu/pull/837 * Remove gitter link by @gucio321 in https://github.com/AllenDang/giu/pull/849 * examples/dragdrop: fix crash by @gucio321 in https://github.com/AllenDang/giu/pull/852 * Add MasterWindowFlagsHidden by @cjbrigato in https://github.com/AllenDang/giu/pull/853 * Upgrade cimgui-go to v1.0.0 by @gucio321 in https://github.com/AllenDang/giu/pull/856 * build(deps): bump github.com/AllenDang/cimgui-go from 1.0.0 to 1.0.1 by @dependabot in https://github.com/AllenDang/giu/pull/858 * Revert "Fixed issue with resizing events in GLFW master window" by @gucio321 in https://github.com/AllenDang/giu/pull/864 * Linting fixes by @gucio321 in https://github.com/AllenDang/giu/pull/867 * context: use ID as type of id arg in Set/GetState by @gucio321 in https://github.com/AllenDang/giu/pull/866 * Add missing doc attempt N (finally success!) by @gucio321 in https://github.com/AllenDang/giu/pull/868 * Fix ImageWithRGBAWidget filling GPU Memory by @cjbrigato in https://github.com/AllenDang/giu/pull/869 * ImageWidget: Fix click event detection / Add Scale by @cjbrigato in https://github.com/AllenDang/giu/pull/871 * Makes states invalidation more robust by @cjbrigato in https://github.com/AllenDang/giu/pull/872 * Add advanced image usage tools with examples by @cjbrigato in https://github.com/AllenDang/giu/pull/870 ## New Contributors * @MisustinIvan made their first contribution in https://github.com/AllenDang/giu/pull/817 * @zenlor made their first contribution in https://github.com/AllenDang/giu/pull/824 * @JetSetIlly made their first contribution in https://github.com/AllenDang/giu/pull/830 * @lzytaro made their first contribution in https://github.com/AllenDang/giu/pull/833 * @greenthepear made their first contribution in https://github.com/AllenDang/giu/pull/837 * @cjbrigato made their first contribution in https://github.com/AllenDang/giu/pull/853 **Full Changelog**: https://github.com/AllenDang/giu/compare/v0.8.1...v0.9.0

v0.8.1
? · 2024-07-07

# INTRO This is a bugfix release for [v0.8.0](https://github.com/AllenDang/giu/releases/tag/v0.8.0). It contains several minor bugfixes reported after the last release. for more details, check out our [milestone](https://github.com/AllenDang/giu/milestone/1?closed=1). ## What's Changed * build(deps): bump golang.org/x/image from 0.17.0 to 0.18.0 by @dependabot in https://github.com/AllenDang/giu/pull/806 * add Context.Backend() method that returns currently used cimgui-go ba… by @gucio321 in https://github.com/AllenDang/giu/pull/811 * master window: fix DPI scaling by @gucio321 in https://github.com/AllenDang/giu/pull/812 * GetWidgetWidth: undo SameLine call by calling NewLine by @gucio321 in https://github.com/AllenDang/giu/pull/813 **Full Changelog**: https://github.com/AllenDang/giu/compare/v0.8.0...v0.8.1

v0.8.0
? · 2024-06-26

# Introduction Hi everyone, I'd like to annouce a new release of GIU. The main change since [v0.7.0](https://github.com/AllenDang/giu) was a migration from deprecated (since 31.12.2024) [inkyblackness/imgui-go](https://github.com/inkyblackness/imgui-go) to a new auto-generated [Dear ImGui](https://github.com/ocornut/imgui)'s implementation - the [cimgui-go](https://github.com/AllenDang/cimgui-go). ## Regression Unfortunately, since we lack some C wrappers for C++ ImGui plugins, we had to disable our support for the following features: - Markdown editor - Code editor - Memory editor All remaining API is unchanged ## What's Changed * **cimgui-go Migration** by @gucio321 in https://github.com/AllenDang/giu/pull/628 * ImageWidget: fix OnClick method by @gucio321 in https://github.com/AllenDang/giu/pull/703 * build(deps): bump golang.org/x/image from 0.12.0 to 0.13.0 by @dependabot in https://github.com/AllenDang/giu/pull/708 * utils: fix ColorToUint by @gucio321 in https://github.com/AllenDang/giu/pull/718 * change mainthread library by @gucio321 in https://github.com/AllenDang/giu/pull/706 * master rwindow: fix bug with segfault when resizing window with MenuBar by @gucio321 in https://github.com/AllenDang/giu/pull/720 * Update cimgui; fix style IDs bugs by @gucio321 in https://github.com/AllenDang/giu/pull/722 * Image quad by @gucio321 in https://github.com/AllenDang/giu/pull/723 * add missing style ids by @gucio321 in https://github.com/AllenDang/giu/pull/726 * build(deps): bump golang.org/x/image from 0.13.0 to 0.14.0 by @dependabot in https://github.com/AllenDang/giu/pull/732 * ListBoxWidget: fix ID handling by @gucio321 in https://github.com/AllenDang/giu/pull/727 * build(deps): bump actions/setup-go from 4 to 5 by @dependabot in https://github.com/AllenDang/giu/pull/737 * image with rgba: fix rgba bug by @gucio321 in https://github.com/AllenDang/giu/pull/713 * date picker updates by @gucio321 in https://github.com/AllenDang/giu/pull/738 * Plots: add line plot by @gucio321 in https://github.com/AllenDang/giu/pull/739 * plot: add LineXY by @gucio321 in https://github.com/AllenDang/giu/pull/740 * plot: fix axis ticks by @gucio321 in https://github.com/AllenDang/giu/pull/741 * go: update cimgui to latest master by @gucio321 in https://github.com/AllenDang/giu/pull/742 * build(deps): bump golang.org/x/image from 0.14.0 to 0.15.0 by @dependabot in https://github.com/AllenDang/giu/pull/746 * build(deps): bump actions/cache from 3 to 4 by @dependabot in https://github.com/AllenDang/giu/pull/750 * Check if no Columns or Rows were sent to TableWidget by @bytesiz3d in https://github.com/AllenDang/giu/pull/753 * build(deps): bump golangci/golangci-lint-action from 3 to 4 by @dependabot in https://github.com/AllenDang/giu/pull/761 * reenable imnodes by @gucio321 in https://github.com/AllenDang/giu/pull/733 * mainthread: disable on windows by @gucio321 in https://github.com/AllenDang/giu/pull/763 * keycode: fix NumPad codes by @gucio321 in https://github.com/AllenDang/giu/pull/768 * master window: add SetFPS method by @gucio321 in https://github.com/AllenDang/giu/pull/771 * build(deps): bump github.com/sahilm/fuzzy from 0.1.0 to 0.1.1 by @dependabot in https://github.com/AllenDang/giu/pull/775 * build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 by @dependabot in https://github.com/AllenDang/giu/pull/777 * combo: allow empty string by @gucio321 in https://github.com/AllenDang/giu/pull/779 * label: use TextUnformatted by @gucio321 in https://github.com/AllenDang/giu/pull/782 * update cimgui-go version by @gucio321 in https://github.com/AllenDang/giu/pull/783 * fix constants by @gucio321 in https://github.com/AllenDang/giu/pull/787 * fix: Unknown key: 161 on AZERTY keyboard by @raph6 in https://github.com/AllenDang/giu/pull/784 * ConditionWIdget: use Widget instad of Layout by @gucio321 in https://github.com/AllenDang/giu/pull/790 * Fix panic and font alats by @AllenDang in https://github.com/AllenDang/giu/pull/791 * build(deps): bump golang.org/x/image from 0.15.0 to 0.16.0 by @dependabot in https://github.com/AllenDang/giu/pull/792 * build(deps): bump golangci/golangci-lint-action from 4 to 5 by @dependabot in https://github.com/AllenDang/giu/pull/788 * Linter: update and fix issues by @gucio321 in https://github.com/AllenDang/giu/pull/793 * build(deps): bump golangci/golangci-lint-action from 5 to 6 by @dependabot in https://github.com/AllenDang/giu/pull/794 * add GenAutoID to Context by @gucio321 in https://github.com/AllenDang/giu/pull/795 * Revert "add GenAutoID to Context" by @gucio321 in https://github.com/AllenDang/giu/pull/796 * add a special type for IDs by @gucio321 in https://github.com/AllenDang/giu/pull/798 * contedt: redesign Auto ID system by @gucio321 in https://github.com/AllenDang/giu/pull/797 * build(deps): bump golang.org/x/image from 0.16.0 to 0.17.0 by @dependabot in https://github.com/AllenDang/giu/pull/799 * Implement plot 2nd and 3rd axis by @gucio321 in https://github.com/AllenDang/giu/pull/805 ## New Contributors * @bytesiz3d made their first contribution in https://github.com/AllenDang/giu/pull/753 * @raph6 made their first contribution in https://github.com/AllenDang/giu/pull/784 **Full Changelog**: https://github.com/AllenDang/giu/compare/v0.7.0...v0.8.0