Documentation ¶
Index ¶
- Variables
- func AccessKeyDialog(title, head string, win gtk.IWindow) (gtk.ResponseType, string)
- func ChooseAFileForOpen(title, current string, win gtk.IWindow) (gtk.ResponseType, string, error)
- func ChooseAFileForSave(title, current string, win gtk.IWindow) (gtk.ResponseType, string, error)
- func ColorChooser(title string, win gtk.IWindow) (gtk.ResponseType, *gdk.RGBA)
- func CreateListStore(gtypes []glib.Type, data [][]interface{}) (*gtk.ListStore, error)
- func CreateTreeView(cnames []string, minW []int) (*gtk.TreeView, error)
- func FillWithItems(menu *gtk.Menu, items []*gtk.MenuItem, names []string, icons []string)
- func FillWithItemsAndAccels(menu *gtk.Menu, items []*gtk.MenuItem, names []string, accels []string, ...)
- func Message(w, h int, class, title, msg string, win gtk.IWindow)
- func MultiEntries(title, head string, entryLabels, entryTexts []string, visibles []bool, ...) (gtk.ResponseType, []string)
- func OneEntry(title, head, entryLabel, entryText string, visible bool, win gtk.IWindow) (gtk.ResponseType, string)
- func Question(w, h int, title, msg string, win gtk.IWindow) gtk.ResponseType
- func SetLanguage(lng string)
- func ShowEditText(title, head, file, text string, parent gtk.IWindow) (gtk.ResponseType, string)
- func TwoLabels(title, text1, text2 string, parent gtk.IWindow)
- func UpdateListStore(store *gtk.ListStore, gtypes []glib.Type, data [][]interface{}) *gtk.ListStore
Constants ¶
This section is empty.
Variables ¶
View Source
var Accept gtk.ResponseType = -5
Accept ...
View Source
var Cancel gtk.ResponseType = -6
Cancel ...
View Source
var NoStr = "-"
Functions ¶
func AccessKeyDialog ¶
AccessKeyDialog returns a password (response -5 for Ok button and -1 for activate event)
func ChooseAFileForOpen ¶
ChooseAFile returns a file name (with path included)
func ChooseAFileForSave ¶
ChooseAFileForSave returns a file name (with path included)
func ColorChooser ¶
ColorChooser returns a color selected with gtk.ColorChooserDialog
func CreateListStore ¶
func FillWithItems ¶
FillWithItems creates menu items from a slice of names and icons.
func FillWithItemsAndAccels ¶
func FillWithItemsAndAccels( menu *gtk.Menu, items []*gtk.MenuItem, names []string, accels []string, agroup *gtk.AccelGroup)
FillWithItemsAndAccels creates menu items from a slice of names and icons including AccelGroup.
func MultiEntries ¶
func MultiEntries(title, head string, entryLabels, entryTexts []string, visibles []bool, win gtk.IWindow) (gtk.ResponseType, []string)
MultiEntries shows a dialog with multiple entries
func OneEntry ¶
func OneEntry(title, head, entryLabel, entryText string, visible bool, win gtk.IWindow) (gtk.ResponseType, string)
OneEntry shows a dialog with an entry widget
func SetLanguage ¶
func SetLanguage(lng string)
func ShowEditText ¶
ShowEditText shows a text in a TextView and returns its edition
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.