refactor!: improve surface action handling and adjust libcosmic API

This commit is contained in:
Michael Aaron Murphy 2025-03-05 16:01:23 +01:00
parent 431e2c8d91
commit 5a7e766c08
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
23 changed files with 755 additions and 799 deletions

View file

@ -9,19 +9,31 @@ pub mod prelude {
pub use crate::ext::*;
#[cfg(feature = "winit")]
pub use crate::ApplicationExt;
pub use crate::{Also, Apply, Element, Renderer, Theme};
pub use crate::{Also, Apply, Element, Renderer, Task, Theme};
}
pub use apply::{Also, Apply};
/// Actions are managed internally by the cosmic runtime.
pub mod action;
pub use action::Action;
#[cfg(feature = "winit")]
pub mod app;
#[cfg(feature = "winit")]
#[doc(inline)]
pub use app::{Application, ApplicationExt};
#[cfg(feature = "applet")]
pub mod applet;
pub mod command;
/// State which is managed by the cosmic runtime.
pub mod core;
#[doc(inline)]
pub use core::Core;
pub use iced::Task;
pub mod task;
@ -85,7 +97,7 @@ pub mod process;
#[cfg(feature = "wayland")]
pub use cctk;
pub mod surface_message;
pub mod surface;
pub mod theme;