struct TUI::Form::PopupHost

Overview

Narrows whatever an app hosts its widget navigation with (a NavStack(Widget) plus the Screen it was sized against) down to the three operations Form::Host actually needs to open/close a dropdown popup, so Host doesn't need the app's full navigation type threaded through it.

Defined in:

tui/form/popup_host.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(screen : Screen, push : Widget -> Nil, pop : -> Nil) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(screen _screen = @screen, push _push = @push, pop _pop = @pop) #

[View source]
def pop : -> Nil #

def push : Widget -> Nil #

def screen : Screen #