gtkutil

package
v0.0.0-...-e62810a Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const PopoverWidth = 150

PopoverWidth is the default popover width.

Variables

This section is empty.

Functions

func ActionFunc

func ActionFunc(name string, f func()) *gio.SimpleAction

ActionFunc creates a CallbackActionFunc from a function.

func ActiveWindow

func ActiveWindow() *gtk.Window

ActiveWindow returns the active window.

func BindActionMap

func BindActionMap(wd gtk.Widgetter, m map[string]func())

BindActionMap binds the given map of actions (of key prefixed appropriately) to the given widget.

func BindPopoverMenu

func BindPopoverMenu(wd gtk.Widgetter, pos gtk.PositionType, menu gio.MenuModeller)

BindPopoverMenu binds the menu popover at the given position for the given widget.

func BindRightClick

func BindRightClick(wd gtk.Widgetter, f func(x, y float64))
func MenuPair(pairs [][2]string) *gio.Menu

MenuPair creates a gtk.Menu out of the given menu pair. The returned Menu instance satisfies gio.MenuModeller. The first value of a pair should be the name.

func NewPopoverMenu

func NewPopoverMenu(w gtk.Widgetter, pos gtk.PositionType, menu gio.MenuModeller) *gtk.PopoverMenu

NewPopoverMenu creates a new Popover menu.

func NewPopoverMenuAt

func NewPopoverMenuAt(w gtk.Widgetter, pos gtk.PositionType, x, y float64, menu gio.MenuModeller) *gtk.PopoverMenu

NewPopoverMenuAt is a convenient function for NewPopoverMenu and SetPointingTo.

Types

This section is empty.

Jump to

Keyboard shortcuts

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