mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 06:16:04 +00:00
17 lines
343 B
Rust
17 lines
343 B
Rust
use crate::{component::Component, style::Style};
|
|
|
|
#[derive(Clone, Debug)]
|
|
pub struct BaseComponent {
|
|
// implements mutablecomponent
|
|
pub siblings: Vec<Component>,
|
|
pub style: Style,
|
|
}
|
|
|
|
impl BaseComponent {
|
|
pub fn new() -> Self {
|
|
Self {
|
|
siblings: Vec::new(),
|
|
style: Style::new(),
|
|
}
|
|
}
|
|
}
|