#[doc(inline)]
pub use iced::widget::{canvas, Canvas};
#[doc(inline)]
pub use iced::widget::{checkbox, Checkbox};
#[doc(inline)]
pub use iced::widget::{combo_box, ComboBox};
#[doc(inline)]
pub use iced::widget::{container, Container};
#[doc(inline)]
pub use iced::widget::{horizontal_space, vertical_space, Space};
#[doc(inline)]
pub use iced::widget::{image, Image};
#[doc(inline)]
pub use iced::widget::{lazy, Lazy};
#[doc(inline)]
pub use iced::widget::{mouse_area, MouseArea};
#[doc(inline)]
pub use iced::widget::{pane_grid, PaneGrid};
#[doc(inline)]
pub use iced::widget::{progress_bar, ProgressBar};
#[doc(inline)]
pub use iced::widget::{responsive, Responsive};
#[doc(inline)]
pub use iced::widget::{slider, vertical_slider, Slider, VerticalSlider};
#[doc(inline)]
pub use iced::widget::{svg, Svg};
#[doc(inline)]
pub use iced::widget::{text_editor, TextEditor};
#[doc(inline)]
pub use iced_core::widget::{Id, Operation, Widget};
pub mod aspect_ratio;
#[cfg(feature = "autosize")]
pub mod autosize;
pub mod button;
#[doc(inline)]
pub use button::{Button, IconButton, LinkButton, TextButton};
pub(crate) mod common;
pub mod calendar;
#[doc(inline)]
pub use calendar::{calendar, Calendar};
pub mod card;
#[doc(inline)]
pub use card::*;
pub mod color_picker;
#[doc(inline)]
pub use color_picker::{ColorPicker, ColorPickerModel};
#[cfg(feature = "qr_code")]
#[doc(inline)]
pub use iced::widget::qr_code;
pub mod context_drawer;
#[doc(inline)]
pub use context_drawer::{context_drawer, ContextDrawer};
#[doc(inline)]
pub use column::{column, Column};
pub mod column {
pub type Column<'a, Message> = iced::widget::Column<'a, Message, crate::Theme, crate::Renderer>;
#[must_use]
pub fn column<'a, Message>() -> Column<'a, Message> {
Column::new()
}
#[must_use]
pub fn with_capacity<'a, Message>(capacity: usize) -> Column<'a, Message> {
Column::with_children(Vec::with_capacity(capacity))
}
#[must_use]
pub fn with_children<Message>(children: Vec<crate::Element<Message>>) -> Column<Message> {
Column::with_children(children)
}
}
pub mod layer_container;
#[doc(inline)]
pub use layer_container::{layer_container, LayerContainer};
pub mod context_menu;
#[doc(inline)]
pub use context_menu::{context_menu, ContextMenu};
pub mod dialog;
#[doc(inline)]
pub use dialog::{dialog, Dialog};
pub mod divider {
pub mod horizontal {
use iced::widget::{horizontal_rule, Rule};
#[must_use]
pub fn default<'a>() -> Rule<'a, crate::Theme> {
horizontal_rule(1).class(crate::theme::Rule::Default)
}
#[must_use]
pub fn light<'a>() -> Rule<'a, crate::Theme> {
horizontal_rule(1).class(crate::theme::Rule::LightDivider)
}
#[must_use]
pub fn heavy<'a>() -> Rule<'a, crate::Theme> {
horizontal_rule(4).class(crate::theme::Rule::HeavyDivider)
}
}
pub mod vertical {
use iced::widget::{vertical_rule, Rule};
#[must_use]
pub fn default<'a>() -> Rule<'a, crate::Theme> {
vertical_rule(1).class(crate::theme::Rule::Default)
}
#[must_use]
pub fn light<'a>() -> Rule<'a, crate::Theme> {
vertical_rule(4).class(crate::theme::Rule::LightDivider)
}
#[must_use]
pub fn heavy<'a>() -> Rule<'a, crate::Theme> {
vertical_rule(10).class(crate::theme::Rule::HeavyDivider)
}
}
}
pub mod dnd_destination;
#[doc(inline)]
pub use dnd_destination::{dnd_destination, DndDestination};
pub mod dnd_source;
#[doc(inline)]
pub use dnd_source::{dnd_source, DndSource};
pub mod dropdown;
#[doc(inline)]
pub use dropdown::{dropdown, Dropdown};
pub mod flex_row;
#[doc(inline)]
pub use flex_row::{flex_row, FlexRow};
pub mod grid;
#[doc(inline)]
pub use grid::{grid, Grid};
mod header_bar;
#[doc(inline)]
pub use header_bar::{header_bar, HeaderBar};
pub mod icon;
#[doc(inline)]
pub use icon::{icon, Icon};
pub mod id_container;
#[doc(inline)]
pub use id_container::{id_container, IdContainer};
#[cfg(feature = "animated-image")]
pub mod frames;
pub use taffy::JustifyContent;
pub mod list;
#[doc(inline)]
pub use list::{list_column, ListColumn};
pub mod menu;
pub mod nav_bar;
#[doc(inline)]
pub use nav_bar::{nav_bar, nav_bar_dnd};
pub mod nav_bar_toggle;
#[doc(inline)]
pub use nav_bar_toggle::{nav_bar_toggle, NavBarToggle};
pub mod popover;
#[doc(inline)]
pub use popover::{popover, Popover};
pub mod radio;
#[doc(inline)]
pub use radio::{radio, Radio};
pub mod rectangle_tracker;
#[doc(inline)]
pub use rectangle_tracker::{rectangle_tracking_container, RectangleTracker};
#[doc(inline)]
pub use row::{row, Row};
pub mod row {
pub type Row<'a, Message> = iced::widget::Row<'a, Message, crate::Theme, crate::Renderer>;
#[must_use]
pub fn row<'a, Message>() -> Row<'a, Message> {
Row::new()
}
#[must_use]
pub fn with_capacity<'a, Message>(capacity: usize) -> Row<'a, Message> {
Row::with_children(Vec::with_capacity(capacity))
}
#[must_use]
pub fn with_children<Message>(children: Vec<crate::Element<Message>>) -> Row<Message> {
Row::with_children(children)
}
}
mod scrollable;
#[doc(inline)]
pub use scrollable::*;
pub mod segmented_button;
pub mod segmented_control;
pub mod settings;
pub mod spin_button;
#[doc(inline)]
pub use spin_button::{spin_button, vertical as vertical_spin_button, SpinButton};
pub mod tab_bar;
pub mod text;
#[doc(inline)]
pub use text::{text, Text};
pub mod text_input;
#[doc(inline)]
pub use text_input::{
editable_input, inline_input, search_input, secure_input, text_input, TextInput,
};
pub mod toaster;
#[doc(inline)]
pub use toaster::{toaster, Toast, ToastId, Toasts};
mod toggler;
#[doc(inline)]
pub use toggler::toggler;
#[doc(inline)]
pub use tooltip::{tooltip, Tooltip};
pub mod tooltip {
use crate::Element;
use std::borrow::Cow;
pub use iced::widget::tooltip::Position;
pub type Tooltip<'a, Message> =
iced::widget::Tooltip<'a, Message, crate::Theme, crate::Renderer>;
pub fn tooltip<'a, Message>(
content: impl Into<Element<'a, Message>>,
tooltip: impl Into<Element<'a, Message>>,
position: Position,
) -> Tooltip<'a, Message> {
let xxs = crate::theme::active().cosmic().space_xxs();
Tooltip::new(content, tooltip, position)
.class(crate::theme::Container::Tooltip)
.padding(xxs)
.gap(1)
}
}
pub mod warning;
#[doc(inline)]
pub use warning::*;
#[cfg(feature = "markdown")]
#[doc(inline)]
pub use iced::widget::markdown;
#[cfg(feature = "about")]
pub mod about;
#[cfg(feature = "about")]
#[doc(inline)]
pub use about::about;