widget

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MPL-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResourceBar added in v0.1.2

func NewResourceBar(res *resource.Quantity, req *resource.Quantity, iconName string) *gtk.Box

func NewStatusIcon added in v0.1.2

func NewStatusIcon(ok bool) *gtk.Image

func ShowErrorDialog added in v0.1.2

func ShowErrorDialog(ctx context.Context, title string, err error) *adw.MessageDialog

Types

type FallbackSpinner

type FallbackSpinner struct {
	*adw.Bin
	// contains filtered or unexported fields
}

func NewFallbackSpinner

func NewFallbackSpinner(fallback gtk.Widgetter) *FallbackSpinner

func (*FallbackSpinner) Start

func (f *FallbackSpinner) Start()

func (*FallbackSpinner) Stop

func (f *FallbackSpinner) Stop()

type LogPage added in v0.1.2

type LogPage struct {
	*adw.NavigationPage
}

func NewLogPage added in v0.1.2

func NewLogPage(ctx context.Context, cluster *api.Cluster, pod *corev1.Pod, container string) *LogPage

type TerminalPage added in v0.1.2

type TerminalPage struct {
	*adw.NavigationPage
	// contains filtered or unexported fields
}

func NewTerminalPage added in v0.1.2

func NewTerminalPage(ctx context.Context, cluster *api.Cluster, pod *corev1.Pod, container string) (w *TerminalPage)

type UniversalApplicationWindow added in v0.0.13

type UniversalApplicationWindow struct {
	*gtk.ApplicationWindow
	AdwWindow *adw.ApplicationWindow
}

Adwaita makes client side decorations mandatory, which causes some problems on the Windows platform See e.g. https://gitlab.gnome.org/GNOME/gtk/-/issues/3749 This wrapper uses GtkWindow on Windows and AdwWindow everywhere else

func NewUniversalApplicationWindow added in v0.0.13

func NewUniversalApplicationWindow(app *gtk.Application) *UniversalApplicationWindow

func (*UniversalApplicationWindow) SetContent added in v0.0.13

func (w *UniversalApplicationWindow) SetContent(content gtk.Widgetter)

type UniversalWindow added in v0.0.13

type UniversalWindow struct {
	*gtk.Window
	AdwWindow *adw.Window
}

Adwaita makes client side decorations mandatory, which causes some problems on the Windows platform See e.g. https://gitlab.gnome.org/GNOME/gtk/-/issues/3749 This wrapper uses GtkWindow on Windows and AdwWindow everywhere else

func NewUniversalWindow added in v0.0.13

func NewUniversalWindow() *UniversalWindow

func (*UniversalWindow) SetContent added in v0.0.13

func (w *UniversalWindow) SetContent(content gtk.Widgetter)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL