libccanvas 0.2.0

Utility for creating ccanvas components.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::features::common::Rect;

#[derive(Clone)]
/// Struct storing ccanvas-layout allocated space info
pub struct LayoutInfo {
    /// Area allocated
    pub rect: Rect,
}

impl LayoutInfo {
    /// Create a new layout info of rect
    pub fn new(rect: Rect) -> Self {
        LayoutInfo { rect }
    }
}