g

package
v0.0.0-...-b654873 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TYPE_INVALID   gi.GType = C.G_TYPE_INVALID
	TYPE_NONE      gi.GType = C.G_TYPE_NONE
	TYPE_INTERFACE gi.GType = C.G_TYPE_INTERFACE
	TYPE_CHAR      gi.GType = C.G_TYPE_CHAR
	TYPE_UCHAR     gi.GType = C.G_TYPE_UCHAR
	TYPE_BOOLEAN   gi.GType = C.G_TYPE_BOOLEAN
	TYPE_INT       gi.GType = C.G_TYPE_INT   // int32
	TYPE_UINT      gi.GType = C.G_TYPE_UINT  // uint32
	TYPE_LONG      gi.GType = C.G_TYPE_LONG  // int64
	TYPE_ULONG     gi.GType = C.G_TYPE_ULONG // uint64
	TYPE_INT64     gi.GType = C.G_TYPE_INT64
	TYPE_UINT64    gi.GType = C.G_TYPE_UINT64
	TYPE_ENUM      gi.GType = C.G_TYPE_ENUM
	TYPE_FLAGS     gi.GType = C.G_TYPE_FLAGS
	TYPE_FLOAT     gi.GType = C.G_TYPE_FLOAT
	TYPE_DOUBLE    gi.GType = C.G_TYPE_DOUBLE
	TYPE_STRING    gi.GType = C.G_TYPE_STRING
	TYPE_POINTER   gi.GType = C.G_TYPE_POINTER
	TYPE_BOXED     gi.GType = C.G_TYPE_BOXED
	TYPE_PARAM     gi.GType = C.G_TYPE_PARAM
	TYPE_OBJECT    gi.GType = C.G_TYPE_OBJECT
	TYPE_VARIANT   gi.GType = C.G_TYPE_VARIANT
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SignalHandle

type SignalHandle uint

用于信号处理的

type SourceHandle

type SourceHandle uint

func IdleAdd

func IdleAdd(fn SourceFunc) (SourceHandle, error)

IdleAdd adds an idle source to the default main event loop context. After running once, the source func will be removed from the main event loop, unless f returns a single bool true.

This function will cause a panic when f eventually runs if the types of args do not match those of f.

func TimeoutAdd

func TimeoutAdd(interval time.Duration, fn SourceFunc) (SourceHandle, error)

TimeoutAdd adds an timeout source to the default main event loop context. After running once, the source func will be removed from the main event loop, unless f returns a single bool true.

func TimeoutAddSeconds

func TimeoutAddSeconds(interval uint, fn SourceFunc) (SourceHandle, error)

Jump to

Keyboard shortcuts

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