Documentation
¶
Index ¶
- Constants
- func ActionFunc(name string, f func()) *gio.SimpleAction
- func ActiveWindow() *gtk.Window
- func BindActionMap(wd gtk.Widgetter, m map[string]func())
- func BindPopoverMenu(wd gtk.Widgetter, pos gtk.PositionType, menu gio.MenuModeller)
- func BindRightClick(wd gtk.Widgetter, f func(x, y float64))
- func MenuPair(pairs [][2]string) *gio.Menu
- func NewPopoverMenu(w gtk.Widgetter, pos gtk.PositionType, menu gio.MenuModeller) *gtk.PopoverMenu
- func NewPopoverMenuAt(w gtk.Widgetter, pos gtk.PositionType, x, y float64, menu gio.MenuModeller) *gtk.PopoverMenu
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 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 ¶
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.
Click to show internal directories.
Click to hide internal directories.