1
0
Fork 0
Commit graph

377 commits

Author SHA1 Message Date
Billy Messenger b0196b8c5f attempt to fix mac build 2020-10-20 17:09:59 -05:00
Billy Messenger 84cac3e7ba attempt to fix mac build 2020-10-20 17:07:37 -05:00
Billy Messenger 2ee975231b fix Windows build 2020-10-20 17:04:37 -05:00
Billy Messenger 3fe752ca80 remove min/max resize policy 2020-10-20 16:06:40 -05:00
Billy Messenger 61ef63409b Merge branch 'master' of https://github.com/RustAudio/baseview into master 2020-10-20 15:56:54 -05:00
Billy Messenger ad12985d08 put WindowHandle back into platform-specific code 2020-10-20 15:52:09 -05:00
william light e3171da665
Merge pull request #49 from RustAudio/build-closure
replace `WindowHandler::build()` with closure passed to `Window::open()`
2020-10-20 21:42:59 +02:00
William Light cf96f3cc85 win/mac: closure for building WindowHandler 2020-10-20 21:33:57 +02:00
William Light 43cdc39335 x11: closure for building WindowHandler 2020-10-20 21:33:52 +02:00
Billy Messenger a91a5a1126 update x11 code 2020-10-17 17:36:28 -05:00
Billy Messenger 688d45c720 refactor to use conversion between Point and Size to PhyPoint and PhySize 2020-10-17 17:27:06 -05:00
Billy Messenger 6bae3e7507 Fix window_state pointer 2020-10-17 16:47:36 -05:00
Billy Messenger 5866bf372e fix window_info_from_scale 2020-10-17 15:42:16 -05:00
Billy Messenger 3fca9d3c78 remove #[repr(C)] as it did not work 2020-10-17 15:23:24 -05:00
Billy Messenger 11ee384908 fix windows build 2020-10-17 15:19:06 -05:00
Billy Messenger dc5d3b9622 Add Point and Size structs 2020-10-17 14:01:03 -05:00
Billy Messenger 1b9fbf9bb8 refactor and modify events 2020-10-17 13:35:39 -05:00
Billy Messenger a4c226277c change size hints to physical size 2020-10-15 16:38:09 -05:00
Billy Messenger aee594d23c add window resize hints 2020-10-15 16:31:38 -05:00
Billy Messenger 0758e4834b fix spacing in use statement 2020-10-15 13:28:21 -05:00
Billy Messenger 61de5e37f7 rename width, height to logical_width, logical_height 2020-10-15 13:26:21 -05:00
Billy Messenger ed1db27f52 revert WindowEvent traits 2020-10-15 13:24:08 -05:00
Billy Messenger 2bf229575f add UI scaling support 2020-10-15 13:17:03 -05:00
William Light d5c3ba0bb0 x11/window: take render time into account when computing next frame time 2020-09-15 22:36:42 +02:00
William Light c26507c322 x11: fix potential missed resize events 2020-09-14 06:21:25 +02:00
William Light a59ccae56f x11: suppress non-resize configure notify events 2020-09-14 03:30:30 +02:00
William Light 647925ceeb Cargo.toml: remove maybe-uninit 2020-09-14 03:12:59 +02:00
William Light 23a43c4cdd x11: refactor cursor logic 2020-09-14 02:47:58 +02:00
william light ad3dfce97d
Merge pull request #46 from BillyDM/master
Add set_mouse_cursor method to X11 Window
2020-09-14 02:13:00 +02:00
Billy Messenger d156d42e69 refactor x11 cursor changing code into x11/cursor.rs 2020-09-13 19:01:18 -05:00
Billy Messenger 3ff8a471f3 format example again 2020-09-13 18:48:18 -05:00
Billy Messenger 225cbab22a format example 2020-09-13 18:44:53 -05:00
Billy Messenger b2f2b2a251 Merge https://github.com/BillyDM/baseview into master 2020-09-13 18:39:32 -05:00
Billy Messenger 53debfc706 remove unused Mutex import 2020-09-13 18:39:13 -05:00
Billy Messenger ec174d0b9b
Change dependency libxcursor to libxcursor-dev 2020-09-13 18:33:51 -05:00
Billy Messenger fea93a4192
Add libxcursor dependency 2020-09-13 18:32:38 -05:00
Billy Messenger d84a1fde44 Add set_mouse_cursor method to X11 Window 2020-09-13 18:23:51 -05:00
Billy Messenger c24d12c453 Merge branch 'master' of https://github.com/RustAudio/baseview into master 2020-09-13 09:19:11 -05:00
Billy Messenger adc8fe0974 Add mouse cursor to Window 2020-09-13 09:19:05 -05:00
William Light 9cad2d1b5a x11: coalesce CONFIGURE_NOTIFY events 2020-09-12 19:31:13 +02:00
William Light ac0e1215f7 fix syntax error 2020-09-12 19:16:45 +02:00
William Light 29461b14e4 replace *mut c_void with RawWindowHandle in Parent::WithParent 2020-09-12 19:06:21 +02:00
William Light 47b122c86e remove duplicate imports 2020-09-11 22:36:33 +02:00
William Light bb18518cf6 fix some rustfmt annoyances 2020-09-11 22:29:29 +02:00
william light 877c913a0c
Merge pull request #45 from BillyDM/master
Detect window resize in x11
2020-09-11 22:18:32 +02:00
Billy Messenger 3e4c1edfc7 Add method to window so user can get window info 2020-09-11 14:52:32 -05:00
Billy Messenger 9bf1fa08bb cargo fmt 2020-09-11 12:42:14 -05:00
Billy Messenger 0ddc2c5f3f Merge branch 'master' of https://github.com/RustAudio/baseview into master 2020-09-11 12:41:53 -05:00
Billy Messenger cc2ae0ef39 rebase, cargo fmt 2020-09-11 12:38:06 -05:00
William Light 76e5851b62 x11: don't return from Window::open() until the window is actually open 2020-09-11 19:37:46 +02:00