gio

package
Version: v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2021 License: ISC Imports: 3 Imported by: 0

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