Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/diamondburned/gotk4
/ functions
Functions
8,844 in github.com/diamondburned/gotk4
⨍
Functions
8,844
◇
Types & classes
1,122
↓ 6 callers
Method
convertType
convertType converts a manually-crafted value with the given type.
gir/girgen/types/typeconv/typeconv.go:292
↓ 6 callers
Method
ensureCap
()
gir/girgen/pen/piece.go:18
↓ 6 callers
Function
gets
go:nosplit
pkg/core/intern/intern.go:313
↓ 6 callers
Method
lookupType
(t Type)
pkg/core/glib/glib.go:1393
↓ 6 callers
Method
makeFile
(filename string)
gir/girgen/namespace.go:232
↓ 6 callers
Method
ownershipIsTransferring
isTransferring is true when the ownership is either full or container. If the converter code isn't generating for an array, then distinguishing this d
gir/girgen/types/typeconv/value.go:257
↓ 6 callers
Function
wrapContentProvider
(obj *coreglib.Object)
pkg/gdk/v4/gdk.go:8526
↓ 6 callers
Function
wrapContext
(obj *coreglib.Object)
pkg/pango/pango.go:5232
↓ 6 callers
Function
wrapCoverage
(obj *coreglib.Object)
pkg/pango/pango.go:5932
↓ 6 callers
Function
wrapCursor
(obj *coreglib.Object)
pkg/gdk/v3/gdk.go:8560
↓ 6 callers
Function
wrapCursor
(obj *coreglib.Object)
pkg/gdk/v4/gdk.go:9457
↓ 6 callers
Function
wrapTexture
(obj *coreglib.Object)
pkg/gdk/v4/gdk.go:17779
↓ 5 callers
Method
AddCallbackHeader
AddCallbackHeader adds a callback header raw.
gir/girgen/file/file.go:209
↓ 5 callers
Method
All
All returns an iterator over all values in the list.
pkg/core/gioutil/listmodel.go:100
↓ 5 callers
Method
Append
Append appends a value to the list.
pkg/core/gioutil/listmodel.go:61
↓ 5 callers
Function
BGRA
BGRA converts a pixel buffer between Go's RGBA and other systems' BGRA byte orders. It panics if the input slice length is not a multiple of 4.
pkg/cairo/swizzle/swizzle_common.go:13
↓ 5 callers
Method
Bytes
Bytes returns the internal byte slice.
gir/girgen/pen/paper.go:84
↓ 5 callers
Function
CGoTypeFromC
CGoTypeFromC converts a C type to a CGo type.
gir/girgen/types/types.go:328
↓ 5 callers
Method
CType
CType returns the resulting type's C type identifier.
gir/gir.go:342
↓ 5 callers
Method
Closures
Closures returns the closure registry for this Box.
pkg/core/intern/intern.go:44
↓ 5 callers
Method
Convert
Convert converts the value at the given index.
gir/girgen/types/typeconv/typeconv.go:193
↓ 5 callers
Method
ConvertAll
ConvertAll converts all values.
gir/girgen/types/typeconv/typeconv.go:130
↓ 5 callers
Method
Dx
Dx: horizontal offset of the shadow.
pkg/gsk/v4/gsk.go:9143
↓ 5 callers
Function
ExportedName
ExportedName generates the full name for any exported function or variable generated by gotk4. It prepends the right strings to make the exported iden
gir/girgen/file/file.go:169
↓ 5 callers
Function
FilterSub
FilterSub filters a field or method inside a parent.
gir/girgen/types/filter.go:425
↓ 5 callers
Function
GIRIsPrimitive
GIRIsPrimitive returns true if the Go primitive type of the GIR type is valid and is not a string.
gir/girgen/types/types.go:540
↓ 5 callers
Function
GenerateGType
(gen FileGeneratorWriter, name, glibGetType string)
gir/girgen/generators/generators.go:78
↓ 5 callers
Method
GoValue
GoValue converts a Value to comparable Go type. GoValue() returns InvalidValue if the conversion was unsuccessful. The returned value must be type ass
pkg/core/glib/glib.go:1509
↓ 5 callers
Method
ImportImpl
ImportImpl adds the import for the implementing type of the Resolved type into the file header.
gir/girgen/types/resolve.go:685
↓ 5 callers
Method
ImportPubl
ImportPubl adds the import for the public type of the Resolved type into the file header.
gir/girgen/types/resolve.go:664
↓ 5 callers
Method
Logln
(lvl logger.Level, v ...interface{})
gir/girgen/generators/callable/callable.go:783
↓ 5 callers
Function
ModifyCallable
ModifyCallable is a preprocessor that modifies an existing callable. It only does Function or Callback.
gir/girgen/types/filter.go:252
↓ 5 callers
Method
NItems
NItems determines the number of items contained in a tuple or dictionary entry type. This function may only be used with tuple or dictionary entry ty
pkg/glib/v2/glib.go:33386
↓ 5 callers
Method
NeedsGLibObject
NeedsGLibObject adds the glib-object.h include and the glib-2.0 package.
gir/girgen/file/file.go:277
↓ 5 callers
Method
OutCast
OutCast returns the left-hand side consisting of the pointer dereference and the pointer-prefixed type.
gir/girgen/types/typeconv/valueconverted.go:801
↓ 5 callers
Function
ParseVersionName
ParseVersionName parses the given full namespace to return the original name and the version separately. If no versions are available, then the empty
gir/gir.go:86
↓ 5 callers
Method
Seek
(offset int64, whence int)
pkg/core/gioutil/gioutil.go:195
↓ 5 callers
Method
Store
Store stores the serialized form of value at data. data should be large enough. See g_variant_get_size(). The stored data is in machine native byte o
pkg/glib/v2/glib.go:31923
↓ 5 callers
Method
String
String returns the name in string for Colorspace.
pkg/gdkpixbuf/v2/gdkpixbuf.go:121
↓ 5 callers
Method
String
String returns the block.
gir/girgen/pen/block.go:40
↓ 5 callers
Function
TryGet
TryGet gets the Box associated with the GObject or nil if it's gone. The caller must not retain the Box pointer anywhere.
pkg/core/intern/intern.go:134
↓ 5 callers
Function
ValueFromNative
ValueFromNative returns a type-asserted pointer to the Value. It does not add a finalizer into the Value. This function should only be used for autoge
pkg/core/glib/glib.go:1079
↓ 5 callers
Method
builder
()
gir/girgen/pen/paper.go:66
↓ 5 callers
Function
findInfo
(k infoKey, f func(infoCKey) unsafe.Pointer)
pkg/core/girepository/girepository.go:230
↓ 5 callers
Function
gbool
Deprecated: use GBool.
pkg/core/glib/glib.go:36
↓ 5 callers
Function
getField
(value reflect.Value, field string)
gir/girgen/cmt/cmt.go:66
↓ 5 callers
Method
instance
(goval any)
pkg/core/glib/go.go:272
↓ 5 callers
Method
native
()
pkg/core/glib/gvariant.go:210
↓ 5 callers
Function
newJunk
newJunk returns a byte slice of new random junk.
pkg/core/gioutil/gioutil_test.go:15
↓ 5 callers
Function
newPatternFromNative
(patternNative *C.cairo_pattern_t)
pkg/cairo/pattern.go:68
↓ 5 callers
Function
wrapHyperlink
(obj *coreglib.Object)
pkg/atk/atk.go:12941
↓ 5 callers
Function
wrapMonitor
(obj *coreglib.Object)
pkg/gdk/v4/gdk.go:16003
↓ 5 callers
Function
wrapSnapshot
(obj *coreglib.Object)
pkg/gdk/v4/gdk.go:16886
↓ 4 callers
Function
AnyTypeIsPtr
AnyTypeIsPtr returns true if the AnyType contains a pointer.
gir/girgen/types/types.go:374
↓ 4 callers
Method
Cancel
Cancel will set cancellable to cancelled. It is the same as calling the cancel callback given after context creation.
pkg/core/gcancel/gcancel.go:37
↓ 4 callers
Method
Cast
Cast casts v to the concrete Go type (e.g. *Object to *gtk.Entry). go:nosplit go:nocheckptr
pkg/core/glib/glib.go:673
↓ 4 callers
Function
CreateImageSurface
CreateImageSurface is a wrapper around cairo_image_surface_create().
pkg/cairo/surface_image.go:50
↓ 4 callers
Method
Data
GetData is a wrapper around cairo_image_surface_get_data().
pkg/cairo/surface.go:304
↓ 4 callers
Function
DecPtr
DecPtr decrements a pointer in the type.
gir/girgen/types/types.go:266
↓ 4 callers
Method
Dy
Dy: vertical offset of the shadow.
pkg/gsk/v4/gsk.go:9151
↓ 4 callers
Method
Error
Error implements error. It calls String() unless s is StatusSuccess.
pkg/cairo/status.go:113
↓ 4 callers
Method
Focus
Focus sets keyboard focus to surface.
pkg/gdk/v4/gdk.go:6632
↓ 4 callers
Function
GIRPrimitiveGo
GIRPrimitiveGo returns Go primitive types that can be copied by-value without doing any pointer work. It returns an empty string if there's none.
gir/girgen/types/types.go:526
↓ 4 callers
Function
HasKey
(key string)
pkg/core/gdebug/gdebug.go:13
↓ 4 callers
Function
HashTableSize
HashTableSize returns the size of the *GHashTable.
pkg/core/gextras/gextras.go:56
↓ 4 callers
Method
Header
Header returns the callback generator's current header.
gir/girgen/generators/iface/iface.go:156
↓ 4 callers
Method
Hide
Hide: for toplevel windows, withdraws them, so they will no longer be known to the window manager; for all windows, unmaps them, so they won’t be disp
pkg/gdk/v3/gdk.go:18434
↓ 4 callers
Method
ImportAlias
(path, alias string)
gir/girgen/file/file.go:100
↓ 4 callers
Method
Index
Index returns the actual underlying index if any, or it returns -1.
gir/girgen/types/typeconv/value.go:33
↓ 4 callers
Method
InsertText
InsertText: insert text at a given position.
pkg/atk/atk.go:5617
↓ 4 callers
Method
Int
Int returns the next random #guint32 from rand_ equally distributed over the range [0..2^32-1]. The function returns the following values: - guint32
pkg/glib/v2/glib.go:24704
↓ 4 callers
Method
Is
Is checks that the index matches. This method should be used as it guarantees that the given index isn't special.
gir/girgen/types/typeconv/value.go:42
↓ 4 callers
Method
IsClass
IsClass returns true if the generator is generating a class.
gir/girgen/generators/iface/iface.go:133
↓ 4 callers
Method
IsEmpty
()
gir/girgen/file.go:24
↓ 4 callers
Method
IsGpointer
IsGpointer returns true if the given type is a gpointer type.
gir/girgen/types/resolve.go:223
↓ 4 callers
Method
IsPrimitive
IsPrimitive returns true if the resolved type is a builtin type that can be directly casted to an equivalent C type OR a record.
gir/girgen/types/resolve.go:365
↓ 4 callers
Method
IsReadable
IsReadable returns true if the field is readable.
gir/types.go:180
↓ 4 callers
Method
Logln
TODO: realistically, the difference between the expected poiner and what C wants is only 1. We can work around this. TODO: ideally, we should treat a
gir/girgen/types/typeconv/typeconv.go:427
↓ 4 callers
Method
MatchString
MatchString matches a string against a compiled pattern. If the string is to be matched against more than one pattern, consider using g_pattern_match(
pkg/glib/v2/glib.go:24019
↓ 4 callers
Function
MoveHashTable
MoveHashTable calls f on every value of the given *GHashTable and frees each element in the process if rm is true.
pkg/core/gextras/gextras.go:62
↓ 4 callers
Method
Name
Name returns the copy of the type's name.
gir/gir.go:416
↓ 4 callers
Function
NewBlock
NewBlock creates a new preallocated block.
gir/girgen/pen/block.go:15
↓ 4 callers
Function
NewGenerator
NewGenerator creates a new callable generator from the given generator.
gir/girgen/generators/callable/callable.go:69
↓ 4 callers
Function
NewPaperBufferSize
NewPaperBufferSize creates a new Paper with the given size to preallocate.
gir/girgen/pen/paper.go:59
↓ 4 callers
Function
NewPaperStringSize
NewPaperStringSize creates a new Paper with the given size to preallocate.
gir/girgen/pen/paper.go:19
↓ 4 callers
Function
NewTraces
NewTraces returns a new Traceable struct with the stack trace of the calling function.
gir/internal/tracing/tracing.go:17
↓ 4 callers
Method
Read
Read implements io.Reader.
pkg/core/gioutil/gioutil.go:61
↓ 4 callers
Method
Realize
Realize creates the resources needed by the renderer to render the scene graph. Since GTK 4.6, the surface may be NULL, which allows using renderers
pkg/gsk/v4/gsk.go:5054
↓ 4 callers
Method
Recv
Recv returns the method receiver.
gir/girgen/generators/union.go:140
↓ 4 callers
Function
RegisterGValueMarshalers
RegisterGValueMarshalers adds marshalers for several types to the internal marshalers map. Once registered, calling GoValue on any Value with a regist
pkg/core/glib/glib.go:1282
↓ 4 callers
Function
RenameEnumMembers
RenameEnumMembers renames all members of the matched enums. It is primarily used to avoid collisions.
gir/girgen/types/filter.go:148
↓ 4 callers
Method
Render
Render renders the scene graph, described by a tree of GskRenderNode instances to the renderer's surface, ensuring that the given region gets redrawn.
pkg/gsk/v4/gsk.go:5126
↓ 4 callers
Method
Repositories
Repositories returns the list of known repositories inside the generator.
gir/girgen/types/generator.go:29
↓ 4 callers
Method
Reset
Reset resets the state of the checksum back to its initial state.
pkg/glib/v2/glib.go:15234
↓ 4 callers
Method
Seek
Seek sets the current position in the OChannel, similar to the standard library function fseek(). Deprecated: Use g_io_channel_seek_position() instea
pkg/glib/v2/glib.go:18838
↓ 4 callers
Method
Show
Show: like gdk_window_show_unraised(), but also raises the window to the top of the window stack (moves the window to the front of the Z-order). This
pkg/gdk/v3/gdk.go:20266
↓ 4 callers
Function
SplitGIRType
SplitGIRType splits the given GIR type string into 2 parts: the namespace, which preceeds the period, and the type name. If there is no period, then a
gir/gir.go:55
↓ 4 callers
Method
String
String calls t.Name(). It satisfies fmt.Stringer.
pkg/core/glib/glib.go:118
↓ 4 callers
Function
StringSet
StringSet joins the given slices of strings into a map with the keys as the values of each of the given slices.
gir/cmd/gir-generate/genmain/genutil.go:22
↓ 4 callers
Function
Take
Take wraps a unsafe.Pointer as a Object, taking ownership of it. This function is exported for visibility in other gotk3 packages and is not meant to
pkg/core/glib/glib.go:637
← previous
next →
201–300 of 8,844, ranked by callers