Struct alacritty::display::window::Window[][src]

pub struct Window {
    pub should_draw: Arc<AtomicBool>,
    pub wayland_surface: Option<Attached<WlSurface>>,
    pub dpr: f64,
    title: String,
    windowed_context: Replaceable<WindowedContext<PossiblyCurrent>>,
    current_mouse_cursor: CursorIcon,
    mouse_visible: bool,
}
Expand description

A window which can be used for displaying the terminal.

Wraps the underlying windowing library to provide a stable API in Alacritty.

Fields

should_draw: Arc<AtomicBool>

Flag tracking frame redraw requests from Wayland compositor.

wayland_surface: Option<Attached<WlSurface>>

Attached Wayland surface to request new frame events.

dpr: f64

Cached DPR for quickly scaling pixel sizes.

title: String

Current window title.

windowed_context: Replaceable<WindowedContext<PossiblyCurrent>>current_mouse_cursor: CursorIconmouse_visible: bool

Implementations

Create a new window.

This creates a window and fully initializes a window.

Set the window title.

Get the window title.

Set mouse cursor visible.

Toggle the window’s fullscreen state.

Adjust the IME editor position according to the new location of the cursor.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.