mirror of
https://github.com/pinnacle-comp/pinnacle.git
synced 2025-01-14 08:01:14 +01:00
32 lines
672 B
Rust
32 lines
672 B
Rust
//! 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)]
|
|
pub struct Snowcap {
|
|
/// Create layer surface widgets.
|
|
pub layer: &'static Layer,
|
|
/// Pinnacle integrations.
|
|
pub integration: &'static Integration,
|
|
}
|
|
|
|
impl Default for Snowcap {
|
|
fn default() -> Self {
|
|
Self::new()
|
|
}
|
|
}
|
|
|
|
impl Snowcap {
|
|
/// Creates a new Snowcap struct.
|
|
pub const fn new() -> Self {
|
|
Self {
|
|
layer: &Layer,
|
|
integration: &Integration,
|
|
}
|
|
}
|
|
}
|