glibi

package
v0.0.0-...-2087a87 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

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 ActionMap

type ActionMap interface {
	LookupAction(actionName string) Action
	AddAction(action Action)
	RemoveAction(actionName string)
}

type Application

type Application interface {
	Object

	Quit()
	Run([]string) int
}

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
	MenuItemNewSubmenu(label string, submenu 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 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)
	InsertSubmenu(position int, label string, submenu MenuModel)
	PrependSubmenu(label string, submenu MenuModel)
	AppendSubmenu(label string, submenu MenuModel)
	Remove(position int)
	RemoveAll()
}
type MenuItem interface {
	Object

	SetLabel(label string)
	SetDetailedAction(act string)
	SetSection(section MenuModel)
	SetSubmenu(submenu MenuModel)
	GetLink(link string) MenuModel
	SetLink(link string, model MenuModel)
}
type MenuModel interface {
	Object

	IsMutable() bool
	GetNItems() int
	GetItemLink(index int, link string) MenuModel
	ItemsChanged(position, removed, added int)
}

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 Signal

type Signal interface {
	String() string

} // end of Signal

type SignalHandle

type SignalHandle uint

type SimpleAction

type SimpleAction interface {
	Action

	SetEnabled(enabled bool)
	SetState(value Variant)
}

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 Value

type Value interface {
	GetString() (string, error)
	GoValue() (interface{}, error)
}

type Variant

type Variant interface {
	TypeString() string
	IsContainer() bool
	GetBoolean() bool
	GetString() string
	GetStrv() []string
	GetInt() (int64, error)
	Type() VariantType
	IsType(t VariantType) bool
	String() string
	AnnotatedString() string
}

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
)

Jump to

Keyboard shortcuts

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