popup

package
v0.0.0-...-165de30 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package popup contains project's dialogs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialog

type Dialog struct {
	*giu.PopupModalWidget

	Visible bool
	// contains filtered or unexported fields
}

Dialog represents HellSpawner's dialog

func New

func New(title string) *Dialog

New creates a new dialog

func (*Dialog) Build

func (d *Dialog) Build()

Build builds the widget

func (*Dialog) Cleanup

func (d *Dialog) Cleanup()

Cleanup hides dialog

func (*Dialog) IsOpen

func (d *Dialog) IsOpen(isOpen *bool) *Dialog

IsOpen wrapps popupmodalwidget.isOpen

func (*Dialog) IsVisible

func (d *Dialog) IsVisible() bool

IsVisible returns true if dialog is visible

func (*Dialog) KeyboardShortcuts

func (d *Dialog) KeyboardShortcuts() []giu.WindowShortcut

KeyboardShortcuts returns a list of shortcuts

func (*Dialog) Layout

func (d *Dialog) Layout(widgets ...giu.Widget) *Dialog

Layout wrapps d.PopUpModalWidget.Layout

func (*Dialog) RegisterKeyboardShortcuts

func (d *Dialog) RegisterKeyboardShortcuts(_ ...giu.WindowShortcut)

RegisterKeyboardShortcuts registers a shortcuts for popup dialog

func (*Dialog) Show

func (d *Dialog) Show()

Show shows dialog

func (*Dialog) ToggleVisibility

func (d *Dialog) ToggleVisibility()

ToggleVisibility toggles dialog's visibility

Directories

Path Synopsis
Package aboutdialog provides the "About" window implementation, which shows information about hellspawner.
Package aboutdialog provides the "About" window implementation, which shows information about hellspawner.
Package preferences contains preferences dialog data
Package preferences contains preferences dialog data
Package projectproperties contains project properties dialog's data
Package projectproperties contains project properties dialog's data

Jump to

Keyboard shortcuts

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