Newer
Older
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;
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::UICameraBundle;
pub use crate::children::KChildren;
pub use crate::clone_component::PreviousWidget;
pub use crate::context::*;
pub use crate::event_dispatcher::{EventDispatcher, EventDispatcherContext};
pub use crate::focus_tree::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::tree::*;
pub use crate::widget::*;
pub use crate::widget_context::*;
pub use crate::widget_state::*;
pub use crate::widgets;
pub use kayak_font::Alignment;
pub use kayak_ui_macros::{constructor, rsx};
pub trait KayakUIPlugin {
fn build(&self, context: &mut KayakRootContext);
}