89 Commits

Author SHA1 Message Date
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
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
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 OntheGoMac
e999579484 eh? 2021-12-21 21:10:35 -05:00
Connor Fitzgerald
c8b1647255 Support winit-0.26 2021-12-21 21:10:35 -05:00
Jack Mac
1d78d18d82 updating license copyright data 2021-10-06 12:06:23 -04:00
Jack Mac
a6b61be583 incremented remaining crates to a pre-release version 2021-09-17 15:40:06 -04:00
Jack Mac
4809d031b7 issuing version update! 2021-09-17 12:37:53 -04:00
Jack Mac
694cd96d49 getting close! input_text resize is broken,
and i'll need to check the imgui docs example with std::string
to get a reference to how to do it properly.
2021-09-13 17:12:00 -04:00
Jack Spira
a57227d4cb fmt 2021-09-05 23:32:54 -07:00
dzil123
610b2dc6ce Enable winit default features by default, to avoid breakage 2021-09-05 23:24:52 -07:00
dzil123
b378477d64 Add winit 0.25 to CI and xtask 2021-09-05 23:24:24 -07:00
dzil123
9d34370989 Create dummy feature to fix clippy --all-features 2021-09-05 23:23:55 -07:00
dzil123
b3cf8ca4a6 Re-enable winit default features during CI 2021-09-05 23:23:38 -07:00
Daniel Z
481a72fda6 Disable winit default features 2021-09-05 23:23:30 -07:00
Jack Spira
ea356177eb broke winit 19, fixed 2021-09-05 23:16:27 -07:00
Jack Spira
8ab0bb4496 at the end of my suffering, there was a door
hopefully fixed the last of examples annoyances
2021-09-05 15:48:37 -07:00
Jack Spira
6570f0bf40 okay fixed our winit hell situation 2021-09-05 14:30:47 -07:00
Thom Chiovoloni
918f79780d Include LICENSE and README files where relevant 2021-06-07 17:35:46 -07:00
Thom Chiovoloni
9bfbb84095 imgui-winit-support release 0.7.1 2021-05-22 17:21:34 -07:00
Johan Andersson
79f9345362
Add support & upgrade to winit 0.25 (#485) 2021-05-22 17:19:02 -07:00
Thom Chiovoloni
34118dce9c Prep release 0.7.0 2021-02-04 21:04:56 -08:00
Thom Chiovoloni
81e21f5853 Whoops, missed a spot 2020-12-31 19:32:44 -08:00
Thom Chiovoloni
64a8d3260d Attempt to bludgeon the winit/glium/gfx versions into submission 2020-12-31 19:32:44 -08:00
Thom Chiovoloni
65bfc1469e Use compare_exchange and not compare_and_swap 2020-12-31 13:06:04 -08:00
noxabellus
eada611c2c Fix for default cursor on linux with winit-support
* Changes `to_winit_cursor` to give MouseCursor::Default for Arrow
2020-12-19 17:06:18 -08:00
Thom Chiovoloni
18c02472fc Prep release 0.6.1 2020-12-16 17:53:16 -08:00
Willem Verstraeten
7e2293bde6 support winit-0.24 2020-12-15 20:47:54 -08:00
Thom Chiovoloni
0df089ab29 Move to virtual workspace 2020-12-06 09:32:21 -08:00
Thom Chiovoloni
e585291e4d fix lint errors and ensure examples actually are linted 2020-12-05 23:32:54 -08:00
Thom Chiovoloni
535b073871 Avoid dropping mouse events where press/release is on the same frame in imgui-winit-support 2020-12-05 23:32:54 -08:00
Thom Chiovoloni
54ab45b15c Support multiple simultaneous winit versions in imgui-winit-support
- Resolve conflicts in favor of latest.
- Warn at runtime if more than one is enabled and its a debug build (but
  support turning that off via yet another feature)
- Document all of this, including examples and (rough) support policy.
2020-12-05 23:32:54 -08:00
Thom Chiovoloni
767e8058fb Updates for ownership transfer.
- Various links now point at the new imgui-rs/imgui-rs github repo.
- As discussed, the `authors` entry in Cargo.toml now uses same text
  that appears in `LICENSE-MIT`, and doesn't list anybody directly.
2020-12-04 05:54:15 -08:00
Joonas Javanainen
0d57f87087
Release: 0.6.0 2020-11-15 11:03:42 +02:00
JMS55
4b22569aac Fix some of imgui-glium-renderer 2020-10-05 12:15:15 -04:00
JMS55
13c5cc0606 Switch to crates.io version of imgui for imgui-winit-support 2020-10-02 23:29:13 -04:00
JMS55
b32917f68c Switch to published crates.io version of winit 0.23 2020-10-02 12:41:41 -04:00
JMS55
a6ba02aa36 Initial winit 0.23 support 2020-10-01 22:37:15 -04:00
Joonas Javanainen
ff6ed84dd1
Release: 0.5.0 2020-09-20 00:01:56 +03:00
Joonas Javanainen
2edfb4bf85
Reduce unnecessary winit cursor changes 2020-07-07 23:39:07 +03:00
Joonas Javanainen
bcf7669ae3
Release: 0.4.0 2020-05-27 22:31:40 +03:00
Gabriel Smith
59c67e78f4 Run cargo fmt on winit 0.22 changes 2020-05-18 15:12:38 -04:00