Commit graph

61 commits

Author SHA1 Message Date
Jonathan Johnson
0503b3d466
Merge pull request #2 from ModProg/winit-beta
winit 0.29
2023-09-02 09:14:14 -07:00
Jonathan Johnson
b0c73429f5
Updated inner size handling 2023-09-02 09:11:48 -07:00
Roland Fredenhagen
272d1c7462
wip 2023-09-02 17:29:56 +02:00
Roland Fredenhagen
e7d01c02bb
winit 0.29 2023-09-02 15:31:43 +02:00
Jonathan Johnson
5c70f99d95
Committing Cargo.lock 2023-08-31 10:08:37 -07:00
Jonathan Johnson
aecd00917c
Renaming location to position 2023-08-31 10:08:11 -07:00
Jonathan Johnson
da03d41656
Exposed WindowAttributes + mutability
WindowAttributes was previously used but not exposed. Additionally, a
few new methods for setting the window title/position/size have been
added.
2023-08-30 11:45:36 -07:00
Jonathan Johnson
1b5da400f3
Added ability to send messages to windows.
Gooey is using this to send invalidation messages from the UI callbacks.
2023-07-15 08:12:42 -07:00
Jonathan Johnson
13e0864bcd
Added ability for windows to call the main loop
When I ran the new Kludgine on my mac last night, I was surprised to
discover it didn't work. It turns out create_surface needs to be called
on the main thread on Metal.

This commit adds a way to provide a callback that can be remotely called
through the EventLoopProxy. This allows Kludgine to send a
CreateSurfaceRequest to the main event loop and receive a wgpu::Surface
back.
2023-07-04 07:42:33 -07:00
Jonathan Johnson
8f49442f28
Window panics are now handled
Prior to this commit, if a window panic happened, the window would be
left on the screen frozen. Now, the panic is caught and the window is
closed before resuming the panic.

The app event loop has a separate message it receives when a window
panics, and if it's the last window, the process exits with a non-zero
exit code.

This places the burden of handling a panicking window into the
developer's hands: ultimately if the window has a way to communicate
with it, the behavior is being dropped as part of the panic handling,
which ensures any channels the window had will be dropped too.
2023-07-03 08:38:38 -07:00
Jonathan Johnson
3f099070c2
Initial commit. 2023-06-27 09:21:38 -07:00