class

Tui::DraggableWindow

Inherits Tui::Widget / Tui::Reactive / Reference / Object

Constructors

new(title : String, id : String | Nil = nil)
Source

Instance methods

border_color
Source
border_color=(border_color : Color)
Source
border_focused_color
Source
border_focused_color=(border_focused_color : Color)
Source
button_close_fg
Source
button_close_fg=(button_close_fg : Color)
Source
button_fg
Source
button_fg=(button_fg : Color)
Source
close

Actions

Source
close_minimizes

Close behavior: true = minimize to taskbar, false = hide completely

Source
close_minimizes=(close_minimizes : Bool)

Close behavior: true = minimize to taskbar, false = hide completely

Source
content
Source
content=(widget : Widget | Nil) : Nil
Source
content_bg
Source
content_bg=(content_bg : Color)
Source
content_height
Source
content_height=(value : Int32) : Nil
Source
force_close

Force close (always hides, ignores close_minimizes)

Source
max_scroll_y
Source
maximize
Source
maximized?
Source
min_height
Source
min_height=(min_height : Int32)
Source
min_width

Calculate minimum width based on title + buttons

Source
minimize
Source
minimized?
Source
move_to(x : Int32, y : Int32) : Nil
Source
on_close

Callbacks

Source
on_event(event : Event) : Bool

Override to handle events for this widget (target/bubble phase) Called after children have had a chance to handle the event

Source
on_maximize
Source
on_minimize
Source
on_move
Source
on_resize
Source
on_restore
Source
render(buffer : Buffer, clip : Rect) : Nil

Override to render widget content

Source
resizable
Source
resizable=(resizable : Bool)
Source
resize_to(width : Int32, height : Int32) : Nil
Source
restore
Source
scroll_down(lines : Int32 = @scroll_lines) : Nil
Source
scroll_lines
Source
scroll_lines=(scroll_lines : Int32)
Source
scroll_to_bottom
Source
scroll_to_top
Source
scroll_up(lines : Int32 = @scroll_lines) : Nil
Source
scroll_y

Scrolling

Source
scroll_y=(value : Int32) : Nil
Source
scrollable
Source
scrollable=(scrollable : Bool)
Source
shadow
Source
shadow=(shadow : Bool)
Source
shadow_bg
Source
shadow_bg=(shadow_bg : Color)
Source
shadow_fg
Source
shadow_fg=(shadow_fg : Color)
Source
show
Source
show_close

Title bar buttons

Source
show_close=(show_close : Bool)

Title bar buttons

Source
show_maximize
Source
show_maximize=(show_maximize : Bool)
Source
show_menu
Source
show_menu=(show_menu : Bool)
Source
show_minimize
Source
show_minimize=(show_minimize : Bool)
Source
state
Source
title
Source
title=(value : String) : Nil
Source
title_bg
Source
title_bg=(title_bg : Color)
Source
title_fg

Style

Source
title_fg=(title_fg : Color)

Style

Source
title_focused_bg
Source
title_focused_bg=(title_focused_bg : Color)
Source
title_focused_fg
Source
title_focused_fg=(title_focused_fg : Color)
Source
toggle_maximize
Source

Nested types