winit/examples
Mads Marquart 4f6fd44c6c
macOS: Clean up coordinate system calculations (#3302)
* Clean up macOS and iOS monitor code a bit

* Clean up window size methods

Use `setContentSize`, `setContentMinSize`, `setContentMaxSize` and `contentRectForFrameRect` to let the windowing system figure out the required scaling, instead of us doing it manually.

* Use a flipped NSView coordinate system

* Clean up window position methods
2023-12-24 10:12:09 +01:00
..
data feat(all): Custom cursor images for all desktop platforms 2023-12-16 12:02:17 -08:00
util Fix crash when minimizing example on Windows 2023-10-31 19:21:36 +04:00
child_window.rs Update to new raw-window-handle strategy 2023-10-15 06:07:39 +04:00
control_flow.rs Revise Key and KeyCode enums 2023-10-19 18:27:49 +04:00
cursor.rs Make ControlFlow::Wait the default (#3106) 2023-09-22 21:27:11 +02:00
cursor_grab.rs Revise Key and KeyCode enums 2023-10-19 18:27:49 +04:00
custom_cursors.rs Allow custom cursor caching (#3276) 2023-12-22 22:20:41 +01:00
custom_events.rs Make ControlFlow::Wait the default (#3106) 2023-09-22 21:27:11 +02:00
drag_window.rs Add Window::show_window_menu 2023-10-11 01:46:16 +04:00
focus.rs bugfix(x11): Use the right atom type in focus_window() 2023-11-28 16:20:36 -08:00
fullscreen.rs macOS: Clean up coordinate system calculations (#3302) 2023-12-24 10:12:09 +01:00
handling_close.rs Make ControlFlow::Wait the default (#3106) 2023-09-22 21:27:11 +02:00
icon.png Window icons (#497) 2018-05-07 17:36:21 -04:00
ime.rs Revise Key and KeyCode enums 2023-10-19 18:27:49 +04:00
key_binding.rs Make ControlFlow::Wait the default (#3106) 2023-09-22 21:27:11 +02:00
monitor_list.rs Propagate error from EventLoop creation 2023-08-13 23:20:09 +04:00
mouse_wheel.rs Make ControlFlow::Wait the default (#3106) 2023-09-22 21:27:11 +02:00
multithreaded.rs macOS: Clean up coordinate system calculations (#3302) 2023-12-24 10:12:09 +01:00
multiwindow.rs Revise Key and KeyCode enums 2023-10-19 18:27:49 +04:00
request_redraw.rs Make ControlFlow::Wait the default (#3106) 2023-09-22 21:27:11 +02:00
request_redraw_threaded.rs Make ControlFlow::Wait the default (#3106) 2023-09-22 21:27:11 +02:00
resizable.rs Revise Key and KeyCode enums 2023-10-19 18:27:49 +04:00
startup_notification.rs Revise Key and KeyCode enums 2023-10-19 18:27:49 +04:00
theme.rs Make ControlFlow::Wait the default (#3106) 2023-09-22 21:27:11 +02:00
timer.rs Move ControlFlow to EventLoopWindowTarget 2023-09-07 10:25:04 +04:00
touchpad_gestures.rs Make ControlFlow::Wait the default (#3106) 2023-09-22 21:27:11 +02:00
transparent.rs Make ControlFlow::Wait the default (#3106) 2023-09-22 21:27:11 +02:00
video_modes.rs Propagate error from EventLoop creation 2023-08-13 23:20:09 +04:00
web.rs Revise Key and KeyCode enums 2023-10-19 18:27:49 +04:00
web_aspect_ratio.rs Make ControlFlow::Wait the default (#3106) 2023-09-22 21:27:11 +02:00
window.rs Make ControlFlow::Wait the default (#3106) 2023-09-22 21:27:11 +02:00
window_buttons.rs Make ControlFlow::Wait the default (#3106) 2023-09-22 21:27:11 +02:00
window_debug.rs Revise Key and KeyCode enums 2023-10-19 18:27:49 +04:00
window_drag_resize.rs Move ControlFlow to EventLoopWindowTarget 2023-09-07 10:25:04 +04:00
window_icon.rs Make ControlFlow::Wait the default (#3106) 2023-09-22 21:27:11 +02:00
window_on_demand.rs Rename run_ondemand to run_on_demand 2023-10-04 01:24:42 +04:00
window_option_as_alt.rs Make ControlFlow::Wait the default (#3106) 2023-09-22 21:27:11 +02:00
window_pump_events.rs Make ControlFlow::Wait the default (#3106) 2023-09-22 21:27:11 +02:00
window_resize_increments.rs Revise Key and KeyCode enums 2023-10-19 18:27:49 +04:00
window_tabbing.rs Revise Key and KeyCode enums 2023-10-19 18:27:49 +04:00
x11_embed.rs Make ControlFlow::Wait the default (#3106) 2023-09-22 21:27:11 +02:00