pub enum WindowControl {
Minimize,
Maximize,
Close,
}Expand description
A view of a title bar the app draws that acts as one of the system’s
window buttons (desktop={{ windowControl }}): the platform hit-tests it
as that button (Windows 11’s snap layouts show over a maximize button)
and carries out its press; assistive technologies see the button.
Variants§
Minimize
Minimizes the window.
Maximize
Maximizes the window, or restores it.
Close
Closes the window, as its close button (closeOnPress applies).
Trait Implementations§
Source§impl Clone for WindowControl
impl Clone for WindowControl
impl Copy for WindowControl
Source§impl Debug for WindowControl
impl Debug for WindowControl
impl Eq for WindowControl
Source§impl Hash for WindowControl
impl Hash for WindowControl
Source§impl HostValue for WindowControl
impl HostValue for WindowControl
Source§impl JsValue for WindowControl
impl JsValue for WindowControl
Source§impl PartialEq for WindowControl
impl PartialEq for WindowControl
Source§impl PropEnum for WindowControl
impl PropEnum for WindowControl
impl StructuralPartialEq for WindowControl
Auto Trait Implementations§
impl Forget for WindowControl
impl Freeze for WindowControl
impl Move for WindowControl
impl RefUnwindSafe for WindowControl
impl Send for WindowControl
impl Sync for WindowControl
impl Unpin for WindowControl
impl UnsafeUnpin for WindowControl
impl UnwindSafe for WindowControl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CallbackArgs for Twhere
T: Ret,
impl<T> CallbackArgs for Twhere
T: Ret,
Source§fn ts_params(types: &mut TsTypes, names: &[&str]) -> String
fn ts_params(types: &mut TsTypes, names: &[&str]) -> String
Its TypeScript parameters, named
names (name: string, amount: number), or without names value for one and a, b, … for
several.Source§fn into_js_args<'a>(
self,
host: &'a dyn JsHost,
) -> Result<Vec<JsOwned<'a>>, PropError>
fn into_js_args<'a>( self, host: &'a dyn JsHost, ) -> Result<Vec<JsOwned<'a>>, PropError>
The arguments as JS values.