pub enum WindowPosition {
At(Point<Points>),
Center,
ParentCenter,
}Expand description
Where a window opens (defaultPosition).
Variants§
At(Point<Points>)
Its top left corner at this point, in screen coordinates.
Center
Centered on its display.
ParentCenter
Centered on its parent.
Trait Implementations§
Source§impl Clone for WindowPosition
impl Clone for WindowPosition
impl Copy for WindowPosition
Source§impl Debug for WindowPosition
impl Debug for WindowPosition
Source§impl JsValue for WindowPosition
TS: Point | "center" | "parentCenter".
impl JsValue for WindowPosition
TS: Point | "center" | "parentCenter".
Source§impl PartialEq for WindowPosition
impl PartialEq for WindowPosition
impl StructuralPartialEq for WindowPosition
Auto Trait Implementations§
impl Forget for WindowPosition
impl Freeze for WindowPosition
impl Move for WindowPosition
impl RefUnwindSafe for WindowPosition
impl Send for WindowPosition
impl Sync for WindowPosition
impl Unpin for WindowPosition
impl UnsafeUnpin for WindowPosition
impl UnwindSafe for WindowPosition
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.