rename window package to apprt

This commit is contained in:
Mitchell Hashimoto
2022-12-29 15:11:03 -08:00
parent e1cd650245
commit 11a3577ef1
11 changed files with 196 additions and 189 deletions

13
src/apprt/structs.zig Normal file
View File

@@ -0,0 +1,13 @@
/// ContentScale is the ratio between the current DPI and the platform's
/// default DPI. This is used to determine how much certain rendered elements
/// need to be scaled up or down.
pub const ContentScale = struct {
x: f32,
y: f32,
};
/// The size of the window in screen coordinates.
pub const WindowSize = struct {
width: u32,
height: u32,
};