1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! # Appy - Declarative UI Framework for Native Application
//!
//! Appy is a Rust framework for building native UI applications with a declarative syntax.
//!
//! - Inspired by React, it uses familiar concepts like function components and hooks.
//! - Draws elements directly using hardware acceleration and OpenGL. There is no
//! DOM involved.
//! - Supports multiple rendering backeds, such as Glutin and SDL, which ensures
//! cross-platform operation with a single application code base.
//!
//! ## Example
//!
//! ```rust
//! use appy::{*, types::*, components::*};
//!
//! #[main_window]
//! pub fn app()->Elements {
//! apx!{
//! <bg color=0x800000/>
//! <text text="Hello World" align=Align::Center/>
//! }
//! }
//! ```
//!
pub use *;
pub use glapp;
pub use gl;
/// Graphical UI components.
/// Utilities.
/// Types used by hooks and components.
/// Hooks that let you hook into the system for storing state and more.
extern crate self as appy;