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: f64Cached DPR for quickly scaling pixel sizes.
title: StringCurrent window title.
windowed_context: Replaceable<WindowedContext<PossiblyCurrent>>current_mouse_cursor: CursorIconmouse_visible: boolImplementations
pub fn new<E>(
event_loop: &EventLoopWindowTarget<E>,
config: &UiConfig,
identity: &Identity,
size: Option<PhysicalSize<u32>>,
wayland_event_queue: Option<&EventQueue>
) -> Result<Window, Error>
pub fn new<E>(
event_loop: &EventLoopWindowTarget<E>,
config: &UiConfig,
identity: &Identity,
size: Option<PhysicalSize<u32>>,
wayland_event_queue: Option<&EventQueue>
) -> Result<Window, Error>
Create a new window.
This creates a window and fully initializes a window.
Set mouse cursor visible.
pub fn get_platform_window(
identity: &Identity,
window_config: &WindowConfig
) -> WindowBuilder
Toggle the window’s fullscreen state.
Adjust the IME editor position according to the new location of the cursor.