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.
|
2024-07-06 01:54:42 +02:00
|
|
|
#[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,
|
|
|
|
}
|
|
|
|
|
2024-07-06 01:54:42 +02:00
|
|
|
impl Default for Snowcap {
|
|
|
|
fn default() -> Self {
|
|
|
|
Self::new()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-15 04:29:19 +02:00
|
|
|
impl Snowcap {
|
2024-07-06 01:54:42 +02:00
|
|
|
/// Creates a new Snowcap struct.
|
|
|
|
pub const fn new() -> Self {
|
2024-06-15 04:29:19 +02:00
|
|
|
Self {
|
2024-07-06 01:54:42 +02:00
|
|
|
layer: &Layer,
|
|
|
|
integration: &Integration,
|
2024-06-15 04:29:19 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|