Layout utils

This commit is contained in:
veeso
2021-03-14 14:30:37 +01:00
parent 8f3fe14843
commit bda69c661f
2 changed files with 73 additions and 10 deletions

View File

@@ -27,6 +27,7 @@
pub mod components;
pub mod props;
pub mod view;
pub mod utils;
// locals
use props::{PropValue, Props, PropsBuilder};
@@ -61,20 +62,11 @@ pub enum Msg {
#[derive(std::fmt::Debug, PartialEq, Eq)]
pub enum Payload {
Text(String),
Signed(isize),
//Signed(isize),
Unsigned(usize),
None,
}
// -- RenderData
/// ## RenderData
///
/// RenderData is the object which contains data related to the component render
pub struct RenderData {
pub cursor: usize, // Cursor position
}
// -- Component
/// ## Component