godock: github.com/sqp/godock/widgets/confmenu Index | Files

package confmenu

import "github.com/sqp/godock/widgets/confmenu"

Package confmenu provides a menu widget for the GUI.

Only contains save and close buttons but can embed more widgets (as a box).

Index

Package Files

confmenu.go

Variables

var IconSize = gtk.ICON_SIZE_SMALL_TOOLBAR

IconSize defines the default icon size.

type Controller Uses

type Controller interface {
    ClickedSave()
    ClickedQuit()
    Select(page string, item ...string) bool
}

Controller defines methods used on the main widget / data source by this widget and its sons.

type MenuBar struct {
    gtk.Box // Container is first level. Act as (at least) a GtkBox.

    Save *gtk.Button
    // contains filtered or unexported fields
}

MenuBar is the config window menu.

func New Uses

func New(control Controller) *MenuBar

New creates the config menu with add or save buttons.

Package confmenu imports 5 packages (graph) and is imported by 3 packages. Updated 2016-09-06. Refresh now. Tools for package owners.