swamp_screen/lib.rs
1/*
2 * Copyright (c) Peter Bjorklund. All rights reserved. https://github.com/swamp/swamp
3 * Licensed under the MIT License. See LICENSE in the project root for license information.
4 */
5use int_math::UVec2;
6use swamp_message::prelude::Message;
7use swamp_resource::prelude::*;
8
9#[derive(Debug, Resource, Clone)]
10pub struct Window {
11 pub fullscreen: bool,
12 pub title: String,
13 pub requested_surface_size: UVec2,
14 pub minimal_surface_size: UVec2,
15}
16
17#[derive(Message, Debug)]
18pub enum WindowMessage {
19 CursorMoved(UVec2),
20 WindowCreated(),
21 Resized(UVec2),
22}