File: glib_extension.go

package info (click to toggle)
golang-github-gotk3-gotk3 0.6.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,392 kB
  • sloc: ansic: 914; makefile: 4
file content (18 lines) | stat: -rw-r--r-- 466 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//glib_extension contains definitions and functions to interface between glib/gtk/gio and go universe

package glib

import (
	"reflect"
)

// Should be implemented by  any class which need special conversion like
// gtk.Application -> gio.Application
type IGlibConvert interface {
	//  If conversion can't be done, the function has to panic with a message that it can't convert to type
	Convert(reflect.Type) reflect.Value
}

var (
	IGlibConvertType reflect.Type
)