Documentation ¶
Index ¶
- func AssertAction(_ Action)
- func AssertApplication(_ Application)
- func AssertGlib(_ Glib)
- func AssertMenu(_ Menu)
- func AssertMenuItem(_ MenuItem)
- func AssertMenuModel(_ MenuModel)
- func AssertObject(_ Object)
- func AssertPropertyAction(_ PropertyAction)
- func AssertSettings(_ Settings)
- func AssertSettingsBackend(_ SettingsBackend)
- func AssertSettingsSchema(_ SettingsSchema)
- func AssertSettingsSchemaSource(_ SettingsSchemaSource)
- func AssertSignal(_ Signal)
- func AssertSimpleAction(_ SimpleAction)
- func AssertValue(_ Value)
- func AssertVariant(_ Variant)
- type Action
- type ActionGroup
- type ActionMap
- type Application
- type ApplicationFlags
- type Glib
- type Menu
- type MenuItem
- type MenuModel
- type Object
- type PropertyAction
- type Settings
- type SettingsBackend
- type SettingsSchema
- type SettingsSchemaSource
- type Signal
- type SignalHandle
- type SimpleAction
- type SourceHandle
- type Type
- type Value
- type Variant
- type VariantType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertAction ¶
func AssertAction(_ Action)
func AssertApplication ¶
func AssertApplication(_ Application)
func AssertGlib ¶
func AssertGlib(_ Glib)
func AssertMenu ¶
func AssertMenu(_ Menu)
func AssertMenuItem ¶
func AssertMenuItem(_ MenuItem)
func AssertMenuModel ¶
func AssertMenuModel(_ MenuModel)
func AssertObject ¶
func AssertObject(_ Object)
func AssertPropertyAction ¶
func AssertPropertyAction(_ PropertyAction)
func AssertSettings ¶
func AssertSettings(_ Settings)
func AssertSettingsBackend ¶
func AssertSettingsBackend(_ SettingsBackend)
func AssertSettingsSchema ¶
func AssertSettingsSchema(_ SettingsSchema)
func AssertSettingsSchemaSource ¶
func AssertSettingsSchemaSource(_ SettingsSchemaSource)
func AssertSignal ¶
func AssertSignal(_ Signal)
func AssertSimpleAction ¶
func AssertSimpleAction(_ SimpleAction)
func AssertValue ¶
func AssertValue(_ Value)
func AssertVariant ¶
func AssertVariant(_ Variant)
Types ¶
type Action ¶
type Action interface { Object GetName() string GetEnabled() bool GetState() Variant GetStateHint() Variant GetParameterType() VariantType GetStateType() VariantType ChangeState(value Variant) Activate(parameter Variant) }
type ActionGroup ¶
type ActionGroup interface { HasAction(actionName string) bool GetActionEnabled(actionName string) bool GetActionParameterType(actionName string) VariantType GetActionStateType(actionName string) VariantType GetActionState(actionName string) Variant GetActionStateHint(actionName string) Variant ChangeActionState(actionName string, value Variant) Activate(actionName string, parameter Variant) }
type Application ¶
type ApplicationFlags ¶
type ApplicationFlags int
var ( APPLICATION_FLAGS_NONE ApplicationFlags APPLICATION_IS_SERVICE ApplicationFlags APPLICATION_HANDLES_OPEN ApplicationFlags APPLICATION_HANDLES_COMMAND_LINE ApplicationFlags APPLICATION_SEND_ENVIRONMENT ApplicationFlags APPLICATION_NON_UNIQUE ApplicationFlags )
type Glib ¶
type Glib interface { IdleAdd(interface{}) SourceHandle TimeoutAdd(uint, interface{}) SourceHandle TimeoutSecondsAdd(uint, interface{}) SourceHandle InitI18n(string, string) Local(string) string MainDepth() int SettingsNew(string) Settings SettingsNewWithPath(string, string) Settings SettingsNewWithBackend(string, SettingsBackend) Settings SettingsNewWithBackendAndPath(string, SettingsBackend, string) Settings SettingsNewFull(SettingsSchema, SettingsBackend, string) Settings SettingsSync() SettingsBackendGetDefault() SettingsBackend KeyfileSettingsBackendNew(string, string, string) SettingsBackend MemorySettingsBackendNew() SettingsBackend NullSettingsBackendNew() SettingsBackend SettingsSchemaSourceGetDefault() SettingsSchemaSource SettingsSchemaSourceNewFromDirectory(string, SettingsSchemaSource, bool) SettingsSchemaSource SignalNew(string) (Signal, error) MenuNew() Menu MenuItemNew(label, detailed_action string) MenuItem MenuItemNewSection(label string, section MenuModel) MenuItem MenuItemNewFromModel(model MenuModel, index int) MenuItem ActionNameIsValid(actionName string) bool SimpleActionNew(name string, parameterType VariantType) SimpleAction SimpleActionNewStateful(name string, parameterType VariantType, state Variant) SimpleAction PropertyActionNew(name string, object Object, propertyName string) PropertyAction SetFinalizerStrategy(func(func())) MarkupEscapeText(string) string } // end of Glib
type Menu ¶
type Menu interface { MenuModel Freeze() Insert(position int, label, detailed_action string) Prepend(label, detailed_action string) Append(label, detailed_action string) InsertItem(position int, item MenuItem) AppendItem(item MenuItem) PrependItem(item MenuItem) InsertSection(position int, label string, section MenuModel) PrependSection(label string, section MenuModel) AppendSection(label string, section MenuModel) InsertSectionWithoutLabel(position int, section MenuModel) PrependSectionWithoutLabel(section MenuModel) AppendSectionWithoutLabel(section MenuModel) Remove(position int) RemoveAll() }
type Object ¶
type Object interface { Connect(string, interface{}) SignalHandle ConnectAfter(string, interface{}) SignalHandle Emit(string, ...interface{}) (interface{}, error) GetProperty(string) (interface{}, error) Ref() SetProperty(string, interface{}) error Unref() }
type PropertyAction ¶
type PropertyAction interface { Action }
type Settings ¶
type Settings interface { Object IsWritable(string) bool Delay() Apply() Revert() GetHasUnapplied() bool GetChild(string) Settings Reset(string) ListChildren() []string GetBoolean(string) bool SetBoolean(string, bool) bool GetInt(string) int SetInt(string, int) bool GetUInt(string) uint SetUInt(string, uint) bool GetDouble(string) float64 SetDouble(string, float64) bool GetString(string) string SetString(string, string) bool GetEnum(string) int SetEnum(string, int) bool GetFlags(string) uint SetFlags(string, uint) bool }
type SettingsBackend ¶
type SettingsBackend interface { Object }
type SettingsSchema ¶
type SettingsSchema interface { Ref() SettingsSchema Unref() GetID() string GetPath() string HasKey(string) bool }
type SettingsSchemaSource ¶
type SettingsSchemaSource interface { Ref() SettingsSchemaSource Unref() Lookup(string, bool) SettingsSchema }
type SignalHandle ¶
type SignalHandle uint
type SimpleAction ¶
type SourceHandle ¶
type SourceHandle uint
type Type ¶
type Type uint
var ( TYPE_INVALID Type TYPE_NONE Type TYPE_INTERFACE Type TYPE_CHAR Type TYPE_UCHAR Type TYPE_BOOLEAN Type TYPE_INT Type TYPE_UINT Type TYPE_LONG Type TYPE_ULONG Type TYPE_INT64 Type TYPE_UINT64 Type TYPE_ENUM Type TYPE_FLAGS Type TYPE_FLOAT Type TYPE_DOUBLE Type TYPE_STRING Type TYPE_POINTER Type TYPE_BOXED Type TYPE_PARAM Type TYPE_OBJECT Type TYPE_VARIANT Type )
type VariantType ¶
type VariantType interface {
String() string
}
var ( VARIANT_TYPE_BOOLEAN VariantType VARIANT_TYPE_BYTE VariantType VARIANT_TYPE_INT16 VariantType VARIANT_TYPE_UINT16 VariantType VARIANT_TYPE_INT32 VariantType VARIANT_TYPE_UINT32 VariantType VARIANT_TYPE_INT64 VariantType VARIANT_TYPE_UINT64 VariantType VARIANT_TYPE_HANDLE VariantType VARIANT_TYPE_DOUBLE VariantType VARIANT_TYPE_STRING VariantType VARIANT_TYPE_ANY VariantType VARIANT_TYPE_BASIC VariantType VARIANT_TYPE_TUPLE VariantType VARIANT_TYPE_UNIT VariantType VARIANT_TYPE_DICTIONARY VariantType VARIANT_TYPE_STRING_ARRAY VariantType VARIANT_TYPE_OBJECT_PATH_ARRAY VariantType VARIANT_TYPE_BYTESTRING VariantType VARIANT_TYPE_BYTESTRING_ARRAY VariantType VARIANT_TYPE_VARDICT VariantType )
Click to show internal directories.
Click to hide internal directories.