glibi

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2016 License: GPL-3.0, GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertApplication

func AssertApplication(_ Application)

func AssertGlib

func AssertGlib(_ Glib)

func AssertObject

func AssertObject(_ Object)

func AssertSettings added in v0.3.3

func AssertSettings(_ Settings)

func AssertSettingsBackend added in v0.3.3

func AssertSettingsBackend(_ SettingsBackend)

func AssertSettingsSchema added in v0.3.3

func AssertSettingsSchema(_ SettingsSchema)

func AssertSettingsSchemaSource added in v0.3.3

func AssertSettingsSchemaSource(_ SettingsSchemaSource)

func AssertSignal

func AssertSignal(_ Signal)

func AssertValue

func AssertValue(_ Value)

Types

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{}, ...interface{}) (SourceHandle, error)
	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)

} // end of Glib

type Object

type Object interface {
	Connect(string, interface{}, ...interface{}) (SignalHandle, error)
	ConnectAfter(string, interface{}, ...interface{}) (SignalHandle, error)
	Emit(string, ...interface{}) (interface{}, error)
	GetProperty(string) (interface{}, error)
	SetProperty(string, interface{}) error
}

type Settings added in v0.3.3

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 added in v0.3.3

type SettingsBackend interface {
	Object
}

type SettingsSchema added in v0.3.3

type SettingsSchema interface {
	Ref() SettingsSchema
	Unref()
	GetID() string
	GetPath() string
	HasKey(string) bool
}

type SettingsSchemaSource added in v0.3.3

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 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)
}

Jump to

Keyboard shortcuts

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