gio

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2020 License: ISC Imports: 5 Imported by: 1

Documentation

Overview

package resource wraps operations over GResource

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GResourceEnumerateChildren

func GResourceEnumerateChildren(path string, flags ResourceLookupFlags) ([]string, error)

GResourceEnumerateChildren wraps g_resources_enumerate_children()

See: https://developer.gnome.org/gio/stable/GResource.html#g-resources-enumerate-children

func RegisterGResource

func RegisterGResource(res GResource)

Register wraps g_resources_register()

See: https://developer.gnome.org/gio/stable/GResource.html#g-resources-register

func UnregisterGResource

func UnregisterGResource(res GResource)

Unregister wraps g_resources_unregister()

See: https://developer.gnome.org/gio/stable/GResource.html#g-resources-unregister

Types

type File added in v0.5.0

type File struct {
	*glib.Object
}

File is a representation of GIO's GFile.

func FileNewForPath added in v0.5.0

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

FileNewForPath is a wrapper around g_file_new_for_path().

func (*File) Native added in v0.5.0

func (v *File) Native() uintptr

Native returns a pointer to the underlying GFile.

func (*File) NativePrivate added in v0.5.0

func (v *File) NativePrivate() *C.GFile

NativePrivate: to be used inside Gotk3 only.

type FileIcon added in v0.5.0

type FileIcon struct {
	*glib.Object
}

FileIcon is a representation of GIO's GFileIcon.

func (*FileIcon) Native added in v0.5.0

func (v *FileIcon) Native() uintptr

Native returns a pointer to the underlying GFileIcon.

func (*FileIcon) NativePrivate added in v0.5.0

func (v *FileIcon) NativePrivate() *C.GFileIcon

NativePrivate: to be used inside Gotk3 only.

type GResource

type GResource *C.GResource

GResource wraps native GResource object

See: https://developer.gnome.org/gio/stable/GResource.html

func LoadGResource

func LoadGResource(path string) (GResource, error)

LoadGResource is a wrapper around g_resource_load()

See: https://developer.gnome.org/gio/stable/GResource.html#g-resource-load

func NewGResourceFromData

func NewGResourceFromData(data []byte) (GResource, error)

NewGResourceFromData is a wrapper around g_resource_new_from_data()

See: https://developer.gnome.org/gio/stable/GResource.html#g-resource-new-from-data

type Icon added in v0.5.0

type Icon struct {
	*glib.Object
}

Icon is a representation of GIO's GIcon. Interface for icons

func FileIconNew added in v0.5.0

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

FileIconNew is a wrapper around g_file_icon_new().

func IconNewForString added in v0.5.0

func IconNewForString(str string) (*Icon, error)

IconNewForString is a wrapper around g_icon_new_for_string().

func (*Icon) Equal added in v0.5.0

func (v *Icon) Equal(icon *Icon) bool

Equal is a wrapper around g_icon_equal().

func (*Icon) Native added in v0.5.0

func (v *Icon) Native() uintptr

Native returns a pointer to the underlying GIcon.

func (*Icon) NativePrivate added in v0.5.0

func (v *Icon) NativePrivate() *C.GIcon

NativePrivate: to be used inside Gotk3 only.

func (*Icon) ToString added in v0.5.0

func (v *Icon) ToString() string

ToString is a wrapper around g_icon_to_string().

type ResourceLookupFlags

type ResourceLookupFlags int

ResourceLookupFlags is a representation of GTK's GResourceLookupFlags

const (
	G_RESOURCE_LOOKUP_FLAGS_NONE ResourceLookupFlags = C.G_RESOURCE_LOOKUP_FLAGS_NONE
)

Jump to

Keyboard shortcuts

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