Documentation
¶
Index ¶
- type NetworkCreateDialog
- func (d *NetworkCreateDialog) Display()
- func (d *NetworkCreateDialog) Draw(screen tcell.Screen)
- func (d *NetworkCreateDialog) Focus(delegate func(p tview.Primitive))
- func (d *NetworkCreateDialog) HasFocus() bool
- func (d *NetworkCreateDialog) Hide()
- func (d *NetworkCreateDialog) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))
- func (d *NetworkCreateDialog) IsDisplay() bool
- func (d *NetworkCreateDialog) NetworkCreateOptions() networks.CreateOptions
- func (d *NetworkCreateDialog) SetCancelFunc(handler func()) *NetworkCreateDialog
- func (d *NetworkCreateDialog) SetCreateFunc(handler func()) *NetworkCreateDialog
- func (d *NetworkCreateDialog) SetRect(x, y, width, height int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetworkCreateDialog ¶
NetworkCreateDialog implements network create dialog
func NewNetworkCreateDialog ¶
func NewNetworkCreateDialog() *NetworkCreateDialog
NewNetworkCreateDialog returns new network create dialog primitive NetworkCreateDialog
func (*NetworkCreateDialog) Display ¶
func (d *NetworkCreateDialog) Display()
Display displays this primitive
func (*NetworkCreateDialog) Draw ¶
func (d *NetworkCreateDialog) Draw(screen tcell.Screen)
Draw draws this primitive onto the screen.
func (*NetworkCreateDialog) Focus ¶
func (d *NetworkCreateDialog) Focus(delegate func(p tview.Primitive))
Focus is called when this primitive receives focus
func (*NetworkCreateDialog) HasFocus ¶
func (d *NetworkCreateDialog) HasFocus() bool
HasFocus returns whether or not this primitive has focus
func (*NetworkCreateDialog) Hide ¶
func (d *NetworkCreateDialog) Hide()
Hide stops displaying this primitive
func (*NetworkCreateDialog) InputHandler ¶
func (d *NetworkCreateDialog) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))
InputHandler returns input handler function for this primitive
func (*NetworkCreateDialog) IsDisplay ¶
func (d *NetworkCreateDialog) IsDisplay() bool
IsDisplay returns true if primitive is shown
func (*NetworkCreateDialog) NetworkCreateOptions ¶
func (d *NetworkCreateDialog) NetworkCreateOptions() networks.CreateOptions
NetworkCreateOptions returns new network options
func (*NetworkCreateDialog) SetCancelFunc ¶
func (d *NetworkCreateDialog) SetCancelFunc(handler func()) *NetworkCreateDialog
SetCancelFunc sets form cancel button selected function
func (*NetworkCreateDialog) SetCreateFunc ¶
func (d *NetworkCreateDialog) SetCreateFunc(handler func()) *NetworkCreateDialog
SetCreateFunc sets form create button selected function
func (*NetworkCreateDialog) SetRect ¶
func (d *NetworkCreateDialog) SetRect(x, y, width, height int)
SetRect set rects for this primitive.