dialog

package
v0.0.0-...-0caaa62 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2017 License: GPL-3.0-or-later Imports: 7 Imported by: 0

Documentation

Overview

Package dialog provides access to gldi dialogs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShowGeneralMessage

func ShowGeneralMessage(str string, duration float64)

ShowGeneralMessage opens a simple dialog for general information message.

func ShowTemporaryWithIcon

func ShowTemporaryWithIcon(str string, icon gldi.Icon, container *gldi.Container, duration float64, iconPath string)

ShowTemporaryWithIcon opens a simple dialog with a timeout.

func ShowWithQuestion

func ShowWithQuestion(str string, icon gldi.Icon, container *gldi.Container, iconPath string, onAnswer func(int, *gtk.Widget))

ShowWithQuestion opens a dialog with a question to answer.

Types

type Dialog

type Dialog struct {
	Ptr *C.CairoDialog
}

Dialog wraps a dock dialog widget.

func NewDialog

func NewDialog(icon gldi.Icon, container *gldi.Container, dialog cdtype.DialogData) *Dialog

NewDialog creates a custom dialog.

func NewDialogFromNative

func NewDialogFromNative(p unsafe.Pointer) *Dialog

NewDialogFromNative wraps a pointer to a dock dialog.

func (*Dialog) ToNative

func (o *Dialog) ToNative() unsafe.Pointer

ToNative returns a pointer to the native dock dialog.

Jump to

Keyboard shortcuts

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