gunvalue

package
v0.0.0-...-0caaa62 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2017 License: GPL-3.0-or-later Imports: 4 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SelectedIter

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

SelectedIter returns the iter matching the selected line.

Types

type Conv

type Conv struct {
	// contains filtered or unexported fields
}

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

func New

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

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

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

Int converts the value to an int.

func (Conv) Pointer

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

Pointer converts the value to a pointer.

func (Conv) String

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

String converts the value to a string.

Jump to

Keyboard shortcuts

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