pub struct WindowFrame {
pub x: Option<Points>,
pub y: Option<Points>,
pub width: Option<Points>,
pub height: Option<Points>,
pub animated: Option<bool>,
}Expand description
A window’s frame (WindowRef.setBounds): the part of it to move, in
points, in screen coordinates; a field left out keeps its value. The
origin is the window’s top left corner, measured from the top left of
the primary screen (the one with the menu bar on macOS) with y
growing down, on every platform. TS gives origin (x, y) and
size (width, height) as Partial<Point> and Partial<Size>.
Fields§
§x: Option<Points>Its left edge.
y: Option<Points>Its top edge, growing down; changing the height without a y
keeps the top edge where it is (the window grows and shrinks at its
bottom edge).
width: Option<Points>Its outer width on macOS / Windows, GTK default width on Linux; in GPUI windows, the content’s width (at least 1 point).
height: Option<Points>Its outer height on macOS / Windows, GTK default height on Linux; in GPUI windows, the content’s height (at least 1 point).
animated: Option<bool>Animates the change on macOS (false by default; GPUI ignores it).
Trait Implementations§
Source§impl Clone for WindowFrame
impl Clone for WindowFrame
impl Copy for WindowFrame
Source§impl Debug for WindowFrame
impl Debug for WindowFrame
Source§impl Default for WindowFrame
impl Default for WindowFrame
Source§impl JsValue for WindowFrame
TS: { origin?: Partial<Point>; size?: Partial<Size>; animated? }.
impl JsValue for WindowFrame
TS: { origin?: Partial<Point>; size?: Partial<Size>; animated? }.
Source§impl PartialEq for WindowFrame
impl PartialEq for WindowFrame
impl StructuralPartialEq for WindowFrame
Auto Trait Implementations§
impl Forget for WindowFrame
impl Freeze for WindowFrame
impl Move for WindowFrame
impl RefUnwindSafe for WindowFrame
impl Send for WindowFrame
impl Sync for WindowFrame
impl Unpin for WindowFrame
impl UnsafeUnpin for WindowFrame
impl UnwindSafe for WindowFrame
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
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
names (name: string, amount: number), or without names value for one and a, b, … for
several.