gio

package
v0.0.0-...-48574e3 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: BSD-3-Clause Imports: 3 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCancellable

func NewCancellable() *C.GCancellable

Types

type GFile

type GFile struct {
	GFile *C.GFile
}

----------------------------------------------------------------------- GFile -----------------------------------------------------------------------

func NewGFileForPath

func NewGFileForPath(filename string) *GFile

NewGFileForPath is g_file_new_for_path

func NewGFileForURI

func NewGFileForURI(uriFilename string) *GFile

NewGFileForURI is g_file_new_for_uri

func (*GFile) GetPath

func (f *GFile) GetPath() string

GetPath is `g_file_get_path`, return real, absolute, canonical path. It might contain symlinks.

func (*GFile) QueryInfo

func (f *GFile) QueryInfo(attributes string, flags GFileQueryInfoFlags) (*GFileInfo, error)

QueryInfo is g_file_query_info

type GFileInfo

type GFileInfo struct {
	GFileInfo *C.GFileInfo
}

----------------------------------------------------------------------- GFileInfo -----------------------------------------------------------------------

func (*GFileInfo) GetIcon

func (fi *GFileInfo) GetIcon() *GIcon

GetIcon is g_file_info_get_icon

func (*GFileInfo) GetSymbolicIcon

func (fi *GFileInfo) GetSymbolicIcon() *GIcon

GetSymbolicIcon is g_file_info_get_symbolic_icon

type GFileQueryInfoFlags

type GFileQueryInfoFlags C.GFileQueryInfoFlags
var (
	GFileQueryInfoNone             GFileQueryInfoFlags = C.G_FILE_QUERY_INFO_NONE
	GFileQueryInfoNoFollowSymlinks GFileQueryInfoFlags = C.G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS
)

type GIcon

type GIcon struct {
	GIcon *C.GIcon
}

----------------------------------------------------------------------- GIcon -----------------------------------------------------------------------

func (*GIcon) ToString

func (icon *GIcon) ToString() string

ToString is g_icon_to_string

type GInputStream

type GInputStream struct {
	GInputStream *C.GInputStream
}

func NewMemoryInputStreamFromBytes

func NewMemoryInputStreamFromBytes(buffer []byte) *GInputStream

Jump to

Keyboard shortcuts

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