64 lines
1.1 KiB
Rust
64 lines
1.1 KiB
Rust
mod clickable;
|
|
mod colors;
|
|
mod disableable;
|
|
mod event;
|
|
mod focusable;
|
|
mod icon;
|
|
|
|
mod selectable;
|
|
mod stack;
|
|
mod styled_ext;
|
|
mod svg_img;
|
|
|
|
pub mod button;
|
|
pub mod checkbox;
|
|
pub mod clipboard;
|
|
pub mod context_menu;
|
|
pub mod divider;
|
|
pub mod dropdown;
|
|
pub mod indicator;
|
|
pub mod input;
|
|
pub mod label;
|
|
pub mod link;
|
|
pub mod list;
|
|
pub mod popover;
|
|
pub mod popup_menu;
|
|
pub mod prelude;
|
|
pub mod progress;
|
|
pub mod radio;
|
|
pub mod resizable;
|
|
pub mod scroll;
|
|
pub mod slider;
|
|
pub mod switch;
|
|
pub mod tab;
|
|
pub mod table;
|
|
pub mod theme;
|
|
pub mod tooltip;
|
|
pub mod webview;
|
|
|
|
// re-export
|
|
pub use wry;
|
|
|
|
pub use clickable::Clickable;
|
|
pub use disableable::Disableable;
|
|
pub use event::InteractiveElementExt;
|
|
pub use focusable::FocusableCycle;
|
|
pub use selectable::{Selectable, Selection};
|
|
pub use styled_ext::{Sizable, Size, StyledExt};
|
|
|
|
pub use colors::*;
|
|
pub use icon::*;
|
|
pub use stack::*;
|
|
pub use svg_img::*;
|
|
|
|
/// Initialize the UI module.
|
|
pub fn init(cx: &mut gpui::AppContext) {
|
|
input::init(cx);
|
|
list::init(cx);
|
|
dropdown::init(cx);
|
|
popover::init(cx);
|
|
popup_menu::init(cx);
|
|
context_menu::init(cx);
|
|
table::init(cx);
|
|
webview::init(cx)
|
|
}
|