limnus_screen/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * Copyright (c) Peter Bjorklund. All rights reserved. https://github.com/swamp/limnus
 * Licensed under the MIT License. See LICENSE in the project root for license information.
 */
use int_math::UVec2;
use limnus_message::prelude::Message;
use limnus_resource::prelude::*;

#[derive(Debug, Resource, Clone)]
pub struct Window {
    pub fullscreen: bool,
    pub title: String,
    pub requested_surface_size: UVec2,
    pub minimal_surface_size: UVec2,
}

#[derive(Message, Debug)]
pub enum WindowMessage {
    CursorMoved(UVec2),
    WindowCreated(),
    Resized(UVec2),
}