goyda 0.1.3

A Rust UI toolkit that compiles the same app to Windows, Android, and web
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub use goyda_utils::{Align, Axis, Edge, SPACING, StyleProperty, StyleValue};

#[macro_export]
macro_rules! style_methods {
    ($( $(#[$meta:meta])* $name:ident ( $arg:ty ) => $axis:expr, $ctor:path );* $(;)?) => {
        impl $crate::components::Component {
            $(
                $(#[$meta])*
                pub fn $name(self, value: $arg) -> Self {
                    self.style($crate::components::StyleProperty($axis, $ctor(value)))
                }
            )*
        }
    };
}