macro_rules! impl_app_desktop_methods {
($wrapper:ident, $bound:path) => { ... };
(@empty $wrapper:ident, $bound:path; $($trait_name:path),* $(,)?) => { ... };
}Expand description
Implements Deref/DerefMut to crate::ui::Desktop and empty default
impls of the usual control and event traits for a desktop wrapper.
Used by crate::system::FrameAppBuilder and crate::system::InputAppBuilder.
$wrapper is a generic struct with a base: Desktop field. $bound is the
trait implemented by the user’s app type (FrameApp or InputApp).
The empty trait impls satisfy the desktop control surface (buttons, menus, app bar, and similar) with default no-op handlers. The wrapper still implements paint, input, resize, and timer logic separately.
§Examples
ⓘ
impl_app_desktop_methods!(AppDesktop, FrameApp);