pinnacle/api/rust/src/snowcap.rs

33 lines
672 B
Rust
Raw Normal View History

2024-06-15 04:29:19 +02:00
//! The Snowcap widget system.
//! // TODO: these docs
use integration::Integration;
use snowcap_api::layer::Layer;
pub mod integration;
/// Snowcap modules and Pinnacle integration.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
2024-06-15 04:29:19 +02:00
pub struct Snowcap {
/// Create layer surface widgets.
pub layer: &'static Layer,
2024-06-16 03:46:39 +02:00
/// Pinnacle integrations.
2024-06-15 04:29:19 +02:00
pub integration: &'static Integration,
}
impl Default for Snowcap {
fn default() -> Self {
Self::new()
}
}
2024-06-15 04:29:19 +02:00
impl Snowcap {
/// Creates a new Snowcap struct.
pub const fn new() -> Self {
2024-06-15 04:29:19 +02:00
Self {
layer: &Layer,
integration: &Integration,
2024-06-15 04:29:19 +02:00
}
}
}