mirror of
https://github.com/pinnacle-comp/pinnacle.git
synced 2025-02-14 08:47:51 +01:00
29 lines
637 B
Rust
29 lines
637 B
Rust
![]() |
// This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||
|
//
|
||
|
// SPDX-License-Identifier: MPL-2.0
|
||
|
|
||
|
use smithay::desktop::Window;
|
||
|
|
||
|
#[derive(Debug, PartialEq, Eq, Clone, serde::Serialize, serde::Deserialize)]
|
||
|
pub struct TagId(String);
|
||
|
|
||
|
#[derive(Debug)]
|
||
|
pub struct Tag {
|
||
|
pub id: TagId,
|
||
|
pub windows: Vec<Window>,
|
||
|
// TODO: layout
|
||
|
}
|
||
|
|
||
|
#[derive(Debug, Default)]
|
||
|
pub struct TagState {
|
||
|
pub tags: Vec<Tag>,
|
||
|
}
|
||
|
|
||
|
impl TagState {
|
||
|
pub fn new() -> Self {
|
||
|
Default::default()
|
||
|
}
|
||
|
}
|