Versions in this module Expand all Collapse all v0 v0.4.0 Feb 13, 2020 Changes in this version + const BINDING_BIDIRECTIONAL + const BINDING_DEFAULT + const BINDING_INVERT_BOOLEAN + const BINDING_SYNC_CREATE + const USER_N_DIRECTORIES + var IGlibConvertType reflect.Type + var VARIANT_TYPE_ANY = newVariantType(C._G_VARIANT_TYPE_ANY) + var VARIANT_TYPE_BASIC = newVariantType(C._G_VARIANT_TYPE_BASIC) + var VARIANT_TYPE_BOOLEAN = newVariantType(C._G_VARIANT_TYPE_BOOLEAN) + var VARIANT_TYPE_BYTE = newVariantType(C._G_VARIANT_TYPE_BYTE) + var VARIANT_TYPE_BYTESTRING = newVariantType(C._G_VARIANT_TYPE_BYTESTRING) + var VARIANT_TYPE_BYTESTRING_ARRAY = newVariantType(C._G_VARIANT_TYPE_BYTESTRING_ARRAY) + var VARIANT_TYPE_DICTIONARY = newVariantType(C._G_VARIANT_TYPE_DICTIONARY) + var VARIANT_TYPE_DOUBLE = newVariantType(C._G_VARIANT_TYPE_DOUBLE) + var VARIANT_TYPE_HANDLE = newVariantType(C._G_VARIANT_TYPE_HANDLE) + var VARIANT_TYPE_INT16 = newVariantType(C._G_VARIANT_TYPE_INT16) + var VARIANT_TYPE_INT32 = newVariantType(C._G_VARIANT_TYPE_INT32) + var VARIANT_TYPE_INT64 = newVariantType(C._G_VARIANT_TYPE_INT64) + var VARIANT_TYPE_OBJECT_PATH_ARRAY = newVariantType(C._G_VARIANT_TYPE_OBJECT_PATH_ARRAY) + var VARIANT_TYPE_STRING = newVariantType(C._G_VARIANT_TYPE_STRING) + var VARIANT_TYPE_STRING_ARRAY = newVariantType(C._G_VARIANT_TYPE_STRING_ARRAY) + var VARIANT_TYPE_TUPLE = newVariantType(C._G_VARIANT_TYPE_TUPLE) + var VARIANT_TYPE_UINT16 = newVariantType(C._G_VARIANT_TYPE_UINT16) + var VARIANT_TYPE_UINT32 = newVariantType(C._G_VARIANT_TYPE_UINT32) + var VARIANT_TYPE_UINT64 = newVariantType(C._G_VARIANT_TYPE_UINT64) + var VARIANT_TYPE_UNIT = newVariantType(C._G_VARIANT_TYPE_UNIT) + var VARIANT_TYPE_VARDICT = newVariantType(C._G_VARIANT_TYPE_VARDICT) + func ActionNameIsValid(actionName string) bool + func ApplicationIDIsValid(id string) bool + func ClosureNew(f interface{}, marshalData ...interface{}) (*C.GClosure, error) + func GetApplicationName() string + func GetHomeDir() string + func GetUserCacheDir() string + func GetUserConfigDir() string + func GetUserDataDir() string + func GetUserRuntimeDir() string + func GetUserSpecialDir(directory UserDirectory) (string, error) + func InitI18n(domain string, dir string) + func Local(input string) string + func MainDepth() int + func RegisterGValueMarshalers(tm []TypeMarshaler) + func SetApplicationName(name string) + func SettingsSync() + func SourceRemove(src SourceHandle) bool + func ToGObject(p unsafe.Pointer) *C.GObject + type Action struct + func (v *Action) Activate(parameter *Variant) + func (v *Action) ChangeState(value *Variant) + func (v *Action) GetEnabled() bool + func (v *Action) GetName() string + func (v *Action) GetParameterType() *VariantType + func (v *Action) GetState() *Variant + func (v *Action) GetStateHint() *Variant + func (v *Action) GetStateType() *VariantType + func (v *Action) Native() uintptr + type ActionGroup struct + func (v *ActionGroup) Activate(actionName string, parameter *Variant) + func (v *ActionGroup) ChangeActionState(actionName string, value *Variant) + func (v *ActionGroup) GetActionEnabled(actionName string) bool + func (v *ActionGroup) GetActionParameterType(actionName string) *VariantType + func (v *ActionGroup) GetActionState(actionName string) *Variant + func (v *ActionGroup) GetActionStateHint(actionName string) *Variant + func (v *ActionGroup) GetActionStateType(actionName string) *VariantType + func (v *ActionGroup) HasAction(actionName string) bool + func (v *ActionGroup) Native() uintptr + type ActionMap struct + func (v *ActionMap) AddAction(action IAction) + func (v *ActionMap) LookupAction(actionName string) *Action + func (v *ActionMap) Native() uintptr + func (v *ActionMap) RemoveAction(actionName string) + type Application struct + func ApplicationGetDefault() *Application + func ApplicationNew(appID string, flags ApplicationFlags) *Application + func (v *Application) Activate() + func (v *Application) GetApplicationID() string + func (v *Application) GetDbusObjectPath() string + func (v *Application) GetFlags() ApplicationFlags + func (v *Application) GetInactivityTimeout() uint + func (v *Application) GetIsRegistered() bool + func (v *Application) GetIsRemote() bool + func (v *Application) Hold() + func (v *Application) MarkBusy() + func (v *Application) Native() uintptr + func (v *Application) Quit() + func (v *Application) Release() + func (v *Application) Run(args []string) int + func (v *Application) SendNotification(id string, notification *Notification) + func (v *Application) SetApplicationID(id string) + func (v *Application) SetDefault() + func (v *Application) SetFlags(flags ApplicationFlags) + func (v *Application) SetInactivityTimeout(timeout uint) + func (v *Application) UnmarkBusy() + func (v *Application) WithdrawNotification(id string) + type ApplicationFlags int + const APPLICATION_FLAGS_NONE + const APPLICATION_HANDLES_COMMAND_LINE + const APPLICATION_HANDLES_OPEN + const APPLICATION_IS_SERVICE + const APPLICATION_NON_UNIQUE + const APPLICATION_SEND_ENVIRONMENT + type Binding struct + func BindProperty(source *Object, sourceProperty string, target *Object, targetProperty string, ...) *Binding + func (v *Binding) GetFlags() BindingFlags + func (v *Binding) GetSource() *Object + func (v *Binding) GetSourceProperty() string + func (v *Binding) GetTarget() *Object + func (v *Binding) GetTargetProperty() string + func (v *Binding) Unbind() + type BindingFlags int + type File struct + func FileNew(title string) *File + func (v *File) Native() *C.GFile + type FileIcon struct + func FileIconNew(path string) *FileIcon + func (v *FileIcon) Native() *C.GFileIcon + type GValueMarshaler func(uintptr) (interface{}, error) + type IAction interface + type IActionGroup interface + Activate func(actionName string, parameter *Variant) + ChangeActionState func(actionName string, value *Variant) + GetActionEnabled func(actionName string) bool + GetActionParameterType func(actionName string) *VariantType + GetActionState func(actionName string) *Variant + GetActionStateHint func(actionName string) *Variant + GetActionStateType func(actionName string) *VariantType + HasAction func(actionName string) bool + Native func() uintptr + type IActionMap interface + AddAction func(action IAction) + LookupAction func(actionName string) *Action + Native func() uintptr + RemoveAction func(actionName string) + type IGlibConvert interface + Convert func(reflect.Type) reflect.Value + type IObject interface + type IVariant interface + ToGVariant func() *C.GVariant + ToVariant func() *Variant + type InitiallyUnowned struct + func (v *InitiallyUnowned) Native() uintptr + type List struct + func WrapList(obj uintptr) *List + func (v *List) Append(data uintptr) *List + func (v *List) Data() interface{} + func (v *List) DataWrapper(fn func(unsafe.Pointer) interface{}) + func (v *List) Foreach(fn func(item interface{})) + func (v *List) Free() + func (v *List) FreeFull(fn func(item interface{})) + func (v *List) Insert(data uintptr, position int) *List + func (v *List) Length() uint + func (v *List) Native() uintptr + func (v *List) Next() *List + func (v *List) Nth(n uint) *List + func (v *List) NthData(n uint) interface{} + func (v *List) Prepend(data uintptr) *List + func (v *List) Previous() *List + type MainContext C.GMainContext + func MainContextDefault() *MainContext + func (v *MainContext) FindSourceById(hdlSrc SourceHandle) *Source + func (v *MainContext) Iteration(mayBlock bool) bool + func (v *MainContext) Pending() bool + type Menu struct + func MenuNew() *Menu + func (v *Menu) Append(label, detailed_action string) + func (v *Menu) AppendItem(item *MenuItem) + func (v *Menu) AppendSection(label string, section *MenuModel) + func (v *Menu) AppendSectionWithoutLabel(section *MenuModel) + func (v *Menu) AppendSubmenu(label string, submenu *MenuModel) + func (v *Menu) Freeze() + func (v *Menu) Insert(position int, label, detailed_action string) + func (v *Menu) InsertItem(position int, item *MenuItem) + func (v *Menu) InsertSection(position int, label string, section *MenuModel) + func (v *Menu) InsertSectionWithoutLabel(position int, section *MenuModel) + func (v *Menu) InsertSubmenu(position int, label string, submenu *MenuModel) + func (v *Menu) Prepend(label, detailed_action string) + func (v *Menu) PrependItem(item *MenuItem) + func (v *Menu) PrependSection(label string, section *MenuModel) + func (v *Menu) PrependSectionWithoutLabel(section *MenuModel) + func (v *Menu) PrependSubmenu(label string, submenu *MenuModel) + func (v *Menu) Remove(position int) + func (v *Menu) RemoveAll() + type MenuItem struct + func MenuItemNew(label, detailed_action string) *MenuItem + func MenuItemNewFromModel(model *MenuModel, index int) *MenuItem + func MenuItemNewSection(label string, section *MenuModel) *MenuItem + func MenuItemNewSubmenu(label string, submenu *MenuModel) *MenuItem + func (v *MenuItem) GetLink(link string) *MenuModel + func (v *MenuItem) SetDetailedAction(act string) + func (v *MenuItem) SetLabel(label string) + func (v *MenuItem) SetLink(link string, model *MenuModel) + func (v *MenuItem) SetSection(section *MenuModel) + func (v *MenuItem) SetSubmenu(submenu *MenuModel) + type MenuModel struct + func (v *MenuModel) GetItemLink(index int, link string) *MenuModel + func (v *MenuModel) GetNItems() int + func (v *MenuModel) IsMutable() bool + func (v *MenuModel) ItemsChanged(position, removed, added int) + func (v *MenuModel) Native() uintptr + type Notification struct + func NotificationNew(title string) *Notification + func (v *Notification) AddButton(label, detailedAction string) + func (v *Notification) Native() uintptr + func (v *Notification) SetBody(body string) + func (v *Notification) SetDefaultAction(detailedAction string) + func (v *Notification) SetIcon(iconPath string) + func (v *Notification) SetTitle(title string) + type Object struct + GObject *C.GObject + func Take(ptr unsafe.Pointer) *Object + func (v *Object) Connect(detailedSignal string, f interface{}, userData ...interface{}) (SignalHandle, error) + func (v *Object) ConnectAfter(detailedSignal string, f interface{}, userData ...interface{}) (SignalHandle, error) + func (v *Object) Emit(s string, args ...interface{}) (interface{}, error) + func (v *Object) ForceFloating() + func (v *Object) GetProperty(name string) (interface{}, error) + func (v *Object) GetPropertyType(name string) (Type, error) + func (v *Object) HandlerBlock(handle SignalHandle) + func (v *Object) HandlerDisconnect(handle SignalHandle) + func (v *Object) HandlerUnblock(handle SignalHandle) + func (v *Object) IsA(typ Type) bool + func (v *Object) IsFloating() bool + func (v *Object) Native() uintptr + func (v *Object) Ref() + func (v *Object) RefSink() + func (v *Object) Set(name string, value interface{}) error + func (v *Object) SetProperty(name string, value interface{}) error + func (v *Object) StopEmission(s string) + func (v *Object) TypeFromInstance() Type + func (v *Object) Unref() + type PropertyAction struct + func PropertyActionNew(name string, object *Object, propertyName string) *PropertyAction + func (v *PropertyAction) Native() uintptr + type Quark uint32 + type SList struct + func WrapSList(obj uintptr) *SList + func (v *SList) Append(data uintptr) *SList + func (v *SList) Foreach(fn func(ptr unsafe.Pointer)) + func (v *SList) Free() + func (v *SList) FreeFull() + func (v *SList) Length() uint + func (v *SList) Native() uintptr + func (v *SList) Next() *SList + type Settings struct + func SettingsNew(schemaID string) *Settings + func SettingsNewFull(schema *SettingsSchema, backend *SettingsBackend, path string) *Settings + func SettingsNewWithBackend(schemaID string, backend *SettingsBackend) *Settings + func SettingsNewWithBackendAndPath(schemaID string, backend *SettingsBackend, path string) *Settings + func SettingsNewWithPath(schemaID, path string) *Settings + func (v *Settings) Apply() + func (v *Settings) Delay() + func (v *Settings) GetBoolean(name string) bool + func (v *Settings) GetChild(name string) *Settings + func (v *Settings) GetDouble(name string) float64 + func (v *Settings) GetEnum(name string) int + func (v *Settings) GetFlags(name string) uint + func (v *Settings) GetHasUnapplied() bool + func (v *Settings) GetInt(name string) int + func (v *Settings) GetString(name string) string + func (v *Settings) GetStrv(name string) []string + func (v *Settings) GetUInt(name string) uint + func (v *Settings) GetValue(name string) *Variant + func (v *Settings) IsWritable(name string) bool + func (v *Settings) ListChildren() []string + func (v *Settings) Native() uintptr + func (v *Settings) Reset(name string) + func (v *Settings) Revert() + func (v *Settings) SetBoolean(name string, value bool) bool + func (v *Settings) SetDouble(name string, value float64) bool + func (v *Settings) SetEnum(name string, value int) bool + func (v *Settings) SetFlags(name string, value uint) bool + func (v *Settings) SetInt(name string, value int) bool + func (v *Settings) SetString(name string, value string) bool + func (v *Settings) SetStrv(name string, values []string) bool + func (v *Settings) SetUInt(name string, value uint) bool + type SettingsBackend struct + func KeyfileSettingsBackendNew(filename, rootPath, rootGroup string) *SettingsBackend + func MemorySettingsBackendNew() *SettingsBackend + func NullSettingsBackendNew() *SettingsBackend + func SettingsBackendGetDefault() *SettingsBackend + func (v *SettingsBackend) Native() uintptr + type SettingsSchema struct + func (v *SettingsSchema) GetID() string + func (v *SettingsSchema) GetPath() string + func (v *SettingsSchema) HasKey(v1 string) bool + func (v *SettingsSchema) Native() uintptr + func (v *SettingsSchema) Ref() *SettingsSchema + func (v *SettingsSchema) Unref() + type SettingsSchemaSource struct + func SettingsSchemaSourceGetDefault() *SettingsSchemaSource + func SettingsSchemaSourceNewFromDirectory(dir string, parent *SettingsSchemaSource, trusted bool) *SettingsSchemaSource + func (v *SettingsSchemaSource) ListSchemas(recursive bool) (nonReolcatable, relocatable []string) + func (v *SettingsSchemaSource) Lookup(schema string, recursive bool) *SettingsSchema + func (v *SettingsSchemaSource) Native() uintptr + func (v *SettingsSchemaSource) Ref() *SettingsSchemaSource + func (v *SettingsSchemaSource) Unref() + type Signal struct + func SignalNew(s string) (*Signal, error) + func (s *Signal) String() string + type SignalHandle uint + type SimpleAction struct + func SimpleActionNew(name string, parameterType *VariantType) *SimpleAction + func SimpleActionNewStateful(name string, parameterType *VariantType, state *Variant) *SimpleAction + func (v *SimpleAction) Native() uintptr + func (v *SimpleAction) SetEnabled(enabled bool) + func (v *SimpleAction) SetState(value *Variant) + type SimpleActionGroup struct + func SimpleActionGroupNew() *SimpleActionGroup + func (v *SimpleActionGroup) Native() uintptr + type Source C.GSource + func MainCurrentSource() *Source + func (v *Source) Destroy() + func (v *Source) IsDestroyed() bool + func (v *Source) Ref() *Source + func (v *Source) Unref() + type SourceHandle uint + func IdleAdd(f interface{}, args ...interface{}) (SourceHandle, error) + func TimeoutAdd(timeout uint, f interface{}, args ...interface{}) (SourceHandle, error) + type Type uint + const TYPE_BOOLEAN + const TYPE_BOXED + const TYPE_CHAR + const TYPE_DOUBLE + const TYPE_ENUM + const TYPE_FLAGS + const TYPE_FLOAT + const TYPE_INT + const TYPE_INT64 + const TYPE_INTERFACE + const TYPE_INVALID + const TYPE_LONG + const TYPE_NONE + const TYPE_OBJECT + const TYPE_PARAM + const TYPE_POINTER + const TYPE_STRING + const TYPE_UCHAR + const TYPE_UINT + const TYPE_UINT64 + const TYPE_ULONG + const TYPE_VARIANT + func TypeFromName(typeName string) Type + func TypeNextBase(leafType, rootType Type) Type + func (t Type) Depth() uint + func (t Type) IsA(isAType Type) bool + func (t Type) Name() string + func (t Type) Parent() Type + type TypeMarshaler struct + F GValueMarshaler + T Type + type UserDirectory int + const USER_DIRECTORY_DESKTOP + const USER_DIRECTORY_DOCUMENTS + const USER_DIRECTORY_DOWNLOAD + const USER_DIRECTORY_MUSIC + const USER_DIRECTORY_PICTURES + const USER_DIRECTORY_PUBLIC_SHARE + const USER_DIRECTORY_TEMPLATES + const USER_DIRECTORY_VIDEOS + type Value struct + GValue *C.GValue + func GValue(v interface{}) (gvalue *Value, err error) + func ValueAlloc() (*Value, error) + func ValueFromNative(l unsafe.Pointer) *Value + func ValueInit(t Type) (*Value, error) + func (v *Value) GetPointer() unsafe.Pointer + func (v *Value) GetString() (string, error) + func (v *Value) GoValue() (interface{}, error) + func (v *Value) Native() unsafe.Pointer + func (v *Value) SetBool(val bool) + func (v *Value) SetDouble(val float64) + func (v *Value) SetFloat(val float32) + func (v *Value) SetInstance(instance uintptr) + func (v *Value) SetInt(val int) + func (v *Value) SetInt64(val int64) + func (v *Value) SetPointer(p uintptr) + func (v *Value) SetSChar(val int8) + func (v *Value) SetString(val string) + func (v *Value) SetUChar(val uint8) + func (v *Value) SetUInt(val uint) + func (v *Value) SetUInt64(val uint64) + func (v *Value) Type() (actual Type, fundamental Type, err error) + type Variant struct + GVariant *C.GVariant + func (v *Variant) AnnotatedString() string + func (v *Variant) GetBoolean() bool + func (v *Variant) GetInt() (int64, error) + func (v *Variant) GetString() string + func (v *Variant) GetStrv() []string + func (v *Variant) IsContainer() bool + func (v *Variant) IsType(t *VariantType) bool + func (v *Variant) Native() uintptr + func (v *Variant) String() string + func (v *Variant) ToGVariant() *C.GVariant + func (v *Variant) ToVariant() *Variant + func (v *Variant) Type() *VariantType + func (v *Variant) TypeString() string + type VariantBuilder struct + GVariantBuilder *C.GVariantBuilder + func (v *VariantBuilder) Native() uintptr + type VariantClass int + const VARIANT_CLASS_ARRAY + const VARIANT_CLASS_BOOLEAN + const VARIANT_CLASS_BYTE + const VARIANT_CLASS_DICT_ENTRY + const VARIANT_CLASS_DOUBLE + const VARIANT_CLASS_HANDLE + const VARIANT_CLASS_INT16 + const VARIANT_CLASS_INT32 + const VARIANT_CLASS_INT64 + const VARIANT_CLASS_MAYBE + const VARIANT_CLASS_OBJECT_PATH + const VARIANT_CLASS_SIGNATURE + const VARIANT_CLASS_STRING + const VARIANT_CLASS_TUPLE + const VARIANT_CLASS_UINT16 + const VARIANT_CLASS_UINT32 + const VARIANT_CLASS_UINT64 + const VARIANT_CLASS_VARIANT + type VariantDict struct + GVariantDict *C.GVariantDict + func (v *VariantDict) Native() uintptr + type VariantIter struct + GVariantIter *C.GVariantIter + func (v *VariantIter) Native() uintptr + type VariantType struct + GVariantType *C.GVariantType + func (v *VariantType) String() string