netdialogs

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetworkCreateDialog

type NetworkCreateDialog struct {
	*tview.Box
	// contains filtered or unexported fields
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳