glib

package
v0.0.0-...-0ceb344 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2021 License: ISC Imports: 8 Imported by: 1

Documentation

Overview

Package glib provides Go bindings for GLib 2. Supports version 2.36 and later.

Index

Constants

View Source
const (
	BINDING_DEFAULT        BindingFlags = C.G_BINDING_DEFAULT
	BINDING_BIDIRECTIONAL               = C.G_BINDING_BIDIRECTIONAL
	BINDING_SYNC_CREATE                 = C.G_BINDING_SYNC_CREATE
	BINDING_INVERT_BOOLEAN              = C.G_BINDING_INVERT_BOOLEAN
)
View Source
const USER_N_DIRECTORIES int = C.G_USER_N_DIRECTORIES

Variables

View Source
var (
	VARIANT_TYPE_BOOLEAN           = newVariantType(C._G_VARIANT_TYPE_BOOLEAN)
	VARIANT_TYPE_BYTE              = newVariantType(C._G_VARIANT_TYPE_BYTE)
	VARIANT_TYPE_INT16             = newVariantType(C._G_VARIANT_TYPE_INT16)
	VARIANT_TYPE_UINT16            = newVariantType(C._G_VARIANT_TYPE_UINT16)
	VARIANT_TYPE_INT32             = newVariantType(C._G_VARIANT_TYPE_INT32)
	VARIANT_TYPE_UINT32            = newVariantType(C._G_VARIANT_TYPE_UINT32)
	VARIANT_TYPE_INT64             = newVariantType(C._G_VARIANT_TYPE_INT64)
	VARIANT_TYPE_UINT64            = newVariantType(C._G_VARIANT_TYPE_UINT64)
	VARIANT_TYPE_HANDLE            = newVariantType(C._G_VARIANT_TYPE_HANDLE)
	VARIANT_TYPE_DOUBLE            = newVariantType(C._G_VARIANT_TYPE_DOUBLE)
	VARIANT_TYPE_STRING            = newVariantType(C._G_VARIANT_TYPE_STRING)
	VARIANT_TYPE_ANY               = newVariantType(C._G_VARIANT_TYPE_ANY)
	VARIANT_TYPE_BASIC             = newVariantType(C._G_VARIANT_TYPE_BASIC)
	VARIANT_TYPE_TUPLE             = newVariantType(C._G_VARIANT_TYPE_TUPLE)
	VARIANT_TYPE_UNIT              = newVariantType(C._G_VARIANT_TYPE_UNIT)
	VARIANT_TYPE_DICTIONARY        = newVariantType(C._G_VARIANT_TYPE_DICTIONARY)
	VARIANT_TYPE_STRING_ARRAY      = newVariantType(C._G_VARIANT_TYPE_STRING_ARRAY)
	VARIANT_TYPE_OBJECT_PATH_ARRAY = newVariantType(C._G_VARIANT_TYPE_OBJECT_PATH_ARRAY)
	VARIANT_TYPE_BYTESTRING        = newVariantType(C._G_VARIANT_TYPE_BYTESTRING)
	VARIANT_TYPE_BYTESTRING_ARRAY  = newVariantType(C._G_VARIANT_TYPE_BYTESTRING_ARRAY)
	VARIANT_TYPE_VARDICT           = newVariantType(C._G_VARIANT_TYPE_VARDICT)
)

Variant types for comparing between them. Cannot be const because they are pointers.

View Source
var (
	IGlibConvertType reflect.Type
)

Functions

func ActionNameIsValid

func ActionNameIsValid(actionName string) bool

gboolean g_action_name_is_valid (const gchar *action_name);

func ApplicationIDIsValid

func ApplicationIDIsValid(id string) bool

ApplicationIDIsValid is a wrapper around g_application_id_is_valid().

func CheckVersion

func CheckVersion(major, minor, micro uint) error

func ClosureNew

func ClosureNew(f interface{}, marshalData ...interface{}) (*C.GClosure, error)

ClosureNew creates a new GClosure and adds its callback function to the internally-maintained map. It's exported for visibility to other gotk3 packages and shouldn't be used in application code.

func GetApplicationName

func GetApplicationName() string

GetApplicationName is a wrapper around g_get_application_name().

func GetHomeDir

func GetHomeDir() string

GetHomeDir is a wrapper around g_get_home_dir().

func GetMajorVersion

func GetMajorVersion() uint

func GetMicroVersion

func GetMicroVersion() uint

func GetMinorVersion

func GetMinorVersion() uint

func GetUserCacheDir

func GetUserCacheDir() string

GetUserCacheDir is a wrapper around g_get_user_cache_dir().

func GetUserConfigDir

func GetUserConfigDir() string

GetUserConfigDir is a wrapper around g_get_user_config_dir().

func GetUserDataDir

func GetUserDataDir() string

GetUserDataDir is a wrapper around g_get_user_data_dir().

func GetUserRuntimeDir

func GetUserRuntimeDir() string

GetUserRuntimeDir is a wrapper around g_get_user_runtime_dir().

func GetUserSpecialDir

func GetUserSpecialDir(directory UserDirectory) (string, error)

GetUserSpecialDir is a wrapper around g_get_user_special_dir(). A non-nil error is returned in the case that g_get_user_special_dir() returns NULL to differentiate between NULL and an empty string.

func InitI18n

func InitI18n(domain string, dir string)

InitI18n initializes the i18n subsystem.

func Local

func Local(input string) string

Local localizes a string using gettext

func MainDepth

func MainDepth() int

MainDepth is a wrapper around g_main_depth().

func PrintDetailedName

func PrintDetailedName(actionName string, targetValue *Variant) string

gchar * g_action_print_detailed_name (const gchar *action_name,

GVariant *target_value);

func RegisterGValueMarshalers

func RegisterGValueMarshalers(tm []TypeMarshaler)

RegisterGValueMarshalers adds marshalers for several types to the internal marshalers map. Once registered, calling GoValue on any Value witha registered type will return the data returned by the marshaler.

func SetApplicationName

func SetApplicationName(name string)

SetApplicationName is a wrapper around g_set_application_name().

func SettingsSync

func SettingsSync()

SettingsSync is a wrapper around g_settings_sync().

Types

type Action

type Action struct {
	Interface
}

Action is a representation of GAction GInterface.

func (*Action) Activate

func (v *Action) Activate(parameter *Variant)

void g_action_activate (GAction *action,

GVariant *parameter);

func (*Action) ChangeState

func (v *Action) ChangeState(value *Variant)

void g_action_change_state (GAction *action,

GVariant *value);

func (*Action) GetEnabled

func (v *Action) GetEnabled() bool

gboolean g_action_get_enabled (GAction *action);

func (*Action) GetName

func (v *Action) GetName() (string, error)

const gchar * g_action_get_name (GAction *action);

func (*Action) GetParameterType

func (v *Action) GetParameterType() *VariantType

const GVariantType * g_action_get_parameter_type (GAction *action);

func (*Action) GetState

func (v *Action) GetState() *Variant

GVariant * g_action_get_state (GAction *action);

func (*Action) GetStateHint

func (v *Action) GetStateHint() *Variant

GVariant * g_action_get_state_hint (GAction *action);

func (*Action) GetStateType

func (v *Action) GetStateType() *VariantType

const GVariantType * g_action_get_state_type (GAction *action);

type ActionMap

type ActionMap struct {
	Interface
}

ActionMap is a representation of GActionMap.

func ToActionMap

func ToActionMap(obj *Object) *ActionMap

func (*ActionMap) AddAction

func (v *ActionMap) AddAction(action IAction)

void g_action_map_add_action (GActionMap *action_map,

GAction *action);

func (*ActionMap) LookupAction

func (v *ActionMap) LookupAction(actionName string) *Action

GAction * g_action_map_lookup_action (GActionMap *action_map,

const gchar *action_name);

func (*ActionMap) RemoveAction

func (v *ActionMap) RemoveAction(actionName string)

void g_action_map_remove_action (GActionMap *action_map,

const gchar *action_name);

type Application

type Application struct {
	*Object
}

Application is a representation of GApplication.

func ApplicationGetDefault

func ApplicationGetDefault() *Application

ApplicationGetDefault is a wrapper around g_application_get_default().

func ApplicationNew

func ApplicationNew(appID string, flags ApplicationFlags) (*Application, error)

ApplicationNew is a wrapper around g_application_new().

func (*Application) Activate

func (v *Application) Activate()

Activate is a wrapper around g_application_activate().

func (*Application) GetApplicationID

func (v *Application) GetApplicationID() string

GetApplicationID is a wrapper around g_application_get_application_id().

func (*Application) GetDbusObjectPath

func (v *Application) GetDbusObjectPath() string

GetDbusObjectPath is a wrapper around g_application_get_dbus_object_path().

func (*Application) GetFlags

func (v *Application) GetFlags() ApplicationFlags

GetFlags is a wrapper around g_application_get_flags().

func (*Application) GetInactivityTimeout

func (v *Application) GetInactivityTimeout() uint

GetInactivityTimeout is a wrapper around g_application_get_inactivity_timeout().

func (*Application) GetIsRegistered

func (v *Application) GetIsRegistered() bool

GetIsRegistered is a wrapper around g_application_get_is_registered().

func (*Application) GetIsRemote

func (v *Application) GetIsRemote() bool

GetIsRemote is a wrapper around g_application_get_is_remote().

func (*Application) Hold

func (v *Application) Hold()

Hold is a wrapper around g_application_hold().

func (*Application) MarkBusy

func (v *Application) MarkBusy()

MarkBusy is a wrapper around g_application_mark_busy().

func (*Application) Quit

func (v *Application) Quit()

Quit is a wrapper around g_application_quit().

func (*Application) Release

func (v *Application) Release()

Release is a wrapper around g_application_release().

func (*Application) Run

func (v *Application) Run(args []string) int

Run is a wrapper around g_application_run().

func (*Application) SendNotification

func (v *Application) SendNotification(id string, notification *Notification)

SendNotification is a wrapper around g_application_send_notification().

func (*Application) SetApplicationID

func (v *Application) SetApplicationID(id string)

SetApplicationID is a wrapper around g_application_set_application_id().

func (*Application) SetDefault

func (v *Application) SetDefault()

SetDefault is a wrapper around g_application_set_default().

func (*Application) SetFlags

func (v *Application) SetFlags(flags ApplicationFlags)

SetFlags is a wrapper around g_application_set_flags().

func (*Application) SetInactivityTimeout

func (v *Application) SetInactivityTimeout(timeout uint)

SetInactivityTimeout is a wrapper around g_application_set_inactivity_timeout().

func (*Application) UnmarkBusy

func (v *Application) UnmarkBusy()

UnmarkBusy is a wrapper around g_application_unmark_busy().

func (*Application) WithdrawNotification

func (v *Application) WithdrawNotification(id string)

WithdrawNotification is a wrapper around g_application_withdraw_notification().

type ApplicationFlags

type ApplicationFlags int
const (
	APPLICATION_FLAGS_NONE           ApplicationFlags = C.G_APPLICATION_FLAGS_NONE
	APPLICATION_IS_SERVICE           ApplicationFlags = C.G_APPLICATION_IS_SERVICE
	APPLICATION_HANDLES_OPEN         ApplicationFlags = C.G_APPLICATION_HANDLES_OPEN
	APPLICATION_HANDLES_COMMAND_LINE ApplicationFlags = C.G_APPLICATION_HANDLES_COMMAND_LINE
	APPLICATION_SEND_ENVIRONMENT     ApplicationFlags = C.G_APPLICATION_SEND_ENVIRONMENT
	APPLICATION_NON_UNIQUE           ApplicationFlags = C.G_APPLICATION_NON_UNIQUE
)

type Binding

type Binding struct {
	*Object
}

Binding is a representation of Glib's GBinding.

func BindProperty

func BindProperty(source *Object, sourceProperty string,
	target *Object, targetProperty string,
	flags BindingFlags) *Binding

BindProperty creates a binding between source property on source and target property on target . Whenever the source property is changed the target_property is updated using the same value.

func (*Binding) GetFlags

func (v *Binding) GetFlags() BindingFlags

GetFlags retrieves the flags passed when constructing the GBinding.

func (*Binding) GetSource

func (v *Binding) GetSource() *Object

GetSource retrieves the GObject instance used as the source of the binding

func (*Binding) GetSourceProperty

func (v *Binding) GetSourceProperty() string

GetSourceProperty retrieves the name of the property of “source” used as the source of the binding.

func (*Binding) GetTarget

func (v *Binding) GetTarget() *Object

GetTarget retrieves the GObject instance used as the target of the binding.

func (*Binding) GetTargetProperty

func (v *Binding) GetTargetProperty() string

GetTargetProperty retrieves the name of the property of “target” used as the target of the binding.

func (*Binding) Unbind

func (v *Binding) Unbind()

Unbind explicitly releases the binding between the source and the target property expressed by Binding

type BindingFlags

type BindingFlags int

type BuildVersion

type BuildVersion int
const (
	GLIB_UNDEF BuildVersion = iota
	GLIB_2_40
	GLIB_2_42
	GLIB_2_44
	GLIB_2_46
	GLIB_2_48
	GLIB_2_50
	GLIB_2_52
	GLIB_2_54
	GLIB_2_56
	GLIB_2_58 // released in September 2018
	GLIB_2_60 // released in March 2019
	GLIB_2_62 // released in September 2019
	GLIB_2_64 // released in February 2020
	GLIB_2_66 // released in October 2020
	GLIB_2_68 // released in March 2021
	GLIB_2_70 // released in September 2021
)

func GetBuildVersion

func GetBuildVersion() BuildVersion

func (BuildVersion) String

func (v BuildVersion) String() string

Implement stringer interface

type Bytes

type Bytes struct {
	// contains filtered or unexported fields
}

Bytes is a representation of GLib's GBytes.

func BytesNew

func BytesNew(bytes []byte) (*Bytes, error)

BytesNew is a wrapper around g_bytes_new().

func (*Bytes) GetData

func (v *Bytes) GetData() []byte

GetData is a wrapper around g_bytes_get_data().

func (*Bytes) GetSize

func (v *Bytes) GetSize() int

GetSize is a wrapper around g_bytes_get_size().

func (*Bytes) Native

func (v *Bytes) Native() uintptr

Native cast underlying GBytes to uintptr with protection from nil. No need to check for nil in successor code. Export this method for all other modules and successors

func (*Bytes) Ref

func (v *Bytes) Ref()

Ref is a wrapper around g_bytes_ref().

func (*Bytes) Unref

func (v *Bytes) Unref()

Unref is a wrapper around g_bytes_unref().

type Cancellable

type Cancellable struct {
	*Object
}

Cancellable is a representation of GCancellable.

func CancellableNew

func CancellableNew() (*Cancellable, error)

CancellableNew is a wrapper around g_cancellable_new().

func (*Cancellable) Cancel

func (v *Cancellable) Cancel()

Cancel is a wrapper around g_cancellable_cancel().

func (*Cancellable) IsCancelled

func (v *Cancellable) IsCancelled() bool

IsCancelled is a wrapper around g_cancellable_is_cancelled().

func (*Cancellable) Reset

func (v *Cancellable) Reset()

Reset is a wrapper around g_cancellable_reset().

type File

type File struct {
	// Since GFile is based on GInterface, but require
	// freed approach same as GObject has, use reference
	// to Interface, instead of instance.
	// This must be a pointer so copies of the ref-sinked object
	// do not outlive the original object, causing an unref
	// finalizer to prematurely run.
	*Interface
}

File is a representation of GFile.

func FileForPathNew

func FileForPathNew(path string) (*File, error)

FileForPathNew is a wrapper around g_file_new_for_path().

func FileForUriNew

func FileForUriNew(path string) (*File, error)

FileForUriNew is a wrapper around g_file_new_for_uri().

func ParseName

func ParseName(parseName string) (*File, error)

GFile * g_file_parse_name ()

func (*File) AppendTo

func (v *File) AppendTo(flags FileCreateFlags, cancel *Cancellable) (*FileOutputStream, error)

GFileOutputStream * g_file_append_to ()

func (*File) Create

func (v *File) Create(flags FileCreateFlags, cancel *Cancellable) (*FileOutputStream, error)

GFileOutputStream * g_file_create ()

func (*File) Delete

func (v *File) Delete(cancel *Cancellable) error

gboolean g_file_delete ()

func (*File) Dup

func (v *File) Dup() (*File, error)

GFile * g_file_dup ()

func (*File) EnumerateChildren

func (v *File) EnumerateChildren(attributes string, flags FileQueryInfoFlags, cancel *Cancellable) (*FileEnumerator, error)

GFileEnumerator * g_file_enumerate_children ()

func (*File) Equal

func (v *File) Equal(file *File) bool

gboolean g_file_equal ()

func (*File) FileType

func (v *File) FileType(flags FileQueryInfoFlags, cancel *Cancellable) FileType

GFileType g_file_query_file_type ()

func (*File) GetBasename

func (v *File) GetBasename() string

char * g_file_get_basename ()

func (*File) GetChild

func (v *File) GetChild(name string) (*File, error)

GFile * g_file_get_child ()

func (*File) GetChildForDisplayName

func (v *File) GetChildForDisplayName(displayName string) (*File, error)

GFile * g_file_get_child_for_display_name ()

func (*File) GetParent

func (v *File) GetParent() (*File, error)

GFile * g_file_get_parent ()

func (*File) GetPath

func (v *File) GetPath() string

char * g_file_get_path ()

func (*File) GetRelativePath

func (v *File) GetRelativePath(descendant *File) string

char * g_file_get_relative_path ()

func (*File) GetUri

func (v *File) GetUri() string

char * g_file_get_uri ()

func (*File) GetUriScheme

func (v *File) GetUriScheme() string

char * g_file_get_uri_scheme ()

func (*File) HasParent

func (v *File) HasParent(parent *File) bool

gboolean g_file_has_parent ()

func (*File) HasPrefix

func (v *File) HasPrefix(prefix *File) bool

gboolean g_file_has_prefix ()

func (*File) HasUriScheme

func (v *File) HasUriScheme(uriScheme string) bool

gboolean g_file_has_uri_scheme ()

func (*File) Hash

func (v *File) Hash() int

guint g_file_hash ()

func (*File) IsNative

func (v *File) IsNative() bool

gboolean g_file_is_native ()

func (*File) MakeDirectory

func (v *File) MakeDirectory(cancel *Cancellable) error

gboolean g_file_make_directory ()

func (*File) MakeDirectoryWithParents

func (v *File) MakeDirectoryWithParents(cancel *Cancellable) error

gboolean g_file_make_directory_with_parents ()

func (v *File) MakeSymbolicLink(symlinkValue string, cancel *Cancellable) error

gboolean g_file_make_symbolic_link ()

func (*File) NewTmp

func (v *File) NewTmp(template string) (*File, *FileIOStream, error)

GFile * g_file_new_tmp ()

func (*File) OpenReadWrite

func (v *File) OpenReadWrite(cancel *Cancellable) (*FileIOStream, error)

GFileIOStream * g_file_open_readwrite ()

func (*File) QueryExists

func (v *File) QueryExists(cancel *Cancellable) bool

gboolean g_file_query_exists ()

func (*File) QueryFileSystemInfo

func (v *File) QueryFileSystemInfo(attributes string, cancel *Cancellable) (*FileInfo, error)

GFileInfo * g_file_query_filesystem_info ()

func (*File) QueryInfo

func (v *File) QueryInfo(attributes string, flags FileQueryInfoFlags, cancel *Cancellable) (*FileInfo, error)

GFileInfo * g_file_query_info ()

func (*File) Read

func (v *File) Read(cancel *Cancellable) (*FileInputStream, error)

GFileInputStream * g_file_read ()

func (*File) SetDisplayName

func (v *File) SetDisplayName(displayName string, cancel *Cancellable) (*File, error)

GFile * g_file_set_display_name ()

func (*File) Trash

func (v *File) Trash(cancel *Cancellable) error

gboolean g_file_trash ()

func (*File) Unref

func (v *File) Unref()

type FileCreateFlags

type FileCreateFlags int

FileCreateFlags is a representation of GLib's GFileCreateFlags.

const (
	FILE_CREATE_NONE                FileCreateFlags = C.G_FILE_CREATE_NONE
	FILE_CREATE_PRIVATE             FileCreateFlags = C.G_FILE_CREATE_PRIVATE
	FILE_CREATE_REPLACE_DESTINATION FileCreateFlags = C.G_FILE_CREATE_REPLACE_DESTINATION
)

type FileEnumerator

type FileEnumerator struct {
	*Object
}

FileEnumerator is a representation of GFileEnumerator.

func (*FileEnumerator) Close

func (v *FileEnumerator) Close(cancel *Cancellable) error

Close is a wrapper around g_file_enumerator_close().

func (*FileEnumerator) GetChild

func (v *FileEnumerator) GetChild(info *FileInfo) *File

GetChild is a wrapper around g_file_enumerator_get_child().

func (*FileEnumerator) GetContainer

func (v *FileEnumerator) GetContainer() *File

GetContainer is a wrapper around g_file_enumerator_get_container().

func (*FileEnumerator) HasPending

func (v *FileEnumerator) HasPending() bool

HasPending is a wrapper around g_file_enumerator_has_pending().

func (*FileEnumerator) IsClosed

func (v *FileEnumerator) IsClosed() bool

IsClosed is a wrapper around g_file_enumerator_is_closed().

func (*FileEnumerator) NextFile

func (v *FileEnumerator) NextFile(cancel *Cancellable) (*FileInfo, error)

NextFile is a wrapper around g_file_enumerator_next_file().

func (*FileEnumerator) SetPending

func (v *FileEnumerator) SetPending(pending bool)

SetPending is a wrapper around g_file_enumerator_set_pending().

type FileIOStream

type FileIOStream struct {
	IOStream
	// Interfaces
	Seekable
}

FileIOStream is a representation of GFileIOStream.

type FileIcon

type FileIcon struct {
	*Object
	// Interfaces
	Icon
}

FileIcon is a representation of GFileIcon.

func FileIconNew

func FileIconNew(file *File) (*FileIcon, error)

func (*FileIcon) Native

func (v *FileIcon) Native() uintptr

type FileInfo

type FileInfo struct {
	*Object
}

FileInfo is a representation of GFileInfo.

type FileInputStream

type FileInputStream struct {
	InputStream
}

FileInputStream is a representation of GFileInputStream.

func (*FileInputStream) QueryInfo

func (v *FileInputStream) QueryInfo(attributes string, cancel *Cancellable) (*FileInfo, error)

QueryInfo is a wrapper around g_file_input_stream_query_info().

type FileOutputStream

type FileOutputStream struct {
	OutputStream
}

FileOutputStream is a representation of GFileOutputStream.

func (*FileOutputStream) QueryInfo

func (v *FileOutputStream) QueryInfo(attributes string, cancel *Cancellable) (*FileInfo, error)

QueryInfo is a wrapper around g_file_output_stream_query_info().

type FileQueryInfoFlags

type FileQueryInfoFlags int
const (
	FILE_QUERY_INFO_NONE              FileQueryInfoFlags = C.G_FILE_QUERY_INFO_NONE
	FILE_QUERY_INFO_NOFOLLOW_SYMLINKS FileQueryInfoFlags = C.G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS
)

type FileType

type FileType int
const (
	FILE_TYPE_UNKNOWN       FileType = C.G_FILE_TYPE_UNKNOWN
	FILE_TYPE_REGULAR       FileType = C.G_FILE_TYPE_REGULAR
	FILE_TYPE_DIRECTORY     FileType = C.G_FILE_TYPE_DIRECTORY
	FILE_TYPE_SYMBOLIC_LINK FileType = C.G_FILE_TYPE_SYMBOLIC_LINK
	FILE_TYPE_SPECIAL       FileType = C.G_FILE_TYPE_SPECIAL
	FILE_TYPE_SHORTCUT      FileType = C.G_FILE_TYPE_SHORTCUT
	FILE_TYPE_MOUNTABLE     FileType = C.G_FILE_TYPE_MOUNTABLE
)

type GValueMarshaler

type GValueMarshaler func(uintptr) (interface{}, error)

GValueMarshaler is a marshal function to convert a GValue into an appropriate Go type. The uintptr parameter is a *C.GValue.

type IAction

type IAction interface {
	// contains filtered or unexported methods
}

IAction is an interface type implemented by all structs embedding a Action.

type IGlibConvert

type IGlibConvert interface {
	//  If conversion can't be done, function have to panic with a message that it can't convert to type
	Convert(reflect.Type) reflect.Value
}

Should be implemented by any class which need special conversion like gtk.Application -> gio.Application

type IMenuModel

type IMenuModel interface {

	// Use this method to expose access to GLIB underlying object
	// in external packages.
	Native() uintptr
	// contains filtered or unexported methods
}

IMenuModel is an interface type implemented by all structs embedding a MenuModel.

type IOStream

type IOStream struct {
	*Object
}

IOStream is a representation of GIOStream.

func (*IOStream) ClearPending

func (v *IOStream) ClearPending()

ClearPending is a wrapper around g_io_stream_clear_pending().

func (*IOStream) Close

func (v *IOStream) Close(cancel *Cancellable) error

Close is a wrapper around g_io_stream_close().

func (*IOStream) GetInputStream

func (v *IOStream) GetInputStream() (*InputStream, error)

GetInputStream is a wrapper around g_io_stream_get_input_stream().

func (*IOStream) GetOutputStream

func (v *IOStream) GetOutputStream() (*OutputStream, error)

GetOutputStream is a wrapper around g_io_stream_get_output_stream().

func (*IOStream) HasPending

func (v *IOStream) HasPending() bool

HasPending is a wrapper around g_io_stream_has_pending().

func (*IOStream) IsClosed

func (v *IOStream) IsClosed() bool

IsClosed is a wrapper around g_io_stream_is_closed().

func (*IOStream) SetPending

func (v *IOStream) SetPending() error

SetPending is a wrapper around g_io_stream_set_pending().

type IObject

type IObject interface {
	// contains filtered or unexported methods
}

IObject is an interface type implemented by Object and all types which embed an Object. It is meant to be used as a type for function arguments which require GObjects or any subclasses thereof.

type IVariant

type IVariant interface {
	// contains filtered or unexported methods
}

IVariant is an interface type implemented by Variant and all types which embed an Variant. It is meant to be used as a type for function arguments which require GVariants or any subclasses thereof.

type Icon

type Icon struct {
	Interface
}

Icon is a representation of GInterface.

type InitiallyUnowned

type InitiallyUnowned struct {
	// This must be a pointer so copies of the ref-sinked object
	// do not outlive the original object, causing an unref
	// finalizer to prematurely run.
	*Object
}

InitiallyUnowned is a representation of GLib's GInitiallyUnowned.

type InputStream

type InputStream struct {
	*Object
}

InputStream is a representation of GInputStream.

func (*InputStream) Close

func (v *InputStream) Close(cancel *Cancellable) error

Close is a wrapper around g_input_stream_close().

func (*InputStream) IsClosed

func (v *InputStream) IsClosed() bool

IsClosed is a wrapper around g_input_stream_is_closed().

func (*InputStream) Read

func (v *InputStream) Read(b []byte, cancel *Cancellable) (bytesRead int, e error)

Read is a wrapper around g_input_stream_read().

func (*InputStream) ReadAll

func (v *InputStream) ReadAll(b []byte, cancel *Cancellable) (bytesRead int, e error)

ReadAll is a wrapper around g_input_stream_read_all().

func (*InputStream) ReadBytes

func (v *InputStream) ReadBytes(count int, cancel *Cancellable) (*Bytes, error)

ReadBytes is a wrapper around g_input_stream_read_bytes().

func (*InputStream) Skip

func (v *InputStream) Skip(count int, cancel *Cancellable) (bytesSkipped int, e error)

Skip is a wrapper around g_input_stream_skip().

type Interface

type Interface struct {
	// contains filtered or unexported fields
}

Abstract respresentation for any GTK+ GInterface. Should be used instead of Object type in all GInterface implementations.

func InterfaceFromObjectNew

func InterfaceFromObjectNew(obj *Object) *Interface

func InterfaceNew

func InterfaceNew(ptr unsafe.Pointer) *Interface

func SetFinOnInterface

func SetFinOnInterface(ptr unsafe.Pointer) *Interface

func (*Interface) Native

func (v *Interface) Native() uintptr

type List

type List struct {
	// contains filtered or unexported fields
}

List is a representation of Glib's GList.

func WrapList

func WrapList(obj uintptr) *List

func (*List) Append

func (v *List) Append(data uintptr) *List

Append is a wrapper around g_list_append().

func (*List) Data

func (v *List) Data() interface{}

Data acts the same as data struct field, but passes retrieved value before returning through wrap function, set by DataWrapper(). If no wrap function is set, it returns raw unsafe.Pointer.

func (*List) DataWrapper

func (v *List) DataWrapper(fn func(unsafe.Pointer) interface{})

DataWrapper sets wrap functions, which is called during NthDataWrapped() and DataWrapped(). It's used to cast raw C data into appropriate Go structures and types every time that data is retrieved.

func (*List) Foreach

func (v *List) Foreach(fn func(item interface{}))

Foreach acts the same as g_list_foreach(). No user_data argument is implemented because of Go clojure capabilities.

func (*List) Free

func (v *List) Free()

Free is a wrapper around g_list_free().

func (*List) FreeFull

func (v *List) FreeFull(fn func(item interface{}))

FreeFull acts the same as g_list_free_full(). Calling list.FreeFull(fn) is equivalent to calling list.Foreach(fn) and list.Free() sequentially.

func (*List) Insert

func (v *List) Insert(data uintptr, position int) *List

Insert is a wrapper around g_list_insert().

func (*List) Length

func (v *List) Length() uint

Length is a wrapper around g_list_length().

func (*List) Native

func (v *List) Native() uintptr

func (*List) Next

func (v *List) Next() *List

Next is a wrapper around the next struct field

func (*List) Nth

func (v *List) Nth(n uint) *List

Nth is a wrapper around g_list_nth().

func (*List) NthData

func (v *List) NthData(n uint) interface{}

NthData acts the same as g_list_nth_data(), but passes retrieved value before returning through wrap function, set by DataWrapper(). If no wrap function is set, it returns raw unsafe.Pointer.

func (*List) Prepend

func (v *List) Prepend(data uintptr) *List

Prepend is a wrapper around g_list_prepend().

func (*List) Previous

func (v *List) Previous() *List

Previous is a wrapper around the prev struct field

type MainContext

type MainContext struct {
	// contains filtered or unexported fields
}

func MainContextDefault

func MainContextDefault() *MainContext

MainContextDefault is a wrapper around g_main_context_default().

type MemoryInputStream

type MemoryInputStream struct {
	InputStream
}

MemoryInputStream is a representation of GMemoryInputStream.

func MemoryInputStreamFromBytesNew

func MemoryInputStreamFromBytesNew(bytes *Bytes) (*MemoryInputStream, error)

MemoryInputStreamFromBytesNew is a wrapper around g_memory_input_stream_new_from_bytes().

func MemoryInputStreamNew

func MemoryInputStreamNew() (*MemoryInputStream, error)

MemoryInputStreamNew is a wrapper around g_memory_input_stream_new().

func (*MemoryInputStream) AddBytes

func (v *MemoryInputStream) AddBytes(bytes *Bytes)

AddBytes is a wrapper around g_memory_input_stream_add_bytes().

type MemoryOutputStream

type MemoryOutputStream struct {
	OutputStream
}

MemoryOutputStream is a representation of GMemoryOutputStream.

func MemoryOutputStreamResizableNew

func MemoryOutputStreamResizableNew() (*MemoryOutputStream, error)

MemoryOutputStreamResizableNew is a wrapper around g_memory_output_stream_new_resizable().

func (*MemoryOutputStream) GetDataSize

func (v *MemoryOutputStream) GetDataSize() int

GetDataSize is a wrapper around g_memory_output_stream_get_data_size().

func (*MemoryOutputStream) StealAsBytes

func (v *MemoryOutputStream) StealAsBytes() (*Bytes, error)

StealAsBytes is a wrapper around g_input_stream_read_bytes().

type Menu struct {
	MenuModel
}

Menu is a representation of GMenu.

func MenuNew() (*Menu, error)

MenuNew is a wrapper around g_menu_new().

func (v *Menu) Append(label, detailedAction string)

Append is a wrapper around g_menu_append().

func (v *Menu) AppendItem(item *MenuItem)

AppendItem is a wrapper around g_menu_append_item().

func (v *Menu) AppendSection(label string, section IMenuModel)

AppendSection is a wrapper around g_menu_append_section().

func (v *Menu) AppendSubmenu(label string, submenu IMenuModel)

AppendSubmenu is a wrapper around g_menu_append_submenu().

func (v *Menu) Freeze()

Freeze is a wrapper around g_menu_freeze().

func (v *Menu) Insert(position int, label, detailedAction string)

Insert is a wrapper around g_menu_insert().

func (v *Menu) InsertItem(position int, item *MenuItem)

InsertItem is a wrapper around g_menu_insert_item().

func (v *Menu) InsertSection(position int, label string, section IMenuModel)

InsertSection is a wrapper around g_menu_insert_section().

func (v *Menu) InsertSubmenu(position int, label string, submenu IMenuModel)

InsertSubmenu is a wrapper around g_menu_insert_submenu().

func (v *Menu) Prepend(label, detailedAction string)

Prepend is a wrapper around g_menu_prepend().

func (v *Menu) PrependItem(item *MenuItem)

PrependItem is a wrapper around g_menu_prepend_item().

func (v *Menu) PrependSection(label string, section IMenuModel)

PrependSection is a wrapper around g_menu_prepend_section().

func (v *Menu) PrependSubmenu(label string, submenu IMenuModel)

PrependSubmenu is a wrapper around g_menu_prepend_submenu().

func (v *Menu) Remove(position int)

Remove is a wrapper around g_menu_remove().

func (v *Menu) RemoveAll()

RemoveAll is a wrapper around g_menu_remove_all().

type MenuItem struct {
	*Object
}

MenuItem is a representation of GMenuItem.

func MenuItemNew(label, detailedAction string) (*MenuItem, error)

MenuItemNew is a wrapper around g_menu_item_new().

func (v *MenuItem) GetLink(link string) (*MenuModel, error)

GetLink is a wrapper around g_menu_item_get_link().

func (v *MenuItem) SetAttributeValue(attribute string, value *Variant)

void g_menu_item_set_attribute_value (GMenuItev *menu_item,

const gchar *attribute,
GVariant *value);
func (v *MenuItem) SetDetailedAction(act string)

SetDetailedAction is a wrapper around g_menu_item_set_detailed_action().

func (v *MenuItem) SetIcon(icon *Icon)

void g_menu_item_set_icon (GMenuItev *menu_item,

GIcon *icon);
func (v *MenuItem) SetLabel(label string)

// MenuItemSectionNew is a wrapper around g_menu_item_new_section().

func MenuItemSectionNew(label string, section IMenuModel) (*MenuItem, error) {
	var cstr1 *C.gchar
	if label != "" {
		cstr1 := C.CString(label)
		defer C.free(unsafe.Pointer(cstr1))
	}

	c := C.g_menu_item_new_section((*C.gchar)(cstr1), section.toMenuModel().native())
	if c == nil {
		return nil, errNilPtr
	}
	return wrapMenuItem(wrapObject(unsafe.Pointer(c))), nil
}

// MenuItemSubmenuNew is a wrapper around g_menu_item_new_submenu().

func MenuItemSubmenuNew(label string, submenu IMenuModel) (*MenuItem, error) {
	cstr1 := C.CString(label)
	defer C.free(unsafe.Pointer(cstr1))

	c := C.g_menu_item_new_submenu((*C.gchar)(cstr1), submenu.toMenuModel().native())
	if c == nil {
		return nil, errNilPtr
	}
	return wrapMenuItem(wrapObject(unsafe.Pointer(c))), nil
}

// MenuItemFromModelNew is a wrapper around g_menu_item_new_from_model().

func MenuItemFromModelNew(model IMenuModel, index int) (*MenuItem, error) {
	c := C.g_menu_item_new_from_model(model.native(), C.gint(index))
	if c == nil {
		return nil, errNilPtr
	}
	return wrapMenuItem(wrapObject(unsafe.Pointer(c))), nil
}

SetLabel is a wrapper around g_menu_item_set_label().

func (v *MenuItem) SetLink(link string, model IMenuModel)

SetLink is a wrapper around g_menu_item_Set_link().

func (v *MenuItem) SetSection(section IMenuModel)

SetSection is a wrapper around g_menu_item_set_section().

func (v *MenuItem) SetSubmenu(submenu IMenuModel)

SetSubmenu is a wrapper around g_menu_item_set_submenu().

type MenuModel struct {
	*Object
}

MenuModel is a representation of GMenuModel.

func (v *MenuModel) GetItemLink(index int, link string) *MenuModel

GetItemLink is a wrapper around g_menu_model_get_item_link().

func (v *MenuModel) GetNItems() int

GetNItems is a wrapper around g_menu_model_get_n_items().

func (v *MenuModel) IsMutable() bool

IsMutable is a wrapper around g_menu_model_is_mutable().

func (v *MenuModel) ItemsChanged(position, removed, added int)

ItemsChanged is a wrapper around g_menu_model_items_changed().

func (v *MenuModel) Native() uintptr

type Notification

type Notification struct {
	*Object
}

Notification is a representation of GNotification.

func NotificationNew

func NotificationNew(title string) (*Notification, error)

NotificationNew is a wrapper around g_notification_new().

func (*Notification) AddButton

func (v *Notification) AddButton(label, detailedAction string)

AddButton is a wrapper around g_notification_add_button().

func (*Notification) SetBody

func (v *Notification) SetBody(body string)

SetBody is a wrapper around g_notification_set_body().

func (*Notification) SetDefaultAction

func (v *Notification) SetDefaultAction(detailedAction string)

SetDefaultAction is a wrapper around g_notification_set_default_action().

func (*Notification) SetIcon

func (v *Notification) SetIcon(icon *Icon)

SetIcon is a wrapper around g_notification_set_icon

func (*Notification) SetPriority

func (v *Notification) SetPriority(prio NotificationPriority)

SetPriority is a wrapper around g_notification_set_priority().

func (*Notification) SetTitle

func (v *Notification) SetTitle(title string)

SetTitle is a wrapper around g_notification_set_title().

type NotificationPriority

type NotificationPriority int

NotificationPriority is a representation of GLib's GNotificationPriority.

const (
	NOTIFICATION_PRIORITY_NORMAL NotificationPriority = C.G_NOTIFICATION_PRIORITY_NORMAL
	NOTIFICATION_PRIORITY_LOW    NotificationPriority = C.G_NOTIFICATION_PRIORITY_LOW
	NOTIFICATION_PRIORITY_HIGH   NotificationPriority = C.G_NOTIFICATION_PRIORITY_HIGH
	NOTIFICATION_PRIORITY_URGENT NotificationPriority = C.G_NOTIFICATION_PRIORITY_URGENT
)

type Object

type Object struct {
	// contains filtered or unexported fields
}

Object is a representation of GLib's GObject.

func Take

func Take(ptr unsafe.Pointer) *Object

Take wraps a unsafe.Pointer as a glib.Object, taking ownership of it. This function is exported for visibility in other gotk3 packages and is not meant to be used by applications.

func ToObject

func ToObject(ptr unsafe.Pointer) *Object

func (*Object) Connect

func (v *Object) Connect(detailedSignal string, f interface{}, userData ...interface{}) (SignalHandle, error)

Connect is a wrapper around g_signal_connect_closure(). f must be a function with a signaure matching the callback signature for detailedSignal. userData must either 0 or 1 elements which can be optionally passed to f. If f takes less arguments than it is passed from the GLib runtime, the extra arguments are ignored.

Arguments for f must be a matching Go equivalent type for the C callback, or an interface type which the value may be packed in. If the type is not suitable, a runtime panic will occur when the signal is emitted.

func (*Object) ConnectAfter

func (v *Object) ConnectAfter(detailedSignal string, f interface{}, userData ...interface{}) (SignalHandle, error)

ConnectAfter is a wrapper around g_signal_connect_closure(). f must be a function with a signaure matching the callback signature for detailedSignal. userData must either 0 or 1 elements which can be optionally passed to f. If f takes less arguments than it is passed from the GLib runtime, the extra arguments are ignored.

Arguments for f must be a matching Go equivalent type for the C callback, or an interface type which the value may be packed in. If the type is not suitable, a runtime panic will occur when the signal is emitted.

The difference between Connect and ConnectAfter is that the latter will be invoked after the default handler, not before.

func (*Object) Emit

func (v *Object) Emit(s string, args ...interface{}) (interface{}, error)

Emit is a wrapper around g_signal_emitv() and emits the signal specified by the string s to an Object. Arguments to callback functions connected to this signal must be specified in args. Emit() returns an interface{} which must be type asserted as the Go equivalent type to the return value for native C callback.

Note that this code is unsafe in that the types of values in args are not checked against whether they are suitable for the callback.

func (*Object) ForceFloating

func (v *Object) ForceFloating()

ForceFloating is a wrapper around g_object_force_floating().

func (*Object) GetProperty

func (v *Object) GetProperty(name string) (interface{}, error)

GetProperty is a wrapper around g_object_get_property().

func (*Object) GetPropertyType

func (v *Object) GetPropertyType(name string) (Type, error)

GetPropertyType returns the Type of a property of the underlying GObject. If the property is missing it will return TYPE_INVALID and an error.

func (*Object) HandlerBlock

func (v *Object) HandlerBlock(handle SignalHandle)

HandlerBlock is a wrapper around g_signal_handler_block().

func (*Object) HandlerDisconnect

func (v *Object) HandlerDisconnect(handle SignalHandle)

HandlerDisconnect is a wrapper around g_signal_handler_disconnect().

func (*Object) HandlerUnblock

func (v *Object) HandlerUnblock(handle SignalHandle)

HandlerUnblock is a wrapper around g_signal_handler_unblock().

func (*Object) IsA

func (v *Object) IsA(typ Type) bool

IsA is a wrapper around g_type_is_a().

func (*Object) IsFloating

func (v *Object) IsFloating() bool

IsFloating is a wrapper around g_object_is_floating().

func (*Object) Native

func (v *Object) Native() uintptr

Native cast underlying GObject to uintptr with protection from nil. No need to check for nil in successor code. Export this method for all other modules and successors

func (*Object) Ref

func (v *Object) Ref()

Ref is a wrapper around g_object_ref().

func (*Object) RefSink

func (v *Object) RefSink()

RefSink is a wrapper around g_object_ref_sink().

func (*Object) Set

func (v *Object) Set(name string, value interface{}) error

Set is a wrapper around g_object_set(). However, unlike g_object_set(), this function only sets one name value pair. Make multiple calls to this function to set multiple properties.

func (*Object) SetProperty

func (v *Object) SetProperty(name string, value interface{}) error

SetProperty is a wrapper around g_object_set_property().

func (*Object) StopEmission

func (v *Object) StopEmission(s string)

StopEmission is a wrapper around g_signal_stop_emission_by_name().

func (*Object) TypeFromInstance

func (v *Object) TypeFromInstance() Type

TypeFromInstance is a wrapper around g_type_from_instance().

func (*Object) Unref

func (v *Object) Unref()

Unref is a wrapper around g_object_unref().

type OutputStream

type OutputStream struct {
	*Object
}

OutputStream is a representation of GOutputStream.

func (*OutputStream) Close

func (v *OutputStream) Close(cancel *Cancellable) error

Close is a wrapper around g_output_stream_close().

func (*OutputStream) Flush

func (v *OutputStream) Flush(cancel *Cancellable) error

Flush is a wrapper around g_output_stream_flush().

func (*OutputStream) IsClosed

func (v *OutputStream) IsClosed() bool

IsClosed is a wrapper around g_output_stream_is_closed().

func (*OutputStream) IsClosing

func (v *OutputStream) IsClosing() bool

IsClosing is a wrapper around g_output_stream_is_closing().

func (*OutputStream) Splice

func (v *OutputStream) Splice(source *InputStream, flags OutputStreamSpliceFlags,
	cancel *Cancellable) (dataSpliced int, e error)

Splice is a wrapper around g_output_stream_splice().

func (*OutputStream) Write

func (v *OutputStream) Write(b []byte, cancel *Cancellable) (bytesWritten int, e error)

Write is a wrapper around g_output_stream_write().

func (*OutputStream) WriteAll

func (v *OutputStream) WriteAll(b []byte, cancel *Cancellable) (bytesWritten int, e error)

WriteAll is a wrapper around g_output_stream_write_all().

func (*OutputStream) WriteBytes

func (v *OutputStream) WriteBytes(bytes *Bytes, cancel *Cancellable) (int, error)

WriteBytes is a wrapper around g_input_stream_read_bytes().

type OutputStreamSpliceFlags

type OutputStreamSpliceFlags int

OutputStreamSpliceFlags is a representation of GLib's GOutputStreamSpliceFlags.

const (
	OUTPUT_STREAM_SPLICE_NONE         OutputStreamSpliceFlags = C.G_OUTPUT_STREAM_SPLICE_NONE
	OUTPUT_STREAM_SPLICE_CLOSE_SOURCE OutputStreamSpliceFlags = C.G_OUTPUT_STREAM_SPLICE_CLOSE_SOURCE
	OUTPUT_STREAM_SPLICE_CLOSE_TARGET OutputStreamSpliceFlags = C.G_OUTPUT_STREAM_SPLICE_CLOSE_TARGET
)

type Quark

type Quark uint32

type SList

type SList struct {
	// contains filtered or unexported fields
}

SList is a representation of Glib's GSList. A SList must be manually freed by either calling Free() or FreeFull()

func WrapSList

func WrapSList(obj uintptr) *SList

func (*SList) Append

func (v *SList) Append(data uintptr) *SList

func (*SList) Foreach

func (v *SList) Foreach(fn func(ptr unsafe.Pointer))

Foreach acts the same as g_slist_foreach(). No user_data arguement is implemented because of Go clojure capabilities.

func (*SList) Free

func (v *SList) Free()

Free is a wrapper around g_slist_free().

func (*SList) FreeFull

func (v *SList) FreeFull()

FreeFull is a wrapper around g_slist_free_full().

func (*SList) Length

func (v *SList) Length() uint

Length is a wrapper around g_slist_length().

func (*SList) Native

func (v *SList) Native() uintptr

func (*SList) Next

func (v *SList) Next() *SList

Next is a wrapper around the next struct field

type SeekType

type SeekType int

SeekType is a representation of GLib's GSeekType.

const (
	SEEK_CUR SeekType = C.G_SEEK_CUR
	SEEK_SET SeekType = C.G_SEEK_SET
	SEEK_END SeekType = C.G_SEEK_END
)

type Seekable

type Seekable struct {
	Interface
}

Seekable is a representation of GSeekable.

func (*Seekable) CanSeek

func (v *Seekable) CanSeek() bool

CanSeek is a wrapper around g_seekable_can_seek().

func (*Seekable) CanTruncate

func (v *Seekable) CanTruncate() bool

CanTruncate is a wrapper around g_seekable_can_truncate().

func (*Seekable) Seek

func (v *Seekable) Seek(offset int64, seekType SeekType, cancel *Cancellable) error

Seek is a wrapper around g_seekable_seek().

func (*Seekable) Tell

func (v *Seekable) Tell() int64

Tell is a wrapper around g_seekable_tell().

func (*Seekable) Truncate

func (v *Seekable) Truncate(offset int64, cancel *Cancellable) error

Truncate is a wrapper around g_seekable_truncate().

type Settings

type Settings struct {
	*Object
}

Settings is a representation of GSettings.

func SettingsNew

func SettingsNew(schemaID string) (*Settings, error)

SettingsNew is a wrapper around g_settings_new().

func SettingsNewFull

func SettingsNewFull(schema *SettingsSchema, backend *SettingsBackend, path string) (*Settings, error)

SettingsNewFull is a wrapper around g_settings_new_full().

func SettingsNewWithBackend

func SettingsNewWithBackend(schemaID string, backend *SettingsBackend) (*Settings, error)

SettingsNewWithBackend is a wrapper around g_settings_new_with_backend().

func SettingsNewWithBackendAndPath

func SettingsNewWithBackendAndPath(schemaID string, backend *SettingsBackend, path string) (*Settings, error)

SettingsNewWithBackendAndPath is a wrapper around g_settings_new_with_backend_and_path().

func SettingsNewWithPath

func SettingsNewWithPath(schemaID, path string) (*Settings, error)

SettingsNewWithPath is a wrapper around g_settings_new_with_path().

func (*Settings) Apply

func (v *Settings) Apply()

Apply is a wrapper around g_settings_apply().

func (*Settings) Bind

func (v *Settings) Bind(key string, object IObject, property string, flags SettingsBindFlags)

void g_settings_bind ()

func (*Settings) Delay

func (v *Settings) Delay()

Delay is a wrapper around g_settings_delay().

func (*Settings) GetBoolean

func (v *Settings) GetBoolean(key string) bool

GetBoolean is a wrapper around g_settings_get_boolean().

func (*Settings) GetChild

func (v *Settings) GetChild(name string) (*Settings, error)

GetChild is a wrapper around g_settings_get_child().

func (*Settings) GetDouble

func (v *Settings) GetDouble(key string) float64

GetDouble is a wrapper around g_settings_get_double().

func (*Settings) GetEnum

func (v *Settings) GetEnum(key string) int

GetEnum is a wrapper around g_settings_get_enum().

func (*Settings) GetFlags

func (v *Settings) GetFlags(key string) uint

GetFlags is a wrapper around g_settings_get_flags().

func (*Settings) GetHasUnapplied

func (v *Settings) GetHasUnapplied() bool

GetHasUnapplied is a wrapper around g_settings_get_has_unapplied().

func (*Settings) GetInt

func (v *Settings) GetInt(key string) int

GetInt is a wrapper around g_settings_get_int().

func (*Settings) GetString

func (v *Settings) GetString(key string) string

GetString is a wrapper around g_settings_get_string().

func (*Settings) GetStrv

func (v *Settings) GetStrv(key string) []string

gchar ** g_settings_get_strv ()

func (*Settings) GetUInt

func (v *Settings) GetUInt(key string) uint

GetUInt is a wrapper around g_settings_get_uint().

func (*Settings) GetValue

func (v *Settings) GetValue(key string) *Variant

GVariant * g_settings_get_value ()

func (*Settings) IsWritable

func (v *Settings) IsWritable(name string) bool

IsWritable is a wrapper around g_settings_is_writable().

func (*Settings) ListChildren

func (v *Settings) ListChildren() []string

ListChildren is a wrapper around g_settings_list_children().

func (*Settings) Reset

func (v *Settings) Reset(key string)

Reset is a wrapper around g_settings_reset().

func (*Settings) Revert

func (v *Settings) Revert()

Revert is a wrapper around g_settings_revert().

func (*Settings) SetBoolean

func (v *Settings) SetBoolean(key string, value bool) bool

SetBoolean is a wrapper around g_settings_set_boolean().

func (*Settings) SetDouble

func (v *Settings) SetDouble(key string, value float64) bool

SetDouble is a wrapper around g_settings_set_double().

func (*Settings) SetEnum

func (v *Settings) SetEnum(key string, value int) bool

SetEnum is a wrapper around g_settings_set_enum().

func (*Settings) SetFlags

func (v *Settings) SetFlags(key string, value uint) bool

SetFlags is a wrapper around g_settings_set_flags().

func (*Settings) SetInt

func (v *Settings) SetInt(key string, value int) bool

SetInt is a wrapper around g_settings_set_int().

func (*Settings) SetString

func (v *Settings) SetString(key string, value string) bool

SetString is a wrapper around g_settings_set_string().

func (*Settings) SetStrv

func (v *Settings) SetStrv(key string, value []string) bool

gboolean g_settings_set_strv ()

func (*Settings) SetUInt

func (v *Settings) SetUInt(key string, value uint) bool

SetUInt is a wrapper around g_settings_set_uint().

func (*Settings) SetValue

func (v *Settings) SetValue(key string, value *Variant) bool

gboolean g_settings_set_value ()

func (*Settings) Unbind

func (v *Settings) Unbind(object IObject, property string)

void g_settings_unbind ()

type SettingsBackend

type SettingsBackend struct {
	*Object
}

SettingsBackend is a representation of GSettingsBackend.

func KeyfileSettingsBackendNew

func KeyfileSettingsBackendNew(filename, rootPath, rootGroup string) (*SettingsBackend, error)

KeyfileSettingsBackendNew is a wrapper around g_keyfile_settings_backend_new().

func MemorySettingsBackendNew

func MemorySettingsBackendNew() (*SettingsBackend, error)

MemorySettingsBackendNew is a wrapper around g_memory_settings_backend_new().

func NullSettingsBackendNew

func NullSettingsBackendNew() (*SettingsBackend, error)

NullSettingsBackendNew is a wrapper around g_null_settings_backend_new().

func SettingsBackendGetDefault

func SettingsBackendGetDefault() *SettingsBackend

SettingsBackendGetDefault is a wrapper around g_settings_backend_get_default().

type SettingsBindFlags

type SettingsBindFlags uint

SettingsBindFlags is a representation of GLib's GSettingsBindFlags.

const (
	SETTINGS_BIND_DEFAULT        SettingsBindFlags = C.G_SETTINGS_BIND_DEFAULT
	SETTINGS_BIND_GET            SettingsBindFlags = C.G_SETTINGS_BIND_GET
	SETTINGS_BIND_SET            SettingsBindFlags = C.G_SETTINGS_BIND_SET
	SETTINGS_BIND_NO_SENSITIVITY SettingsBindFlags = C.G_SETTINGS_BIND_NO_SENSITIVITY
	SETTINGS_BIND_GET_NO_CHANGES SettingsBindFlags = C.G_SETTINGS_BIND_GET_NO_CHANGES
	SETTINGS_BIND_INVERT_BOOLEAN SettingsBindFlags = C.G_SETTINGS_BIND_INVERT_BOOLEAN
)

type SettingsSchema

type SettingsSchema struct {
	// contains filtered or unexported fields
}

SettingsSchema is a representation of GSettingsSchema.

func (*SettingsSchema) GetID

func (v *SettingsSchema) GetID() string

GetID is a wrapper around g_settings_schema_get_id().

func (*SettingsSchema) GetPath

func (v *SettingsSchema) GetPath() *string

GetPath is a wrapper around g_settings_schema_get_path().

func (*SettingsSchema) HasKey

func (v *SettingsSchema) HasKey(v1 string) bool

HasKey is a wrapper around g_settings_schema_has_key().

func (*SettingsSchema) ListKeys

func (v *SettingsSchema) ListKeys() []string

func (*SettingsSchema) Native

func (v *SettingsSchema) Native() uintptr

func (*SettingsSchema) Ref

func (v *SettingsSchema) Ref() *SettingsSchema

Ref is a wrapper around g_settings_schema_ref().

func (*SettingsSchema) Unref

func (v *SettingsSchema) Unref()

Unref is a wrapper around g_settings_schema_unref().

type SettingsSchemaSource

type SettingsSchemaSource struct {
	// contains filtered or unexported fields
}

SettingsSchemaSource is a representation of GSettingsSchemaSource.

func SettingsSchemaSourceGetDefault

func SettingsSchemaSourceGetDefault() *SettingsSchemaSource

SettingsSchemaSourceGetDefault is a wrapper around g_settings_schema_source_get_default().

func SettingsSchemaSourceNewFromDirectory

func SettingsSchemaSourceNewFromDirectory(dir string, parent *SettingsSchemaSource, trusted bool) (*SettingsSchemaSource, error)

SettingsSchemaSourceNewFromDirectory is a wrapper around g_settings_schema_source_new_from_directory().

func (*SettingsSchemaSource) ListSchemas

func (v *SettingsSchemaSource) ListSchemas(recursive bool) (nonReolcatable, relocatable []string)

ListSchemas is a wrapper around g_settings_schema_source_list_schemas().

func (*SettingsSchemaSource) Lookup

func (v *SettingsSchemaSource) Lookup(schema string, recursive bool) *SettingsSchema

Lookup is a wrapper around g_settings_schema_source_lookup().

func (*SettingsSchemaSource) Native

func (v *SettingsSchemaSource) Native() uintptr

func (*SettingsSchemaSource) Ref

Ref is a wrapper around g_settings_schema_source_ref().

func (*SettingsSchemaSource) Unref

func (v *SettingsSchemaSource) Unref()

Unref is a wrapper around g_settings_schema_source_unref().

type Signal

type Signal struct {
	// contains filtered or unexported fields
}

func SignalNew

func SignalNew(s string) (*Signal, error)

func (*Signal) String

func (s *Signal) String() string

type SignalHandle

type SignalHandle uint

type SimpleAction

type SimpleAction struct {
	// This must be a pointer so copies of the ref-sinked object
	// do not outlive the original object, causing an unref
	// finalizer to prematurely run.
	*Object
	// Interfaces
	Action
}

SimpleAction is a representation of GSimpleAction.

func SimpleActionFromAction

func SimpleActionFromAction(action IAction) (*SimpleAction, error)

func SimpleActionNew

func SimpleActionNew(name string, parameterType *VariantType) (*SimpleAction, error)

GSimpleAction * g_simple_action_new (const gchar *name,

const GVariantType *parameter_type);

func SimpleActionStatefullNew

func SimpleActionStatefullNew(name string, parameterType *VariantType,
	state *Variant) (*SimpleAction, error)

GSimpleAction * g_simple_action_new_stateful (const gchar *name,

const GVariantType *parameter_type,
GVariant *state);

func (*SimpleAction) SetEnabled

func (v *SimpleAction) SetEnabled(enabled bool)

void g_simple_action_set_enabled (GSimpleAction *simple,

gboolean enabled);

func (*SimpleAction) SetState

func (v *SimpleAction) SetState(value *Variant)

void g_simple_action_set_state (GSimpleAction *simple,

GVariant *value);

type Source

type Source struct {
	// contains filtered or unexported fields
}

func MainCurrentSource

func MainCurrentSource() *Source

MainCurrentSource is a wrapper around g_main_current_source().

type SourceHandle

type SourceHandle uint

func IdleAdd

func IdleAdd(f interface{}, args ...interface{}) (SourceHandle, error)

IdleAdd adds an idle source to the default main event loop context. After running once, the source func will be removed from the main event loop, unless f returns a single bool true.

This function will cause a panic when f eventually runs if the types of args do not match those of f.

func TimeoutAdd

func TimeoutAdd(timeout uint, f interface{}, args ...interface{}) (SourceHandle, error)

TimeoutAdd adds an timeout source to the default main event loop context. After running once, the source func will be removed from the main event loop, unless f returns a single bool true.

This function will cause a panic when f eventually runs if the types of args do not match those of f. timeout is in milliseconds

type ThemedIcon

type ThemedIcon struct {
	*Object
	// Interfaces
	Icon
}

ThemedIcon is a representation of GThemedIcon.

func ThemedIconNew

func ThemedIconNew(iconName string) (*ThemedIcon, error)

GIcon * g_themed_icon_new (const char *iconname);

func (*ThemedIcon) Native

func (v *ThemedIcon) Native() uintptr

type Type

type Type uint

Type is a representation of GLib's GType.

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_UINT      Type = C.G_TYPE_UINT
	TYPE_LONG      Type = C.G_TYPE_LONG
	TYPE_ULONG     Type = C.G_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
)

func (Type) Depth

func (t Type) Depth() uint

Depth is a wrapper around g_type_depth().

func (Type) Name

func (t Type) Name() string

Name is a wrapper around g_type_name().

func (Type) Parent

func (t Type) Parent() Type

Parent is a wrapper around g_type_parent().

type TypeMarshaler

type TypeMarshaler struct {
	T Type
	F GValueMarshaler
}

TypeMarshaler represents an actual type and it's associated marshaler.

type UserDirectory

type UserDirectory int

UserDirectory is a representation of GLib's GUserDirectory.

const (
	USER_DIRECTORY_DESKTOP      UserDirectory = C.G_USER_DIRECTORY_DESKTOP
	USER_DIRECTORY_DOCUMENTS    UserDirectory = C.G_USER_DIRECTORY_DOCUMENTS
	USER_DIRECTORY_DOWNLOAD     UserDirectory = C.G_USER_DIRECTORY_DOWNLOAD
	USER_DIRECTORY_MUSIC        UserDirectory = C.G_USER_DIRECTORY_MUSIC
	USER_DIRECTORY_PICTURES     UserDirectory = C.G_USER_DIRECTORY_PICTURES
	USER_DIRECTORY_PUBLIC_SHARE UserDirectory = C.G_USER_DIRECTORY_PUBLIC_SHARE
	USER_DIRECTORY_TEMPLATES    UserDirectory = C.G_USER_DIRECTORY_TEMPLATES
	USER_DIRECTORY_VIDEOS       UserDirectory = C.G_USER_DIRECTORY_VIDEOS
)

type Value

type Value struct {
	// contains filtered or unexported fields
}

Value is a representation of GLib's GValue.

Don't allocate Values on the stack or heap manually as they may not be properly unset when going out of scope. Instead, use ValueAlloc(), which will set the runtime finalizer to unset the Value after it has left scope.

func GValue

func GValue(v interface{}) (gvalue *Value, err error)

GValue converts a Go type to a comparable GValue. GValue() returns a non-nil error if the conversion was unsuccessful.

func ValueAlloc

func ValueAlloc() (*Value, error)

ValueAlloc allocates a Value and sets a runtime finalizer to call g_value_unset() on the underlying GValue after leaving scope. ValueAlloc() returns a non-nil error if the allocation failed.

func ValueFromNative

func ValueFromNative(l unsafe.Pointer) *Value

ValueFromNative returns a type-asserted pointer to the Value.

func ValueInit

func ValueInit(t Type) (*Value, error)

ValueInit is a wrapper around g_value_init() and allocates and initializes a new Value with the Type t. A runtime finalizer is set to call g_value_unset() on the underlying GValue after leaving scope. ValueInit() returns a non-nil error if the allocation failed.

func (*Value) GetPointer

func (v *Value) GetPointer() unsafe.Pointer

GetPointer is a wrapper around g_value_get_pointer().

func (*Value) GetString

func (v *Value) GetString() (string, error)

GetString is a wrapper around g_value_get_string(). GetString() returns a non-nil error if g_value_get_string() returned a NULL pointer to distinguish between returning a NULL pointer and returning an empty string.

func (*Value) GoValue

func (v *Value) GoValue() (interface{}, error)

GoValue converts a Value to comparable Go type. GoValue() returns a non-nil error if the conversion was unsuccessful. The returned interface{} must be type asserted as the actual Go representation of the Value.

This function is a wrapper around the many g_value_get_*() functions, depending on the type of the Value.

func (*Value) Native

func (v *Value) Native() unsafe.Pointer

Native returns a pointer to the underlying GValue.

func (*Value) SetBool

func (v *Value) SetBool(val bool)

SetBool is a wrapper around g_value_set_boolean().

func (*Value) SetDouble

func (v *Value) SetDouble(val float64)

SetDouble is a wrapper around g_value_set_double().

func (*Value) SetFloat

func (v *Value) SetFloat(val float32)

SetFloat is a wrapper around g_value_set_float().

func (*Value) SetInstance

func (v *Value) SetInstance(instance uintptr)

SetInstance is a wrapper around g_value_set_instance().

func (*Value) SetInt

func (v *Value) SetInt(val int)

SetInt is a wrapper around g_value_set_int().

func (*Value) SetInt64

func (v *Value) SetInt64(val int64)

SetInt64 is a wrapper around g_value_set_int64().

func (*Value) SetPointer

func (v *Value) SetPointer(p uintptr)

SetPointer is a wrapper around g_value_set_pointer().

func (*Value) SetSChar

func (v *Value) SetSChar(val int8)

SetSChar is a wrapper around g_value_set_schar().

func (*Value) SetString

func (v *Value) SetString(val string)

SetString is a wrapper around g_value_set_string().

func (*Value) SetUChar

func (v *Value) SetUChar(val uint8)

SetUChar is a wrapper around g_value_set_uchar().

func (*Value) SetUInt

func (v *Value) SetUInt(val uint)

SetUInt is a wrapper around g_value_set_uint().

func (*Value) SetUInt64

func (v *Value) SetUInt64(val uint64)

SetUInt64 is a wrapper around g_value_set_uint64().

func (*Value) Type

func (v *Value) Type() (actual Type, fundamental Type, err error)

Type is a wrapper around the G_VALUE_HOLDS_GTYPE() macro and the g_value_get_gtype() function. GetType() returns TYPE_INVALID if v does not hold a Type, or otherwise returns the Type of v.

type Variant

type Variant struct {
	// contains filtered or unexported fields
}

A Variant is a representation of GLib's GVariant.

func ParseDetailedName

func ParseDetailedName(detailedName string) (actionName string, targetValue *Variant, e error)

gboolean g_action_parse_detailed_name (const gchar *detailed_name,

gchar **action_name,
GVariant **target_value,
GError **error);

func VariantBooleanNew

func VariantBooleanNew(value bool) (*Variant, error)

GVariant * g_variant_new_boolean (gboolean value);

func VariantByteNew

func VariantByteNew(value byte) (*Variant, error)

GVariant * g_variant_new_byte (guchar value);

func VariantInt16New

func VariantInt16New(value int16) (*Variant, error)

GVariant * g_variant_new_int16 (gint16 value);

func VariantInt32New

func VariantInt32New(value int32) (*Variant, error)

GVariant * g_variant_new_int32 (gint32 value);

func VariantInt64New

func VariantInt64New(value int64) (*Variant, error)

GVariant * g_variant_new_int64 (gint64 value);

func VariantStringNew

func VariantStringNew(value string) (*Variant, error)

GVariant * g_variant_new_string (const gchar *string);

func VariantUInt16New

func VariantUInt16New(value uint16) (*Variant, error)

GVariant * g_variant_new_uint16 (guint16 value);

func VariantUInt32New

func VariantUInt32New(value uint32) (*Variant, error)

GVariant * g_variant_new_uint32 (guint32 value);

func VariantUInt64New

func VariantUInt64New(value uint64) (*Variant, error)

GVariant * g_variant_new_uint64 (guint64 value);

func WrapVariant

func WrapVariant(ptr unsafe.Pointer) *Variant

func (*Variant) AnnotatedString

func (v *Variant) AnnotatedString() string

AnnotatedString wraps g_variant_print(), but returns a type-annotated string.

func (*Variant) GetBoolean

func (v *Variant) GetBoolean() bool

GetBoolean returns the bool value of this variant.

func (*Variant) GetByte

func (v *Variant) GetByte() byte

guchar g_variant_get_byte (GVariant *value);

func (*Variant) GetInt

func (v *Variant) GetInt() (int64, error)

GetInt returns the int64 value of the variant if it is an integer type, and an error otherwise. It wraps variouns `g_variant_get_*` functions dealing with integers of different sizes.

func (*Variant) GetInt16

func (v *Variant) GetInt16() int16

gint16 g_variant_get_int16 (GVariant *value);

func (*Variant) GetInt32

func (v *Variant) GetInt32() int32

gint32 g_variant_get_int32 (GVariant *value);

func (*Variant) GetInt64

func (v *Variant) GetInt64() int64

gint64 g_variant_get_int64 (GVariant *value);

func (*Variant) GetString

func (v *Variant) GetString() string

GetString returns the string value of the variant.

func (*Variant) GetStrv

func (v *Variant) GetStrv() []string

GetStrv returns a slice of strings from this variant. It wraps g_variant_get_strv, but returns copies of the strings instead.

func (*Variant) GetType

func (v *Variant) GetType() *VariantType

GetType returns the VariantType for this variant.

func (*Variant) GetUInt16

func (v *Variant) GetUInt16() uint16

guint16 g_variant_get_uint16 (GVariant *value);

func (*Variant) GetUInt32

func (v *Variant) GetUInt32() uint32

guint32 g_variant_get_uint32 (GVariant *value);

func (*Variant) GetUInt64

func (v *Variant) GetUInt64() uint64

guint64 g_variant_get_uint64 (GVariant *value);

func (*Variant) IsContainer

func (v *Variant) IsContainer() bool

IsContainer returns true if the variant is a container and false otherwise.

func (*Variant) IsFloating

func (v *Variant) IsFloating() bool

gboolean g_variant_is_floating (GVariant *value);

func (*Variant) IsOfType

func (v *Variant) IsOfType(t *VariantType) bool

IsOfType returns true if the variant's type matches t.

func (*Variant) Native

func (v *Variant) Native() unsafe.Pointer

Native returns a pointer to the underlying GVariant.

func (*Variant) Ref

func (v *Variant) Ref()

GVariant * g_variant_ref (GVariant *value);

func (*Variant) RefSink

func (v *Variant) RefSink()

GVariant * g_variant_ref_sink (GVariant *value);

func (*Variant) String

func (v *Variant) String() string

String wraps g_variant_print(). It returns a string understood by g_variant_parse().

func (*Variant) TakeRef

func (v *Variant) TakeRef()

GVariant * g_variant_take_ref (GVariant *value);

func (*Variant) TypeString

func (v *Variant) TypeString() string

TypeString returns the g variant type string for this variant.

func (*Variant) Unref

func (v *Variant) Unref()

void g_variant_unref (GVariant *value);

type VariantBuilder

type VariantBuilder struct {
	// contains filtered or unexported fields
}

VariantBuilder is a representation of GLib's VariantBuilder.

func (*VariantBuilder) Native

func (v *VariantBuilder) Native() uintptr

Native returns a pointer to the underlying GVariantBuilder.

type VariantClass

type VariantClass int
const (
	VARIANT_CLASS_BOOLEAN     VariantClass = C.G_VARIANT_CLASS_BOOLEAN     //The GVariant is a boolean.
	VARIANT_CLASS_BYTE        VariantClass = C.G_VARIANT_CLASS_BYTE        //The GVariant is a byte.
	VARIANT_CLASS_INT16       VariantClass = C.G_VARIANT_CLASS_INT16       //The GVariant is a signed 16 bit integer.
	VARIANT_CLASS_UINT16      VariantClass = C.G_VARIANT_CLASS_UINT16      //The GVariant is an unsigned 16 bit integer.
	VARIANT_CLASS_INT32       VariantClass = C.G_VARIANT_CLASS_INT32       //The GVariant is a signed 32 bit integer.
	VARIANT_CLASS_UINT32      VariantClass = C.G_VARIANT_CLASS_UINT32      //The GVariant is an unsigned 32 bit integer.
	VARIANT_CLASS_INT64       VariantClass = C.G_VARIANT_CLASS_INT64       //The GVariant is a signed 64 bit integer.
	VARIANT_CLASS_UINT64      VariantClass = C.G_VARIANT_CLASS_UINT64      //The GVariant is an unsigned 64 bit integer.
	VARIANT_CLASS_HANDLE      VariantClass = C.G_VARIANT_CLASS_HANDLE      //The GVariant is a file handle index.
	VARIANT_CLASS_DOUBLE      VariantClass = C.G_VARIANT_CLASS_DOUBLE      //The GVariant is a double precision floating point value.
	VARIANT_CLASS_STRING      VariantClass = C.G_VARIANT_CLASS_STRING      //The GVariant is a normal string.
	VARIANT_CLASS_OBJECT_PATH VariantClass = C.G_VARIANT_CLASS_OBJECT_PATH //The GVariant is a D-Bus object path string.
	VARIANT_CLASS_SIGNATURE   VariantClass = C.G_VARIANT_CLASS_SIGNATURE   //The GVariant is a D-Bus signature string.
	VARIANT_CLASS_VARIANT     VariantClass = C.G_VARIANT_CLASS_VARIANT     //The GVariant is a variant.
	VARIANT_CLASS_MAYBE       VariantClass = C.G_VARIANT_CLASS_MAYBE       //The GVariant is a maybe-typed value.
	VARIANT_CLASS_ARRAY       VariantClass = C.G_VARIANT_CLASS_ARRAY       //The GVariant is an array.
	VARIANT_CLASS_TUPLE       VariantClass = C.G_VARIANT_CLASS_TUPLE       //The GVariant is a tuple.
	VARIANT_CLASS_DICT_ENTRY  VariantClass = C.G_VARIANT_CLASS_DICT_ENTRY  //The GVariant is a dictionary entry.
)

type VariantDict

type VariantDict struct {
	// contains filtered or unexported fields
}

VariantDict is a representation of GLib's VariantDict.

func (*VariantDict) Native

func (v *VariantDict) Native() uintptr

Native returns a pointer to the underlying GVariantDict.

type VariantIter

type VariantIter struct {
	// contains filtered or unexported fields
}

VariantIter is a representation of GLib's GVariantIter.

func (*VariantIter) Native

func (v *VariantIter) Native() uintptr

Native returns a pointer to the underlying GVariantIter.

type VariantType

type VariantType struct {
	// contains filtered or unexported fields
}

A VariantType is a wrapper for the GVariantType, which encodes type information for GVariants.

func (*VariantType) String

func (v *VariantType) String() string

String returns a copy of this VariantType's type string.

Jump to

Keyboard shortcuts

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