godock: github.com/sqp/godock/widgets/gtk/gunvalue Index | Files

package gunvalue

import "github.com/sqp/godock/widgets/gtk/gunvalue"

Package gunvalue provides some help to work with glib.Value.


Package Files


func SelectedIter Uses

func SelectedIter(model *gtk.ListStore, selection *gtk.TreeSelection) (*gtk.TreeIter, error)

SelectedIter returns the iter matching the selected line.

type Conv Uses

type Conv struct {
    // contains filtered or unexported fields

Conv converts a glib.Value to a usable go type.

func New Uses

func New(gval *glib.Value, err error) Conv

New converts the glib.Value func result to a usable go value. can be used with TreeModel.GetValue

func SelectedValue Uses

func SelectedValue(model *gtk.ListStore, selection *gtk.TreeSelection, row int) Conv

SelectedValue returns the liststore row value for the selected line as converter.

func (Conv) Int Uses

func (c Conv) Int() (int, error)

Int converts the value to an int.

func (Conv) Pointer Uses

func (c Conv) Pointer() (unsafe.Pointer, error)

Pointer converts the value to a pointer.

func (Conv) String Uses

func (c Conv) String() (string, error)

String converts the value to a string.

Package gunvalue imports 4 packages (graph) and is imported by 4 packages. Updated 2016-08-06. Refresh now. Tools for package owners.