Raxol.Terminal.Tab.WindowIntegration (Raxol v2.0.1)

View Source

Integration module for managing tabs and their associated windows.

Summary

Functions

Creates a window for an existing tab (3-arity version).

Destroys the window for an existing tab.

Gets the window ID for an existing tab.

Switches to an existing tab and its window.

Updates the window configuration for an existing tab.

Types

t()

@type t() :: %{tabs: map()}

Functions

create_window_for_tab(tab_manager, window_manager, tab_id)

@spec create_window_for_tab(t(), String.t(), map()) ::
  {:ok, String.t(), t(), map()} | {:error, term()}

Creates a window for an existing tab (3-arity version).

create_window_for_tab(tab_manager, window_manager, tab_id, window_config)

@spec create_window_for_tab(t(), String.t(), map(), map()) ::
  {:ok, String.t(), t(), map()} | {:error, term()}

Creates a window for an existing tab.

destroy_window_for_tab(tab_manager, window_manager, tab_id)

@spec destroy_window_for_tab(t(), String.t(), map()) ::
  {:ok, t(), map()} | {:error, term()}

Destroys the window for an existing tab.

get_window_for_tab(tab_manager, tab_id)

@spec get_window_for_tab(t(), String.t()) :: {:ok, String.t()} | {:error, term()}

Gets the window ID for an existing tab.

switch_to_tab(tab_manager, window_manager, tab_id)

@spec switch_to_tab(t(), map(), String.t()) :: {:ok, t(), map()} | {:error, term()}

Switches to an existing tab and its window.

update_window_for_tab(tab_manager, window_manager, tab_id, window_config)

@spec update_window_for_tab(t(), String.t(), map(), map()) ::
  {:ok, t(), map()} | {:error, term()}

Updates the window configuration for an existing tab.