summaryrefslogtreecommitdiffstats
path: root/src/tuine/component/base/padding.rs
blob: c7c1ef9eb134979a7440e339833649953a10b753 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::marker::PhantomData;

use crate::tuine::TmpComponent;

/// A [`Padding`] surrounds a child widget with spacing.
pub struct Padding<Child, Message>
where
    Child: TmpComponent<Message>,
{
    _pd: PhantomData<Message>,
    padding_left: u16,
    padding_right: u16,
    padding_up: u16,
    padding_down: u16,
    child: Option<Child>,
}