94 Commits

Author SHA1 Message Date
dbr
34453a9081 Placeholder for imgui-winit-support
A standalone example would either be missing a renderer (of minimal usefulness), or an exact duplicate of the linked examples
2023-01-04 19:05:15 +10:30
dbr
6d6cda275c Add docs links to Cargo.toml
So docs link shows up nicely on crates.io
2022-11-30 10:31:02 +10:30
dbr
9776ebef90 Remove authors key from Cargo.toml
The field is now optional (as of Rust 1.53) and no longer used by crates.io (as per Rust RFC 3052)
2022-11-30 10:15:38 +10:30
dbr
2eb3f8c337 Bump to 0.9.0! 2022-11-30 10:10:19 +10:30
Lena Milizé
b377181c54 re-export winit and glow
Signed-off-by: Lena Milizé <me@lvmn.org>
2022-10-27 10:03:36 +02:00
Denis Barkar
5fa0f27564 Support winit v0.27.2 2022-08-17 17:37:07 +03:00
dbr
c032408329 sudo rm -rf old-winit
Somewhat experimental removal of old winit versions, to reduce maintenance burden

Significantly reduces (around half) the length of winit-support, should reduce amount of work done in CI
2022-04-30 10:12:56 -04:00
dbr/Ben
fef6509a6e
Merge pull request #628 from dbr/losingfocus
Handle window focus lost event
2022-03-23 12:12:56 +10:30
dbr
5cd71fef4c cargo fmt --all 2022-03-19 21:10:22 +11:00
dbr
9648b40d85 Handle window focus lost event
Avoids keys getting stuck when window loses focus (e.g alt+tab)

Closes #602
2022-03-19 21:04:16 +11: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
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