dbr
cc08285a04
Update the list clipper:
...
1. Avoid calling step() in destructor - incorrect and unnecessary, as it is not required to fully "use" the clipper (you can stop rendering half-way through)
2. Add a harder to misuse iterator interface to the clipper as an alterantive to the C++ style .step() interface
Closes #610
2022-03-18 22:07:27 +11:00
Robin Quint
57230dc81f
Implemented basic context sharing in viewport example
2022-03-16 08:53:18 +01:00
Robin Quint
cbb98f5289
Added dockspace_over_main_viewport() to Ui, finished basic viewport example
2022-03-15 16:09:03 +01:00
Robin Quint
76bd236a95
Implemented working viewport example
2022-03-15 15:56:38 +01:00
Robin Quint
26df654967
Removed most example changes, working on viewport example
2022-03-15 14:08:17 +01:00
Marijn Suijten
db71313f04
imgui-winit-support: Get DrawData from Context instead of Ui
...
As per a recent deprecation change scheduled for the 0.9 release.
2022-03-15 14:03:11 +01:00
Marijn Suijten
055c16b4e2
imgui-winit-support: Fix use of update_delta_time in example doc
2022-03-15 13:51:35 +01:00
Marijn Suijten
b08f3bfe29
imgui-winit-support: Compile doctest on winit 20+
2022-03-15 13:51:28 +01:00
dbr
5e2ab214d1
fmt
2022-03-15 23:07:29 +11:00
dbr/Ben
71dff831de
Merge pull request #624 from MarijnS95/parking-lot-0.12
...
imgui: Upgrade parking_lot to 0.12 with windows-rs bindings
2022-03-15 22:36:46 +10:30
dbr
c0fb4b6369
Fix future clippy warning
2022-03-15 23:05:20 +11:00
dbr
2b9b938327
Fix misused anyhow! macro
...
Was msising a return, which bail! includes
2022-03-15 23:05:04 +11:00
Marijn Suijten
b5376c3fb4
imgui: Upgrade parking_lot to 0.12 with windows-rs bindings
...
`parking_lot` now uses windows-rs's `windows-sys` crate, officially
developed and vetted by Microsoft - the bindings are autogenerated from
metadata and faster to compile too.
See also https://github.com/Amanieu/parking_lot/pull/311 .
2022-03-15 12:19:31 +01:00
Robin Quint
768034a681
Added Documentation
2022-03-04 15:49:43 +01:00
Robin Quint
3da8f2cf33
Polishing for PR
2022-03-04 13:29:01 +01:00
Robin Quint
c2644cb0be
imgui-winit-support now uses external storage for extra windows
2022-03-04 13:10:43 +01:00
Robin Quint
066d802979
Make sure imgui compiles with docking enabled and disabled
2022-03-04 13:09:59 +01:00
Robin Quint
07503ff500
clippy
2022-03-02 10:45:22 +01:00
Robin Quint
acda14c7f1
Fixed initial window position
2022-03-02 10:42:39 +01:00
Robin Quint
cb8f63fb8c
Fixed initial window positioning and windows not rendering when focused
2022-03-02 08:37:53 +01:00
Robin Quint
e68ea5fe3b
Fixed crashes
2022-03-01 14:40:26 +01:00
Robin Quint
0e9f39c942
More WIP
2022-03-01 14:24:31 +01:00
Robin Quint
daf039c098
WIP
2022-03-01 13:38:20 +01:00
Robin Quint
cf214ca397
Reverted integration changes
2022-03-01 11:26:36 +01:00
Robin Quint
b6617b2c0e
WIP
2022-03-01 10:23:59 +01:00
Robin Quint
1d7bcd33ad
Fixed crashes
2022-03-01 08:08:53 +01:00
Robin Quint
4d32d50962
Fixed clippy
2022-02-28 16:59:40 +01:00
Robin Quint
3a9cf40de3
Implemented basic viewport support
2022-02-28 16:45:52 +01:00
Jiří Sejkora
30f8f04dcf
Remove im_str! usage from examples in docs
2022-02-27 20:48:45 -05:00
Jack Mac
37926397fa
lint comma
2022-02-22 10:33:59 -05:00
Jack Mac
9d9028903a
init
2022-02-22 10:33:59 -05:00
Robin Quint
4b307a1bf7
Added basic Viewport structs and flags
2022-02-22 16:07:58 +01:00
Jack Mac
24ad9d526c
reworked the combo box to be less annoying
2022-02-21 20:44:33 -05:00
Jack Mac
fadcd35c0a
grumble
2022-02-21 18:55:39 -05:00
Jack Mac
8dea2edcfa
init. copying other work
2022-02-21 18:55:39 -05:00
Jack Mac
396512a982
lint
2022-02-21 18:05:49 -05:00
Jack Mac
4bb300e393
color edits
2022-02-21 18:05:49 -05:00
Jack Mac
f334bfb106
init
2022-02-21 18:05:49 -05:00
Jack Mac
d6037316a0
updated modal popup funtimes
2022-02-21 18:05:49 -05:00
Philippe Renon
169403c526
winit-support: fix dpi handling in attach_window() when not in default mode
...
attach_window() was using the imgui scale factor when converting
winit physical size to logical size instead of the winit scale factor.
This would cause the imgui display size to be incorrect when not using the
HiDpiMode::Default mode (in default mode the imgui and winit scale factors
are the same and the issue goes unnoticed).
Note that handle_window_event() has similar (and correct) logic when handling WindowEvent::Resized events.
This also explain why the issue went mostly undiscovered as winit tends to
generate quite a bunch of resize events that would hide the miscalculation
done in attach_window().
A similar issue was also fixed in the WindowEvent::ScaleFactorChanged handling code.
should fix https://github.com/imgui-rs/imgui-rs/issues/441
2022-02-21 17:16:34 -05:00
Jack Mac
32cf2b9e6c
clippy stop yelling at me
2022-02-10 14:31:19 -05:00
dbr
69fb34f0f8
Fix up running of begin_combo doctest
2022-02-10 11:07:04 +11:00
dbr
6dfa0a9533
More docs around combo methods
...
Add example to begin_combo doc
2022-02-10 10:23:43 +11:00
Gabe Weiner
d05827258f
refactored Slider to match the new Ui based architecture
2022-01-28 12:00:47 -05:00
dbr/Ben
18ded1a58a
Merge pull request #603 from dbr/uipopup
...
Make ui.popup* methods consistent
2022-01-24 18:06:14 +11:00
dbr/Ben
f523dd2501
Merge pull request #600 from dbr/imgui186
...
Upgrade Dear ImGui 1.84.2 -> 1.86
2022-01-17 23:18:51 +11:00
dbr/Ben
e6c5208d01
Merge pull request #597 from dbr/packagetidying
...
Fix up glob patterns in imgui-sys
2022-01-17 23:17:45 +11:00
dbr
45c7e2dd92
...and once more
2022-01-17 14:47:17 +11:00
dbr
4bbbc459f1
clippy yelling
2022-01-17 14:35:07 +11:00
dbr
10eba1c25e
fmt
2022-01-17 13:09:18 +11:00