Joonas Javanainen
8fa58fb52c
Apply some missing 1.76 changes
2020-06-05 22:03:22 +03:00
Joonas Javanainen
41ac160bd8
Adapt to latest cimgui function names
2020-06-05 16:09:24 +03:00
Joonas Javanainen
c039d4ef38
Fix clippy nit
2020-03-16 12:25:51 +02:00
Joonas Javanainen
a5a0be44e3
Redesign tree node / collapsing header API
2020-03-16 12:02:52 +02:00
Joonas Javanainen
9618683b99
Fix various clippy nits
2020-01-12 14:09:28 +02:00
Malik Olivier Boussejra
55a8f28e0a
Fix toggling of MenuItem and Selectable with build_with_ref
...
Selectable or MenuItem should be toggled on click when called with
build_with_ref.
This is the behavior that is done in ImGui when
`bool ImGui::MenuItem(const char* label, const char* shortcut, bool*p_selected, bool enabled)` is called.
2019-12-06 11:24:41 +09:00
Joonas Javanainen
ae2f7d047c
Upgrade to cimgui/imgui 1.73
2019-09-25 18:41:12 +03:00
Johan Andersson
4cde7cacf3
Fix ImageButton bool return value for pressed.
...
This was a regression in 0.2.0
2019-09-09 11:20:58 +02:00
jaynus
904bda9354
Add an end statement for the build_simple combobox function which was causing crashing
2019-09-06 16:52:02 -07:00
Joonas Javanainen
46d099f40f
Require explicit ending/popping of almost all stack tokens
...
This is probably going to be controversial...
Calling end/pop in the Drop implementation causes way too many problems,
and interacts very badly with panics.
There are closure-based simpler implementations of almost everything
except parameter stacks that are still convenient to use. However, if we
end up switching to &mut Ui in most functions (very much possible in the
future!), closures will complicate matters so push/pop and begin/end
pairs are still relevant.
2019-07-13 17:19:32 +03:00
Joonas Javanainen
e142f5d1b5
Fix several clippy nits
2019-07-13 15:37:09 +03:00
Joonas Javanainen
83c2503134
Redesign menu API
2019-07-13 15:28:51 +03:00
Joonas Javanainen
664efd91a7
Redesign sliders
2019-07-13 14:59:25 +03:00
Joonas Javanainen
95662e575a
Derive Copy, Clone, Debug for builders whenever possible
2019-07-13 13:53:24 +03:00
Joonas Javanainen
baa9362a25
Redesign selectable API
2019-07-13 13:11:51 +03:00
Joonas Javanainen
c0b9571160
Redesign combo box API
2019-07-13 12:42:35 +03:00
Joonas Javanainen
f05fd62c30
Update image / image button API
2019-07-13 10:54:27 +03:00
Joonas Javanainen
3f7cc4d242
Update documentation and add some tests
2019-07-12 22:57:11 +03:00
Joonas Javanainen
11b6932714
Pull new color editor/picker API from 0.1-dev
2019-07-12 20:18:44 +03:00
Joonas Javanainen
6ad52c517b
Pull new progress bar API from 0.1-dev
2019-07-12 20:15:08 +03:00
Joonas Javanainen
3dbfcbd85d
Pull misc widgets from 0.1-dev
2019-07-01 00:04:13 +03:00
Joonas Javanainen
597f51410b
Add some layout functions, improve docs
2019-06-30 23:48:01 +03:00
Joonas Javanainen
965dd40876
Pull parameter stack updates from 0.1-dev
2019-06-30 23:29:18 +03:00