Newer
Older
#![allow(dead_code)]
mod calculate_nodes;
mod camera;
mod children;
mod clone_component;
mod context;
mod context_entities;
mod cursor;
mod event;
mod event_dispatcher;
mod focus_tree;
mod input;
mod input_event;
mod keyboard_event;
mod layout;
mod layout_dispatcher;
mod node;
mod on_change;
mod on_event;
mod on_layout;
pub(crate) mod render;
mod render_primitive;
mod styles;
mod tree;
mod widget;
mod widget_context;
mod widget_state;
pub mod widgets;
mod window_size;
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
use context::KayakRootContext;
pub use window_size::WindowSize;
pub use camera::*;
/// The default font name used by Kayak
pub const DEFAULT_FONT: &str = "Kayak-Default";
pub mod prelude {
pub use crate::camera::*;
pub use crate::children::KChildren;
pub use crate::clone_component::PreviousWidget;
pub use crate::context::*;
pub use crate::cursor::*;
pub use crate::event::*;
pub use crate::event_dispatcher::{EventDispatcher, EventDispatcherContext};
pub use crate::focus_tree::{FocusTree, Focusable};
pub use crate::input_event::*;
pub use crate::keyboard_event::*;
pub use crate::layout::*;
pub use crate::node::DirtyNode;
pub use crate::on_change::OnChange;
pub use crate::on_event::OnEvent;
pub use crate::on_layout::OnLayout;
pub use crate::render::font::FontMapping;
pub use crate::render::{DrawUiGraph, KayakUiPass};
pub use crate::styles::*;
pub use crate::tree::*;
pub use crate::widget::*;
pub use crate::widget_context::*;
pub use crate::widget_state::*;
pub use crate::widgets;
pub mod kayak_font {
pub use kayak_font::*;
}
pub use crate::render::material::{
MaterialHandle, MaterialUI, MaterialUIKey, MaterialUIPlugin,
};
pub use ::kayak_font::Alignment;
pub use kayak_ui_macros::{constructor, rsx};
}
pub use focus_tree::Focusable;
pub trait KayakUIPlugin {
fn build(&self, context: &mut KayakRootContext);
}