Micah Johnston
|
bb6a5eeeac
|
adapt macos backend to new api
|
2020-09-07 21:33:03 -04:00 |
|
Micah Johnston
|
e78598954f
|
adapt windows backend to new api
|
2020-09-07 21:33:03 -04:00 |
|
Micah Johnston
|
58ed00eb11
|
api change: AppWindow methods receive an &mut Window, which implements HasRawWindowHandle
|
2020-09-07 21:33:03 -04:00 |
|
william light
|
17c673957c
|
Merge pull request #38 from glowcoil/master
Refactor: call DispatchMessage in event loop and combine handle_message with wnd_proc
|
2020-09-07 22:15:26 +02: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 |
|
william light
|
1303c365d9
|
Merge pull request #37 from glowcoil/fix-macos
get macos building again
|
2020-09-06 18:51:17 +02:00 |
|
william light
|
d968c6182c
|
Merge pull request #34 from glowcoil/master
get windows building again and remove windows gl context creation code
|
2020-09-06 18:51:00 +02:00 |
|
Micah Johnston
|
4464e6ec1f
|
get macos building
|
2020-09-06 11:18:46 -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 |
|
William Light
|
128eab1b1d
|
CI: run tests in pull requests
|
2020-09-06 00:45:49 +02:00 |
|
william light
|
00c18dd91e
|
Merge pull request #32 from BillyDM/master
Add beginnings of cross-platform window events struct and AppWindow trait.
|
2020-09-06 00:36:42 +02:00 |
|
Billy Messenger
|
147037e639
|
Change unwrap() to unwrap_or(1.0)
|
2020-09-05 17:33:41 -05:00 |
|
Billy Messenger
|
08390d6004
|
Change AppWindow::create_context() to AppWindow::build()
|
2020-09-05 17:29:36 -05:00 |
|
Billy Messenger
|
93dfe909a8
|
fix minor nitpicks
|
2020-09-05 17:08:20 -05:00 |
|
Billy Messenger
|
dcfc988047
|
Change raw_handle to use an Xlib handle instead of an Xcb handle
|
2020-09-05 16:29:47 -05:00 |
|
Billy Messenger
|
c7d9d7d107
|
Add small wrapper for RawWindowHandle
|
2020-09-05 15:22:23 -05:00 |
|
Billy Messenger
|
f3ba681877
|
Replace dpi with scale
|
2020-09-05 14:55:45 -05:00 |
|
Billy Messenger
|
15b0c2e857
|
Replace RenderExpose event with draw method
|
2020-09-05 14:41:26 -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
|
ab8cb1c223
|
Remove Opened message. Add RenderExpose message.
|
2020-09-03 10:58:24 -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
|
a5829cee88
|
rename build() to open()
|
2020-09-03 10:22:25 -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 |
|
Charles Saracco
|
efce8c5ec9
|
Merge pull request #26 from crsaracco/master
Handle X11 keyboard and mouse events (just println! for now)
|
2020-07-08 17:18:33 -04:00 |
|
Mirko Covizzi
|
bf3b15070c
|
Merge pull request #29 from MirkoCovizzi/experiments
Successful UI rendering on Windows
|
2020-07-08 23:12:27 +02:00 |
|
Mirko Covizzi
|
98b8a1186b
|
Cargo fmt
|
2020-07-08 23:07:22 +02:00 |
|
Mirko Covizzi
|
fd7f4c1032
|
Merge remote-tracking branch 'upstream/master' into experiments
|
2020-07-08 23:04:39 +02:00 |
|
Mirko Covizzi
|
df72b11c74
|
Successful execution and rendering on Windows host
|
2020-07-08 23:03:03 +02:00 |
|
Mirko Covizzi
|
2d3bb0c817
|
Merge pull request #28 from MirkoCovizzi/experiments
Add Timer and manage some Events
|
2020-06-30 21:58:11 +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
|
5ed224f097
|
Merge pull request #27 from MirkoCovizzi/master
Windows: add basic event handling
|
2020-06-16 20:14:25 +02:00 |
|
Mirko Covizzi
|
96380305d4
|
Merge branch 'events'
|
2020-06-15 23:03:16 +02:00 |
|
Mirko Covizzi
|
c499697a9a
|
Windows: add basic event handling
|
2020-06-15 23:02:39 +02:00 |
|
Charles Saracco
|
7308763470
|
Handle keyboard and mouse events (just println! for now)
|
2020-06-15 01:40:45 -04:00 |
|
Charles Saracco
|
04aa80ad3d
|
Add discord link to README.md
|
2020-06-15 00:29:01 -04:00 |
|
Charles Saracco
|
733b376194
|
Merge pull request #25 from crsaracco/master
Better DPI scale factor strategy for X11
|
2020-06-15 00:25:05 -04:00 |
|
Charles Saracco
|
c42b218bb1
|
Better DPI scale factor strategy for X11
|
2020-06-14 00:25:37 -04:00 |
|
Mirko Covizzi
|
16363dcc4b
|
Merge pull request #24 from MirkoCovizzi/issue-17+20
Windows: Refactor: move register window class into its own function
|
2020-06-12 22:45:13 +02:00 |
|