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
File is a representation of GIO's GFile.
func FileNewForPath ¶ added in v0.5.0
FileNewForPath is a wrapper around g_file_new_for_path().
func (*File) NativePrivate ¶ added in v0.5.0
NativePrivate: to be used inside Gotk3 only.
type FileIcon ¶ added in v0.5.0
FileIcon is a representation of GIO's GFileIcon.
func (*FileIcon) NativePrivate ¶ added in v0.5.0
NativePrivate: to be used inside Gotk3 only.
type GResource ¶
GResource wraps native GResource object
See: https://developer.gnome.org/gio/stable/GResource.html
func LoadGResource ¶
LoadGResource is a wrapper around g_resource_load()
See: https://developer.gnome.org/gio/stable/GResource.html#g-resource-load
func NewGResourceFromData ¶
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
Icon is a representation of GIO's GIcon. Interface for icons
func FileIconNew ¶ added in v0.5.0
FileIconNew is a wrapper around g_file_icon_new().
func IconNewForString ¶ added in v0.5.0
IconNewForString is a wrapper around g_icon_new_for_string().
func (*Icon) NativePrivate ¶ added in v0.5.0
NativePrivate: to be used inside Gotk3 only.
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
)