forked from reya/gpui-native-kit
split toast into alert and toast
This commit is contained in:
@@ -3,6 +3,9 @@
|
||||
pub use gpui_native_theme::Size;
|
||||
pub use gpui_native_utils::{h_flex, v_flex};
|
||||
|
||||
/// A handler told to clean up after a dismissed surface.
|
||||
pub type DismissHandler = std::rc::Rc<dyn Fn(&mut gpui::App)>;
|
||||
|
||||
/// A component that can be told which size to render at.
|
||||
pub trait Sizable: Sized {
|
||||
/// Sets the size.
|
||||
|
||||
Reference in New Issue
Block a user