Zhaoxian Li
464557fdc6
Force background to consume self
...
This is to enforce the consistency WINDOW_DRAW_LIST_LOADED
2020-06-21 22:30:29 +08:00
Zhaoxian Li
ebeb92aa8e
Expose background drawlist
2020-06-21 22:05:57 +08:00
Joonas Javanainen
8fa58fb52c
Apply some missing 1.76 changes
2020-06-05 22:03:22 +03:00
Joonas Javanainen
89712e1f3d
Update memory layouts
2020-06-05 16:09:24 +03:00
Joonas Javanainen
f93389178b
Handle new FontGlyph bitfields
2020-06-05 16:09:24 +03:00
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
Joonas Javanainen
6ee5a2867b
Generate bindings for 1.76
...
cimgui has changed a lot, and the default bindings include a lot of
internal stuff that we (probably) don't want. Therefore we stop checking
out cimgui as a submodule and just use it as a tool instead.
2020-06-05 16:08:40 +03:00
Walter Pearce
02545f9c38
Add support for winit 0.22 with feature flag in imgui-winit-support. Fix some clippy warnings.
2020-05-18 15:12:38 -04:00
Jasper Bekkers
d90fe8171e
WebAssembly FFI shells ( #322 )
...
* Allow imgui-rs to generate wasm-ffi bindings
* Missing wasm_bindings.rs file
* Update wasm bindings
* Take wasm import name from environment variable
* Remove debug message
* Formatting
2020-05-18 20:54:30 +02:00
Aaron Loucks
321d315428
Font name length check should use the minimum length
2020-03-16 17:04:37 -04: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
14fb8ce3dc
More clippy fixes
2020-02-15 13:53:21 +02:00
Joonas Javanainen
6e246b0c7c
Fix most Clippy warnings
2020-02-15 12:58:25 +02:00
Joonas Javanainen
efebe174c4
Restore old size_t behaviour
2020-02-15 12:49:55 +02:00
Joonas Javanainen
b759a44c84
Upgrade to imgui/cimgui 1.75
2020-02-15 12:39:27 +02:00
Joonas Javanainen
ff1fc49d5f
Upgrade bindgen, fix size_t changes
2020-02-15 12:21:32 +02:00
Joonas Javanainen
5ea969d273
Implement fmt::Write for ImString
2020-01-12 15:27:21 +02:00
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