glib

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ANALYZER_ANALYZING int32 = C.G_ANALYZER_ANALYZING
View Source
const ASCII_DTOSTR_BUF_SIZE int32 = C.G_ASCII_DTOSTR_BUF_SIZE
View Source
const BIG_ENDIAN int32 = C.G_BIG_ENDIAN
View Source
const CSET_A_2_Z string = C.G_CSET_A_2_Z
View Source
const CSET_DIGITS string = C.G_CSET_DIGITS
View Source
const CSET_a_2_z string = C.G_CSET_a_2_z
View Source
const DATALIST_FLAGS_MASK int32 = C.G_DATALIST_FLAGS_MASK
View Source
const DATE_BAD_DAY int32 = C.G_DATE_BAD_DAY
View Source
const DATE_BAD_JULIAN int32 = C.G_DATE_BAD_JULIAN
View Source
const DATE_BAD_YEAR int32 = C.G_DATE_BAD_YEAR
View Source
const DIR_SEPARATOR int32 = C.G_DIR_SEPARATOR
View Source
const DIR_SEPARATOR_S string = C.G_DIR_SEPARATOR_S
View Source
const E float64 = C.G_E
View Source
const GINT16_FORMAT string = C.G_GINT16_FORMAT
View Source
const GINT32_FORMAT string = C.G_GINT32_FORMAT
View Source
const GINT64_FORMAT string = C.G_GINT64_FORMAT
View Source
const GNUC_FUNCTION string = C.G_GNUC_FUNCTION
View Source
const GNUC_PRETTY_FUNCTION string = C.G_GNUC_PRETTY_FUNCTION
View Source
const GUINT16_FORMAT string = C.G_GUINT16_FORMAT
View Source
const GUINT32_FORMAT string = C.G_GUINT32_FORMAT
View Source
const GUINT64_FORMAT string = C.G_GUINT64_FORMAT
View Source
const HAVE_GINT64 int32 = C.G_HAVE_GINT64
View Source
const HAVE_GNUC_VARARGS int32 = C.G_HAVE_GNUC_VARARGS
View Source
const HAVE_GNUC_VISIBILITY int32 = C.G_HAVE_GNUC_VISIBILITY
View Source
const HAVE_GROWING_STACK int32 = C.G_HAVE_GROWING_STACK
View Source
const HAVE_ISO_VARARGS int32 = C.G_HAVE_ISO_VARARGS
View Source
const HOOK_FLAG_USER_SHIFT int32 = C.G_HOOK_FLAG_USER_SHIFT
View Source
const IEEE754_DOUBLE_BIAS int32 = C.G_IEEE754_DOUBLE_BIAS
View Source
const IEEE754_FLOAT_BIAS int32 = C.G_IEEE754_FLOAT_BIAS
View Source
const KEY_FILE_DESKTOP_KEY_FULLNAME string = C.G_KEY_FILE_DESKTOP_KEY_FULLNAME
View Source
const KEY_FILE_DESKTOP_KEY_GETTEXT_DOMAIN string = C.G_KEY_FILE_DESKTOP_KEY_GETTEXT_DOMAIN
View Source
const KEY_FILE_DESKTOP_KEY_KEYWORDS string = C.G_KEY_FILE_DESKTOP_KEY_KEYWORDS
View Source
const LITTLE_ENDIAN int32 = C.G_LITTLE_ENDIAN
View Source
const LN10 float64 = C.G_LN10
View Source
const LN2 float64 = C.G_LN2
View Source
const LOG_2_BASE_10 float64 = C.G_LOG_2_BASE_10
View Source
const LOG_FATAL_MASK int32 = C.G_LOG_FATAL_MASK
View Source
const LOG_LEVEL_USER_SHIFT int32 = C.G_LOG_LEVEL_USER_SHIFT
View Source
const MAJOR_VERSION int32 = C.GLIB_MAJOR_VERSION
View Source
const MAXINT64 int64 = C.G_MAXINT64
View Source
const MAXUINT64 uint64 = C.G_MAXUINT64
View Source
const MICRO_VERSION int32 = C.GLIB_MICRO_VERSION
View Source
const MININT64 int64 = C.G_MININT64
View Source
const MINOR_VERSION int32 = C.GLIB_MINOR_VERSION
View Source
const MODULE_SUFFIX string = C.G_MODULE_SUFFIX
View Source
const PDP_ENDIAN int32 = C.G_PDP_ENDIAN
View Source
const PI float64 = C.G_PI
View Source
const PI_2 float64 = C.G_PI_2
View Source
const PI_4 float64 = C.G_PI_4
View Source
const POLLFD_FORMAT string = C.G_POLLFD_FORMAT
View Source
const PRIORITY_DEFAULT int32 = C.G_PRIORITY_DEFAULT
View Source
const PRIORITY_DEFAULT_IDLE int32 = C.G_PRIORITY_DEFAULT_IDLE
View Source
const PRIORITY_HIGH int32 = C.G_PRIORITY_HIGH
View Source
const PRIORITY_HIGH_IDLE int32 = C.G_PRIORITY_HIGH_IDLE
View Source
const PRIORITY_LOW int32 = C.G_PRIORITY_LOW
View Source
const SEARCHPATH_SEPARATOR int32 = C.G_SEARCHPATH_SEPARATOR
View Source
const SEARCHPATH_SEPARATOR_S string = C.G_SEARCHPATH_SEPARATOR_S
View Source
const SIZEOF_LONG int32 = C.GLIB_SIZEOF_LONG
View Source
const SIZEOF_SIZE_T int32 = C.GLIB_SIZEOF_SIZE_T
View Source
const SIZEOF_SSIZE_T int32 = C.GLIB_SIZEOF_SSIZE_T
View Source
const SIZEOF_VOID_P int32 = C.GLIB_SIZEOF_VOID_P
View Source
const SQRT2 float64 = C.G_SQRT2
View Source
const STR_DELIMITERS string = C.G_STR_DELIMITERS
View Source
const SYSDEF_AF_INET int32 = C.GLIB_SYSDEF_AF_INET
View Source
const SYSDEF_AF_INET6 int32 = C.GLIB_SYSDEF_AF_INET6
View Source
const SYSDEF_AF_UNIX int32 = C.GLIB_SYSDEF_AF_UNIX
View Source
const SYSDEF_MSG_DONTROUTE int32 = C.GLIB_SYSDEF_MSG_DONTROUTE
View Source
const SYSDEF_MSG_OOB int32 = C.GLIB_SYSDEF_MSG_OOB
View Source
const SYSDEF_MSG_PEEK int32 = C.GLIB_SYSDEF_MSG_PEEK
View Source
const URI_RESERVED_CHARS_GENERIC_DELIMITERS string = C.G_URI_RESERVED_CHARS_GENERIC_DELIMITERS
View Source
const URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS string = C.G_URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS
View Source
const USEC_PER_SEC int32 = C.G_USEC_PER_SEC
View Source
const VA_COPY_AS_ARRAY int32 = C.G_VA_COPY_AS_ARRAY

Variables

This section is empty.

Functions

func AsciiDigitValue

func AsciiDigitValue(c rune) int32

AsciiDigitValue is a wrapper around the C function g_ascii_digit_value.

func AsciiDtostr

func AsciiDtostr(buffer string, bufLen int32, d float64) string

AsciiDtostr is a wrapper around the C function g_ascii_dtostr.

func AsciiFormatd

func AsciiFormatd(buffer string, bufLen int32, format string, d float64) string

AsciiFormatd is a wrapper around the C function g_ascii_formatd.

func AsciiStrcasecmp

func AsciiStrcasecmp(s1 string, s2 string) int32

AsciiStrcasecmp is a wrapper around the C function g_ascii_strcasecmp.

func AsciiStrdown

func AsciiStrdown(str string, len int64) string

AsciiStrdown is a wrapper around the C function g_ascii_strdown.

func AsciiStrncasecmp

func AsciiStrncasecmp(s1 string, s2 string, n uint64) int32

AsciiStrncasecmp is a wrapper around the C function g_ascii_strncasecmp.

func AsciiStrtod

func AsciiStrtod(nptr string) (float64, string)

AsciiStrtod is a wrapper around the C function g_ascii_strtod.

func AsciiStrup

func AsciiStrup(str string, len int64) string

AsciiStrup is a wrapper around the C function g_ascii_strup.

func AsciiTolower

func AsciiTolower(c rune) rune

AsciiTolower is a wrapper around the C function g_ascii_tolower.

func AsciiToupper

func AsciiToupper(c rune) rune

AsciiToupper is a wrapper around the C function g_ascii_toupper.

func AsciiXdigitValue

func AsciiXdigitValue(c rune) int32

AsciiXdigitValue is a wrapper around the C function g_ascii_xdigit_value.

func AssertWarning

func AssertWarning(logDomain string, file string, line int32, prettyFunction string, expression string)

AssertWarning is a wrapper around the C function g_assert_warning.

func AssertionMessage

func AssertionMessage(domain string, file string, line int32, func_ string, message string)

AssertionMessage is a wrapper around the C function g_assertion_message.

func AssertionMessageCmpstr

func AssertionMessageCmpstr(domain string, file string, line int32, func_ string, expr string, arg1 string, cmp string, arg2 string)

AssertionMessageCmpstr is a wrapper around the C function g_assertion_message_cmpstr.

func AssertionMessageError

func AssertionMessageError(domain string, file string, line int32, func_ string, expr string, error *Error, errorDomain Quark, errorCode int32)

AssertionMessageError is a wrapper around the C function g_assertion_message_error.

func AssertionMessageExpr

func AssertionMessageExpr(domain string, file string, line int32, func_ string, expr string)

AssertionMessageExpr is a wrapper around the C function g_assertion_message_expr.

func Basename

func Basename(fileName string) string

Basename is a wrapper around the C function g_basename.

func BitNthLsf

func BitNthLsf(mask uint64, nthBit int32) int32

BitNthLsf is a wrapper around the C function g_bit_nth_lsf.

func BitNthMsf

func BitNthMsf(mask uint64, nthBit int32) int32

BitNthMsf is a wrapper around the C function g_bit_nth_msf.

func BitStorage

func BitStorage(number uint64) uint32

BitStorage is a wrapper around the C function g_bit_storage.

func ClearError

func ClearError() error

ClearError is a wrapper around the C function g_clear_error.

func DatalistClear

func DatalistClear(datalist *Data)

DatalistClear is a wrapper around the C function g_datalist_clear.

func DatalistGetData

func DatalistGetData(datalist *Data, key string) uintptr

DatalistGetData is a wrapper around the C function g_datalist_get_data.

func DatalistIdGetData

func DatalistIdGetData(datalist *Data, keyId Quark) uintptr

DatalistIdGetData is a wrapper around the C function g_datalist_id_get_data.

func DatalistIdRemoveNoNotify

func DatalistIdRemoveNoNotify(datalist *Data, keyId Quark) uintptr

DatalistIdRemoveNoNotify is a wrapper around the C function g_datalist_id_remove_no_notify.

func DatalistInit

func DatalistInit(datalist *Data)

DatalistInit is a wrapper around the C function g_datalist_init.

func DatasetDestroy

func DatasetDestroy(datasetLocation uintptr)

DatasetDestroy is a wrapper around the C function g_dataset_destroy.

func DatasetIdGetData

func DatasetIdGetData(datasetLocation uintptr, keyId Quark) uintptr

DatasetIdGetData is a wrapper around the C function g_dataset_id_get_data.

func DatasetIdRemoveNoNotify

func DatasetIdRemoveNoNotify(datasetLocation uintptr, keyId Quark) uintptr

DatasetIdRemoveNoNotify is a wrapper around the C function g_dataset_id_remove_no_notify.

func DateGetDaysInMonth

func DateGetDaysInMonth(month DateMonth, year DateYear) uint8

DateGetDaysInMonth is a wrapper around the C function g_date_get_days_in_month.

func DateGetMondayWeeksInYear

func DateGetMondayWeeksInYear(year DateYear) uint8

DateGetMondayWeeksInYear is a wrapper around the C function g_date_get_monday_weeks_in_year.

func DateGetSundayWeeksInYear

func DateGetSundayWeeksInYear(year DateYear) uint8

DateGetSundayWeeksInYear is a wrapper around the C function g_date_get_sunday_weeks_in_year.

func DateIsLeapYear

func DateIsLeapYear(year DateYear) bool

DateIsLeapYear is a wrapper around the C function g_date_is_leap_year.

func DateStrftime

func DateStrftime(s string, slen uint64, format string, date *Date) uint64

DateStrftime is a wrapper around the C function g_date_strftime.

func DateValidDay

func DateValidDay(day DateDay) bool

DateValidDay is a wrapper around the C function g_date_valid_day.

func DateValidDmy

func DateValidDmy(day DateDay, month DateMonth, year DateYear) bool

DateValidDmy is a wrapper around the C function g_date_valid_dmy.

func DateValidJulian

func DateValidJulian(julianDate uint32) bool

DateValidJulian is a wrapper around the C function g_date_valid_julian.

func DateValidMonth

func DateValidMonth(month DateMonth) bool

DateValidMonth is a wrapper around the C function g_date_valid_month.

func DateValidWeekday

func DateValidWeekday(weekday DateWeekday) bool

DateValidWeekday is a wrapper around the C function g_date_valid_weekday.

func DateValidYear

func DateValidYear(year DateYear) bool

DateValidYear is a wrapper around the C function g_date_valid_year.

func DirectEqual

func DirectEqual(v1 uintptr, v2 uintptr) bool

DirectEqual is a wrapper around the C function g_direct_equal.

func DirectHash

func DirectHash(v uintptr) uint32

DirectHash is a wrapper around the C function g_direct_hash.

func FileOpenTmp

func FileOpenTmp(tmpl string) (int32, string, error)

FileOpenTmp is a wrapper around the C function g_file_open_tmp.

func FileTest

func FileTest(filename string, test GFileTest) bool

FileTest is a wrapper around the C function g_file_test.

func FilenameFromUri

func FilenameFromUri(uri string) (string, string, error)

FilenameFromUri is a wrapper around the C function g_filename_from_uri.

func FilenameFromUtf8

func FilenameFromUtf8(utf8string string, len int64) (string, uint64, uint64, error)

FilenameFromUtf8 is a wrapper around the C function g_filename_from_utf8.

func FilenameToUri

func FilenameToUri(filename string, hostname string) (string, error)

FilenameToUri is a wrapper around the C function g_filename_to_uri.

func FilenameToUtf8

func FilenameToUtf8(opsysstring string, len int64) (string, uint64, uint64, error)

FilenameToUtf8 is a wrapper around the C function g_filename_to_utf8.

func FindProgramInPath

func FindProgramInPath(program string) string

FindProgramInPath is a wrapper around the C function g_find_program_in_path.

func Free

func Free(mem uintptr)

Free is a wrapper around the C function g_free.

func GetCharset

func GetCharset() (bool, string)

GetCharset is a wrapper around the C function g_get_charset.

func GetCodeset

func GetCodeset() string

GetCodeset is a wrapper around the C function g_get_codeset.

func GetCurrentDir

func GetCurrentDir() string

GetCurrentDir is a wrapper around the C function g_get_current_dir.

func GetCurrentTime

func GetCurrentTime(result *TimeVal)

GetCurrentTime is a wrapper around the C function g_get_current_time.

func GetHomeDir

func GetHomeDir() string

GetHomeDir is a wrapper around the C function g_get_home_dir.

func GetPrgname

func GetPrgname() string

GetPrgname is a wrapper around the C function g_get_prgname.

func GetRealName

func GetRealName() string

GetRealName is a wrapper around the C function g_get_real_name.

func GetTmpDir

func GetTmpDir() string

GetTmpDir is a wrapper around the C function g_get_tmp_dir.

func GetUserName

func GetUserName() string

GetUserName is a wrapper around the C function g_get_user_name.

func Getenv

func Getenv(variable string) string

Getenv is a wrapper around the C function g_getenv.

func HashTableDestroy

func HashTableDestroy(hashTable *HashTable)

HashTableDestroy is a wrapper around the C function g_hash_table_destroy.

func HashTableInsert

func HashTableInsert(hashTable *HashTable, key uintptr, value uintptr) bool

g_hash_table_foreach : unsupported parameter func : no type generator for HFunc (GHFunc) for param func g_hash_table_foreach_remove : unsupported parameter func : no type generator for HRFunc (GHRFunc) for param func g_hash_table_foreach_steal : unsupported parameter func : no type generator for HRFunc (GHRFunc) for param func HashTableInsert is a wrapper around the C function g_hash_table_insert.

func HashTableLookup

func HashTableLookup(hashTable *HashTable, key uintptr) uintptr

HashTableLookup is a wrapper around the C function g_hash_table_lookup.

func HashTableLookupExtended

func HashTableLookupExtended(hashTable *HashTable, lookupKey uintptr) (bool, uintptr, uintptr)

HashTableLookupExtended is a wrapper around the C function g_hash_table_lookup_extended.

func HashTableRemove

func HashTableRemove(hashTable *HashTable, key uintptr) bool

g_hash_table_new : unsupported parameter hash_func : no type generator for HashFunc (GHashFunc) for param hash_func g_hash_table_new_full : unsupported parameter hash_func : no type generator for HashFunc (GHashFunc) for param hash_func HashTableRemove is a wrapper around the C function g_hash_table_remove.

func HashTableReplace

func HashTableReplace(hashTable *HashTable, key uintptr, value uintptr) bool

HashTableReplace is a wrapper around the C function g_hash_table_replace.

func HashTableSize

func HashTableSize(hashTable *HashTable) uint32

HashTableSize is a wrapper around the C function g_hash_table_size.

func HashTableSteal

func HashTableSteal(hashTable *HashTable, key uintptr) bool

HashTableSteal is a wrapper around the C function g_hash_table_steal.

func HookDestroy

func HookDestroy(hookList *HookList, hookId uint64) bool

HookDestroy is a wrapper around the C function g_hook_destroy.

func HookDestroyLink(hookList *HookList, hook *Hook)

HookDestroyLink is a wrapper around the C function g_hook_destroy_link.

func HookFree

func HookFree(hookList *HookList, hook *Hook)

HookFree is a wrapper around the C function g_hook_free.

func HookInsertBefore

func HookInsertBefore(hookList *HookList, sibling *Hook, hook *Hook)

HookInsertBefore is a wrapper around the C function g_hook_insert_before.

func HookPrepend

func HookPrepend(hookList *HookList, hook *Hook)

HookPrepend is a wrapper around the C function g_hook_prepend.

func HookUnref

func HookUnref(hookList *HookList, hook *Hook)

HookUnref is a wrapper around the C function g_hook_unref.

func IdleAdd

func IdleAdd(callback IdleAddCallback)

IdleAdd adds a function to be called whenever there are no higher priority events pending to the default main loop. If the function returns false it is automatically removed from the list of event sources and will not be called again.

func IdleAddOnce added in v0.0.6

func IdleAddOnce(callback IdleAddOnceCallback)

IdleAddOnce adds a function to be called whenever there are no higher priority events pending to the default main loop.

It is a convenience function that works the same way as IdleAdd, other than the callback has no return value, and it will be removed from the list event sources after one invocation. That is, the callback will only be called once.

func IdleRemoveByData

func IdleRemoveByData(data uintptr) bool

IdleRemoveByData is a wrapper around the C function g_idle_remove_by_data.

func IntEqual

func IntEqual(v1 uintptr, v2 uintptr) bool

IntEqual is a wrapper around the C function g_int_equal.

func IntHash

func IntHash(v uintptr) uint32

IntHash is a wrapper around the C function g_int_hash.

func ListFree added in v0.0.3

func ListFree(list *List)

g_list_foreach : unsupported parameter func : no type generator for Func (GFunc) for param func ListFree is a wrapper around the C function g_list_free.

func ListFree1 added in v0.0.3

func ListFree1(list *List)

ListFree1 is a wrapper around the C function g_list_free_1.

func ListIndex added in v0.0.3

func ListIndex(list *List, data uintptr) int32

ListIndex is a wrapper around the C function g_list_index.

func ListLength added in v0.0.3

func ListLength(list *List) uint32

ListLength is a wrapper around the C function g_list_length.

func ListNthData added in v0.0.3

func ListNthData(list *List, n uint32) uintptr

ListNthData is a wrapper around the C function g_list_nth_data.

func ListPosition added in v0.0.3

func ListPosition(list *List, llink *List) int32

ListPosition is a wrapper around the C function g_list_position.

func LocaleToUtf8

func LocaleToUtf8(opsysstring []uint8) (string, uint64, uint64, error)

LocaleToUtf8 is a wrapper around the C function g_locale_to_utf8.

func Log added in v0.0.5

func Log(logDomain string, logLevel LogLevelFlags, format string, args ...interface{})

Log is a wrapper around the C function g_log.

func LogDefaultHandler

func LogDefaultHandler(logDomain string, logLevel LogLevelFlags, message string, unusedData uintptr)

LogDefaultHandler is a wrapper around the C function g_log_default_handler.

func LogRemoveHandler

func LogRemoveHandler(logDomain string, handlerId uint32)

LogRemoveHandler is a wrapper around the C function g_log_remove_handler.

func MainDepth

func MainDepth() int32

MainDepth is a wrapper around the C function g_main_depth.

func Malloc

func Malloc(nBytes uint64) uintptr

Malloc is a wrapper around the C function g_malloc.

func Malloc0

func Malloc0(nBytes uint64) uintptr

Malloc0 is a wrapper around the C function g_malloc0.

func MarkupEscapeText

func MarkupEscapeText(text string) string

MarkupEscapeText is a wrapper around the C function g_markup_escape_text.

func MemIsSystemMalloc

func MemIsSystemMalloc() bool

MemIsSystemMalloc is a wrapper around the C function g_mem_is_system_malloc.

func MemProfile

func MemProfile()

MemProfile is a wrapper around the C function g_mem_profile.

func MemSetVtable

func MemSetVtable(vtable *MemVTable)

MemSetVtable is a wrapper around the C function g_mem_set_vtable.

func Memdup

func Memdup(mem uintptr, byteSize uint32) uintptr

Memdup is a wrapper around the C function g_memdup.

func Mkstemp

func Mkstemp(tmpl string) int32

Mkstemp is a wrapper around the C function g_mkstemp.

func NullifyPointer

func NullifyPointer(nullifyLocation uintptr)

NullifyPointer is a wrapper around the C function g_nullify_pointer.

func OnErrorQuery

func OnErrorQuery(prgName string)

OnErrorQuery is a wrapper around the C function g_on_error_query.

func OnErrorStackTrace

func OnErrorStackTrace(prgName string)

OnErrorStackTrace is a wrapper around the C function g_on_error_stack_trace.

func PathGetBasename

func PathGetBasename(fileName string) string

PathGetBasename is a wrapper around the C function g_path_get_basename.

func PathGetDirname

func PathGetDirname(fileName string) string

PathGetDirname is a wrapper around the C function g_path_get_dirname.

func PathIsAbsolute

func PathIsAbsolute(fileName string) bool

PathIsAbsolute is a wrapper around the C function g_path_is_absolute.

func PathSkipRoot

func PathSkipRoot(fileName string) string

PathSkipRoot is a wrapper around the C function g_path_skip_root.

func PatternMatch

func PatternMatch(pspec *PatternSpec, stringLength uint32, string_ string, stringReversed string) bool

PatternMatch is a wrapper around the C function g_pattern_match.

func PatternMatchSimple

func PatternMatchSimple(pattern string, string_ string) bool

PatternMatchSimple is a wrapper around the C function g_pattern_match_simple.

func PatternMatchString

func PatternMatchString(pspec *PatternSpec, string_ string) bool

PatternMatchString is a wrapper around the C function g_pattern_match_string.

func Print added in v0.0.5

func Print(format string, args ...interface{})

Print is a wrapper around the C function g_print.

func Printerr added in v0.0.5

func Printerr(format string, args ...interface{})

Printerr is a wrapper around the C function g_printerr.

func QuarkToString

func QuarkToString(quark Quark) string

QuarkToString is a wrapper around the C function g_quark_to_string.

func RandomDouble

func RandomDouble() float64

RandomDouble is a wrapper around the C function g_random_double.

func RandomDoubleRange

func RandomDoubleRange(begin float64, end float64) float64

RandomDoubleRange is a wrapper around the C function g_random_double_range.

func RandomInt

func RandomInt() uint32

RandomInt is a wrapper around the C function g_random_int.

func RandomIntRange

func RandomIntRange(begin int32, end int32) int32

RandomIntRange is a wrapper around the C function g_random_int_range.

func RandomSetSeed

func RandomSetSeed(seed uint32)

RandomSetSeed is a wrapper around the C function g_random_set_seed.

func Realloc

func Realloc(mem uintptr, nBytes uint64) uintptr

Realloc is a wrapper around the C function g_realloc.

func ReturnIfFailWarning

func ReturnIfFailWarning(logDomain string, prettyFunction string, expression string)

ReturnIfFailWarning is a wrapper around the C function g_return_if_fail_warning.

func SListFree added in v0.0.3

func SListFree(list *SList)

g_slist_find_custom : unsupported parameter func : no type generator for CompareFunc (GCompareFunc) for param func g_slist_foreach : unsupported parameter func : no type generator for Func (GFunc) for param func SListFree is a wrapper around the C function g_slist_free.

func SListFree1 added in v0.0.3

func SListFree1(list *SList)

SListFree1 is a wrapper around the C function g_slist_free_1.

func SListIndex added in v0.0.3

func SListIndex(list *SList, data uintptr) int32

SListIndex is a wrapper around the C function g_slist_index.

func SListLength added in v0.0.3

func SListLength(list *SList) uint32

SListLength is a wrapper around the C function g_slist_length.

func SListNthData added in v0.0.3

func SListNthData(list *SList, n uint32) uintptr

SListNthData is a wrapper around the C function g_slist_nth_data.

func SListPosition added in v0.0.3

func SListPosition(list *SList, llink *SList) int32

SListPosition is a wrapper around the C function g_slist_position.

func SetPrgname

func SetPrgname(prgname string)

SetPrgname is a wrapper around the C function g_set_prgname.

func ShellQuote

func ShellQuote(unquotedString string) string

ShellQuote is a wrapper around the C function g_shell_quote.

func ShellUnquote

func ShellUnquote(quotedString string) (string, error)

ShellUnquote is a wrapper around the C function g_shell_unquote.

func SliceGetConfig

func SliceGetConfig(ckey SliceConfig) int64

SliceGetConfig is a wrapper around the C function g_slice_get_config.

func SliceSetConfig

func SliceSetConfig(ckey SliceConfig, value int64)

SliceSetConfig is a wrapper around the C function g_slice_set_config.

func Snprintf added in v0.0.5

func Snprintf(string_ string, n uint64, format string, args ...interface{}) int32

Snprintf is a wrapper around the C function g_snprintf.

func SourceRemove

func SourceRemove(tag uint32) bool

SourceRemove is a wrapper around the C function g_source_remove.

func SourceRemoveByFuncsUserData

func SourceRemoveByFuncsUserData(funcs *SourceFuncs, userData uintptr) bool

SourceRemoveByFuncsUserData is a wrapper around the C function g_source_remove_by_funcs_user_data.

func SourceRemoveByUserData

func SourceRemoveByUserData(userData uintptr) bool

SourceRemoveByUserData is a wrapper around the C function g_source_remove_by_user_data.

func SpacedPrimesClosest

func SpacedPrimesClosest(num uint32) uint32

SpacedPrimesClosest is a wrapper around the C function g_spaced_primes_closest.

func SpawnClosePid

func SpawnClosePid(pid Pid)

SpawnClosePid is a wrapper around the C function g_spawn_close_pid.

func SpawnCommandLineAsync

func SpawnCommandLineAsync(commandLine string) (bool, error)

SpawnCommandLineAsync is a wrapper around the C function g_spawn_command_line_async.

func Stpcpy

func Stpcpy(dest string, src string) string

Stpcpy is a wrapper around the C function g_stpcpy.

func StrEqual

func StrEqual(v1 uintptr, v2 uintptr) bool

StrEqual is a wrapper around the C function g_str_equal.

func StrHash

func StrHash(v uintptr) uint32

StrHash is a wrapper around the C function g_str_hash.

func Strcanon

func Strcanon(string_ string, validChars string, substitutor rune) string

Strcanon is a wrapper around the C function g_strcanon.

func Strcasecmp

func Strcasecmp(s1 string, s2 string) int32

Strcasecmp is a wrapper around the C function g_strcasecmp.

func Strchomp

func Strchomp(string_ string) string

Strchomp is a wrapper around the C function g_strchomp.

func Strchug

func Strchug(string_ string) string

Strchug is a wrapper around the C function g_strchug.

func Strcompress

func Strcompress(source string) string

Strcompress is a wrapper around the C function g_strcompress.

func Strdelimit

func Strdelimit(string_ string, delimiters string, newDelimiter rune) string

Strdelimit is a wrapper around the C function g_strdelimit.

func Strdown

func Strdown(string_ string) string

Strdown is a wrapper around the C function g_strdown.

func Strdup

func Strdup(str string) string

Strdup is a wrapper around the C function g_strdup.

func StrdupPrintf added in v0.0.5

func StrdupPrintf(format string, args ...interface{}) string

StrdupPrintf is a wrapper around the C function g_strdup_printf.

func Strerror

func Strerror(errnum int32) string

Strerror is a wrapper around the C function g_strerror.

func Strescape

func Strescape(source string, exceptions string) string

Strescape is a wrapper around the C function g_strescape.

func Strlcat

func Strlcat(dest string, src string, destSize uint64) uint64

Strlcat is a wrapper around the C function g_strlcat.

func Strlcpy

func Strlcpy(dest string, src string, destSize uint64) uint64

Strlcpy is a wrapper around the C function g_strlcpy.

func Strncasecmp

func Strncasecmp(s1 string, s2 string, n uint32) int32

Strncasecmp is a wrapper around the C function g_strncasecmp.

func Strndup

func Strndup(str string, n uint64) string

Strndup is a wrapper around the C function g_strndup.

func Strnfill

func Strnfill(length uint64, fillChar rune) string

Strnfill is a wrapper around the C function g_strnfill.

func Strreverse

func Strreverse(string_ string) string

Strreverse is a wrapper around the C function g_strreverse.

func Strrstr

func Strrstr(haystack string, needle string) string

Strrstr is a wrapper around the C function g_strrstr.

func StrrstrLen

func StrrstrLen(haystack string, haystackLen int64, needle string) string

StrrstrLen is a wrapper around the C function g_strrstr_len.

func Strsignal

func Strsignal(signum int32) string

Strsignal is a wrapper around the C function g_strsignal.

func Strsplit added in v0.0.6

func Strsplit(string_ string, delimiter string, maxTokens int32) []string

Strsplit is a wrapper around the C function g_strsplit.

func StrstrLen

func StrstrLen(haystack string, haystackLen int64, needle string) string

StrstrLen is a wrapper around the C function g_strstr_len.

func Strtod

func Strtod(nptr string) (float64, string)

Strtod is a wrapper around the C function g_strtod.

func Strup

func Strup(string_ string) string

Strup is a wrapper around the C function g_strup.

func TestAssertExpectedMessagesInternal

func TestAssertExpectedMessagesInternal(domain string, file string, line int32, func_ string)

TestAssertExpectedMessagesInternal is a wrapper around the C function g_test_assert_expected_messages_internal.

func TestLogTypeName

func TestLogTypeName(logType TestLogType) string

TestLogTypeName is a wrapper around the C function g_test_log_type_name.

func TestTrapAssertions

func TestTrapAssertions(domain string, file string, line int32, func_ string, assertionFlags uint64, pattern string)

TestTrapAssertions is a wrapper around the C function g_test_trap_assertions.

func ThreadExit

func ThreadExit(retval uintptr)

ThreadExit is a wrapper around the C function g_thread_exit.

func ThreadPoolGetMaxUnusedThreads

func ThreadPoolGetMaxUnusedThreads() int32

ThreadPoolGetMaxUnusedThreads is a wrapper around the C function g_thread_pool_get_max_unused_threads.

func ThreadPoolGetNumUnusedThreads

func ThreadPoolGetNumUnusedThreads() uint32

ThreadPoolGetNumUnusedThreads is a wrapper around the C function g_thread_pool_get_num_unused_threads.

func ThreadPoolSetMaxUnusedThreads

func ThreadPoolSetMaxUnusedThreads(maxThreads int32)

g_thread_pool_new : unsupported parameter func : no type generator for Func (GFunc) for param func ThreadPoolSetMaxUnusedThreads is a wrapper around the C function g_thread_pool_set_max_unused_threads.

func ThreadPoolStopUnusedThreads

func ThreadPoolStopUnusedThreads()

ThreadPoolStopUnusedThreads is a wrapper around the C function g_thread_pool_stop_unused_threads.

func ThreadYield

func ThreadYield()

ThreadYield is a wrapper around the C function g_thread_yield.

func TrashStackHeight

func TrashStackHeight(stackP *TrashStack) uint32

TrashStackHeight is a wrapper around the C function g_trash_stack_height.

func TrashStackPeek

func TrashStackPeek(stackP *TrashStack) uintptr

TrashStackPeek is a wrapper around the C function g_trash_stack_peek.

func TrashStackPop

func TrashStackPop(stackP *TrashStack) uintptr

TrashStackPop is a wrapper around the C function g_trash_stack_pop.

func TrashStackPush

func TrashStackPush(stackP *TrashStack, dataP uintptr)

TrashStackPush is a wrapper around the C function g_trash_stack_push.

func TryMalloc

func TryMalloc(nBytes uint64) uintptr

TryMalloc is a wrapper around the C function g_try_malloc.

func TryRealloc

func TryRealloc(mem uintptr, nBytes uint64) uintptr

TryRealloc is a wrapper around the C function g_try_realloc.

func Ucs4ToUtf8

func Ucs4ToUtf8(str rune, len int64) (string, int64, int64, error)

Ucs4ToUtf8 is a wrapper around the C function g_ucs4_to_utf8.

func UnicharDigitValue

func UnicharDigitValue(c rune) int32

UnicharDigitValue is a wrapper around the C function g_unichar_digit_value.

func UnicharIsalnum

func UnicharIsalnum(c rune) bool

UnicharIsalnum is a wrapper around the C function g_unichar_isalnum.

func UnicharIsalpha

func UnicharIsalpha(c rune) bool

UnicharIsalpha is a wrapper around the C function g_unichar_isalpha.

func UnicharIscntrl

func UnicharIscntrl(c rune) bool

UnicharIscntrl is a wrapper around the C function g_unichar_iscntrl.

func UnicharIsdefined

func UnicharIsdefined(c rune) bool

UnicharIsdefined is a wrapper around the C function g_unichar_isdefined.

func UnicharIsdigit

func UnicharIsdigit(c rune) bool

UnicharIsdigit is a wrapper around the C function g_unichar_isdigit.

func UnicharIsgraph

func UnicharIsgraph(c rune) bool

UnicharIsgraph is a wrapper around the C function g_unichar_isgraph.

func UnicharIslower

func UnicharIslower(c rune) bool

UnicharIslower is a wrapper around the C function g_unichar_islower.

func UnicharIsprint

func UnicharIsprint(c rune) bool

UnicharIsprint is a wrapper around the C function g_unichar_isprint.

func UnicharIspunct

func UnicharIspunct(c rune) bool

UnicharIspunct is a wrapper around the C function g_unichar_ispunct.

func UnicharIsspace

func UnicharIsspace(c rune) bool

UnicharIsspace is a wrapper around the C function g_unichar_isspace.

func UnicharIstitle

func UnicharIstitle(c rune) bool

UnicharIstitle is a wrapper around the C function g_unichar_istitle.

func UnicharIsupper

func UnicharIsupper(c rune) bool

UnicharIsupper is a wrapper around the C function g_unichar_isupper.

func UnicharIswide

func UnicharIswide(c rune) bool

UnicharIswide is a wrapper around the C function g_unichar_iswide.

func UnicharIsxdigit

func UnicharIsxdigit(c rune) bool

UnicharIsxdigit is a wrapper around the C function g_unichar_isxdigit.

func UnicharTolower

func UnicharTolower(c rune) rune

UnicharTolower is a wrapper around the C function g_unichar_tolower.

func UnicharTotitle

func UnicharTotitle(c rune) rune

UnicharTotitle is a wrapper around the C function g_unichar_totitle.

func UnicharToupper

func UnicharToupper(c rune) rune

UnicharToupper is a wrapper around the C function g_unichar_toupper.

func UnicharValidate

func UnicharValidate(ch rune) bool

UnicharValidate is a wrapper around the C function g_unichar_validate.

func UnicharXdigitValue

func UnicharXdigitValue(c rune) int32

UnicharXdigitValue is a wrapper around the C function g_unichar_xdigit_value.

func UnicodeCanonicalOrdering

func UnicodeCanonicalOrdering(string_ rune, len uint64)

UnicodeCanonicalOrdering is a wrapper around the C function g_unicode_canonical_ordering.

func Usleep

func Usleep(microseconds uint64)

Usleep is a wrapper around the C function g_usleep.

func Utf16ToUtf8 added in v0.0.7

func Utf16ToUtf8(str uint16, len int64) (string, int64, int64, error)

Utf16ToUtf8 is a wrapper around the C function g_utf16_to_utf8.

func Utf8Casefold

func Utf8Casefold(str string, len int64) string

Utf8Casefold is a wrapper around the C function g_utf8_casefold.

func Utf8Collate

func Utf8Collate(str1 string, str2 string) int32

Utf8Collate is a wrapper around the C function g_utf8_collate.

func Utf8CollateKey

func Utf8CollateKey(str string, len int64) string

Utf8CollateKey is a wrapper around the C function g_utf8_collate_key.

func Utf8FindNextChar

func Utf8FindNextChar(p string, end string) string

Utf8FindNextChar is a wrapper around the C function g_utf8_find_next_char.

func Utf8FindPrevChar

func Utf8FindPrevChar(str string, p string) string

Utf8FindPrevChar is a wrapper around the C function g_utf8_find_prev_char.

func Utf8GetChar

func Utf8GetChar(p string) rune

Utf8GetChar is a wrapper around the C function g_utf8_get_char.

func Utf8GetCharValidated

func Utf8GetCharValidated(p string, maxLen int64) rune

Utf8GetCharValidated is a wrapper around the C function g_utf8_get_char_validated.

func Utf8Normalize

func Utf8Normalize(str string, len int64, mode NormalizeMode) string

Utf8Normalize is a wrapper around the C function g_utf8_normalize.

func Utf8OffsetToPointer

func Utf8OffsetToPointer(str string, offset int64) string

Utf8OffsetToPointer is a wrapper around the C function g_utf8_offset_to_pointer.

func Utf8PointerToOffset

func Utf8PointerToOffset(str string, pos string) int64

Utf8PointerToOffset is a wrapper around the C function g_utf8_pointer_to_offset.

func Utf8PrevChar

func Utf8PrevChar(p string) string

Utf8PrevChar is a wrapper around the C function g_utf8_prev_char.

func Utf8Strchr

func Utf8Strchr(p string, len int64, c rune) string

Utf8Strchr is a wrapper around the C function g_utf8_strchr.

func Utf8Strdown

func Utf8Strdown(str string, len int64) string

Utf8Strdown is a wrapper around the C function g_utf8_strdown.

func Utf8Strlen

func Utf8Strlen(p string, max int64) int64

Utf8Strlen is a wrapper around the C function g_utf8_strlen.

func Utf8Strncpy

func Utf8Strncpy(dest string, src string, n uint64) string

Utf8Strncpy is a wrapper around the C function g_utf8_strncpy.

func Utf8Strrchr

func Utf8Strrchr(p string, len int64, c rune) string

Utf8Strrchr is a wrapper around the C function g_utf8_strrchr.

func Utf8Strup

func Utf8Strup(str string, len int64) string

Utf8Strup is a wrapper around the C function g_utf8_strup.

func Utf8Validate

func Utf8Validate(str []uint8) (bool, string)

Utf8Validate is a wrapper around the C function g_utf8_validate.

func VariantTypeStringIsValid

func VariantTypeStringIsValid(typeString string) bool

VariantTypeStringIsValid is a wrapper around the C function g_variant_type_string_is_valid.

func WarnMessage

func WarnMessage(domain string, file string, line int32, func_ string, warnexpr string)

WarnMessage is a wrapper around the C function g_warn_message.

Types

type AsciiType

type AsciiType C.GAsciiType
const (
	ASCII_ALNUM  AsciiType = 1
	ASCII_ALPHA  AsciiType = 2
	ASCII_CNTRL  AsciiType = 4
	ASCII_DIGIT  AsciiType = 8
	ASCII_GRAPH  AsciiType = 16
	ASCII_LOWER  AsciiType = 32
	ASCII_PRINT  AsciiType = 64
	ASCII_PUNCT  AsciiType = 128
	ASCII_SPACE  AsciiType = 256
	ASCII_UPPER  AsciiType = 512
	ASCII_XDIGIT AsciiType = 1024
)

type AsyncQueue

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

AsyncQueue is a wrapper around the C record GAsyncQueue.

func AsyncQueueNew added in v0.0.3

func AsyncQueueNew() *AsyncQueue

AsyncQueueNew is a wrapper around the C function g_async_queue_new.

func AsyncQueueNewFromC

func AsyncQueueNewFromC(u unsafe.Pointer) *AsyncQueue

func (*AsyncQueue) Equals added in v0.0.2

func (recv *AsyncQueue) Equals(other *AsyncQueue) bool

Equals compares this AsyncQueue with another AsyncQueue, and returns true if they represent the same GObject.

func (*AsyncQueue) Length

func (recv *AsyncQueue) Length() int32

Length is a wrapper around the C function g_async_queue_length.

func (*AsyncQueue) LengthUnlocked

func (recv *AsyncQueue) LengthUnlocked() int32

LengthUnlocked is a wrapper around the C function g_async_queue_length_unlocked.

func (*AsyncQueue) Lock

func (recv *AsyncQueue) Lock()

Lock is a wrapper around the C function g_async_queue_lock.

func (*AsyncQueue) Pop

func (recv *AsyncQueue) Pop() uintptr

Pop is a wrapper around the C function g_async_queue_pop.

func (*AsyncQueue) PopUnlocked

func (recv *AsyncQueue) PopUnlocked() uintptr

PopUnlocked is a wrapper around the C function g_async_queue_pop_unlocked.

func (*AsyncQueue) Push

func (recv *AsyncQueue) Push(data uintptr)

Push is a wrapper around the C function g_async_queue_push.

func (*AsyncQueue) PushUnlocked

func (recv *AsyncQueue) PushUnlocked(data uintptr)

PushUnlocked is a wrapper around the C function g_async_queue_push_unlocked.

func (*AsyncQueue) Ref

func (recv *AsyncQueue) Ref() *AsyncQueue

Ref is a wrapper around the C function g_async_queue_ref.

func (*AsyncQueue) RefUnlocked

func (recv *AsyncQueue) RefUnlocked()

RefUnlocked is a wrapper around the C function g_async_queue_ref_unlocked.

func (*AsyncQueue) TimedPop

func (recv *AsyncQueue) TimedPop(endTime *TimeVal) uintptr

TimedPop is a wrapper around the C function g_async_queue_timed_pop.

func (*AsyncQueue) TimedPopUnlocked

func (recv *AsyncQueue) TimedPopUnlocked(endTime *TimeVal) uintptr

TimedPopUnlocked is a wrapper around the C function g_async_queue_timed_pop_unlocked.

func (*AsyncQueue) TimeoutPop

func (recv *AsyncQueue) TimeoutPop(timeout uint64) uintptr

TimeoutPop is a wrapper around the C function g_async_queue_timeout_pop.

func (*AsyncQueue) TimeoutPopUnlocked

func (recv *AsyncQueue) TimeoutPopUnlocked(timeout uint64) uintptr

TimeoutPopUnlocked is a wrapper around the C function g_async_queue_timeout_pop_unlocked.

func (*AsyncQueue) ToC

func (recv *AsyncQueue) ToC() unsafe.Pointer

func (*AsyncQueue) TryPop

func (recv *AsyncQueue) TryPop() uintptr

TryPop is a wrapper around the C function g_async_queue_try_pop.

func (*AsyncQueue) TryPopUnlocked

func (recv *AsyncQueue) TryPopUnlocked() uintptr

TryPopUnlocked is a wrapper around the C function g_async_queue_try_pop_unlocked.

func (*AsyncQueue) Unlock

func (recv *AsyncQueue) Unlock()

Unlock is a wrapper around the C function g_async_queue_unlock.

func (*AsyncQueue) Unref

func (recv *AsyncQueue) Unref()

Unref is a wrapper around the C function g_async_queue_unref.

func (*AsyncQueue) UnrefAndUnlock

func (recv *AsyncQueue) UnrefAndUnlock()

UnrefAndUnlock is a wrapper around the C function g_async_queue_unref_and_unlock.

type BookmarkFile

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

BookmarkFile is a wrapper around the C record GBookmarkFile.

func BookmarkFileNewFromC

func BookmarkFileNewFromC(u unsafe.Pointer) *BookmarkFile

func (*BookmarkFile) Equals added in v0.0.2

func (recv *BookmarkFile) Equals(other *BookmarkFile) bool

Equals compares this BookmarkFile with another BookmarkFile, and returns true if they represent the same GObject.

func (*BookmarkFile) ToC

func (recv *BookmarkFile) ToC() unsafe.Pointer

type BookmarkFileError

type BookmarkFileError C.GBookmarkFileError
const (
	BOOKMARK_FILE_ERROR_INVALID_URI        BookmarkFileError = 0
	BOOKMARK_FILE_ERROR_INVALID_VALUE      BookmarkFileError = 1
	BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED BookmarkFileError = 2
	BOOKMARK_FILE_ERROR_URI_NOT_FOUND      BookmarkFileError = 3
	BOOKMARK_FILE_ERROR_READ               BookmarkFileError = 4
	BOOKMARK_FILE_ERROR_UNKNOWN_ENCODING   BookmarkFileError = 5
	BOOKMARK_FILE_ERROR_WRITE              BookmarkFileError = 6
	BOOKMARK_FILE_ERROR_FILE_NOT_FOUND     BookmarkFileError = 7
)

type Cond

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

Cond is a wrapper around the C record GCond.

func CondNewFromC

func CondNewFromC(u unsafe.Pointer) *Cond

func (*Cond) Broadcast

func (recv *Cond) Broadcast()

Broadcast is a wrapper around the C function g_cond_broadcast.

func (*Cond) Equals added in v0.0.2

func (recv *Cond) Equals(other *Cond) bool

Equals compares this Cond with another Cond, and returns true if they represent the same GObject.

func (*Cond) Signal

func (recv *Cond) Signal()

Signal is a wrapper around the C function g_cond_signal.

func (*Cond) ToC

func (recv *Cond) ToC() unsafe.Pointer

type ConvertError

type ConvertError C.GConvertError
const (
	CONVERT_ERROR_NO_CONVERSION     ConvertError = 0
	CONVERT_ERROR_ILLEGAL_SEQUENCE  ConvertError = 1
	CONVERT_ERROR_FAILED            ConvertError = 2
	CONVERT_ERROR_PARTIAL_INPUT     ConvertError = 3
	CONVERT_ERROR_BAD_URI           ConvertError = 4
	CONVERT_ERROR_NOT_ABSOLUTE_PATH ConvertError = 5
	CONVERT_ERROR_NO_MEMORY         ConvertError = 6
	CONVERT_ERROR_EMBEDDED_NUL      ConvertError = 7
)

type Data

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

Data is a wrapper around the C record GData.

func DataNewFromC

func DataNewFromC(u unsafe.Pointer) *Data

func (*Data) Equals added in v0.0.2

func (recv *Data) Equals(other *Data) bool

Equals compares this Data with another Data, and returns true if they represent the same GObject.

func (*Data) ToC

func (recv *Data) ToC() unsafe.Pointer

type Date

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

Date is a wrapper around the C record GDate.

func DateNew

func DateNew() *Date

DateNew is a wrapper around the C function g_date_new.

func DateNewDmy

func DateNewDmy(day DateDay, month DateMonth, year DateYear) *Date

DateNewDmy is a wrapper around the C function g_date_new_dmy.

func DateNewFromC

func DateNewFromC(u unsafe.Pointer) *Date

func DateNewJulian

func DateNewJulian(julianDay uint32) *Date

DateNewJulian is a wrapper around the C function g_date_new_julian.

func (*Date) AddDays

func (recv *Date) AddDays(nDays uint32)

AddDays is a wrapper around the C function g_date_add_days.

func (*Date) AddMonths

func (recv *Date) AddMonths(nMonths uint32)

AddMonths is a wrapper around the C function g_date_add_months.

func (*Date) AddYears

func (recv *Date) AddYears(nYears uint32)

AddYears is a wrapper around the C function g_date_add_years.

func (*Date) Clamp

func (recv *Date) Clamp(minDate *Date, maxDate *Date)

Clamp is a wrapper around the C function g_date_clamp.

func (*Date) Clear

func (recv *Date) Clear(nDates uint32)

Clear is a wrapper around the C function g_date_clear.

func (*Date) Compare

func (recv *Date) Compare(rhs *Date) int32

Compare is a wrapper around the C function g_date_compare.

func (*Date) DaysBetween

func (recv *Date) DaysBetween(date2 *Date) int32

DaysBetween is a wrapper around the C function g_date_days_between.

func (*Date) Equals added in v0.0.2

func (recv *Date) Equals(other *Date) bool

Equals compares this Date with another Date, and returns true if they represent the same GObject.

func (*Date) Free

func (recv *Date) Free()

Free is a wrapper around the C function g_date_free.

func (*Date) GetDay

func (recv *Date) GetDay() DateDay

GetDay is a wrapper around the C function g_date_get_day.

func (*Date) GetDayOfYear

func (recv *Date) GetDayOfYear() uint32

GetDayOfYear is a wrapper around the C function g_date_get_day_of_year.

func (*Date) GetJulian

func (recv *Date) GetJulian() uint32

GetJulian is a wrapper around the C function g_date_get_julian.

func (*Date) GetMondayWeekOfYear

func (recv *Date) GetMondayWeekOfYear() uint32

GetMondayWeekOfYear is a wrapper around the C function g_date_get_monday_week_of_year.

func (*Date) GetMonth

func (recv *Date) GetMonth() DateMonth

GetMonth is a wrapper around the C function g_date_get_month.

func (*Date) GetSundayWeekOfYear

func (recv *Date) GetSundayWeekOfYear() uint32

GetSundayWeekOfYear is a wrapper around the C function g_date_get_sunday_week_of_year.

func (*Date) GetWeekday

func (recv *Date) GetWeekday() DateWeekday

GetWeekday is a wrapper around the C function g_date_get_weekday.

func (*Date) GetYear

func (recv *Date) GetYear() DateYear

GetYear is a wrapper around the C function g_date_get_year.

func (*Date) IsFirstOfMonth

func (recv *Date) IsFirstOfMonth() bool

IsFirstOfMonth is a wrapper around the C function g_date_is_first_of_month.

func (*Date) IsLastOfMonth

func (recv *Date) IsLastOfMonth() bool

IsLastOfMonth is a wrapper around the C function g_date_is_last_of_month.

func (*Date) Order

func (recv *Date) Order(date2 *Date)

Order is a wrapper around the C function g_date_order.

func (*Date) SetDay

func (recv *Date) SetDay(day DateDay)

SetDay is a wrapper around the C function g_date_set_day.

func (*Date) SetDmy

func (recv *Date) SetDmy(day DateDay, month DateMonth, y DateYear)

SetDmy is a wrapper around the C function g_date_set_dmy.

func (*Date) SetJulian

func (recv *Date) SetJulian(julianDate uint32)

SetJulian is a wrapper around the C function g_date_set_julian.

func (*Date) SetMonth

func (recv *Date) SetMonth(month DateMonth)

SetMonth is a wrapper around the C function g_date_set_month.

func (*Date) SetParse

func (recv *Date) SetParse(str string)

SetParse is a wrapper around the C function g_date_set_parse.

func (*Date) SetTime

func (recv *Date) SetTime(time Time)

SetTime is a wrapper around the C function g_date_set_time.

func (*Date) SetYear

func (recv *Date) SetYear(year DateYear)

SetYear is a wrapper around the C function g_date_set_year.

func (*Date) SubtractDays

func (recv *Date) SubtractDays(nDays uint32)

SubtractDays is a wrapper around the C function g_date_subtract_days.

func (*Date) SubtractMonths

func (recv *Date) SubtractMonths(nMonths uint32)

SubtractMonths is a wrapper around the C function g_date_subtract_months.

func (*Date) SubtractYears

func (recv *Date) SubtractYears(nYears uint32)

SubtractYears is a wrapper around the C function g_date_subtract_years.

func (*Date) ToC

func (recv *Date) ToC() unsafe.Pointer

func (*Date) Valid

func (recv *Date) Valid() bool

Valid is a wrapper around the C function g_date_valid.

type DateDMY

type DateDMY C.GDateDMY
const (
	DATE_DAY   DateDMY = 0
	DATE_MONTH DateDMY = 1
	DATE_YEAR  DateDMY = 2
)

type DateDay

type DateDay uint8

DateDay is a representation of the C alias GDateDay.

type DateMonth

type DateMonth C.GDateMonth
const (
	DATE_BAD_MONTH DateMonth = 0
	DATE_JANUARY   DateMonth = 1
	DATE_FEBRUARY  DateMonth = 2
	DATE_MARCH     DateMonth = 3
	DATE_APRIL     DateMonth = 4
	DATE_MAY       DateMonth = 5
	DATE_JUNE      DateMonth = 6
	DATE_JULY      DateMonth = 7
	DATE_AUGUST    DateMonth = 8
	DATE_SEPTEMBER DateMonth = 9
	DATE_OCTOBER   DateMonth = 10
	DATE_NOVEMBER  DateMonth = 11
	DATE_DECEMBER  DateMonth = 12
)

type DateWeekday

type DateWeekday C.GDateWeekday
const (
	DATE_BAD_WEEKDAY DateWeekday = 0
	DATE_MONDAY      DateWeekday = 1
	DATE_TUESDAY     DateWeekday = 2
	DATE_WEDNESDAY   DateWeekday = 3
	DATE_THURSDAY    DateWeekday = 4
	DATE_FRIDAY      DateWeekday = 5
	DATE_SATURDAY    DateWeekday = 6
	DATE_SUNDAY      DateWeekday = 7
)

type DateYear

type DateYear uint16

DateYear is a representation of the C alias GDateYear.

type DebugKey

type DebugKey struct {
	Key   string
	Value uint32
	// contains filtered or unexported fields
}

DebugKey is a wrapper around the C record GDebugKey.

func DebugKeyNewFromC

func DebugKeyNewFromC(u unsafe.Pointer) *DebugKey

func (*DebugKey) Equals added in v0.0.2

func (recv *DebugKey) Equals(other *DebugKey) bool

Equals compares this DebugKey with another DebugKey, and returns true if they represent the same GObject.

func (*DebugKey) ToC

func (recv *DebugKey) ToC() unsafe.Pointer

type Dir

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

Dir is a wrapper around the C record GDir.

func DirNewFromC

func DirNewFromC(u unsafe.Pointer) *Dir

func DirOpen added in v0.0.3

func DirOpen(path string, flags uint32) (*Dir, error)

DirOpen is a wrapper around the C function g_dir_open.

func (*Dir) Close

func (recv *Dir) Close()

Close is a wrapper around the C function g_dir_close.

func (*Dir) Equals added in v0.0.2

func (recv *Dir) Equals(other *Dir) bool

Equals compares this Dir with another Dir, and returns true if they represent the same GObject.

func (*Dir) ReadName

func (recv *Dir) ReadName() string

ReadName is a wrapper around the C function g_dir_read_name.

func (*Dir) Rewind

func (recv *Dir) Rewind()

Rewind is a wrapper around the C function g_dir_rewind.

func (*Dir) ToC

func (recv *Dir) ToC() unsafe.Pointer

type Error

type Error struct {
	Domain  Quark
	Code    int32
	Message string
	// contains filtered or unexported fields
}

Error is a wrapper around the C record GError.

func ErrorNew added in v0.0.5

func ErrorNew(domain Quark, code int32, format string, args ...interface{}) *Error

ErrorNew is a wrapper around the C function g_error_new.

func ErrorNewFromC

func ErrorNewFromC(u unsafe.Pointer) *Error

func ErrorNewLiteral

func ErrorNewLiteral(domain Quark, code int32, message string) *Error

ErrorNewLiteral is a wrapper around the C function g_error_new_literal.

func PropagateError

func PropagateError(src *Error) *Error

PropagateError is a wrapper around the C function g_propagate_error.

func SetError added in v0.0.5

func SetError(domain Quark, code int32, format string, args ...interface{}) *Error

SetError is a wrapper around the C function g_set_error.

func (*Error) Copy

func (recv *Error) Copy() *Error

Copy is a wrapper around the C function g_error_copy.

func (*Error) Equals added in v0.0.2

func (recv *Error) Equals(other *Error) bool

Equals compares this Error with another Error, and returns true if they represent the same GObject.

func (*Error) Error

func (e *Error) Error() string

Error makes Error implement the error interface

func (*Error) Free

func (recv *Error) Free()

Free is a wrapper around the C function g_error_free.

func (*Error) Matches

func (recv *Error) Matches(domain Quark, code int32) bool

Matches is a wrapper around the C function g_error_matches.

func (*Error) ToC

func (recv *Error) ToC() unsafe.Pointer

type ErrorType

type ErrorType C.GErrorType
const (
	ERR_UNKNOWN              ErrorType = 0
	ERR_UNEXP_EOF            ErrorType = 1
	ERR_UNEXP_EOF_IN_STRING  ErrorType = 2
	ERR_UNEXP_EOF_IN_COMMENT ErrorType = 3
	ERR_NON_DIGIT_IN_CONST   ErrorType = 4
	ERR_DIGIT_RADIX          ErrorType = 5
	ERR_FLOAT_RADIX          ErrorType = 6
	ERR_FLOAT_MALFORMED      ErrorType = 7
)

type FileError

type FileError C.GFileError
const (
	FILE_ERROR_EXIST       FileError = 0
	FILE_ERROR_ISDIR       FileError = 1
	FILE_ERROR_ACCES       FileError = 2
	FILE_ERROR_NAMETOOLONG FileError = 3
	FILE_ERROR_NOENT       FileError = 4
	FILE_ERROR_NOTDIR      FileError = 5
	FILE_ERROR_NXIO        FileError = 6
	FILE_ERROR_NODEV       FileError = 7
	FILE_ERROR_ROFS        FileError = 8
	FILE_ERROR_TXTBSY      FileError = 9
	FILE_ERROR_FAULT       FileError = 10
	FILE_ERROR_LOOP        FileError = 11
	FILE_ERROR_NOSPC       FileError = 12
	FILE_ERROR_NOMEM       FileError = 13
	FILE_ERROR_MFILE       FileError = 14
	FILE_ERROR_NFILE       FileError = 15
	FILE_ERROR_BADF        FileError = 16
	FILE_ERROR_INVAL       FileError = 17
	FILE_ERROR_PIPE        FileError = 18
	FILE_ERROR_AGAIN       FileError = 19
	FILE_ERROR_INTR        FileError = 20
	FILE_ERROR_IO          FileError = 21
	FILE_ERROR_PERM        FileError = 22
	FILE_ERROR_NOSYS       FileError = 23
	FILE_ERROR_FAILED      FileError = 24
)

func FileErrorFromErrno

func FileErrorFromErrno(errNo int32) FileError

FileErrorFromErrno is a wrapper around the C function g_file_error_from_errno.

type FormatSizeFlags

type FormatSizeFlags C.GFormatSizeFlags
const (
	FORMAT_SIZE_DEFAULT     FormatSizeFlags = 0
	FORMAT_SIZE_LONG_FORMAT FormatSizeFlags = 1
	FORMAT_SIZE_IEC_UNITS   FormatSizeFlags = 2
	FORMAT_SIZE_BITS        FormatSizeFlags = 4
)

type GFileTest

type GFileTest C.GFileTest
const (
	FILE_TEST_IS_REGULAR    GFileTest = 1
	FILE_TEST_IS_SYMLINK    GFileTest = 2
	FILE_TEST_IS_DIR        GFileTest = 4
	FILE_TEST_IS_EXECUTABLE GFileTest = 8
	FILE_TEST_EXISTS        GFileTest = 16
)

type HashTable

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

HashTable is a wrapper around the C record GHashTable.

func HashTableNewFromC

func HashTableNewFromC(u unsafe.Pointer) *HashTable

func (*HashTable) Equals added in v0.0.2

func (recv *HashTable) Equals(other *HashTable) bool

Equals compares this HashTable with another HashTable, and returns true if they represent the same GObject.

func (*HashTable) ToC

func (recv *HashTable) ToC() unsafe.Pointer

type HashTableIter

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

HashTableIter is a wrapper around the C record GHashTableIter.

func HashTableIterNewFromC

func HashTableIterNewFromC(u unsafe.Pointer) *HashTableIter

func (*HashTableIter) Equals added in v0.0.2

func (recv *HashTableIter) Equals(other *HashTableIter) bool

Equals compares this HashTableIter with another HashTableIter, and returns true if they represent the same GObject.

func (*HashTableIter) ToC

func (recv *HashTableIter) ToC() unsafe.Pointer

type Hook

type Hook struct {
	Data uintptr
	// next : record
	// prev : record
	RefCount uint32
	HookId   uint64
	Flags    uint32
	Func     uintptr
	// contains filtered or unexported fields
}

Hook is a wrapper around the C record GHook.

func HookAlloc added in v0.0.3

func HookAlloc(hookList *HookList) *Hook

HookAlloc is a wrapper around the C function g_hook_alloc.

func HookFindData added in v0.0.3

func HookFindData(hookList *HookList, needValids bool, data uintptr) *Hook

g_hook_find : unsupported parameter func : no type generator for HookFindFunc (GHookFindFunc) for param func HookFindData is a wrapper around the C function g_hook_find_data.

func HookFindFunc added in v0.0.3

func HookFindFunc(hookList *HookList, needValids bool, func_ uintptr) *Hook

HookFindFunc is a wrapper around the C function g_hook_find_func.

func HookFindFuncData added in v0.0.3

func HookFindFuncData(hookList *HookList, needValids bool, func_ uintptr, data uintptr) *Hook

HookFindFuncData is a wrapper around the C function g_hook_find_func_data.

func HookFirstValid added in v0.0.3

func HookFirstValid(hookList *HookList, mayBeInCall bool) *Hook

HookFirstValid is a wrapper around the C function g_hook_first_valid.

func HookGet added in v0.0.3

func HookGet(hookList *HookList, hookId uint64) *Hook

HookGet is a wrapper around the C function g_hook_get.

func HookNewFromC

func HookNewFromC(u unsafe.Pointer) *Hook

func HookNextValid added in v0.0.3

func HookNextValid(hookList *HookList, hook *Hook, mayBeInCall bool) *Hook

g_hook_insert_sorted : unsupported parameter func : no type generator for HookCompareFunc (GHookCompareFunc) for param func HookNextValid is a wrapper around the C function g_hook_next_valid.

func HookRef added in v0.0.3

func HookRef(hookList *HookList, hook *Hook) *Hook

HookRef is a wrapper around the C function g_hook_ref.

func (*Hook) CompareIds

func (recv *Hook) CompareIds(sibling *Hook) int32

CompareIds is a wrapper around the C function g_hook_compare_ids.

func (*Hook) Equals added in v0.0.2

func (recv *Hook) Equals(other *Hook) bool

Equals compares this Hook with another Hook, and returns true if they represent the same GObject.

func (*Hook) ToC

func (recv *Hook) ToC() unsafe.Pointer

type HookFlagMask

type HookFlagMask C.GHookFlagMask
const (
	HOOK_FLAG_ACTIVE  HookFlagMask = 1
	HOOK_FLAG_IN_CALL HookFlagMask = 2
	HOOK_FLAG_MASK    HookFlagMask = 15
)

type HookList

type HookList struct {
	SeqId uint64
	// Bitfield not supported : 16 hook_size
	// Bitfield not supported :  1 is_setup
	// hooks : record
	Dummy3 uintptr
	// contains filtered or unexported fields
}

HookList is a wrapper around the C record GHookList.

func HookListNewFromC

func HookListNewFromC(u unsafe.Pointer) *HookList

func (*HookList) Clear

func (recv *HookList) Clear()

Clear is a wrapper around the C function g_hook_list_clear.

func (*HookList) Equals added in v0.0.2

func (recv *HookList) Equals(other *HookList) bool

Equals compares this HookList with another HookList, and returns true if they represent the same GObject.

func (*HookList) Init

func (recv *HookList) Init(hookSize uint32)

Init is a wrapper around the C function g_hook_list_init.

func (*HookList) Invoke

func (recv *HookList) Invoke(mayRecurse bool)

Invoke is a wrapper around the C function g_hook_list_invoke.

func (*HookList) InvokeCheck

func (recv *HookList) InvokeCheck(mayRecurse bool)

InvokeCheck is a wrapper around the C function g_hook_list_invoke_check.

func (*HookList) ToC

func (recv *HookList) ToC() unsafe.Pointer

type IOChannel added in v0.0.5

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

IOChannel is a wrapper around the C record GIOChannel.

func IOChannelNewFile added in v0.0.5

func IOChannelNewFile(filename string, mode string) (*IOChannel, error)

IOChannelNewFile is a wrapper around the C function g_io_channel_new_file.

func IOChannelNewFromC added in v0.0.5

func IOChannelNewFromC(u unsafe.Pointer) *IOChannel

func IOChannelUnixNew added in v0.0.5

func IOChannelUnixNew(fd int32) *IOChannel

IOChannelUnixNew is a wrapper around the C function g_io_channel_unix_new.

func (*IOChannel) Close added in v0.0.5

func (recv *IOChannel) Close()

Close is a wrapper around the C function g_io_channel_close.

func (*IOChannel) Equals added in v0.0.5

func (recv *IOChannel) Equals(other *IOChannel) bool

Equals compares this IOChannel with another IOChannel, and returns true if they represent the same GObject.

func (*IOChannel) Flush added in v0.0.5

func (recv *IOChannel) Flush() (IOStatus, error)

Flush is a wrapper around the C function g_io_channel_flush.

func (*IOChannel) GetBufferCondition added in v0.0.5

func (recv *IOChannel) GetBufferCondition() IOCondition

GetBufferCondition is a wrapper around the C function g_io_channel_get_buffer_condition.

func (*IOChannel) GetBufferSize added in v0.0.5

func (recv *IOChannel) GetBufferSize() uint64

GetBufferSize is a wrapper around the C function g_io_channel_get_buffer_size.

func (*IOChannel) GetBuffered added in v0.0.5

func (recv *IOChannel) GetBuffered() bool

GetBuffered is a wrapper around the C function g_io_channel_get_buffered.

func (*IOChannel) GetCloseOnUnref added in v0.0.5

func (recv *IOChannel) GetCloseOnUnref() bool

GetCloseOnUnref is a wrapper around the C function g_io_channel_get_close_on_unref.

func (*IOChannel) GetEncoding added in v0.0.5

func (recv *IOChannel) GetEncoding() string

GetEncoding is a wrapper around the C function g_io_channel_get_encoding.

func (*IOChannel) GetFlags added in v0.0.5

func (recv *IOChannel) GetFlags() IOFlags

GetFlags is a wrapper around the C function g_io_channel_get_flags.

func (*IOChannel) GetLineTerm added in v0.0.5

func (recv *IOChannel) GetLineTerm(length int32) string

GetLineTerm is a wrapper around the C function g_io_channel_get_line_term.

func (*IOChannel) Init added in v0.0.5

func (recv *IOChannel) Init()

Init is a wrapper around the C function g_io_channel_init.

func (*IOChannel) Read added in v0.0.5

func (recv *IOChannel) Read(buf string, count uint64, bytesRead uint64) IOError

Read is a wrapper around the C function g_io_channel_read.

func (*IOChannel) ReadLine added in v0.0.5

func (recv *IOChannel) ReadLine() (IOStatus, string, uint64, uint64, error)

ReadLine is a wrapper around the C function g_io_channel_read_line.

func (*IOChannel) ReadLineString added in v0.0.5

func (recv *IOChannel) ReadLineString(buffer *String, terminatorPos uint64) (IOStatus, error)

ReadLineString is a wrapper around the C function g_io_channel_read_line_string.

func (*IOChannel) ReadUnichar added in v0.0.5

func (recv *IOChannel) ReadUnichar() (IOStatus, rune, error)

ReadUnichar is a wrapper around the C function g_io_channel_read_unichar.

func (*IOChannel) Ref added in v0.0.5

func (recv *IOChannel) Ref() *IOChannel

Ref is a wrapper around the C function g_io_channel_ref.

func (*IOChannel) Seek added in v0.0.5

func (recv *IOChannel) Seek(offset int64, type_ SeekType) IOError

Seek is a wrapper around the C function g_io_channel_seek.

func (*IOChannel) SeekPosition added in v0.0.5

func (recv *IOChannel) SeekPosition(offset int64, type_ SeekType) (IOStatus, error)

SeekPosition is a wrapper around the C function g_io_channel_seek_position.

func (*IOChannel) SetBufferSize added in v0.0.5

func (recv *IOChannel) SetBufferSize(size uint64)

SetBufferSize is a wrapper around the C function g_io_channel_set_buffer_size.

func (*IOChannel) SetBuffered added in v0.0.5

func (recv *IOChannel) SetBuffered(buffered bool)

SetBuffered is a wrapper around the C function g_io_channel_set_buffered.

func (*IOChannel) SetCloseOnUnref added in v0.0.5

func (recv *IOChannel) SetCloseOnUnref(doClose bool)

SetCloseOnUnref is a wrapper around the C function g_io_channel_set_close_on_unref.

func (*IOChannel) SetEncoding added in v0.0.5

func (recv *IOChannel) SetEncoding(encoding string) (IOStatus, error)

SetEncoding is a wrapper around the C function g_io_channel_set_encoding.

func (*IOChannel) SetFlags added in v0.0.5

func (recv *IOChannel) SetFlags(flags IOFlags) (IOStatus, error)

SetFlags is a wrapper around the C function g_io_channel_set_flags.

func (*IOChannel) SetLineTerm added in v0.0.5

func (recv *IOChannel) SetLineTerm(lineTerm string, length int32)

SetLineTerm is a wrapper around the C function g_io_channel_set_line_term.

func (*IOChannel) Shutdown added in v0.0.5

func (recv *IOChannel) Shutdown(flush bool) (IOStatus, error)

Shutdown is a wrapper around the C function g_io_channel_shutdown.

func (*IOChannel) ToC added in v0.0.5

func (recv *IOChannel) ToC() unsafe.Pointer

func (*IOChannel) UnixGetFd added in v0.0.5

func (recv *IOChannel) UnixGetFd() int32

UnixGetFd is a wrapper around the C function g_io_channel_unix_get_fd.

func (*IOChannel) Unref added in v0.0.5

func (recv *IOChannel) Unref()

Unref is a wrapper around the C function g_io_channel_unref.

func (*IOChannel) Write added in v0.0.5

func (recv *IOChannel) Write(buf string, count uint64, bytesWritten uint64) IOError

Write is a wrapper around the C function g_io_channel_write.

func (*IOChannel) WriteChars added in v0.0.5

func (recv *IOChannel) WriteChars(buf []uint8, count int64) (IOStatus, uint64, error)

WriteChars is a wrapper around the C function g_io_channel_write_chars.

func (*IOChannel) WriteUnichar added in v0.0.5

func (recv *IOChannel) WriteUnichar(thechar rune) (IOStatus, error)

WriteUnichar is a wrapper around the C function g_io_channel_write_unichar.

type IOChannelError

type IOChannelError C.GIOChannelError
const (
	IO_CHANNEL_ERROR_FBIG     IOChannelError = 0
	IO_CHANNEL_ERROR_INVAL    IOChannelError = 1
	IO_CHANNEL_ERROR_IO       IOChannelError = 2
	IO_CHANNEL_ERROR_ISDIR    IOChannelError = 3
	IO_CHANNEL_ERROR_NOSPC    IOChannelError = 4
	IO_CHANNEL_ERROR_NXIO     IOChannelError = 5
	IO_CHANNEL_ERROR_OVERFLOW IOChannelError = 6
	IO_CHANNEL_ERROR_PIPE     IOChannelError = 7
	IO_CHANNEL_ERROR_FAILED   IOChannelError = 8
)

func IOChannelErrorFromErrno added in v0.0.5

func IOChannelErrorFromErrno(en int32) IOChannelError

IOChannelErrorFromErrno is a wrapper around the C function g_io_channel_error_from_errno.

type IOCondition

type IOCondition C.GIOCondition
const (
	IO_IN   IOCondition = 1
	IO_OUT  IOCondition = 4
	IO_PRI  IOCondition = 2
	IO_ERR  IOCondition = 8
	IO_HUP  IOCondition = 16
	IO_NVAL IOCondition = 32
)

type IOError

type IOError C.GIOError
const (
	IO_ERROR_NONE    IOError = 0
	IO_ERROR_AGAIN   IOError = 1
	IO_ERROR_INVAL   IOError = 2
	IO_ERROR_UNKNOWN IOError = 3
)

type IOFlags

type IOFlags C.GIOFlags
const (
	IO_FLAG_APPEND       IOFlags = 1
	IO_FLAG_NONBLOCK     IOFlags = 2
	IO_FLAG_IS_READABLE  IOFlags = 4
	IO_FLAG_IS_WRITABLE  IOFlags = 8
	IO_FLAG_IS_WRITEABLE IOFlags = 8
	IO_FLAG_IS_SEEKABLE  IOFlags = 16
	IO_FLAG_MASK         IOFlags = 31
	IO_FLAG_GET_MASK     IOFlags = 31
	IO_FLAG_SET_MASK     IOFlags = 3
)

type IOFuncs

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

IOFuncs is a wrapper around the C record GIOFuncs.

func IOFuncsNewFromC

func IOFuncsNewFromC(u unsafe.Pointer) *IOFuncs

func (*IOFuncs) Equals added in v0.0.2

func (recv *IOFuncs) Equals(other *IOFuncs) bool

Equals compares this IOFuncs with another IOFuncs, and returns true if they represent the same GObject.

func (*IOFuncs) ToC

func (recv *IOFuncs) ToC() unsafe.Pointer

type IOStatus

type IOStatus C.GIOStatus
const (
	IO_STATUS_ERROR  IOStatus = 0
	IO_STATUS_NORMAL IOStatus = 1
	IO_STATUS_EOF    IOStatus = 2
	IO_STATUS_AGAIN  IOStatus = 3
)

type IdleAddCallback

type IdleAddCallback func() bool

IdleAddCallback is a function that can be passed to IdleAdd, that will be called from glib's main event loop.

type IdleAddOnceCallback added in v0.0.6

type IdleAddOnceCallback func()

IdleAddOnceCallback is a function that can be passed to IdleAddOnce, that will be called once from glib's main event loop.

type KeyFile

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

KeyFile is a wrapper around the C record GKeyFile.

func KeyFileNewFromC

func KeyFileNewFromC(u unsafe.Pointer) *KeyFile

func (*KeyFile) Equals added in v0.0.2

func (recv *KeyFile) Equals(other *KeyFile) bool

Equals compares this KeyFile with another KeyFile, and returns true if they represent the same GObject.

func (*KeyFile) ToC

func (recv *KeyFile) ToC() unsafe.Pointer

type KeyFileError

type KeyFileError C.GKeyFileError
const (
	KEY_FILE_ERROR_UNKNOWN_ENCODING KeyFileError = 0
	KEY_FILE_ERROR_PARSE            KeyFileError = 1
	KEY_FILE_ERROR_NOT_FOUND        KeyFileError = 2
	KEY_FILE_ERROR_KEY_NOT_FOUND    KeyFileError = 3
	KEY_FILE_ERROR_GROUP_NOT_FOUND  KeyFileError = 4
	KEY_FILE_ERROR_INVALID_VALUE    KeyFileError = 5
)

type KeyFileFlags

type KeyFileFlags C.GKeyFileFlags
const (
	KEY_FILE_NONE              KeyFileFlags = 0
	KEY_FILE_KEEP_COMMENTS     KeyFileFlags = 1
	KEY_FILE_KEEP_TRANSLATIONS KeyFileFlags = 2
)

type List

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

List is a wrapper around the C record GList.

func ListAlloc added in v0.0.3

func ListAlloc() *List

ListAlloc is a wrapper around the C function g_list_alloc.

func ListAppend added in v0.0.3

func ListAppend(list *List, data uintptr) *List

ListAppend is a wrapper around the C function g_list_append.

func ListConcat added in v0.0.3

func ListConcat(list1 *List, list2 *List) *List

ListConcat is a wrapper around the C function g_list_concat.

func ListCopy added in v0.0.3

func ListCopy(list *List) *List

ListCopy is a wrapper around the C function g_list_copy.

func ListDeleteLink(list *List, link *List) *List

ListDeleteLink is a wrapper around the C function g_list_delete_link.

func ListFind added in v0.0.3

func ListFind(list *List, data uintptr) *List

ListFind is a wrapper around the C function g_list_find.

func ListFirst added in v0.0.3

func ListFirst(list *List) *List

g_list_find_custom : unsupported parameter func : no type generator for CompareFunc (GCompareFunc) for param func ListFirst is a wrapper around the C function g_list_first.

func ListInsert added in v0.0.3

func ListInsert(list *List, data uintptr, position int32) *List

ListInsert is a wrapper around the C function g_list_insert.

func ListInsertBefore added in v0.0.3

func ListInsertBefore(list *List, sibling *List, data uintptr) *List

ListInsertBefore is a wrapper around the C function g_list_insert_before.

func ListLast added in v0.0.3

func ListLast(list *List) *List

g_list_insert_sorted : unsupported parameter func : no type generator for CompareFunc (GCompareFunc) for param func ListLast is a wrapper around the C function g_list_last.

func ListNewFromC

func ListNewFromC(u unsafe.Pointer) *List

func ListNth added in v0.0.3

func ListNth(list *List, n uint32) *List

ListNth is a wrapper around the C function g_list_nth.

func ListNthPrev added in v0.0.3

func ListNthPrev(list *List, n uint32) *List

ListNthPrev is a wrapper around the C function g_list_nth_prev.

func ListPrepend added in v0.0.3

func ListPrepend(list *List, data uintptr) *List

ListPrepend is a wrapper around the C function g_list_prepend.

func ListRemove added in v0.0.3

func ListRemove(list *List, data uintptr) *List

ListRemove is a wrapper around the C function g_list_remove.

func ListRemoveAll added in v0.0.3

func ListRemoveAll(list *List, data uintptr) *List

ListRemoveAll is a wrapper around the C function g_list_remove_all.

func ListRemoveLink(list *List, llink *List) *List

ListRemoveLink is a wrapper around the C function g_list_remove_link.

func ListReverse added in v0.0.3

func ListReverse(list *List) *List

ListReverse is a wrapper around the C function g_list_reverse.

func (*List) Equals added in v0.0.2

func (recv *List) Equals(other *List) bool

Equals compares this List with another List, and returns true if they represent the same GObject.

func (*List) ToC

func (recv *List) ToC() unsafe.Pointer

type LogLevelFlags

type LogLevelFlags C.GLogLevelFlags
const (
	LOG_FLAG_RECURSION LogLevelFlags = 1
	LOG_FLAG_FATAL     LogLevelFlags = 2
	LOG_LEVEL_ERROR    LogLevelFlags = 4
	LOG_LEVEL_CRITICAL LogLevelFlags = 8
	LOG_LEVEL_WARNING  LogLevelFlags = 16
	LOG_LEVEL_MESSAGE  LogLevelFlags = 32
	LOG_LEVEL_INFO     LogLevelFlags = 64
	LOG_LEVEL_DEBUG    LogLevelFlags = 128
	LOG_LEVEL_MASK     LogLevelFlags = -4
)

func LogSetAlwaysFatal

func LogSetAlwaysFatal(fatalMask LogLevelFlags) LogLevelFlags

LogSetAlwaysFatal is a wrapper around the C function g_log_set_always_fatal.

func LogSetFatalMask

func LogSetFatalMask(logDomain string, fatalMask LogLevelFlags) LogLevelFlags

LogSetFatalMask is a wrapper around the C function g_log_set_fatal_mask.

type MainContext

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

g_list_sort : unsupported parameter compare_func : no type generator for CompareFunc (GCompareFunc) for param compare_func g_list_sort_with_data : unsupported parameter compare_func : no type generator for CompareDataFunc (GCompareDataFunc) for param compare_func MainContext is a wrapper around the C record GMainContext.

func MainContextDefault

func MainContextDefault() *MainContext

MainContextDefault is a wrapper around the C function g_main_context_default.

func MainContextNew

func MainContextNew() *MainContext

MainContextNew is a wrapper around the C function g_main_context_new.

func MainContextNewFromC

func MainContextNewFromC(u unsafe.Pointer) *MainContext

func (*MainContext) Acquire

func (recv *MainContext) Acquire() bool

Acquire is a wrapper around the C function g_main_context_acquire.

func (*MainContext) AddPoll

func (recv *MainContext) AddPoll(fd *PollFD, priority int32)

AddPoll is a wrapper around the C function g_main_context_add_poll.

func (*MainContext) Dispatch

func (recv *MainContext) Dispatch()

Dispatch is a wrapper around the C function g_main_context_dispatch.

func (*MainContext) Equals added in v0.0.2

func (recv *MainContext) Equals(other *MainContext) bool

Equals compares this MainContext with another MainContext, and returns true if they represent the same GObject.

func (*MainContext) FindSourceByFuncsUserData

func (recv *MainContext) FindSourceByFuncsUserData(funcs *SourceFuncs, userData uintptr) *Source

FindSourceByFuncsUserData is a wrapper around the C function g_main_context_find_source_by_funcs_user_data.

func (*MainContext) FindSourceById

func (recv *MainContext) FindSourceById(sourceId uint32) *Source

FindSourceById is a wrapper around the C function g_main_context_find_source_by_id.

func (*MainContext) FindSourceByUserData

func (recv *MainContext) FindSourceByUserData(userData uintptr) *Source

FindSourceByUserData is a wrapper around the C function g_main_context_find_source_by_user_data.

func (*MainContext) Iteration

func (recv *MainContext) Iteration(mayBlock bool) bool

Iteration is a wrapper around the C function g_main_context_iteration.

func (*MainContext) Pending

func (recv *MainContext) Pending() bool

Pending is a wrapper around the C function g_main_context_pending.

func (*MainContext) Prepare

func (recv *MainContext) Prepare(priority int32) bool

Prepare is a wrapper around the C function g_main_context_prepare.

func (*MainContext) Ref

func (recv *MainContext) Ref() *MainContext

Ref is a wrapper around the C function g_main_context_ref.

func (*MainContext) Release

func (recv *MainContext) Release()

Release is a wrapper around the C function g_main_context_release.

func (*MainContext) RemovePoll

func (recv *MainContext) RemovePoll(fd *PollFD)

RemovePoll is a wrapper around the C function g_main_context_remove_poll.

func (*MainContext) ToC

func (recv *MainContext) ToC() unsafe.Pointer

func (*MainContext) Unref

func (recv *MainContext) Unref()

Unref is a wrapper around the C function g_main_context_unref.

func (*MainContext) Wakeup

func (recv *MainContext) Wakeup()

Wakeup is a wrapper around the C function g_main_context_wakeup.

type MainLoop

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

MainLoop is a wrapper around the C record GMainLoop.

func MainLoopNew

func MainLoopNew(context *MainContext, isRunning bool) *MainLoop

MainLoopNew is a wrapper around the C function g_main_loop_new.

func MainLoopNewFromC

func MainLoopNewFromC(u unsafe.Pointer) *MainLoop

func (*MainLoop) Equals added in v0.0.2

func (recv *MainLoop) Equals(other *MainLoop) bool

Equals compares this MainLoop with another MainLoop, and returns true if they represent the same GObject.

func (*MainLoop) GetContext

func (recv *MainLoop) GetContext() *MainContext

GetContext is a wrapper around the C function g_main_loop_get_context.

func (*MainLoop) IsRunning

func (recv *MainLoop) IsRunning() bool

IsRunning is a wrapper around the C function g_main_loop_is_running.

func (*MainLoop) Quit

func (recv *MainLoop) Quit()

Quit is a wrapper around the C function g_main_loop_quit.

func (*MainLoop) Ref

func (recv *MainLoop) Ref() *MainLoop

Ref is a wrapper around the C function g_main_loop_ref.

func (*MainLoop) Run

func (recv *MainLoop) Run()

Run is a wrapper around the C function g_main_loop_run.

func (*MainLoop) ToC

func (recv *MainLoop) ToC() unsafe.Pointer

func (*MainLoop) Unref

func (recv *MainLoop) Unref()

Unref is a wrapper around the C function g_main_loop_unref.

type MappedFile

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

MappedFile is a wrapper around the C record GMappedFile.

func MappedFileNewFromC

func MappedFileNewFromC(u unsafe.Pointer) *MappedFile

func (*MappedFile) Equals added in v0.0.2

func (recv *MappedFile) Equals(other *MappedFile) bool

Equals compares this MappedFile with another MappedFile, and returns true if they represent the same GObject.

func (*MappedFile) ToC

func (recv *MappedFile) ToC() unsafe.Pointer

func (*MappedFile) Unref

func (recv *MappedFile) Unref()

Unref is a wrapper around the C function g_mapped_file_unref.

type MarkupCollectType

type MarkupCollectType C.GMarkupCollectType
const (
	MARKUP_COLLECT_INVALID  MarkupCollectType = 0
	MARKUP_COLLECT_STRING   MarkupCollectType = 1
	MARKUP_COLLECT_STRDUP   MarkupCollectType = 2
	MARKUP_COLLECT_BOOLEAN  MarkupCollectType = 3
	MARKUP_COLLECT_TRISTATE MarkupCollectType = 4
	MARKUP_COLLECT_OPTIONAL MarkupCollectType = 65536
)

type MarkupError

type MarkupError C.GMarkupError
const (
	MARKUP_ERROR_BAD_UTF8          MarkupError = 0
	MARKUP_ERROR_EMPTY             MarkupError = 1
	MARKUP_ERROR_PARSE             MarkupError = 2
	MARKUP_ERROR_UNKNOWN_ELEMENT   MarkupError = 3
	MARKUP_ERROR_UNKNOWN_ATTRIBUTE MarkupError = 4
	MARKUP_ERROR_INVALID_CONTENT   MarkupError = 5
	MARKUP_ERROR_MISSING_ATTRIBUTE MarkupError = 6
)

type MarkupParseContext

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

MarkupParseContext is a wrapper around the C record GMarkupParseContext.

func MarkupParseContextNewFromC

func MarkupParseContextNewFromC(u unsafe.Pointer) *MarkupParseContext

func (*MarkupParseContext) EndParse

func (recv *MarkupParseContext) EndParse() (bool, error)

EndParse is a wrapper around the C function g_markup_parse_context_end_parse.

func (*MarkupParseContext) Equals added in v0.0.2

func (recv *MarkupParseContext) Equals(other *MarkupParseContext) bool

Equals compares this MarkupParseContext with another MarkupParseContext, and returns true if they represent the same GObject.

func (*MarkupParseContext) Free

func (recv *MarkupParseContext) Free()

Free is a wrapper around the C function g_markup_parse_context_free.

func (*MarkupParseContext) GetPosition

func (recv *MarkupParseContext) GetPosition(lineNumber int32, charNumber int32)

GetPosition is a wrapper around the C function g_markup_parse_context_get_position.

func (*MarkupParseContext) Parse

func (recv *MarkupParseContext) Parse(text string, textLen int64) (bool, error)

Parse is a wrapper around the C function g_markup_parse_context_parse.

func (*MarkupParseContext) ToC

func (recv *MarkupParseContext) ToC() unsafe.Pointer

type MarkupParseFlags

type MarkupParseFlags C.GMarkupParseFlags
const (
	MARKUP_DO_NOT_USE_THIS_UNSUPPORTED_FLAG MarkupParseFlags = 1
	MARKUP_TREAT_CDATA_AS_TEXT              MarkupParseFlags = 2
	MARKUP_PREFIX_ERROR_POSITION            MarkupParseFlags = 4
	MARKUP_IGNORE_QUALIFIED                 MarkupParseFlags = 8
)

type MarkupParser

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

MarkupParser is a wrapper around the C record GMarkupParser.

func MarkupParserNewFromC

func MarkupParserNewFromC(u unsafe.Pointer) *MarkupParser

func (*MarkupParser) Equals added in v0.0.2

func (recv *MarkupParser) Equals(other *MarkupParser) bool

Equals compares this MarkupParser with another MarkupParser, and returns true if they represent the same GObject.

func (*MarkupParser) ToC

func (recv *MarkupParser) ToC() unsafe.Pointer

type MatchInfo

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

MatchInfo is a wrapper around the C record GMatchInfo.

func MatchInfoNewFromC

func MatchInfoNewFromC(u unsafe.Pointer) *MatchInfo

func (*MatchInfo) Equals added in v0.0.2

func (recv *MatchInfo) Equals(other *MatchInfo) bool

Equals compares this MatchInfo with another MatchInfo, and returns true if they represent the same GObject.

func (*MatchInfo) ToC

func (recv *MatchInfo) ToC() unsafe.Pointer

type MemVTable

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

MemVTable is a wrapper around the C record GMemVTable.

func MemVTableNewFromC

func MemVTableNewFromC(u unsafe.Pointer) *MemVTable

func (*MemVTable) Equals added in v0.0.2

func (recv *MemVTable) Equals(other *MemVTable) bool

Equals compares this MemVTable with another MemVTable, and returns true if they represent the same GObject.

func (*MemVTable) ToC

func (recv *MemVTable) ToC() unsafe.Pointer

type Node

type Node struct {
	Data uintptr
	// contains filtered or unexported fields
}

Node is a wrapper around the C record GNode.

func NodeNew added in v0.0.3

func NodeNew(data uintptr) *Node

NodeNew is a wrapper around the C function g_node_new.

func NodeNewFromC

func NodeNewFromC(u unsafe.Pointer) *Node

func (*Node) ChildIndex

func (recv *Node) ChildIndex(data uintptr) int32

ChildIndex is a wrapper around the C function g_node_child_index.

func (*Node) ChildPosition

func (recv *Node) ChildPosition(child *Node) int32

ChildPosition is a wrapper around the C function g_node_child_position.

func (*Node) Copy

func (recv *Node) Copy() *Node

Copy is a wrapper around the C function g_node_copy.

func (*Node) Depth

func (recv *Node) Depth() uint32

Depth is a wrapper around the C function g_node_depth.

func (*Node) Destroy

func (recv *Node) Destroy()

Destroy is a wrapper around the C function g_node_destroy.

func (*Node) Equals added in v0.0.2

func (recv *Node) Equals(other *Node) bool

Equals compares this Node with another Node, and returns true if they represent the same GObject.

func (*Node) Find

func (recv *Node) Find(order TraverseType, flags TraverseFlags, data uintptr) *Node

Find is a wrapper around the C function g_node_find.

func (*Node) FindChild

func (recv *Node) FindChild(flags TraverseFlags, data uintptr) *Node

FindChild is a wrapper around the C function g_node_find_child.

func (*Node) FirstSibling

func (recv *Node) FirstSibling() *Node

FirstSibling is a wrapper around the C function g_node_first_sibling.

func (*Node) GetRoot

func (recv *Node) GetRoot() *Node

GetRoot is a wrapper around the C function g_node_get_root.

func (*Node) Insert

func (recv *Node) Insert(position int32, node *Node) *Node

Insert is a wrapper around the C function g_node_insert.

func (*Node) InsertAfter

func (recv *Node) InsertAfter(sibling *Node, node *Node) *Node

InsertAfter is a wrapper around the C function g_node_insert_after.

func (*Node) InsertBefore

func (recv *Node) InsertBefore(sibling *Node, node *Node) *Node

InsertBefore is a wrapper around the C function g_node_insert_before.

func (*Node) IsAncestor

func (recv *Node) IsAncestor(descendant *Node) bool

IsAncestor is a wrapper around the C function g_node_is_ancestor.

func (*Node) LastChild

func (recv *Node) LastChild() *Node

LastChild is a wrapper around the C function g_node_last_child.

func (*Node) LastSibling

func (recv *Node) LastSibling() *Node

LastSibling is a wrapper around the C function g_node_last_sibling.

func (*Node) MaxHeight

func (recv *Node) MaxHeight() uint32

MaxHeight is a wrapper around the C function g_node_max_height.

func (*Node) NChildren

func (recv *Node) NChildren() uint32

NChildren is a wrapper around the C function g_node_n_children.

func (*Node) NNodes

func (recv *Node) NNodes(flags TraverseFlags) uint32

NNodes is a wrapper around the C function g_node_n_nodes.

func (*Node) NthChild

func (recv *Node) NthChild(n uint32) *Node

NthChild is a wrapper around the C function g_node_nth_child.

func (*Node) Prepend

func (recv *Node) Prepend(node *Node) *Node

Prepend is a wrapper around the C function g_node_prepend.

func (*Node) ReverseChildren

func (recv *Node) ReverseChildren()

ReverseChildren is a wrapper around the C function g_node_reverse_children.

func (*Node) ToC

func (recv *Node) ToC() unsafe.Pointer
func (recv *Node) Unlink()

Unlink is a wrapper around the C function g_node_unlink.

type NormalizeMode

type NormalizeMode C.GNormalizeMode
const (
	NORMALIZE_DEFAULT         NormalizeMode = 0
	NORMALIZE_NFD             NormalizeMode = 0
	NORMALIZE_DEFAULT_COMPOSE NormalizeMode = 1
	NORMALIZE_NFC             NormalizeMode = 1
	NORMALIZE_ALL             NormalizeMode = 2
	NORMALIZE_NFKD            NormalizeMode = 2
	NORMALIZE_ALL_COMPOSE     NormalizeMode = 3
	NORMALIZE_NFKC            NormalizeMode = 3
)

type OptionArg

type OptionArg C.GOptionArg
const (
	OPTION_ARG_NONE           OptionArg = 0
	OPTION_ARG_STRING         OptionArg = 1
	OPTION_ARG_INT            OptionArg = 2
	OPTION_ARG_CALLBACK       OptionArg = 3
	OPTION_ARG_FILENAME       OptionArg = 4
	OPTION_ARG_STRING_ARRAY   OptionArg = 5
	OPTION_ARG_FILENAME_ARRAY OptionArg = 6
	OPTION_ARG_DOUBLE         OptionArg = 7
	OPTION_ARG_INT64          OptionArg = 8
)

type OptionContext

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

OptionContext is a wrapper around the C record GOptionContext.

func OptionContextNewFromC

func OptionContextNewFromC(u unsafe.Pointer) *OptionContext

func (*OptionContext) Equals added in v0.0.2

func (recv *OptionContext) Equals(other *OptionContext) bool

Equals compares this OptionContext with another OptionContext, and returns true if they represent the same GObject.

func (*OptionContext) ToC

func (recv *OptionContext) ToC() unsafe.Pointer

type OptionEntry

type OptionEntry struct {
	LongName       string
	ShortName      rune
	Flags          int32
	Arg            OptionArg
	ArgData        uintptr
	Description    string
	ArgDescription string
	// contains filtered or unexported fields
}

OptionEntry is a wrapper around the C record GOptionEntry.

func OptionEntryNewFromC

func OptionEntryNewFromC(u unsafe.Pointer) *OptionEntry

func (*OptionEntry) Equals added in v0.0.2

func (recv *OptionEntry) Equals(other *OptionEntry) bool

Equals compares this OptionEntry with another OptionEntry, and returns true if they represent the same GObject.

func (*OptionEntry) ToC

func (recv *OptionEntry) ToC() unsafe.Pointer

type OptionError

type OptionError C.GOptionError
const (
	OPTION_ERROR_UNKNOWN_OPTION OptionError = 0
	OPTION_ERROR_BAD_VALUE      OptionError = 1
	OPTION_ERROR_FAILED         OptionError = 2
)

type OptionFlags

type OptionFlags C.GOptionFlags
const (
	OPTION_FLAG_NONE         OptionFlags = 0
	OPTION_FLAG_HIDDEN       OptionFlags = 1
	OPTION_FLAG_IN_MAIN      OptionFlags = 2
	OPTION_FLAG_REVERSE      OptionFlags = 4
	OPTION_FLAG_NO_ARG       OptionFlags = 8
	OPTION_FLAG_FILENAME     OptionFlags = 16
	OPTION_FLAG_OPTIONAL_ARG OptionFlags = 32
	OPTION_FLAG_NOALIAS      OptionFlags = 64
)

type OptionGroup

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

OptionGroup is a wrapper around the C record GOptionGroup.

func OptionGroupNewFromC

func OptionGroupNewFromC(u unsafe.Pointer) *OptionGroup

func (*OptionGroup) Equals added in v0.0.2

func (recv *OptionGroup) Equals(other *OptionGroup) bool

Equals compares this OptionGroup with another OptionGroup, and returns true if they represent the same GObject.

func (*OptionGroup) ToC

func (recv *OptionGroup) ToC() unsafe.Pointer

type PatternSpec

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

PatternSpec is a wrapper around the C record GPatternSpec.

func PatternSpecNew added in v0.0.3

func PatternSpecNew(pattern string) *PatternSpec

PatternSpecNew is a wrapper around the C function g_pattern_spec_new.

func PatternSpecNewFromC

func PatternSpecNewFromC(u unsafe.Pointer) *PatternSpec

func (*PatternSpec) Equal

func (recv *PatternSpec) Equal(pspec2 *PatternSpec) bool

Equal is a wrapper around the C function g_pattern_spec_equal.

func (*PatternSpec) Equals added in v0.0.2

func (recv *PatternSpec) Equals(other *PatternSpec) bool

Equals compares this PatternSpec with another PatternSpec, and returns true if they represent the same GObject.

func (*PatternSpec) Free

func (recv *PatternSpec) Free()

Free is a wrapper around the C function g_pattern_spec_free.

func (*PatternSpec) ToC

func (recv *PatternSpec) ToC() unsafe.Pointer

type Pid

type Pid int32

Pid is a representation of the C alias GPid.

type PollFD

type PollFD struct {
	Fd      int32
	Events  uint32
	Revents uint32
	// contains filtered or unexported fields
}

PollFD is a wrapper around the C record GPollFD.

func PollFDNewFromC

func PollFDNewFromC(u unsafe.Pointer) *PollFD

func (*PollFD) Equals added in v0.0.2

func (recv *PollFD) Equals(other *PollFD) bool

Equals compares this PollFD with another PollFD, and returns true if they represent the same GObject.

func (*PollFD) ToC

func (recv *PollFD) ToC() unsafe.Pointer

type Private

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

Private is a wrapper around the C record GPrivate.

func PrivateNewFromC

func PrivateNewFromC(u unsafe.Pointer) *Private

func (*Private) Equals added in v0.0.2

func (recv *Private) Equals(other *Private) bool

Equals compares this Private with another Private, and returns true if they represent the same GObject.

func (*Private) Get

func (recv *Private) Get() uintptr

Get is a wrapper around the C function g_private_get.

func (*Private) Set

func (recv *Private) Set(value uintptr)

Set is a wrapper around the C function g_private_set.

func (*Private) ToC

func (recv *Private) ToC() unsafe.Pointer

type Quark

type Quark uint32

Quark is a representation of the C alias GQuark.

func BookmarkFileErrorQuark

func BookmarkFileErrorQuark() Quark

BookmarkFileErrorQuark is a wrapper around the C function g_bookmark_file_error_quark.

func ConvertErrorQuark

func ConvertErrorQuark() Quark

ConvertErrorQuark is a wrapper around the C function g_convert_error_quark.

func FileErrorQuark

func FileErrorQuark() Quark

FileErrorQuark is a wrapper around the C function g_file_error_quark.

func IOChannelErrorQuark added in v0.0.5

func IOChannelErrorQuark() Quark

IOChannelErrorQuark is a wrapper around the C function g_io_channel_error_quark.

func KeyFileErrorQuark

func KeyFileErrorQuark() Quark

KeyFileErrorQuark is a wrapper around the C function g_key_file_error_quark.

func MarkupErrorQuark

func MarkupErrorQuark() Quark

MarkupErrorQuark is a wrapper around the C function g_markup_error_quark.

func OptionErrorQuark

func OptionErrorQuark() Quark

OptionErrorQuark is a wrapper around the C function g_option_error_quark.

func QuarkFromStaticString

func QuarkFromStaticString(string_ string) Quark

QuarkFromStaticString is a wrapper around the C function g_quark_from_static_string.

func QuarkFromString

func QuarkFromString(string_ string) Quark

QuarkFromString is a wrapper around the C function g_quark_from_string.

func QuarkTryString

func QuarkTryString(string_ string) Quark

QuarkTryString is a wrapper around the C function g_quark_try_string.

func ShellErrorQuark

func ShellErrorQuark() Quark

ShellErrorQuark is a wrapper around the C function g_shell_error_quark.

func SpawnErrorQuark

func SpawnErrorQuark() Quark

SpawnErrorQuark is a wrapper around the C function g_spawn_error_quark.

func SpawnExitErrorQuark

func SpawnExitErrorQuark() Quark

SpawnExitErrorQuark is a wrapper around the C function g_spawn_exit_error_quark.

func ThreadErrorQuark

func ThreadErrorQuark() Quark

ThreadErrorQuark is a wrapper around the C function g_thread_error_quark.

type Queue

type Queue struct {

	// head : record
	// tail : record
	Length uint32
	// contains filtered or unexported fields
}

Queue is a wrapper around the C record GQueue.

func QueueNew added in v0.0.3

func QueueNew() *Queue

QueueNew is a wrapper around the C function g_queue_new.

func QueueNewFromC

func QueueNewFromC(u unsafe.Pointer) *Queue

func (*Queue) Equals added in v0.0.2

func (recv *Queue) Equals(other *Queue) bool

Equals compares this Queue with another Queue, and returns true if they represent the same GObject.

func (*Queue) Free

func (recv *Queue) Free()

Free is a wrapper around the C function g_queue_free.

func (*Queue) IsEmpty

func (recv *Queue) IsEmpty() bool

IsEmpty is a wrapper around the C function g_queue_is_empty.

func (*Queue) PeekHead

func (recv *Queue) PeekHead() uintptr

PeekHead is a wrapper around the C function g_queue_peek_head.

func (*Queue) PeekTail

func (recv *Queue) PeekTail() uintptr

PeekTail is a wrapper around the C function g_queue_peek_tail.

func (*Queue) PopHead

func (recv *Queue) PopHead() uintptr

PopHead is a wrapper around the C function g_queue_pop_head.

func (recv *Queue) PopHeadLink() *List

PopHeadLink is a wrapper around the C function g_queue_pop_head_link.

func (*Queue) PopTail

func (recv *Queue) PopTail() uintptr

PopTail is a wrapper around the C function g_queue_pop_tail.

func (recv *Queue) PopTailLink() *List

PopTailLink is a wrapper around the C function g_queue_pop_tail_link.

func (*Queue) PushHead

func (recv *Queue) PushHead(data uintptr)

PushHead is a wrapper around the C function g_queue_push_head.

func (recv *Queue) PushHeadLink(link *List)

PushHeadLink is a wrapper around the C function g_queue_push_head_link.

func (*Queue) PushTail

func (recv *Queue) PushTail(data uintptr)

PushTail is a wrapper around the C function g_queue_push_tail.

func (recv *Queue) PushTailLink(link *List)

PushTailLink is a wrapper around the C function g_queue_push_tail_link.

func (*Queue) ToC

func (recv *Queue) ToC() unsafe.Pointer

type Rand

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

Rand is a wrapper around the C record GRand.

func RandNew added in v0.0.3

func RandNew() *Rand

RandNew is a wrapper around the C function g_rand_new.

func RandNewFromC

func RandNewFromC(u unsafe.Pointer) *Rand

func RandNewWithSeed added in v0.0.3

func RandNewWithSeed(seed uint32) *Rand

RandNewWithSeed is a wrapper around the C function g_rand_new_with_seed.

func (*Rand) Double

func (recv *Rand) Double() float64

Double is a wrapper around the C function g_rand_double.

func (*Rand) DoubleRange

func (recv *Rand) DoubleRange(begin float64, end float64) float64

DoubleRange is a wrapper around the C function g_rand_double_range.

func (*Rand) Equals added in v0.0.2

func (recv *Rand) Equals(other *Rand) bool

Equals compares this Rand with another Rand, and returns true if they represent the same GObject.

func (*Rand) Free

func (recv *Rand) Free()

Free is a wrapper around the C function g_rand_free.

func (*Rand) Int

func (recv *Rand) Int() uint32

Int is a wrapper around the C function g_rand_int.

func (*Rand) IntRange

func (recv *Rand) IntRange(begin int32, end int32) int32

IntRange is a wrapper around the C function g_rand_int_range.

func (*Rand) SetSeed

func (recv *Rand) SetSeed(seed uint32)

SetSeed is a wrapper around the C function g_rand_set_seed.

func (*Rand) ToC

func (recv *Rand) ToC() unsafe.Pointer

type SList

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

SList is a wrapper around the C record GSList.

func SListAlloc added in v0.0.3

func SListAlloc() *SList

SListAlloc is a wrapper around the C function g_slist_alloc.

func SListAppend added in v0.0.3

func SListAppend(list *SList, data uintptr) *SList

SListAppend is a wrapper around the C function g_slist_append.

func SListConcat added in v0.0.3

func SListConcat(list1 *SList, list2 *SList) *SList

SListConcat is a wrapper around the C function g_slist_concat.

func SListCopy added in v0.0.3

func SListCopy(list *SList) *SList

SListCopy is a wrapper around the C function g_slist_copy.

func SListDeleteLink(list *SList, link *SList) *SList

SListDeleteLink is a wrapper around the C function g_slist_delete_link.

func SListFind added in v0.0.3

func SListFind(list *SList, data uintptr) *SList

SListFind is a wrapper around the C function g_slist_find.

func SListInsert added in v0.0.3

func SListInsert(list *SList, data uintptr, position int32) *SList

SListInsert is a wrapper around the C function g_slist_insert.

func SListInsertBefore added in v0.0.3

func SListInsertBefore(slist *SList, sibling *SList, data uintptr) *SList

SListInsertBefore is a wrapper around the C function g_slist_insert_before.

func SListLast added in v0.0.3

func SListLast(list *SList) *SList

g_slist_insert_sorted : unsupported parameter func : no type generator for CompareFunc (GCompareFunc) for param func SListLast is a wrapper around the C function g_slist_last.

func SListNewFromC

func SListNewFromC(u unsafe.Pointer) *SList

func SListNth added in v0.0.3

func SListNth(list *SList, n uint32) *SList

SListNth is a wrapper around the C function g_slist_nth.

func SListPrepend added in v0.0.3

func SListPrepend(list *SList, data uintptr) *SList

SListPrepend is a wrapper around the C function g_slist_prepend.

func SListRemove added in v0.0.3

func SListRemove(list *SList, data uintptr) *SList

SListRemove is a wrapper around the C function g_slist_remove.

func SListRemoveAll added in v0.0.3

func SListRemoveAll(list *SList, data uintptr) *SList

SListRemoveAll is a wrapper around the C function g_slist_remove_all.

func SListRemoveLink(list *SList, link *SList) *SList

SListRemoveLink is a wrapper around the C function g_slist_remove_link.

func SListReverse added in v0.0.3

func SListReverse(list *SList) *SList

SListReverse is a wrapper around the C function g_slist_reverse.

func (*SList) Equals added in v0.0.2

func (recv *SList) Equals(other *SList) bool

Equals compares this SList with another SList, and returns true if they represent the same GObject.

func (*SList) ToC

func (recv *SList) ToC() unsafe.Pointer

type Scanner

type Scanner struct {
	UserData       uintptr
	MaxParseErrors uint32
	ParseErrors    uint32
	InputName      string
	// qdata : record
	// config : record
	Token TokenType
	// value : no type generator for TokenValue, GTokenValue
	Line      uint32
	Position  uint32
	NextToken TokenType
	// next_value : no type generator for TokenValue, GTokenValue
	NextLine     uint32
	NextPosition uint32
	// contains filtered or unexported fields
}

g_slist_sort : unsupported parameter compare_func : no type generator for CompareFunc (GCompareFunc) for param compare_func g_slist_sort_with_data : unsupported parameter compare_func : no type generator for CompareDataFunc (GCompareDataFunc) for param compare_func Scanner is a wrapper around the C record GScanner.

func ScannerNew added in v0.0.3

func ScannerNew(configTempl *ScannerConfig) *Scanner

ScannerNew is a wrapper around the C function g_scanner_new.

func ScannerNewFromC

func ScannerNewFromC(u unsafe.Pointer) *Scanner

func (*Scanner) CurLine

func (recv *Scanner) CurLine() uint32

CurLine is a wrapper around the C function g_scanner_cur_line.

func (*Scanner) CurPosition

func (recv *Scanner) CurPosition() uint32

CurPosition is a wrapper around the C function g_scanner_cur_position.

func (*Scanner) CurToken

func (recv *Scanner) CurToken() TokenType

CurToken is a wrapper around the C function g_scanner_cur_token.

func (*Scanner) Destroy

func (recv *Scanner) Destroy()

Destroy is a wrapper around the C function g_scanner_destroy.

func (*Scanner) Eof

func (recv *Scanner) Eof() bool

Eof is a wrapper around the C function g_scanner_eof.

func (*Scanner) Equals added in v0.0.2

func (recv *Scanner) Equals(other *Scanner) bool

Equals compares this Scanner with another Scanner, and returns true if they represent the same GObject.

func (*Scanner) Error added in v0.0.5

func (recv *Scanner) Error(format string, args ...interface{})

Error is a wrapper around the C function g_scanner_error.

func (*Scanner) GetNextToken

func (recv *Scanner) GetNextToken() TokenType

GetNextToken is a wrapper around the C function g_scanner_get_next_token.

func (*Scanner) InputFile

func (recv *Scanner) InputFile(inputFd int32)

InputFile is a wrapper around the C function g_scanner_input_file.

func (*Scanner) InputText

func (recv *Scanner) InputText(text string, textLen uint32)

InputText is a wrapper around the C function g_scanner_input_text.

func (*Scanner) LookupSymbol

func (recv *Scanner) LookupSymbol(symbol string) uintptr

LookupSymbol is a wrapper around the C function g_scanner_lookup_symbol.

func (*Scanner) PeekNextToken

func (recv *Scanner) PeekNextToken() TokenType

PeekNextToken is a wrapper around the C function g_scanner_peek_next_token.

func (*Scanner) ScopeAddSymbol

func (recv *Scanner) ScopeAddSymbol(scopeId uint32, symbol string, value uintptr)

ScopeAddSymbol is a wrapper around the C function g_scanner_scope_add_symbol.

func (*Scanner) ScopeLookupSymbol

func (recv *Scanner) ScopeLookupSymbol(scopeId uint32, symbol string) uintptr

ScopeLookupSymbol is a wrapper around the C function g_scanner_scope_lookup_symbol.

func (*Scanner) ScopeRemoveSymbol

func (recv *Scanner) ScopeRemoveSymbol(scopeId uint32, symbol string)

ScopeRemoveSymbol is a wrapper around the C function g_scanner_scope_remove_symbol.

func (*Scanner) SetScope

func (recv *Scanner) SetScope(scopeId uint32) uint32

SetScope is a wrapper around the C function g_scanner_set_scope.

func (*Scanner) SyncFileOffset

func (recv *Scanner) SyncFileOffset()

SyncFileOffset is a wrapper around the C function g_scanner_sync_file_offset.

func (*Scanner) ToC

func (recv *Scanner) ToC() unsafe.Pointer

func (*Scanner) UnexpToken

func (recv *Scanner) UnexpToken(expectedToken TokenType, identifierSpec string, symbolSpec string, symbolName string, message string, isError int32)

UnexpToken is a wrapper around the C function g_scanner_unexp_token.

func (*Scanner) Warn added in v0.0.5

func (recv *Scanner) Warn(format string, args ...interface{})

Warn is a wrapper around the C function g_scanner_warn.

type ScannerConfig

type ScannerConfig struct {
	CsetSkipCharacters  string
	CsetIdentifierFirst string
	CsetIdentifierNth   string
	CpairCommentSingle  string
	// contains filtered or unexported fields
}

ScannerConfig is a wrapper around the C record GScannerConfig.

func ScannerConfigNewFromC

func ScannerConfigNewFromC(u unsafe.Pointer) *ScannerConfig

func (*ScannerConfig) Equals added in v0.0.2

func (recv *ScannerConfig) Equals(other *ScannerConfig) bool

Equals compares this ScannerConfig with another ScannerConfig, and returns true if they represent the same GObject.

func (*ScannerConfig) ToC

func (recv *ScannerConfig) ToC() unsafe.Pointer

type SeekType

type SeekType C.GSeekType
const (
	SEEK_CUR SeekType = 0
	SEEK_SET SeekType = 1
	SEEK_END SeekType = 2
)

type Sequence

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

Sequence is a wrapper around the C record GSequence.

func SequenceNewFromC

func SequenceNewFromC(u unsafe.Pointer) *Sequence

func (*Sequence) Equals added in v0.0.2

func (recv *Sequence) Equals(other *Sequence) bool

Equals compares this Sequence with another Sequence, and returns true if they represent the same GObject.

func (*Sequence) ToC

func (recv *Sequence) ToC() unsafe.Pointer

type SequenceIter

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

SequenceIter is a wrapper around the C record GSequenceIter.

func SequenceIterNewFromC

func SequenceIterNewFromC(u unsafe.Pointer) *SequenceIter

func (*SequenceIter) Equals added in v0.0.2

func (recv *SequenceIter) Equals(other *SequenceIter) bool

Equals compares this SequenceIter with another SequenceIter, and returns true if they represent the same GObject.

func (*SequenceIter) ToC

func (recv *SequenceIter) ToC() unsafe.Pointer

type ShellError

type ShellError C.GShellError
const (
	SHELL_ERROR_BAD_QUOTING  ShellError = 0
	SHELL_ERROR_EMPTY_STRING ShellError = 1
	SHELL_ERROR_FAILED       ShellError = 2
)

type SliceConfig

type SliceConfig C.GSliceConfig
const (
	SLICE_CONFIG_ALWAYS_MALLOC      SliceConfig = 1
	SLICE_CONFIG_BYPASS_MAGAZINES   SliceConfig = 2
	SLICE_CONFIG_WORKING_SET_MSECS  SliceConfig = 3
	SLICE_CONFIG_COLOR_INCREMENT    SliceConfig = 4
	SLICE_CONFIG_CHUNK_SIZES        SliceConfig = 5
	SLICE_CONFIG_CONTENTION_COUNTER SliceConfig = 6
)

type Source

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

Source is a wrapper around the C record GSource.

func IdleSourceNew

func IdleSourceNew() *Source

IdleSourceNew is a wrapper around the C function g_idle_source_new.

func IoCreateWatch added in v0.0.5

func IoCreateWatch(channel *IOChannel, condition IOCondition) *Source

IoCreateWatch is a wrapper around the C function g_io_create_watch.

func SourceNew

func SourceNew(sourceFuncs *SourceFuncs, structSize uint32) *Source

SourceNew is a wrapper around the C function g_source_new.

func SourceNewFromC

func SourceNewFromC(u unsafe.Pointer) *Source

func TimeoutSourceNew

func TimeoutSourceNew(interval uint32) *Source

TimeoutSourceNew is a wrapper around the C function g_timeout_source_new.

func (*Source) AddPoll

func (recv *Source) AddPoll(fd *PollFD)

AddPoll is a wrapper around the C function g_source_add_poll.

func (*Source) Attach

func (recv *Source) Attach(context *MainContext) uint32

Attach is a wrapper around the C function g_source_attach.

func (*Source) Destroy

func (recv *Source) Destroy()

Destroy is a wrapper around the C function g_source_destroy.

func (*Source) Equals added in v0.0.2

func (recv *Source) Equals(other *Source) bool

Equals compares this Source with another Source, and returns true if they represent the same GObject.

func (*Source) GetCanRecurse

func (recv *Source) GetCanRecurse() bool

GetCanRecurse is a wrapper around the C function g_source_get_can_recurse.

func (*Source) GetContext

func (recv *Source) GetContext() *MainContext

GetContext is a wrapper around the C function g_source_get_context.

func (*Source) GetCurrentTime

func (recv *Source) GetCurrentTime(timeval *TimeVal)

GetCurrentTime is a wrapper around the C function g_source_get_current_time.

func (*Source) GetId

func (recv *Source) GetId() uint32

GetId is a wrapper around the C function g_source_get_id.

func (*Source) GetPriority

func (recv *Source) GetPriority() int32

GetPriority is a wrapper around the C function g_source_get_priority.

func (*Source) GetReadyTime

func (recv *Source) GetReadyTime() int64

GetReadyTime is a wrapper around the C function g_source_get_ready_time.

func (*Source) Ref

func (recv *Source) Ref() *Source

Ref is a wrapper around the C function g_source_ref.

func (*Source) RemovePoll

func (recv *Source) RemovePoll(fd *PollFD)

RemovePoll is a wrapper around the C function g_source_remove_poll.

func (*Source) SetCallbackIndirect

func (recv *Source) SetCallbackIndirect(callbackData uintptr, callbackFuncs *SourceCallbackFuncs)

SetCallbackIndirect is a wrapper around the C function g_source_set_callback_indirect.

func (*Source) SetCanRecurse

func (recv *Source) SetCanRecurse(canRecurse bool)

SetCanRecurse is a wrapper around the C function g_source_set_can_recurse.

func (*Source) SetPriority

func (recv *Source) SetPriority(priority int32)

SetPriority is a wrapper around the C function g_source_set_priority.

func (*Source) ToC

func (recv *Source) ToC() unsafe.Pointer

func (*Source) Unref

func (recv *Source) Unref()

Unref is a wrapper around the C function g_source_unref.

type SourceCallbackFuncs

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

SourceCallbackFuncs is a wrapper around the C record GSourceCallbackFuncs.

func SourceCallbackFuncsNewFromC

func SourceCallbackFuncsNewFromC(u unsafe.Pointer) *SourceCallbackFuncs

func (*SourceCallbackFuncs) Equals added in v0.0.2

func (recv *SourceCallbackFuncs) Equals(other *SourceCallbackFuncs) bool

Equals compares this SourceCallbackFuncs with another SourceCallbackFuncs, and returns true if they represent the same GObject.

func (*SourceCallbackFuncs) ToC

func (recv *SourceCallbackFuncs) ToC() unsafe.Pointer

type SourceFuncs

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

SourceFuncs is a wrapper around the C record GSourceFuncs.

func SourceFuncsNewFromC

func SourceFuncsNewFromC(u unsafe.Pointer) *SourceFuncs

func (*SourceFuncs) Equals added in v0.0.2

func (recv *SourceFuncs) Equals(other *SourceFuncs) bool

Equals compares this SourceFuncs with another SourceFuncs, and returns true if they represent the same GObject.

func (*SourceFuncs) ToC

func (recv *SourceFuncs) ToC() unsafe.Pointer

type SourcePrivate

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

SourcePrivate is a wrapper around the C record GSourcePrivate.

func SourcePrivateNewFromC

func SourcePrivateNewFromC(u unsafe.Pointer) *SourcePrivate

func (*SourcePrivate) Equals added in v0.0.2

func (recv *SourcePrivate) Equals(other *SourcePrivate) bool

Equals compares this SourcePrivate with another SourcePrivate, and returns true if they represent the same GObject.

func (*SourcePrivate) ToC

func (recv *SourcePrivate) ToC() unsafe.Pointer

type SpawnError

type SpawnError C.GSpawnError
const (
	SPAWN_ERROR_FORK        SpawnError = 0
	SPAWN_ERROR_READ        SpawnError = 1
	SPAWN_ERROR_CHDIR       SpawnError = 2
	SPAWN_ERROR_ACCES       SpawnError = 3
	SPAWN_ERROR_PERM        SpawnError = 4
	SPAWN_ERROR_TOO_BIG     SpawnError = 5
	SPAWN_ERROR_2BIG        SpawnError = 5
	SPAWN_ERROR_NOEXEC      SpawnError = 6
	SPAWN_ERROR_NAMETOOLONG SpawnError = 7
	SPAWN_ERROR_NOENT       SpawnError = 8
	SPAWN_ERROR_NOMEM       SpawnError = 9
	SPAWN_ERROR_NOTDIR      SpawnError = 10
	SPAWN_ERROR_LOOP        SpawnError = 11
	SPAWN_ERROR_TXTBUSY     SpawnError = 12
	SPAWN_ERROR_IO          SpawnError = 13
	SPAWN_ERROR_NFILE       SpawnError = 14
	SPAWN_ERROR_MFILE       SpawnError = 15
	SPAWN_ERROR_INVAL       SpawnError = 16
	SPAWN_ERROR_ISDIR       SpawnError = 17
	SPAWN_ERROR_LIBBAD      SpawnError = 18
	SPAWN_ERROR_FAILED      SpawnError = 19
)

type SpawnFlags

type SpawnFlags C.GSpawnFlags
const (
	SPAWN_DEFAULT                SpawnFlags = 0
	SPAWN_LEAVE_DESCRIPTORS_OPEN SpawnFlags = 1
	SPAWN_DO_NOT_REAP_CHILD      SpawnFlags = 2
	SPAWN_SEARCH_PATH            SpawnFlags = 4
	SPAWN_STDOUT_TO_DEV_NULL     SpawnFlags = 8
	SPAWN_STDERR_TO_DEV_NULL     SpawnFlags = 16
	SPAWN_CHILD_INHERITS_STDIN   SpawnFlags = 32
	SPAWN_FILE_AND_ARGV_ZERO     SpawnFlags = 64
	SPAWN_SEARCH_PATH_FROM_ENVP  SpawnFlags = 128
	SPAWN_CLOEXEC_PIPES          SpawnFlags = 256
)

type StatBuf

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

StatBuf is a wrapper around the C record GStatBuf.

func StatBufNewFromC

func StatBufNewFromC(u unsafe.Pointer) *StatBuf

func (*StatBuf) Equals added in v0.0.2

func (recv *StatBuf) Equals(other *StatBuf) bool

Equals compares this StatBuf with another StatBuf, and returns true if they represent the same GObject.

func (*StatBuf) ToC

func (recv *StatBuf) ToC() unsafe.Pointer

type String

type String struct {
	Str          string
	Len          uint64
	AllocatedLen uint64
	// contains filtered or unexported fields
}

String is a wrapper around the C record GString.

func StringNew

func StringNew(init string) *String

StringNew is a wrapper around the C function g_string_new.

func StringNewFromC

func StringNewFromC(u unsafe.Pointer) *String

func StringNewLen

func StringNewLen(init string, len int64) *String

StringNewLen is a wrapper around the C function g_string_new_len.

func StringSizedNew

func StringSizedNew(dflSize uint64) *String

StringSizedNew is a wrapper around the C function g_string_sized_new.

func (*String) Append

func (recv *String) Append(val string) *String

Append is a wrapper around the C function g_string_append.

func (*String) AppendC

func (recv *String) AppendC(c rune) *String

AppendC is a wrapper around the C function g_string_append_c.

func (*String) AppendLen

func (recv *String) AppendLen(val string, len int64) *String

AppendLen is a wrapper around the C function g_string_append_len.

func (*String) AppendPrintf added in v0.0.5

func (recv *String) AppendPrintf(format string, args ...interface{})

AppendPrintf is a wrapper around the C function g_string_append_printf.

func (*String) AppendUnichar

func (recv *String) AppendUnichar(wc rune) *String

AppendUnichar is a wrapper around the C function g_string_append_unichar.

func (*String) AsciiDown

func (recv *String) AsciiDown() *String

AsciiDown is a wrapper around the C function g_string_ascii_down.

func (*String) AsciiUp

func (recv *String) AsciiUp() *String

AsciiUp is a wrapper around the C function g_string_ascii_up.

func (*String) Assign

func (recv *String) Assign(rval string) *String

Assign is a wrapper around the C function g_string_assign.

func (*String) Down

func (recv *String) Down() *String

Down is a wrapper around the C function g_string_down.

func (*String) Equal

func (recv *String) Equal(v2 *String) bool

Equal is a wrapper around the C function g_string_equal.

func (*String) Equals added in v0.0.2

func (recv *String) Equals(other *String) bool

Equals compares this String with another String, and returns true if they represent the same GObject.

func (*String) Erase

func (recv *String) Erase(pos int64, len int64) *String

Erase is a wrapper around the C function g_string_erase.

func (*String) Free

func (recv *String) Free(freeSegment bool) string

Free is a wrapper around the C function g_string_free.

func (*String) Hash

func (recv *String) Hash() uint32

Hash is a wrapper around the C function g_string_hash.

func (*String) Insert

func (recv *String) Insert(pos int64, val string) *String

Insert is a wrapper around the C function g_string_insert.

func (*String) InsertC

func (recv *String) InsertC(pos int64, c rune) *String

InsertC is a wrapper around the C function g_string_insert_c.

func (*String) InsertLen

func (recv *String) InsertLen(pos int64, val string, len int64) *String

InsertLen is a wrapper around the C function g_string_insert_len.

func (*String) InsertUnichar

func (recv *String) InsertUnichar(pos int64, wc rune) *String

InsertUnichar is a wrapper around the C function g_string_insert_unichar.

func (*String) Prepend

func (recv *String) Prepend(val string) *String

Prepend is a wrapper around the C function g_string_prepend.

func (*String) PrependC

func (recv *String) PrependC(c rune) *String

PrependC is a wrapper around the C function g_string_prepend_c.

func (*String) PrependLen

func (recv *String) PrependLen(val string, len int64) *String

PrependLen is a wrapper around the C function g_string_prepend_len.

func (*String) PrependUnichar

func (recv *String) PrependUnichar(wc rune) *String

PrependUnichar is a wrapper around the C function g_string_prepend_unichar.

func (*String) Printf added in v0.0.5

func (recv *String) Printf(format string, args ...interface{})

Printf is a wrapper around the C function g_string_printf.

func (*String) SetSize

func (recv *String) SetSize(len uint64) *String

SetSize is a wrapper around the C function g_string_set_size.

func (*String) ToC

func (recv *String) ToC() unsafe.Pointer

func (*String) Truncate

func (recv *String) Truncate(len uint64) *String

Truncate is a wrapper around the C function g_string_truncate.

func (*String) Up

func (recv *String) Up() *String

Up is a wrapper around the C function g_string_up.

type StringChunk

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

StringChunk is a wrapper around the C record GStringChunk.

func StringChunkNew added in v0.0.3

func StringChunkNew(size uint64) *StringChunk

StringChunkNew is a wrapper around the C function g_string_chunk_new.

func StringChunkNewFromC

func StringChunkNewFromC(u unsafe.Pointer) *StringChunk

func (*StringChunk) Equals added in v0.0.2

func (recv *StringChunk) Equals(other *StringChunk) bool

Equals compares this StringChunk with another StringChunk, and returns true if they represent the same GObject.

func (*StringChunk) Free

func (recv *StringChunk) Free()

Free is a wrapper around the C function g_string_chunk_free.

func (*StringChunk) Insert

func (recv *StringChunk) Insert(string_ string) string

Insert is a wrapper around the C function g_string_chunk_insert.

func (*StringChunk) InsertConst

func (recv *StringChunk) InsertConst(string_ string) string

InsertConst is a wrapper around the C function g_string_chunk_insert_const.

func (*StringChunk) ToC

func (recv *StringChunk) ToC() unsafe.Pointer

type Strv

type Strv string

Strv is a representation of the C alias GStrv.

type TestCase

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

TestCase is a wrapper around the C record GTestCase.

func TestCaseNewFromC

func TestCaseNewFromC(u unsafe.Pointer) *TestCase

func (*TestCase) Equals added in v0.0.2

func (recv *TestCase) Equals(other *TestCase) bool

Equals compares this TestCase with another TestCase, and returns true if they represent the same GObject.

func (*TestCase) ToC

func (recv *TestCase) ToC() unsafe.Pointer

type TestConfig

type TestConfig struct {
	TestInitialized bool
	TestQuick       bool
	TestPerf        bool
	TestVerbose     bool
	TestQuiet       bool
	TestUndefined   bool
	// contains filtered or unexported fields
}

TestConfig is a wrapper around the C record GTestConfig.

func TestConfigNewFromC

func TestConfigNewFromC(u unsafe.Pointer) *TestConfig

func (*TestConfig) Equals added in v0.0.2

func (recv *TestConfig) Equals(other *TestConfig) bool

Equals compares this TestConfig with another TestConfig, and returns true if they represent the same GObject.

func (*TestConfig) ToC

func (recv *TestConfig) ToC() unsafe.Pointer

type TestLogType

type TestLogType C.GTestLogType
const (
	TEST_LOG_NONE         TestLogType = 0
	TEST_LOG_ERROR        TestLogType = 1
	TEST_LOG_START_BINARY TestLogType = 2
	TEST_LOG_LIST_CASE    TestLogType = 3
	TEST_LOG_SKIP_CASE    TestLogType = 4
	TEST_LOG_START_CASE   TestLogType = 5
	TEST_LOG_STOP_CASE    TestLogType = 6
	TEST_LOG_MIN_RESULT   TestLogType = 7
	TEST_LOG_MAX_RESULT   TestLogType = 8
	TEST_LOG_MESSAGE      TestLogType = 9
	TEST_LOG_START_SUITE  TestLogType = 10
	TEST_LOG_STOP_SUITE   TestLogType = 11
)

type TestSubprocessFlags

type TestSubprocessFlags C.GTestSubprocessFlags
const (
	TEST_SUBPROCESS_INHERIT_STDIN  TestSubprocessFlags = 1
	TEST_SUBPROCESS_INHERIT_STDOUT TestSubprocessFlags = 2
	TEST_SUBPROCESS_INHERIT_STDERR TestSubprocessFlags = 4
)

type TestSuite

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

TestSuite is a wrapper around the C record GTestSuite.

func TestSuiteNewFromC

func TestSuiteNewFromC(u unsafe.Pointer) *TestSuite

func (*TestSuite) Equals added in v0.0.2

func (recv *TestSuite) Equals(other *TestSuite) bool

Equals compares this TestSuite with another TestSuite, and returns true if they represent the same GObject.

func (*TestSuite) ToC

func (recv *TestSuite) ToC() unsafe.Pointer

type TestTrapFlags

type TestTrapFlags C.GTestTrapFlags
const (
	TEST_TRAP_SILENCE_STDOUT TestTrapFlags = 128
	TEST_TRAP_SILENCE_STDERR TestTrapFlags = 256
	TEST_TRAP_INHERIT_STDIN  TestTrapFlags = 512
)

type Thread

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

Thread is a wrapper around the C record GThread.

func ThreadNewFromC

func ThreadNewFromC(u unsafe.Pointer) *Thread

func ThreadSelf

func ThreadSelf() *Thread

ThreadSelf is a wrapper around the C function g_thread_self.

func (*Thread) Equals added in v0.0.2

func (recv *Thread) Equals(other *Thread) bool

Equals compares this Thread with another Thread, and returns true if they represent the same GObject.

func (*Thread) Join

func (recv *Thread) Join() uintptr

Join is a wrapper around the C function g_thread_join.

func (*Thread) ToC

func (recv *Thread) ToC() unsafe.Pointer

type ThreadError

type ThreadError C.GThreadError
const (
	THREAD_ERROR_AGAIN ThreadError = 0
)

type ThreadPool

type ThreadPool struct {

	// _func : no type generator for Func, GFunc
	UserData  uintptr
	Exclusive bool
	// contains filtered or unexported fields
}

ThreadPool is a wrapper around the C record GThreadPool.

func ThreadPoolNewFromC

func ThreadPoolNewFromC(u unsafe.Pointer) *ThreadPool

func (*ThreadPool) Equals added in v0.0.2

func (recv *ThreadPool) Equals(other *ThreadPool) bool

Equals compares this ThreadPool with another ThreadPool, and returns true if they represent the same GObject.

func (*ThreadPool) Free

func (recv *ThreadPool) Free(immediate bool, wait bool)

Free is a wrapper around the C function g_thread_pool_free.

func (*ThreadPool) GetMaxThreads

func (recv *ThreadPool) GetMaxThreads() int32

GetMaxThreads is a wrapper around the C function g_thread_pool_get_max_threads.

func (*ThreadPool) GetNumThreads

func (recv *ThreadPool) GetNumThreads() uint32

GetNumThreads is a wrapper around the C function g_thread_pool_get_num_threads.

func (*ThreadPool) Push

func (recv *ThreadPool) Push(data uintptr) (bool, error)

Push is a wrapper around the C function g_thread_pool_push.

func (*ThreadPool) SetMaxThreads

func (recv *ThreadPool) SetMaxThreads(maxThreads int32) (bool, error)

SetMaxThreads is a wrapper around the C function g_thread_pool_set_max_threads.

func (*ThreadPool) ToC

func (recv *ThreadPool) ToC() unsafe.Pointer

func (*ThreadPool) Unprocessed

func (recv *ThreadPool) Unprocessed() uint32

Unprocessed is a wrapper around the C function g_thread_pool_unprocessed.

type Time

type Time int32

Time is a representation of the C alias GTime.

type TimeSpan

type TimeSpan int64

TimeSpan is a representation of the C alias GTimeSpan.

type TimeType

type TimeType C.GTimeType
const (
	TIME_TYPE_STANDARD  TimeType = 0
	TIME_TYPE_DAYLIGHT  TimeType = 1
	TIME_TYPE_UNIVERSAL TimeType = 2
)

type TimeVal

type TimeVal struct {
	TvSec  int64
	TvUsec int64
	// contains filtered or unexported fields
}

TimeVal is a wrapper around the C record GTimeVal.

func TimeValNewFromC

func TimeValNewFromC(u unsafe.Pointer) *TimeVal

func (*TimeVal) Add

func (recv *TimeVal) Add(microseconds int64)

Add is a wrapper around the C function g_time_val_add.

func (*TimeVal) Equals added in v0.0.2

func (recv *TimeVal) Equals(other *TimeVal) bool

Equals compares this TimeVal with another TimeVal, and returns true if they represent the same GObject.

func (*TimeVal) ToC

func (recv *TimeVal) ToC() unsafe.Pointer

type Timer

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

Timer is a wrapper around the C record GTimer.

func TimerNew added in v0.0.3

func TimerNew() *Timer

TimerNew is a wrapper around the C function g_timer_new.

func TimerNewFromC

func TimerNewFromC(u unsafe.Pointer) *Timer

func (*Timer) Destroy

func (recv *Timer) Destroy()

Destroy is a wrapper around the C function g_timer_destroy.

func (*Timer) Elapsed

func (recv *Timer) Elapsed(microseconds uint64) float64

Elapsed is a wrapper around the C function g_timer_elapsed.

func (*Timer) Equals added in v0.0.2

func (recv *Timer) Equals(other *Timer) bool

Equals compares this Timer with another Timer, and returns true if they represent the same GObject.

func (*Timer) Reset

func (recv *Timer) Reset()

Reset is a wrapper around the C function g_timer_reset.

func (*Timer) Start

func (recv *Timer) Start()

Start is a wrapper around the C function g_timer_start.

func (*Timer) Stop

func (recv *Timer) Stop()

Stop is a wrapper around the C function g_timer_stop.

func (*Timer) ToC

func (recv *Timer) ToC() unsafe.Pointer

type TokenType

type TokenType C.GTokenType
const (
	TOKEN_EOF             TokenType = 0
	TOKEN_LEFT_PAREN      TokenType = 40
	TOKEN_RIGHT_PAREN     TokenType = 41
	TOKEN_LEFT_CURLY      TokenType = 123
	TOKEN_RIGHT_CURLY     TokenType = 125
	TOKEN_LEFT_BRACE      TokenType = 91
	TOKEN_RIGHT_BRACE     TokenType = 93
	TOKEN_EQUAL_SIGN      TokenType = 61
	TOKEN_COMMA           TokenType = 44
	TOKEN_NONE            TokenType = 256
	TOKEN_ERROR           TokenType = 257
	TOKEN_CHAR            TokenType = 258
	TOKEN_BINARY          TokenType = 259
	TOKEN_OCTAL           TokenType = 260
	TOKEN_INT             TokenType = 261
	TOKEN_HEX             TokenType = 262
	TOKEN_FLOAT           TokenType = 263
	TOKEN_STRING          TokenType = 264
	TOKEN_SYMBOL          TokenType = 265
	TOKEN_IDENTIFIER      TokenType = 266
	TOKEN_IDENTIFIER_NULL TokenType = 267
	TOKEN_COMMENT_SINGLE  TokenType = 268
	TOKEN_COMMENT_MULTI   TokenType = 269
)

type TrashStack

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

TrashStack is a wrapper around the C record GTrashStack.

func TrashStackNewFromC

func TrashStackNewFromC(u unsafe.Pointer) *TrashStack

func (*TrashStack) Equals added in v0.0.2

func (recv *TrashStack) Equals(other *TrashStack) bool

Equals compares this TrashStack with another TrashStack, and returns true if they represent the same GObject.

func (*TrashStack) ToC

func (recv *TrashStack) ToC() unsafe.Pointer

type TraverseFlags

type TraverseFlags C.GTraverseFlags
const (
	TRAVERSE_LEAVES     TraverseFlags = 1
	TRAVERSE_NON_LEAVES TraverseFlags = 2
	TRAVERSE_ALL        TraverseFlags = 3
	TRAVERSE_MASK       TraverseFlags = 3
	TRAVERSE_LEAFS      TraverseFlags = 1
	TRAVERSE_NON_LEAFS  TraverseFlags = 2
)

type TraverseType

type TraverseType C.GTraverseType
const (
	IN_ORDER    TraverseType = 0
	PRE_ORDER   TraverseType = 1
	POST_ORDER  TraverseType = 2
	LEVEL_ORDER TraverseType = 3
)

type Tree

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

Tree is a wrapper around the C record GTree.

func TreeNewFromC

func TreeNewFromC(u unsafe.Pointer) *Tree

func (*Tree) Destroy

func (recv *Tree) Destroy()

g_tree_new : unsupported parameter key_compare_func : no type generator for CompareFunc (GCompareFunc) for param key_compare_func g_tree_new_full : unsupported parameter key_compare_func : no type generator for CompareDataFunc (GCompareDataFunc) for param key_compare_func g_tree_new_with_data : unsupported parameter key_compare_func : no type generator for CompareDataFunc (GCompareDataFunc) for param key_compare_func Destroy is a wrapper around the C function g_tree_destroy.

func (*Tree) Equals added in v0.0.2

func (recv *Tree) Equals(other *Tree) bool

Equals compares this Tree with another Tree, and returns true if they represent the same GObject.

func (*Tree) Height

func (recv *Tree) Height() int32

Height is a wrapper around the C function g_tree_height.

func (*Tree) Insert

func (recv *Tree) Insert(key uintptr, value uintptr)

Insert is a wrapper around the C function g_tree_insert.

func (*Tree) Lookup

func (recv *Tree) Lookup(key uintptr) uintptr

Lookup is a wrapper around the C function g_tree_lookup.

func (*Tree) LookupExtended

func (recv *Tree) LookupExtended(lookupKey uintptr, origKey uintptr, value uintptr) bool

LookupExtended is a wrapper around the C function g_tree_lookup_extended.

func (*Tree) Nnodes

func (recv *Tree) Nnodes() int32

Nnodes is a wrapper around the C function g_tree_nnodes.

func (*Tree) Remove

func (recv *Tree) Remove(key uintptr) bool

Remove is a wrapper around the C function g_tree_remove.

func (*Tree) Replace

func (recv *Tree) Replace(key uintptr, value uintptr)

Replace is a wrapper around the C function g_tree_replace.

func (*Tree) Steal

func (recv *Tree) Steal(key uintptr) bool

Steal is a wrapper around the C function g_tree_steal.

func (*Tree) ToC

func (recv *Tree) ToC() unsafe.Pointer

type Type added in v0.0.5

type Type uint64

Type is a representation of the C alias GType.

type UnicodeBreakType

type UnicodeBreakType C.GUnicodeBreakType
const (
	UNICODE_BREAK_MANDATORY                    UnicodeBreakType = 0
	UNICODE_BREAK_CARRIAGE_RETURN              UnicodeBreakType = 1
	UNICODE_BREAK_LINE_FEED                    UnicodeBreakType = 2
	UNICODE_BREAK_COMBINING_MARK               UnicodeBreakType = 3
	UNICODE_BREAK_SURROGATE                    UnicodeBreakType = 4
	UNICODE_BREAK_ZERO_WIDTH_SPACE             UnicodeBreakType = 5
	UNICODE_BREAK_INSEPARABLE                  UnicodeBreakType = 6
	UNICODE_BREAK_NON_BREAKING_GLUE            UnicodeBreakType = 7
	UNICODE_BREAK_CONTINGENT                   UnicodeBreakType = 8
	UNICODE_BREAK_SPACE                        UnicodeBreakType = 9
	UNICODE_BREAK_AFTER                        UnicodeBreakType = 10
	UNICODE_BREAK_BEFORE                       UnicodeBreakType = 11
	UNICODE_BREAK_BEFORE_AND_AFTER             UnicodeBreakType = 12
	UNICODE_BREAK_HYPHEN                       UnicodeBreakType = 13
	UNICODE_BREAK_NON_STARTER                  UnicodeBreakType = 14
	UNICODE_BREAK_OPEN_PUNCTUATION             UnicodeBreakType = 15
	UNICODE_BREAK_CLOSE_PUNCTUATION            UnicodeBreakType = 16
	UNICODE_BREAK_QUOTATION                    UnicodeBreakType = 17
	UNICODE_BREAK_EXCLAMATION                  UnicodeBreakType = 18
	UNICODE_BREAK_IDEOGRAPHIC                  UnicodeBreakType = 19
	UNICODE_BREAK_NUMERIC                      UnicodeBreakType = 20
	UNICODE_BREAK_INFIX_SEPARATOR              UnicodeBreakType = 21
	UNICODE_BREAK_SYMBOL                       UnicodeBreakType = 22
	UNICODE_BREAK_ALPHABETIC                   UnicodeBreakType = 23
	UNICODE_BREAK_PREFIX                       UnicodeBreakType = 24
	UNICODE_BREAK_POSTFIX                      UnicodeBreakType = 25
	UNICODE_BREAK_COMPLEX_CONTEXT              UnicodeBreakType = 26
	UNICODE_BREAK_AMBIGUOUS                    UnicodeBreakType = 27
	UNICODE_BREAK_UNKNOWN                      UnicodeBreakType = 28
	UNICODE_BREAK_NEXT_LINE                    UnicodeBreakType = 29
	UNICODE_BREAK_WORD_JOINER                  UnicodeBreakType = 30
	UNICODE_BREAK_HANGUL_L_JAMO                UnicodeBreakType = 31
	UNICODE_BREAK_HANGUL_V_JAMO                UnicodeBreakType = 32
	UNICODE_BREAK_HANGUL_T_JAMO                UnicodeBreakType = 33
	UNICODE_BREAK_HANGUL_LV_SYLLABLE           UnicodeBreakType = 34
	UNICODE_BREAK_HANGUL_LVT_SYLLABLE          UnicodeBreakType = 35
	UNICODE_BREAK_CLOSE_PARANTHESIS            UnicodeBreakType = 36
	UNICODE_BREAK_CONDITIONAL_JAPANESE_STARTER UnicodeBreakType = 37
	UNICODE_BREAK_HEBREW_LETTER                UnicodeBreakType = 38
	UNICODE_BREAK_REGIONAL_INDICATOR           UnicodeBreakType = 39
	UNICODE_BREAK_EMOJI_BASE                   UnicodeBreakType = 40
	UNICODE_BREAK_EMOJI_MODIFIER               UnicodeBreakType = 41
	UNICODE_BREAK_ZERO_WIDTH_JOINER            UnicodeBreakType = 42
)

func UnicharBreakType

func UnicharBreakType(c rune) UnicodeBreakType

UnicharBreakType is a wrapper around the C function g_unichar_break_type.

type UnicodeScript

type UnicodeScript C.GUnicodeScript
const (
	UNICODE_SCRIPT_INVALID_CODE           UnicodeScript = -1
	UNICODE_SCRIPT_COMMON                 UnicodeScript = 0
	UNICODE_SCRIPT_INHERITED              UnicodeScript = 1
	UNICODE_SCRIPT_ARABIC                 UnicodeScript = 2
	UNICODE_SCRIPT_ARMENIAN               UnicodeScript = 3
	UNICODE_SCRIPT_BENGALI                UnicodeScript = 4
	UNICODE_SCRIPT_BOPOMOFO               UnicodeScript = 5
	UNICODE_SCRIPT_CHEROKEE               UnicodeScript = 6
	UNICODE_SCRIPT_COPTIC                 UnicodeScript = 7
	UNICODE_SCRIPT_CYRILLIC               UnicodeScript = 8
	UNICODE_SCRIPT_DESERET                UnicodeScript = 9
	UNICODE_SCRIPT_DEVANAGARI             UnicodeScript = 10
	UNICODE_SCRIPT_ETHIOPIC               UnicodeScript = 11
	UNICODE_SCRIPT_GEORGIAN               UnicodeScript = 12
	UNICODE_SCRIPT_GOTHIC                 UnicodeScript = 13
	UNICODE_SCRIPT_GREEK                  UnicodeScript = 14
	UNICODE_SCRIPT_GUJARATI               UnicodeScript = 15
	UNICODE_SCRIPT_GURMUKHI               UnicodeScript = 16
	UNICODE_SCRIPT_HAN                    UnicodeScript = 17
	UNICODE_SCRIPT_HANGUL                 UnicodeScript = 18
	UNICODE_SCRIPT_HEBREW                 UnicodeScript = 19
	UNICODE_SCRIPT_HIRAGANA               UnicodeScript = 20
	UNICODE_SCRIPT_KANNADA                UnicodeScript = 21
	UNICODE_SCRIPT_KATAKANA               UnicodeScript = 22
	UNICODE_SCRIPT_KHMER                  UnicodeScript = 23
	UNICODE_SCRIPT_LAO                    UnicodeScript = 24
	UNICODE_SCRIPT_LATIN                  UnicodeScript = 25
	UNICODE_SCRIPT_MALAYALAM              UnicodeScript = 26
	UNICODE_SCRIPT_MONGOLIAN              UnicodeScript = 27
	UNICODE_SCRIPT_MYANMAR                UnicodeScript = 28
	UNICODE_SCRIPT_OGHAM                  UnicodeScript = 29
	UNICODE_SCRIPT_OLD_ITALIC             UnicodeScript = 30
	UNICODE_SCRIPT_ORIYA                  UnicodeScript = 31
	UNICODE_SCRIPT_RUNIC                  UnicodeScript = 32
	UNICODE_SCRIPT_SINHALA                UnicodeScript = 33
	UNICODE_SCRIPT_SYRIAC                 UnicodeScript = 34
	UNICODE_SCRIPT_TAMIL                  UnicodeScript = 35
	UNICODE_SCRIPT_TELUGU                 UnicodeScript = 36
	UNICODE_SCRIPT_THAANA                 UnicodeScript = 37
	UNICODE_SCRIPT_THAI                   UnicodeScript = 38
	UNICODE_SCRIPT_TIBETAN                UnicodeScript = 39
	UNICODE_SCRIPT_CANADIAN_ABORIGINAL    UnicodeScript = 40
	UNICODE_SCRIPT_YI                     UnicodeScript = 41
	UNICODE_SCRIPT_TAGALOG                UnicodeScript = 42
	UNICODE_SCRIPT_HANUNOO                UnicodeScript = 43
	UNICODE_SCRIPT_BUHID                  UnicodeScript = 44
	UNICODE_SCRIPT_TAGBANWA               UnicodeScript = 45
	UNICODE_SCRIPT_BRAILLE                UnicodeScript = 46
	UNICODE_SCRIPT_CYPRIOT                UnicodeScript = 47
	UNICODE_SCRIPT_LIMBU                  UnicodeScript = 48
	UNICODE_SCRIPT_OSMANYA                UnicodeScript = 49
	UNICODE_SCRIPT_SHAVIAN                UnicodeScript = 50
	UNICODE_SCRIPT_LINEAR_B               UnicodeScript = 51
	UNICODE_SCRIPT_TAI_LE                 UnicodeScript = 52
	UNICODE_SCRIPT_UGARITIC               UnicodeScript = 53
	UNICODE_SCRIPT_NEW_TAI_LUE            UnicodeScript = 54
	UNICODE_SCRIPT_BUGINESE               UnicodeScript = 55
	UNICODE_SCRIPT_GLAGOLITIC             UnicodeScript = 56
	UNICODE_SCRIPT_TIFINAGH               UnicodeScript = 57
	UNICODE_SCRIPT_SYLOTI_NAGRI           UnicodeScript = 58
	UNICODE_SCRIPT_OLD_PERSIAN            UnicodeScript = 59
	UNICODE_SCRIPT_KHAROSHTHI             UnicodeScript = 60
	UNICODE_SCRIPT_UNKNOWN                UnicodeScript = 61
	UNICODE_SCRIPT_BALINESE               UnicodeScript = 62
	UNICODE_SCRIPT_CUNEIFORM              UnicodeScript = 63
	UNICODE_SCRIPT_PHOENICIAN             UnicodeScript = 64
	UNICODE_SCRIPT_PHAGS_PA               UnicodeScript = 65
	UNICODE_SCRIPT_NKO                    UnicodeScript = 66
	UNICODE_SCRIPT_KAYAH_LI               UnicodeScript = 67
	UNICODE_SCRIPT_LEPCHA                 UnicodeScript = 68
	UNICODE_SCRIPT_REJANG                 UnicodeScript = 69
	UNICODE_SCRIPT_SUNDANESE              UnicodeScript = 70
	UNICODE_SCRIPT_SAURASHTRA             UnicodeScript = 71
	UNICODE_SCRIPT_CHAM                   UnicodeScript = 72
	UNICODE_SCRIPT_OL_CHIKI               UnicodeScript = 73
	UNICODE_SCRIPT_VAI                    UnicodeScript = 74
	UNICODE_SCRIPT_CARIAN                 UnicodeScript = 75
	UNICODE_SCRIPT_LYCIAN                 UnicodeScript = 76
	UNICODE_SCRIPT_LYDIAN                 UnicodeScript = 77
	UNICODE_SCRIPT_AVESTAN                UnicodeScript = 78
	UNICODE_SCRIPT_BAMUM                  UnicodeScript = 79
	UNICODE_SCRIPT_EGYPTIAN_HIEROGLYPHS   UnicodeScript = 80
	UNICODE_SCRIPT_IMPERIAL_ARAMAIC       UnicodeScript = 81
	UNICODE_SCRIPT_INSCRIPTIONAL_PAHLAVI  UnicodeScript = 82
	UNICODE_SCRIPT_INSCRIPTIONAL_PARTHIAN UnicodeScript = 83
	UNICODE_SCRIPT_JAVANESE               UnicodeScript = 84
	UNICODE_SCRIPT_KAITHI                 UnicodeScript = 85
	UNICODE_SCRIPT_LISU                   UnicodeScript = 86
	UNICODE_SCRIPT_MEETEI_MAYEK           UnicodeScript = 87
	UNICODE_SCRIPT_OLD_SOUTH_ARABIAN      UnicodeScript = 88
	UNICODE_SCRIPT_OLD_TURKIC             UnicodeScript = 89
	UNICODE_SCRIPT_SAMARITAN              UnicodeScript = 90
	UNICODE_SCRIPT_TAI_THAM               UnicodeScript = 91
	UNICODE_SCRIPT_TAI_VIET               UnicodeScript = 92
	UNICODE_SCRIPT_BATAK                  UnicodeScript = 93
	UNICODE_SCRIPT_BRAHMI                 UnicodeScript = 94
	UNICODE_SCRIPT_MANDAIC                UnicodeScript = 95
	UNICODE_SCRIPT_CHAKMA                 UnicodeScript = 96
	UNICODE_SCRIPT_MEROITIC_CURSIVE       UnicodeScript = 97
	UNICODE_SCRIPT_MEROITIC_HIEROGLYPHS   UnicodeScript = 98
	UNICODE_SCRIPT_MIAO                   UnicodeScript = 99
	UNICODE_SCRIPT_SHARADA                UnicodeScript = 100
	UNICODE_SCRIPT_SORA_SOMPENG           UnicodeScript = 101
	UNICODE_SCRIPT_TAKRI                  UnicodeScript = 102
	UNICODE_SCRIPT_BASSA_VAH              UnicodeScript = 103
	UNICODE_SCRIPT_CAUCASIAN_ALBANIAN     UnicodeScript = 104
	UNICODE_SCRIPT_DUPLOYAN               UnicodeScript = 105
	UNICODE_SCRIPT_ELBASAN                UnicodeScript = 106
	UNICODE_SCRIPT_GRANTHA                UnicodeScript = 107
	UNICODE_SCRIPT_KHOJKI                 UnicodeScript = 108
	UNICODE_SCRIPT_KHUDAWADI              UnicodeScript = 109
	UNICODE_SCRIPT_LINEAR_A               UnicodeScript = 110
	UNICODE_SCRIPT_MAHAJANI               UnicodeScript = 111
	UNICODE_SCRIPT_MANICHAEAN             UnicodeScript = 112
	UNICODE_SCRIPT_MENDE_KIKAKUI          UnicodeScript = 113
	UNICODE_SCRIPT_MODI                   UnicodeScript = 114
	UNICODE_SCRIPT_MRO                    UnicodeScript = 115
	UNICODE_SCRIPT_NABATAEAN              UnicodeScript = 116
	UNICODE_SCRIPT_OLD_NORTH_ARABIAN      UnicodeScript = 117
	UNICODE_SCRIPT_OLD_PERMIC             UnicodeScript = 118
	UNICODE_SCRIPT_PAHAWH_HMONG           UnicodeScript = 119
	UNICODE_SCRIPT_PALMYRENE              UnicodeScript = 120
	UNICODE_SCRIPT_PAU_CIN_HAU            UnicodeScript = 121
	UNICODE_SCRIPT_PSALTER_PAHLAVI        UnicodeScript = 122
	UNICODE_SCRIPT_SIDDHAM                UnicodeScript = 123
	UNICODE_SCRIPT_TIRHUTA                UnicodeScript = 124
	UNICODE_SCRIPT_WARANG_CITI            UnicodeScript = 125
	UNICODE_SCRIPT_AHOM                   UnicodeScript = 126
	UNICODE_SCRIPT_ANATOLIAN_HIEROGLYPHS  UnicodeScript = 127
	UNICODE_SCRIPT_HATRAN                 UnicodeScript = 128
	UNICODE_SCRIPT_MULTANI                UnicodeScript = 129
	UNICODE_SCRIPT_OLD_HUNGARIAN          UnicodeScript = 130
	UNICODE_SCRIPT_SIGNWRITING            UnicodeScript = 131
	UNICODE_SCRIPT_ADLAM                  UnicodeScript = 132
	UNICODE_SCRIPT_BHAIKSUKI              UnicodeScript = 133
	UNICODE_SCRIPT_MARCHEN                UnicodeScript = 134
	UNICODE_SCRIPT_NEWA                   UnicodeScript = 135
	UNICODE_SCRIPT_OSAGE                  UnicodeScript = 136
	UNICODE_SCRIPT_TANGUT                 UnicodeScript = 137
	UNICODE_SCRIPT_MASARAM_GONDI          UnicodeScript = 138
	UNICODE_SCRIPT_NUSHU                  UnicodeScript = 139
	UNICODE_SCRIPT_SOYOMBO                UnicodeScript = 140
	UNICODE_SCRIPT_ZANABAZAR_SQUARE       UnicodeScript = 141
)

type UnicodeType

type UnicodeType C.GUnicodeType
const (
	UNICODE_CONTROL             UnicodeType = 0
	UNICODE_FORMAT              UnicodeType = 1
	UNICODE_UNASSIGNED          UnicodeType = 2
	UNICODE_PRIVATE_USE         UnicodeType = 3
	UNICODE_SURROGATE           UnicodeType = 4
	UNICODE_LOWERCASE_LETTER    UnicodeType = 5
	UNICODE_MODIFIER_LETTER     UnicodeType = 6
	UNICODE_OTHER_LETTER        UnicodeType = 7
	UNICODE_TITLECASE_LETTER    UnicodeType = 8
	UNICODE_UPPERCASE_LETTER    UnicodeType = 9
	UNICODE_SPACING_MARK        UnicodeType = 10
	UNICODE_ENCLOSING_MARK      UnicodeType = 11
	UNICODE_NON_SPACING_MARK    UnicodeType = 12
	UNICODE_DECIMAL_NUMBER      UnicodeType = 13
	UNICODE_LETTER_NUMBER       UnicodeType = 14
	UNICODE_OTHER_NUMBER        UnicodeType = 15
	UNICODE_CONNECT_PUNCTUATION UnicodeType = 16
	UNICODE_DASH_PUNCTUATION    UnicodeType = 17
	UNICODE_CLOSE_PUNCTUATION   UnicodeType = 18
	UNICODE_FINAL_PUNCTUATION   UnicodeType = 19
	UNICODE_INITIAL_PUNCTUATION UnicodeType = 20
	UNICODE_OTHER_PUNCTUATION   UnicodeType = 21
	UNICODE_OPEN_PUNCTUATION    UnicodeType = 22
	UNICODE_CURRENCY_SYMBOL     UnicodeType = 23
	UNICODE_MODIFIER_SYMBOL     UnicodeType = 24
	UNICODE_MATH_SYMBOL         UnicodeType = 25
	UNICODE_OTHER_SYMBOL        UnicodeType = 26
	UNICODE_LINE_SEPARATOR      UnicodeType = 27
	UNICODE_PARAGRAPH_SEPARATOR UnicodeType = 28
	UNICODE_SPACE_SEPARATOR     UnicodeType = 29
)

func UnicharType

func UnicharType(c rune) UnicodeType

UnicharType is a wrapper around the C function g_unichar_type.

type VariantBuilder

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

VariantBuilder is a wrapper around the C record GVariantBuilder.

func VariantBuilderNewFromC

func VariantBuilderNewFromC(u unsafe.Pointer) *VariantBuilder

func (*VariantBuilder) Equals added in v0.0.2

func (recv *VariantBuilder) Equals(other *VariantBuilder) bool

Equals compares this VariantBuilder with another VariantBuilder, and returns true if they represent the same GObject.

func (*VariantBuilder) ToC

func (recv *VariantBuilder) ToC() unsafe.Pointer

type VariantIter

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

VariantIter is a wrapper around the C record GVariantIter.

func VariantIterNewFromC

func VariantIterNewFromC(u unsafe.Pointer) *VariantIter

func (*VariantIter) Equals added in v0.0.2

func (recv *VariantIter) Equals(other *VariantIter) bool

Equals compares this VariantIter with another VariantIter, and returns true if they represent the same GObject.

func (*VariantIter) ToC

func (recv *VariantIter) ToC() unsafe.Pointer

type VariantParseError

type VariantParseError C.GVariantParseError
const (
	VARIANT_PARSE_ERROR_FAILED                       VariantParseError = 0
	VARIANT_PARSE_ERROR_BASIC_TYPE_EXPECTED          VariantParseError = 1
	VARIANT_PARSE_ERROR_CANNOT_INFER_TYPE            VariantParseError = 2
	VARIANT_PARSE_ERROR_DEFINITE_TYPE_EXPECTED       VariantParseError = 3
	VARIANT_PARSE_ERROR_INPUT_NOT_AT_END             VariantParseError = 4
	VARIANT_PARSE_ERROR_INVALID_CHARACTER            VariantParseError = 5
	VARIANT_PARSE_ERROR_INVALID_FORMAT_STRING        VariantParseError = 6
	VARIANT_PARSE_ERROR_INVALID_OBJECT_PATH          VariantParseError = 7
	VARIANT_PARSE_ERROR_INVALID_SIGNATURE            VariantParseError = 8
	VARIANT_PARSE_ERROR_INVALID_TYPE_STRING          VariantParseError = 9
	VARIANT_PARSE_ERROR_NO_COMMON_TYPE               VariantParseError = 10
	VARIANT_PARSE_ERROR_NUMBER_OUT_OF_RANGE          VariantParseError = 11
	VARIANT_PARSE_ERROR_NUMBER_TOO_BIG               VariantParseError = 12
	VARIANT_PARSE_ERROR_TYPE_ERROR                   VariantParseError = 13
	VARIANT_PARSE_ERROR_UNEXPECTED_TOKEN             VariantParseError = 14
	VARIANT_PARSE_ERROR_UNKNOWN_KEYWORD              VariantParseError = 15
	VARIANT_PARSE_ERROR_UNTERMINATED_STRING_CONSTANT VariantParseError = 16
	VARIANT_PARSE_ERROR_VALUE_EXPECTED               VariantParseError = 17
)

type VariantType added in v0.0.5

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

VariantType is a wrapper around the C record GVariantType.

func VariantTypeChecked added in v0.0.5

func VariantTypeChecked(arg0 string) *VariantType

VariantTypeChecked is a wrapper around the C function g_variant_type_checked_.

func VariantTypeNewArray added in v0.0.5

func VariantTypeNewArray(element *VariantType) *VariantType

VariantTypeNewArray is a wrapper around the C function g_variant_type_new_array.

func VariantTypeNewDictEntry added in v0.0.5

func VariantTypeNewDictEntry(key *VariantType, value *VariantType) *VariantType

VariantTypeNewDictEntry is a wrapper around the C function g_variant_type_new_dict_entry.

func VariantTypeNewFromC added in v0.0.5

func VariantTypeNewFromC(u unsafe.Pointer) *VariantType

func VariantTypeNewMaybe added in v0.0.5

func VariantTypeNewMaybe(element *VariantType) *VariantType

VariantTypeNewMaybe is a wrapper around the C function g_variant_type_new_maybe.

func (*VariantType) Copy added in v0.0.5

func (recv *VariantType) Copy() *VariantType

Copy is a wrapper around the C function g_variant_type_copy.

func (*VariantType) DupString added in v0.0.5

func (recv *VariantType) DupString() string

DupString is a wrapper around the C function g_variant_type_dup_string.

func (*VariantType) Element added in v0.0.5

func (recv *VariantType) Element() *VariantType

Element is a wrapper around the C function g_variant_type_element.

func (*VariantType) Equal added in v0.0.5

func (recv *VariantType) Equal(type2 *VariantType) bool

Equal is a wrapper around the C function g_variant_type_equal.

func (*VariantType) Equals added in v0.0.5

func (recv *VariantType) Equals(other *VariantType) bool

Equals compares this VariantType with another VariantType, and returns true if they represent the same GObject.

func (*VariantType) First added in v0.0.5

func (recv *VariantType) First() *VariantType

First is a wrapper around the C function g_variant_type_first.

func (*VariantType) Free added in v0.0.5

func (recv *VariantType) Free()

Free is a wrapper around the C function g_variant_type_free.

func (*VariantType) GetStringLength added in v0.0.5

func (recv *VariantType) GetStringLength() uint64

GetStringLength is a wrapper around the C function g_variant_type_get_string_length.

func (*VariantType) Hash added in v0.0.5

func (recv *VariantType) Hash() uint32

Hash is a wrapper around the C function g_variant_type_hash.

func (*VariantType) IsArray added in v0.0.5

func (recv *VariantType) IsArray() bool

IsArray is a wrapper around the C function g_variant_type_is_array.

func (*VariantType) IsBasic added in v0.0.5

func (recv *VariantType) IsBasic() bool

IsBasic is a wrapper around the C function g_variant_type_is_basic.

func (*VariantType) IsContainer added in v0.0.5

func (recv *VariantType) IsContainer() bool

IsContainer is a wrapper around the C function g_variant_type_is_container.

func (*VariantType) IsDefinite added in v0.0.5

func (recv *VariantType) IsDefinite() bool

IsDefinite is a wrapper around the C function g_variant_type_is_definite.

func (*VariantType) IsDictEntry added in v0.0.5

func (recv *VariantType) IsDictEntry() bool

IsDictEntry is a wrapper around the C function g_variant_type_is_dict_entry.

func (*VariantType) IsMaybe added in v0.0.5

func (recv *VariantType) IsMaybe() bool

IsMaybe is a wrapper around the C function g_variant_type_is_maybe.

func (*VariantType) IsSubtypeOf added in v0.0.5

func (recv *VariantType) IsSubtypeOf(supertype *VariantType) bool

IsSubtypeOf is a wrapper around the C function g_variant_type_is_subtype_of.

func (*VariantType) IsTuple added in v0.0.5

func (recv *VariantType) IsTuple() bool

IsTuple is a wrapper around the C function g_variant_type_is_tuple.

func (*VariantType) IsVariant added in v0.0.5

func (recv *VariantType) IsVariant() bool

IsVariant is a wrapper around the C function g_variant_type_is_variant.

func (*VariantType) Key added in v0.0.5

func (recv *VariantType) Key() *VariantType

Key is a wrapper around the C function g_variant_type_key.

func (*VariantType) NItems added in v0.0.5

func (recv *VariantType) NItems() uint64

NItems is a wrapper around the C function g_variant_type_n_items.

func (*VariantType) Next added in v0.0.5

func (recv *VariantType) Next() *VariantType

Next is a wrapper around the C function g_variant_type_next.

func (*VariantType) PeekString added in v0.0.5

func (recv *VariantType) PeekString() string

PeekString is a wrapper around the C function g_variant_type_peek_string.

func (*VariantType) ToC added in v0.0.5

func (recv *VariantType) ToC() unsafe.Pointer

func (*VariantType) Value added in v0.0.5

func (recv *VariantType) Value() *VariantType

Value is a wrapper around the C function g_variant_type_value.

Jump to

Keyboard shortcuts

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