Commit graph

22 commits

Author SHA1 Message Date
Jonathan Johnson
de899cf546
Removed UnwindSafe bounds
After thinking about this more and more, I've come to realize that
forcing UnwindSafe is not the intention of the bound on catch_unwind.
This should have been evident to me by the fact that thread::spawn does
not require UnwindSafe, yet it catches panics. The key qualifier I wasn't
noticing was that the design of the trait is to prevent *easily*
observing invariant states.

Since this panic catch results in dropping and then subsequently closing
everything that was passed to it, it fits the same general shape as
thread::spawn, so I'm removing the bounds.
2023-12-20 11:10:24 -08:00
Jonathan Johnson
ebcff2bb4f
Releasing v0.1.1 2023-12-18 17:03:13 -08:00
Jonathan Johnson
1f475626cf
Fixing compilation on Windows 2023-12-18 17:02:26 -08:00
Jonathan Johnson
c036093bee
Updating readme 2023-12-18 09:41:52 -08:00
Jonathan Johnson
125e9f7c46
Updating winit
Discovered the rwh feature flags
2023-11-20 06:20:20 -08:00
Jonathan Johnson
bde351f2b4
Removing wayland-csd-adwaita by default
This includes an entire rendering library (tiny-skia)
2023-11-19 15:57:17 -08:00
Jonathan Johnson
5ed0d923de
Merge pull request #3 from ModProg/app_name
Add app_name to WindowAttributes
2023-11-10 16:35:00 -08:00
Roland Fredenhagen
bcbbb7810e
Add app_name to WindowAttributes 2023-11-11 01:29:24 +01:00
Jonathan Johnson
043bfe2c78
Added min/max window size 2023-11-02 14:32:32 -07:00
Jonathan Johnson
91c540c2a2
Pinning winit until wgpu updates 2023-10-25 08:23:13 -07:00
Jonathan Johnson
665107f59b
Requerying the inner window for the new size 2023-10-17 09:45:04 -07:00
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