2022-12-06 16:12:59 +01:00
|
|
|
// Copyright 2022 System76 <info@system76.com>
|
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
|
2022-12-23 15:10:13 +01:00
|
|
|
#![allow(clippy::module_name_repetitions)]
|
|
|
|
|
|
2023-09-01 09:31:31 +02:00
|
|
|
#[cfg(all(feature = "wayland", feature = "winit"))]
|
|
|
|
|
compile_error!("cannot use `wayland` feature with `winit");
|
|
|
|
|
|
2023-09-01 07:25:23 +02:00
|
|
|
/// Recommended default imports.
|
|
|
|
|
pub mod prelude {
|
|
|
|
|
pub use crate::ext::*;
|
2023-10-02 17:51:33 +02:00
|
|
|
#[cfg(any(feature = "winit", feature = "wayland"))]
|
|
|
|
|
pub use crate::ApplicationExt;
|
|
|
|
|
pub use crate::{Also, Apply, Element, Renderer, Theme};
|
2023-09-01 07:25:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub use apply::{Also, Apply};
|
|
|
|
|
|
2023-10-02 17:51:33 +02:00
|
|
|
#[cfg(any(feature = "winit", feature = "wayland"))]
|
2023-08-02 11:54:07 +02:00
|
|
|
pub mod app;
|
2023-10-02 17:51:33 +02:00
|
|
|
#[cfg(any(feature = "winit", feature = "wayland"))]
|
2023-08-02 11:54:07 +02:00
|
|
|
pub use app::{Application, ApplicationExt};
|
|
|
|
|
|
2023-09-18 07:45:11 +02:00
|
|
|
#[cfg(feature = "applet")]
|
|
|
|
|
pub mod applet;
|
|
|
|
|
|
2023-08-21 22:57:56 +02:00
|
|
|
pub use iced::Command;
|
2023-08-02 11:54:07 +02:00
|
|
|
pub mod command;
|
2023-05-30 12:03:15 -04:00
|
|
|
pub use cosmic_config;
|
2023-02-27 19:23:02 -05:00
|
|
|
pub use cosmic_theme;
|
2023-08-02 11:54:07 +02:00
|
|
|
|
2024-01-22 08:08:45 +01:00
|
|
|
#[cfg(any(feature = "xdg-portal", feature = "rfd"))]
|
2023-08-15 10:58:46 +02:00
|
|
|
pub mod dialog;
|
|
|
|
|
|
2023-08-02 11:54:07 +02:00
|
|
|
pub mod executor;
|
|
|
|
|
#[cfg(feature = "tokio")]
|
|
|
|
|
pub use executor::single::Executor as SingleThreadExecutor;
|
|
|
|
|
|
|
|
|
|
mod ext;
|
|
|
|
|
|
|
|
|
|
pub mod font;
|
|
|
|
|
|
2022-09-30 09:35:55 -06:00
|
|
|
pub use iced;
|
2023-06-01 16:12:57 -06:00
|
|
|
pub use iced_core;
|
|
|
|
|
pub use iced_futures;
|
|
|
|
|
pub use iced_renderer;
|
2023-05-30 12:03:15 -04:00
|
|
|
pub use iced_runtime;
|
2023-01-18 15:13:03 -08:00
|
|
|
#[cfg(feature = "wayland")]
|
|
|
|
|
pub use iced_sctk;
|
2022-10-18 10:07:32 -06:00
|
|
|
pub use iced_style;
|
2023-05-30 12:03:15 -04:00
|
|
|
pub use iced_widget;
|
2022-11-15 23:11:48 +01:00
|
|
|
#[cfg(feature = "winit")]
|
2022-10-07 05:20:06 +02:00
|
|
|
pub use iced_winit;
|
2023-08-02 11:54:07 +02:00
|
|
|
|
|
|
|
|
pub mod icon_theme;
|
2023-01-10 13:58:13 +01:00
|
|
|
pub mod keyboard_nav;
|
2022-09-30 09:35:55 -06:00
|
|
|
|
2024-01-25 15:02:31 +00:00
|
|
|
#[cfg(feature = "desktop")]
|
|
|
|
|
pub mod desktop;
|
2023-11-14 16:55:06 -05:00
|
|
|
#[cfg(feature = "process")]
|
|
|
|
|
pub mod process;
|
|
|
|
|
|
2023-08-02 11:54:07 +02:00
|
|
|
#[cfg(feature = "wayland")]
|
2023-11-14 16:55:06 -05:00
|
|
|
pub use cctk;
|
2023-01-18 15:09:55 -08:00
|
|
|
|
2023-08-02 11:54:07 +02:00
|
|
|
pub mod theme;
|
2023-09-13 16:00:51 +02:00
|
|
|
pub use theme::{style, Theme};
|
2023-01-05 14:16:27 +01:00
|
|
|
|
2023-08-02 11:54:07 +02:00
|
|
|
pub mod widget;
|
2022-12-06 16:12:59 +01:00
|
|
|
|
2023-11-30 14:01:42 -05:00
|
|
|
type Paragraph = <Renderer as iced_core::text::Renderer>::Paragraph;
|
2022-10-28 21:59:41 -07:00
|
|
|
pub type Renderer = iced::Renderer<Theme>;
|
|
|
|
|
pub type Element<'a, Message> = iced::Element<'a, Message, Renderer>;
|