1
0
Fork 0
Commit graph

51 commits

Author SHA1 Message Date
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 bb18518cf6 fix some rustfmt annoyances 2020-09-11 22:29:29 +02:00
Billy Messenger cc2ae0ef39 rebase, cargo fmt 2020-09-11 12:38:06 -05:00
Billy Messenger 08564cc317 Merge branch 'master' of https://github.com/RustAudio/baseview into master 2020-09-11 12:35:51 -05:00
Billy Messenger 7bdff33847 Detect window resize in x11 2020-09-11 12:32:55 -05:00
William Light 4d9c6c3131 remove FileDropEvent
we have no implementations for it, so it's just dead code for now.
2020-09-11 19:10:49 +02:00
William Light 888e3bdf0c windows: nitpicky code aesthetics 2020-09-11 18:53:33 +02:00
William Light 17a7477400 windows: WindowHandle.app_run_blocking() 2020-09-11 18:53:33 +02:00
Billy Messenger 9efade9a18 Fix Windows build 2020-09-11 10:44:05 -05:00
Billy Messenger b8bc006fc1 Add and refactor events 2020-09-11 10:21:05 -05:00
Micah Johnston 5ecce5d28d Window::open() returns WindowHandle struct 2020-09-08 18:45:29 -05:00
Micah Johnston 601a5d62a4 remove mspc channel (to be replaced by baseview-specific WindowHandle 2020-09-08 18:45:29 -05:00
Micah Johnston c51aea5c12 rename AppWindow -> WindowHandler 2020-09-08 18:45:29 -05:00
Micah Johnston e78598954f adapt windows backend to new api 2020-09-07 21:33:03 -04:00
Micah Johnston 08c9aec50c switch from Arc<Mutex<>> to Rc<RefCell<>> since the wndproc is only called on one thread 2020-09-07 02:16:45 -05:00
Micah Johnston aafd54b76c get Window as pointer instead of using Arc::from_raw() 2020-09-07 02:12:06 -05:00
Micah Johnston 89bd912a73 call DispatchMessage in event loop and combine handle_message with wnd_proc 2020-09-07 01:17:14 -05:00
Micah Johnston 0da82a4bdd pass Arc<Window> by reference instead of cloning 2020-09-05 21:37:35 -05:00
Micah Johnston 10d3870644 clean up some warnings and cargo fmt 2020-09-05 21:19:37 -05:00
Micah Johnston 9d39ba9117 don't need to reset userdata, just leak the Arc with into_raw so it stays alive 2020-09-05 21:15:17 -05:00
Micah Johnston 6e7038d26e remove gl context creation code from windows 2020-09-05 21:15:15 -05:00
Micah Johnston 6a7bea1fa4 get windows building again 2020-09-05 20:12:05 -05:00
Billy Messenger 6cf5966afa Rename Application tratit to AppWindow 2020-09-05 11:19:09 -05:00
Billy Messenger 29917b87cd Rename Receiver trait to Application 2020-09-03 11:50:15 -05:00
Billy Messenger 81e791f06b Rename Message to Event. Add AppMessage type and on_app_message method to Receiver trait. 2020-09-03 11:38:22 -05:00
Billy Messenger b0c3792c74 Revert to Receiver trait. Add create_context method to Receiver trait. 2020-09-03 10:54:23 -05:00
Billy Messenger 2934a4c1fb Remove context creation code. Add mpsc Message channel. 2020-09-03 10:17:54 -05:00
Billy Messenger 90a25ea988 cargo fmt 2020-09-02 16:23:03 -05:00
Billy Messenger 9234f050c0 Add compiler arguments for choosing between OpenGL or wgpu. Add Receiver and Message types. 2020-09-02 16:22:49 -05:00
Mirko Covizzi 98b8a1186b Cargo fmt 2020-07-08 23:07:22 +02:00
Mirko Covizzi df72b11c74 Successful execution and rendering on Windows host 2020-07-08 23:03:03 +02:00
Mirko Covizzi 46dacdfc37 Event management refactoring 2020-06-30 21:53:04 +02:00
Mirko Covizzi 0bd1ae52c5 Cargo fmt 2020-06-30 21:29:00 +02:00
Mirko Covizzi c6293cd7d1 Add Timer 2020-06-30 21:25:53 +02:00
Mirko Covizzi c499697a9a Windows: add basic event handling 2020-06-15 23:02:39 +02:00
Mirko Covizzi f35f97c73e Windows: Refactor: move register window class into its own function 2020-06-12 22:41:30 +02:00
Mirko Covizzi 8c2c743da4 Windows: implement window close method 2020-06-09 21:55:44 +02:00
Mirko Covizzi 561d1a3005 Cargo fmt 2020-06-08 23:04:18 +02:00
Mirko Covizzi 9324b1b129 Windows: Refactor: move guid generation to fn 2020-06-08 23:03:31 +02:00
Mirko Covizzi 2d4db1575d Windows: Add message box 2020-06-08 22:59:17 +02:00
Mirko Covizzi 756b182250 Windows: add basic parent window support 2020-06-02 22:21:59 +02:00
Mirko Covizzi abd64adb16 Make code more idiomatic 2020-05-29 22:29:49 +02:00
Mirko Covizzi 09fc541055 Cargo clippy 2020-05-29 21:19:56 +02:00
Mirko Covizzi 0583f3de5f Cargo fmt 2020-05-29 21:04:51 +02:00
Mirko Covizzi e2c4c53f32 Add OpenGL context on Windows 2020-05-29 21:03:22 +02:00
Mirko Covizzi 829fa2c9bd Merge 2020-05-29 11:30:43 +02:00
Mirko Covizzi e5c37cc0de Cleanup GUID string and add more conditional compilation 2020-05-26 09:39:13 +02:00
Micah Johnston 1b33c3c33e unify api and file structure across platforms; make example platform-independent 2020-05-25 21:32:55 -05:00
Mirko Covizzi f75177e9b6 Setup unique class naming for windows on Windows 2020-05-25 22:15:58 +02:00