kettle11 / kapp

A pure Rust window and input library for Windows, Mac, and Web. (Work in progress)
Apache License 2.0
56 stars 4 forks source link

Implement maximum size flag for Windows #60

Closed lunabunn closed 3 years ago

lunabunn commented 3 years ago

Implement #22 for Windows.

One thing to note, unrelated to the actual issue. The default minimum size on Windows is (GetSystemMetrics(SM_CXMINTRACK), GetSystemMetrics(SM_CYMINTRACK)). Not sure what value that is, but maybe we should use that instead of (0, 0) in the unwrap_or call for minimum_size?

kettle11 commented 3 years ago

(GetSystemMetrics(SM_CXMINTRACK), GetSystemMetrics(SM_CYMINTRACK)). Not sure what value that is, but maybe we should use that instead of (0, 0) in the unwrap_or call for minimum_size?

That seems reasonable.

This looks good otherwise!

lunabunn commented 3 years ago

Implemented!

kettle11 commented 3 years ago

Great!