Raxol.Terminal.Window.Manager (Raxol v0.5.0)

View Source

Manages terminal window properties and operations.

Summary

Functions

Gets the window height.

Gets the window icon name.

Gets the window position.

Gets the window stacking order.

Gets the window title.

Gets the window width.

Gets the current window state.

Creates a new window manager instance.

Restores the previously saved window size.

Saves the current window size for later restoration.

Sets the window icon name.

Sets the window stacking order.

Sets the window position.

Sets the window title.

Types

stacking_order()

@type stacking_order() :: :normal | :above | :below

t()

@type t() :: %Raxol.Terminal.Window.Manager{
  icon_name: String.t(),
  position: window_position(),
  saved_position: window_position() | nil,
  saved_size: window_size() | nil,
  size: window_size(),
  stacking_order: stacking_order(),
  title: String.t()
}

window_position()

@type window_position() :: {integer(), integer()}

window_size()

@type window_size() :: {pos_integer(), pos_integer()}

Functions

get_height(state)

Gets the window height.

get_icon_name(state)

Gets the window icon name.

get_position(state)

Gets the window position.

get_stacking_order(state)

Gets the window stacking order.

get_title(state)

Gets the window title.

get_width(state)

Gets the window width.

get_window_state(state)

Gets the current window state.

new(opts \\ [])

Creates a new window manager instance.

restore_window_size(state)

Restores the previously saved window size.

save_window_size(state)

Saves the current window size for later restoration.

set_icon_name(state, name)

Sets the window icon name.

set_stacking_order(state, order)

Sets the window stacking order.

set_window_position(state, x, y)

Sets the window position.

set_window_size(state, width, height)

Sets the window size.

set_window_title(state, title)

Sets the window title.