aboutsummaryrefslogtreecommitdiff
path: root/azalea-chat/src/base_component.rs
blob: c2f3513df4d1f2d62eaab83d616d2e92bfc6898d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use crate::{style::Style, Component};

#[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::default(),
        }
    }
}

impl Default for BaseComponent {
    fn default() -> Self {
        Self::new()
    }
}