10 Commits

Author SHA1 Message Date
Joonas Javanainen
41ac160bd8
Adapt to latest cimgui function names 2020-06-05 16:09:24 +03:00
Joonas Javanainen
290429bd12
Replace old nonUDT2 function variants 2020-06-05 16:09:24 +03: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
8a862ae220
Upgrade to cimgui/imgui 1.72b 2019-09-05 09:30:49 +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
95662e575a
Derive Copy, Clone, Debug for builders whenever possible 2019-07-13 13:53:24 +03:00
Joonas Javanainen
f4549d93ac
Redesign child window API 2019-07-13 00:54:03 +03:00
Joonas Javanainen
3f7cc4d242
Update documentation and add some tests 2019-07-12 22:57:11 +03:00
Joonas Javanainen
86ee32273f
Add window scrolling API 2019-07-12 20:44:05 +03:00
Joonas Javanainen
7f10cb35b2
Pull new window API from 0.1-dev 2019-07-12 19:43:39 +03:00