some new stuff

This commit is contained in:
2024-10-17 20:17:35 +02:00
parent 63a864061b
commit 44a227780b
7 changed files with 231 additions and 76 deletions
+11
View File
@@ -70,6 +70,7 @@ macro_rules! __oml {
}
#[macro_export]
/// Write OSUI Markup Language directly with rust.
macro_rules! oml {
// Props (P)
($tag:ident ($($k:ident = $v:expr),*)) => {{
@@ -117,3 +118,13 @@ macro_rules! oml {
$expr
}};
}
#[macro_export]
///```create_frame!(width, height)```
///
/// Create a frame for rendering multiple components
macro_rules! create_frame {
($width:expr, $height:expr) => {
vec![" ".repeat($width); $height]
};
}