Documentation
¶
Overview ¶
Bindings for glib
Index ¶
- Constants
- func SignalLookup(name string, t Type) (sid SignalId, detail Quark)
- type Error
- type MainContext
- type MainLoop
- type Object
- func (o *Object) AsObject() *Object
- func (o *Object) Connect(sig_name string, cb_func, param0 interface{})
- func (o *Object) ConnectNoi(sig_name string, cb_func, param0 interface{})
- func (o *Object) ConnectSid(sid SignalId, detail Quark, cb_func, param0 interface{})
- func (o *Object) ConnectSidNoi(sid SignalId, detail Quark, cb_func, param0 interface{})
- func (o *Object) Emit(sig_name string, args ...interface{}) interface{}
- func (o *Object) EmitById(sid SignalId, detail Quark, args ...interface{}) interface{}
- func (o *Object) GetProperty(name string) interface{}
- func (o *Object) GetPtr() Pointer
- func (o *Object) Ref() *Object
- func (o *Object) RefSink() *Object
- func (o *Object) SetProperty(name string, val interface{})
- func (o *Object) SetPtr(p Pointer)
- func (o *Object) Type() Type
- func (o *Object) Unref()
- func (o *Object) Value() *Value
- type ObjectCaster
- type Params
- type Pointer
- type PointerSetter
- type Quark
- type SigHandlerId
- type SignalFlags
- type SignalId
- type Type
- func (t Type) Compatible(dst Type) bool
- func (t Type) Depth() int
- func (t Type) IsA(it Type) bool
- func (t Type) Match(rt reflect.Type) bool
- func (t Type) NextBase(root Type) Type
- func (t Type) Parent() Type
- func (t Type) QName() Quark
- func (t Type) String() string
- func (t Type) Transformable(dst Type) bool
- func (t Type) Type() Type
- func (t Type) Value() *Value
- type TypeGetter
- type Value
- func (v *Value) Copy(dst *Value)
- func (v *Value) Get() interface{}
- func (v *Value) GetBool() bool
- func (v *Value) GetFloat32() float32
- func (v *Value) GetFloat64() float64
- func (v *Value) GetInt() int
- func (v *Value) GetInt32() int32
- func (v *Value) GetInt64() int64
- func (v *Value) GetInt8() int8
- func (v *Value) GetObject() *Object
- func (v *Value) GetPointer() Pointer
- func (v *Value) GetString() string
- func (v *Value) GetType() Type
- func (v *Value) GetUint() uint
- func (v *Value) GetUint32() uint32
- func (v *Value) GetUint64() uint64
- func (v *Value) GetUint8() uint8
- func (v *Value) Init(t Type)
- func (v *Value) Set(i interface{})
- func (v *Value) String() string
- func (v *Value) Transform(dst *Value)
- func (v *Value) Type() Type
- func (v *Value) Unset()
- type ValueGetter
Constants ¶
const ( SIGNAL_RUN_FIRST = C.G_SIGNAL_RUN_FIRST SIGNAL_RUN_LAST = C.G_SIGNAL_RUN_LAST SIGNAL_RUN_CLEANUP = C.G_SIGNAL_RUN_CLEANUP SIGNAL_NO_RECURSE = C.G_SIGNAL_NO_RECURSE SIGNAL_DETAILED = C.G_SIGNAL_DETAILED SIGNAL_ACTION = C.G_SIGNAL_ACTION SIGNAL_NO_HOOKS = C.G_SIGNAL_NO_HOOKS )
const ( TYPE_INVALID = Type(C.G_TYPE_INVALID) TYPE_NONE = Type(C.G_TYPE_NONE) TYPE_INTERFACE = Type(C.G_TYPE_INTERFACE) TYPE_CHAR = Type(C.G_TYPE_CHAR) TYPE_UCHAR = Type(C.G_TYPE_UCHAR) TYPE_BOOLEAN = Type(C.G_TYPE_BOOLEAN) TYPE_INT = Type(C.G_TYPE_INT) TYPE_GO_INT32 = TYPE_INT TYPE_UINT = Type(C.G_TYPE_UINT) TYPE_GO_UINT32 = TYPE_UINT TYPE_LONG = Type(C.G_TYPE_LONG) TYPE_GO_INT = TYPE_LONG TYPE_ULONG = Type(C.G_TYPE_ULONG) TYPE_GO_UINT = TYPE_ULONG TYPE_INT64 = Type(C.G_TYPE_INT64) TYPE_UINT64 = Type(C.G_TYPE_UINT64) TYPE_ENUM = Type(C.G_TYPE_ENUM) TYPE_FLAGS = Type(C.G_TYPE_FLAGS) TYPE_FLOAT = Type(C.G_TYPE_FLOAT) TYPE_DOUBLE = Type(C.G_TYPE_DOUBLE) TYPE_STRING = Type(C.G_TYPE_STRING) TYPE_POINTER = Type(C.G_TYPE_POINTER) TYPE_BOXED = Type(C.G_TYPE_BOXED) TYPE_PARAM = Type(C.G_TYPE_PARAM) TYPE_OBJECT = Type(C.G_TYPE_OBJECT) TYPE_VARIANT = Type(C.G_TYPE_VARIANT) )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MainContext ¶
type MainContext struct {
Object
}
func DefaultMainContext ¶
func DefaultMainContext() *MainContext
func NewMainContext ¶
func NewMainContext() *MainContext
func (MainContext) GMainContext ¶
func (k MainContext) GMainContext() *C.GMainContext
func (MainContext) Iteration ¶
func (k MainContext) Iteration(may_block bool) bool
func (MainContext) Pending ¶
func (k MainContext) Pending() bool
type MainLoop ¶
type MainLoop struct {
Object
}
func NewMainLoop ¶
func NewMainLoop(ctx *MainContext) *MainLoop
func (MainLoop) GetContext ¶
func (l MainLoop) GetContext() *MainContext
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
func (*Object) ConnectNoi ¶
Connect callback to signal specified by name. Doesn't pass o as first parameter to callback.
func (*Object) ConnectSid ¶
Connect callback to signal specified by id
func (*Object) ConnectSidNoi ¶
Connect callback to signal specified by id. Doesn't pass o as first parameter to callback.
func (*Object) GetProperty ¶
func (*Object) SetProperty ¶
type ObjectCaster ¶
type ObjectCaster interface {
AsObject() *Object
}
type PointerSetter ¶
type PointerSetter interface {
SetPtr(p Pointer)
}
type Quark ¶
func QuarkFromString ¶
type SigHandlerId ¶
type SignalFlags ¶
type SignalFlags C.GSignalFlags
type Type ¶
A numerical value which represents the unique identifier of a registered type
var TYPE_GTYPE Type
func TypeFromName ¶
func (Type) Compatible ¶
func (Type) IsA ¶
If t type is a derivable type, check whether type is a descendant of it type. If t type is an glib interface, check whether type conforms to it.
func (Type) NextBase ¶
Returns the type that is derived directly from root type which is also a base class of t
func (Type) Transformable ¶
type TypeGetter ¶
type TypeGetter interface {
Type() Type
}
type Value ¶
func ValueOf ¶
func ValueOf(i interface{}) *Value
Returns a pointer to new Value initialized to the value stored in the interface i. If i contains pointer to Value returns this pointer.
func (*Value) GetFloat32 ¶
func (*Value) GetFloat64 ¶
func (*Value) GetPointer ¶
type ValueGetter ¶
type ValueGetter interface {
Value() *Value
}