Skip to main content

ferroui_base/platform/
i_cursor_impl.rs

1use std::any::Any;
2
3/// Represents a platform implementation of a mouse cursor.
4pub trait ICursorImpl {
5    /// Releases the platform resources of the cursor.
6    fn dispose(&self);
7
8    /// Lets the backend that created the cursor recover its concrete type
9    /// (the reference backends cast the cursor they are handed back).
10    fn as_any(&self) -> &dyn Any;
11}