Joonas Javanainen
d82bc65934
Fix ImString nul terminator handling
...
This also changes the semantics slightly: it's now *required* to call
`refresh_len` after the buffer is modified via a mutable raw pointer.
2020-01-12 15:27:21 +02:00
Joonas Javanainen
bb792d9b18
Add some ImString tests
2020-01-12 15:02:23 +02:00
Joonas Javanainen
9618683b99
Fix various clippy nits
2020-01-12 14:09:28 +02:00
Joonas Javanainen
2b72a2a62c
Upgrade to cimgui/imgui 1.74
2020-01-12 14:05:51 +02:00
Joonas Javanainen
ccec55c10a
Merge pull request #284 from malikolivier/fix-build-with-ref
...
Fix toggling of MenuItem and Selectable with build_with_ref
2019-12-08 00:49:47 +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
Malik Olivier Boussejra
093546df8c
Implement ChildWindow::movable
...
This commit adds the API that allows to set the NO_MOVE flag for a child
window. This API was missing: the NO_MOVE flag could only be set for a
Window.
If the NO_MOVE flag is set to True, (by calling
`ChildWindow::movable(false)`), then the window will not move when a
child window is dragged on.
We can see this behavior in imgui's code:
https://github.com/ocornut/imgui/blob/f0f53016/imgui.cpp#L3354
2019-12-02 19:33:03 +09:00
Joonas Javanainen
ae2f7d047c
Upgrade to cimgui/imgui 1.73
2019-09-25 18:41:12 +03:00
Joonas Javanainen
4833811950
Remove all deprecated things
2019-09-18 11:15:20 +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
Joonas Javanainen
8149fb4268
Reformat
2019-09-07 16:42:32 +03: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
8a862ae220
Upgrade to cimgui/imgui 1.72b
2019-09-05 09:30:49 +03:00
Joonas Javanainen
390042db10
Merge pull request #251 from Jasper-Bekkers/master
...
Mark a bunch of methods that return a builder as `must_use`
2019-09-04 09:22:18 +03:00
Joonas Javanainen
4b4f613592
Merge pull request #245 from aloucks/font_config_name
...
Add name to FontConfig
2019-09-04 09:18:32 +03:00
Jasper-Bekkers
ec5784055f
Mark a bunch of methods that return a builder as must_use
2019-08-23 19:18:49 +02:00
Aaron Loucks
1c2d6d92f9
Add name to FontConfig
2019-07-27 14:52:35 -04:00
Joonas Javanainen
00a724283e
Merge pull request #237 from nico-abram/patch-1
...
Replace static mut bool with AtomicBool
2019-07-22 23:53:31 +03:00
Joonas Javanainen
50f4a2c975
Use the gfx vertex macro via a workaround
2019-07-17 11:19:07 +03:00
Nicolas
79951acf39
Replace static mut bool with AtomicBool
2019-07-15 04:34:47 -03: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
71ae5673b8
Add set_next_item_width and calc_item_width
2019-07-13 10:38:14 +03:00
Joonas Javanainen
37adc371e8
Add most missing utility functions
2019-07-13 01:24:11 +03:00
Joonas Javanainen
f4549d93ac
Redesign child window API
2019-07-13 00:54:03 +03:00
Joonas Javanainen
c71c1ea22d
Update ID stack manipulation to use stack tokens
2019-07-13 00:22:32 +03:00
Joonas Javanainen
54853f4114
Add full support to the column API
2019-07-12 23:27:19 +03:00
Joonas Javanainen
5f2bdc0604
Pass PathBuf in [log,ini]_filename functions
2019-07-12 23:10:03 +03:00
Joonas Javanainen
3f7cc4d242
Update documentation and add some tests
2019-07-12 22:57:11 +03:00
Joonas Javanainen
f1c041b3f3
Update layout API
2019-07-12 20:59:41 +03:00
Joonas Javanainen
86ee32273f
Add window scrolling API
2019-07-12 20:44:05 +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
7f10cb35b2
Pull new window API from 0.1-dev
2019-07-12 19:43:39 +03:00
Joonas Javanainen
838be18031
Remove all deprecated things
2019-07-12 17:43:43 +03:00
Joonas Javanainen
8af46b4a22
Add missing self parameter
2019-07-08 18:28:31 +03:00
Joonas Javanainen
3f6bc12e0b
Pull clipboard support from 0.1-dev
2019-07-08 17:47:36 +03:00
Joonas Javanainen
35f7ed9737
Reformat
2019-07-07 14:36:08 +03:00
Joonas Javanainen
8d00cdb64c
Upgrade dependencies
2019-07-07 14:32:44 +03:00
Joonas Javanainen
1f5bb7c449
Add more deprecations
2019-07-02 00:12:08 +03:00
Joonas Javanainen
774e336f9c
Rename time/frame_count
2019-07-02 00:09:33 +03:00
Joonas Javanainen
1851dee040
Add several deprecated type aliases
2019-07-01 23:55:04 +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