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
↓ 13 callers
Method
MakeFile
MakeFile makes a new GoFileGenerator for the given filename or returns an existing one.
gir/girgen/namespace.go:223
↓ 13 callers
Function
MoveSList
MoveSList is similar to MoveList, except it's used for singly-linked lists.
pkg/core/gextras/gextras.go:99
↓ 13 callers
Function
PascalToGo
PascalToGo converts regular Pascal case to Go.
gir/girgen/strcases/strcases.go:143
↓ 13 callers
Function
SListSize
SListSize returns the length of the singly-linked list.
pkg/core/gextras/gextras.go:94
↓ 13 callers
Function
newValuePrimitive
(val *Value, v interface{})
pkg/core/glib/glib.go:1187
↓ 13 callers
Function
wrapAction
(obj *coreglib.Object)
pkg/atk/atk.go:3360
↓ 12 callers
Function
AnyTypeC
AnyTypeC returns the C type for a GIR AnyType. An empty string is returned if none is made.
gir/girgen/types/types.go:355
↓ 12 callers
Function
ApplyHeader
ApplyHeader applies the given src headers to dst.
gir/girgen/file/file.go:28
↓ 12 callers
Function
FileFilter
FileFilter filters based on the source position. It filters out types that have a source position that contains the given string.
gir/girgen/types/filter.go:546
↓ 12 callers
Method
IsBuiltin
IsBuiltin is a convenient function to compare the builtin type.
gir/girgen/types/resolve.go:424
↓ 12 callers
Method
ToError
ToError returns the error for the status. Returns nil if success.
pkg/cairo/status.go:121
↓ 12 callers
Method
native
native returns a pointer to the underlying GObject.
pkg/core/glib/glib.go:759
↓ 12 callers
Method
vtmpl
(tmpl string)
gir/girgen/types/typeconv/valueconverted.go:126
↓ 12 callers
Function
wrapVisual
(obj *coreglib.Object)
pkg/gdk/v3/gdk.go:15483
↓ 11 callers
Function
BaseObject
BaseObject gets the internal Object type. This is used for calling methods not in the Objector.
pkg/core/glib/glib.go:617
↓ 11 callers
Function
CountPtr
CountPtr counts the number of pointers in the given type string. If the string contains "[]", then the pointer is counted up to that.
gir/girgen/types/types.go:252
↓ 11 callers
Method
FindFullType
FindFullType finds a type from the given fullType string. The fullType string MUST have the namespace version, suck as Gdk-2.Item.
gir/gir.go:534
↓ 11 callers
Method
Logln
(lvl logger.Level, v ...interface{})
gir/girgen/generators/iface/iface.go:90
↓ 11 callers
Function
NewJoints
NewJoints creates a new Joints instance.
gir/girgen/pen/joints.go:15
↓ 11 callers
Method
ParameterIsOutput
ParameterIsOutput returns true if the direction is out.
gir/girgen/types/typeconv/value.go:218
↓ 11 callers
Function
Prefix
Prefix prepends the given prefixes into the given value list.
gir/girgen/logger/logger.go:82
↓ 11 callers
Function
WrapSurface
(s uintptr)
pkg/cairo/surface.go:82
↓ 11 callers
Method
logIfSkipped
(generated bool, what string)
gir/girgen/namespace.go:412
↓ 11 callers
Function
objInfo
(obj unsafe.Pointer)
pkg/core/intern/intern.go:83
↓ 11 callers
Function
wrapClipboard
(obj *coreglib.Object)
pkg/gdk/v4/gdk.go:7492
↓ 10 callers
Function
EnsureInfoFields
EnsureInfoFields ensures that the given type contains all fields inside InfoFields.
gir/girgen/cmt/cmt.go:106
↓ 10 callers
Method
Load
Load loads the given GClosure's callback. Nil is returned if it's not found.
pkg/core/closure/closure.go:24
↓ 10 callers
Method
Underlying
Underlying returns itself OR the alias' resolved type if there's one. It runs until the final type is resolved.
gir/girgen/types/resolve.go:250
↓ 9 callers
Function
FileWriterFromType
FileWriterFromType is a convenient function that returns the FileWriter from the given GIR type.
gir/girgen/generators/generators.go:30
↓ 9 callers
Function
MajorVersion
MajorVersion returns the major version number only.
gir/gir.go:65
↓ 9 callers
Function
ParamSpecTake
ParamSpecTake wraps ptr into a ParamSpec and ensures that it's properly GC'd.
pkg/core/glib/paramspec.go:207
↓ 9 callers
Method
Quark
Quark returns the internal quark for the error. Callers that want this quark must manually type assert using their own interface.
pkg/core/gerror/gerror.go:109
↓ 9 callers
Method
Replace
Replace inserts a new key and value into a #GTree as g_tree_replace_node() does, only this function does not return the inserted or set node. The fun
pkg/glib/v2/glib.go:27563
↓ 9 callers
Function
Resolve
Resolve resolves the given type from the GIR type field. It returns nil if the type is not known. It does not recursively traverse the type.
gir/girgen/types/resolve.go:799
↓ 9 callers
Method
native
native returns a pointer to the underlying cairo_pattern_t.
pkg/cairo/pattern.go:79
↓ 9 callers
Function
newParamSpecCommon
(name, nick, blurb string)
pkg/core/glib/paramspec.go:50
↓ 9 callers
Function
wrapScreen
(obj *coreglib.Object)
pkg/gdk/v3/gdk.go:14050
↓ 8 callers
Method
Addf
Addf adds a new joint with Sprintf.
gir/girgen/pen/joints.go:32
↓ 8 callers
Method
Copy
Copy is a wrapper around cairo_region_copy().
pkg/cairo/region.go:152
↓ 8 callers
Method
Done
Done returns the channel that's closed once the cancellable is cancelled.
pkg/core/gcancel/gcancel.go:93
↓ 8 callers
Method
ImplType
ImplType returns the implementation type. This is only different to PublicType as far as classes go: the returned type is the unexported implementatio
gir/girgen/types/resolve.go:593
↓ 8 callers
Method
IsClass
IsClass returns true if the current ResolvedType is a class.
gir/girgen/types/resolve.go:319
↓ 8 callers
Function
ModifyParamDirections
ModifyParamDirections wraps ModifyCallable to conveniently override the parameters' directions.
gir/girgen/types/filter.go:269
↓ 8 callers
Method
MustRealloc
MustRealloc returns true if we need to malloc our values to give it to C. Generally, if a conversion routine has a no-alloc path, it should check Must
gir/girgen/types/typeconv/valueconverted.go:905
↓ 8 callers
Method
Native
Native returns a pointer to the underlying GObject.
pkg/core/glib/glib.go:767
↓ 8 callers
Method
NeedsNamespace
NeedsNamespace returns true if the returned Go type needs a namespace to be referenced properly.
gir/girgen/types/resolve.go:522
↓ 8 callers
Function
ResolveAnyType
ResolveAnyType returns a copy of gir.AnyType containg the C type fields filled.
gir/girgen/types/resolve.go:935
↓ 8 callers
Method
UnderlyingExtern
UnderlyingExtern returns the extern type OR the alias' extern type iff there's one. Nil is returned if neither.
gir/girgen/types/resolve.go:259
↓ 8 callers
Method
Use
Use accepts either a *gir.Class or a *gir.Interface; any other type will make it panic.
gir/girgen/generators/iface/iface.go:271
↓ 8 callers
Function
externGLibType
externGLibType returns an external GLib type from core/glib.
gir/girgen/types/resolve.go:87
↓ 8 callers
Function
gobool
(b C.cairo_bool_t)
pkg/cairo/util.go:15
↓ 8 callers
Method
native
()
pkg/core/glib/slist.go:54
↓ 8 callers
Method
ptr
(sub1 bool)
gir/girgen/types/resolve.go:533
↓ 8 callers
Function
typeFromObject
(obj unsafe.Pointer)
pkg/core/glib/glib.go:796
↓ 8 callers
Method
unset
()
pkg/core/glib/glib.go:1008
↓ 8 callers
Function
wrapSurface
(surface *C.cairo_surface_t)
pkg/cairo/surface.go:66
↓ 7 callers
Method
Close
Close closes the directory immediately and decrements the reference count. Once the reference count reaches zero, the GDir structure itself will be f
pkg/glib/v2/glib.go:17194
↓ 7 callers
Function
GetInfoFields
GetInfoFields gets the InfoFields from the given value.
gir/girgen/cmt/cmt.go:87
↓ 7 callers
Method
Has
Has returns true if i contains other.
pkg/glib/v2/glib.go:3694
↓ 7 callers
Method
IsInterface
IsInterface returns true if the current ResolvedType is an interface.
gir/girgen/types/resolve.go:308
↓ 7 callers
Method
IsRecord
IsRecord returns true if the current ResolvedType is a record.
gir/girgen/types/resolve.go:286
↓ 7 callers
Method
IsZeroTerminated
IsZeroTerminated returns true if the Array is zero-terminated. It accounts for edge cases of the structure.
gir/types.go:47
↓ 7 callers
Method
Name
Name returns a non-localized string naming the specified action of the object.
pkg/atk/atk.go:3353
↓ 7 callers
Method
Native
Native returns a pointer to the underlying GValue.
pkg/core/glib/glib.go:1106
↓ 7 callers
Method
Parse
Parse parses a textual representation of a color, filling in the red, green, blue and alpha fields of the rgba RGBA. The string can be either one of:
pkg/gdk/v3/gdk.go:24599
↓ 7 callers
Method
PublicType
PublicType returns the public type. If the resolved type is a class, then the interface type is returned.
gir/girgen/types/resolve.go:613
↓ 7 callers
Method
Run
Run runs a main loop until g_main_loop_quit() is called on the loop. If this is called for the thread of the loop's Context, it will process events fr
pkg/glib/v2/glib.go:21994
↓ 7 callers
Method
Splice
Splice removes the values in the given range and replaces them with the given values.
pkg/core/gioutil/listmodel.go:72
↓ 7 callers
Method
finalize
finalize finalizes the value and returns true, or false is returned if the value is already finalized.
gir/girgen/types/typeconv/valueconverted.go:103
↓ 7 callers
Function
wrapDeviceTool
(obj *coreglib.Object)
pkg/gdk/v4/gdk.go:10335
↓ 7 callers
Function
wrapLayout
(obj *coreglib.Object)
pkg/pango/pango.go:9237
↓ 7 callers
Function
wrapMonitor
(obj *coreglib.Object)
pkg/gdk/v3/gdk.go:13754
↓ 7 callers
Function
wrapPixbufAnimation
(obj *coreglib.Object)
pkg/gdkpixbuf/v2/gdkpixbuf.go:3049
↓ 7 callers
Function
wrapStateSet
(obj *coreglib.Object)
pkg/atk/atk.go:16382
↓ 6 callers
Function
AddCallbackHeader
AddCallbackHeader is a convenient function around AddCallableHeader that takes in a Callback.
gir/girgen/types/generator.go:62
↓ 6 callers
Method
AddMarshaler
AddMarshaler adds the type marshaler into the init header. It also adds imports.
gir/girgen/file/file.go:146
↓ 6 callers
Function
AnyTypeCGo
AnyTypeCGo returns the CGo type for a GIR AnyType. An empty string is returned if none is made.
gir/girgen/types/types.go:349
↓ 6 callers
Function
CTypeFallback
CTypeFallback returns the C type OR the GIR type if it's empty.
gir/girgen/types/types.go:450
↓ 6 callers
Function
CallbackArg
CallbackArg formats the callback variable name for the given variable index.
gir/girgen/generators/callback/callback.go:147
↓ 6 callers
Method
CanCast
CanCast 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:407
↓ 6 callers
Method
Count
Count: number of contiguous GDK_EXPOSE events following this one. The only use for this is “exposure compression”, i.e. handling all contiguous GDK_EX
pkg/gdk/v3/gdk.go:21716
↓ 6 callers
Method
Delete
Delete removes the entry at the given index.
pkg/core/slab/slab.go:120
↓ 6 callers
Method
Event
Event gets the next Event to be processed for display, fetching events from the windowing system if necessary. The function returns the following val
pkg/gdk/v3/gdk.go:10686
↓ 6 callers
Function
Find
Find finds the given GIR type from the given generator.
gir/girgen/types/generator.go:52
↓ 6 callers
Function
FindMethodName
FindMethodName finds from the method the given name.
gir/girgen/types/types.go:177
↓ 6 callers
Method
FindNamespace
FindNamespace finds the repository and namespace with the given name and version. If name doesn't have the version bits, then it panics.
gir/gir.go:296
↓ 6 callers
Function
GuessParameterOutput
GuessParameterOutput guesses the parameter output using various clues to make up for GIR's painful shortcomings.
gir/girgen/types/types.go:573
↓ 6 callers
Method
InitGoValue
InitGoValue sets the Go value of the GValue. The GValue MUST NOT HAVE BEEN INITIALIED ALREADY!
pkg/core/glib/glib.go:1133
↓ 6 callers
Method
Linef
Linef writes a Sprintf'd line.
gir/girgen/pen/section.go:55
↓ 6 callers
Method
Logln
(lvl logger.Level, v ...interface{})
gir/girgen/generators/record.go:539
↓ 6 callers
Function
NewConverter
NewConverter creates a new type converter from the given file generator. The converter will add no side effects to the given file generator.
gir/girgen/types/typeconv/typeconv.go:35
↓ 6 callers
Function
OverrideNamespace
OverrideNamespace returns a new generator that overrides a generator's current namespace.
gir/girgen/types/generator.go:47
↓ 6 callers
Method
Parent
Parent returns the parent surface of a popup.
pkg/gdk/v4/gdk.go:6378
↓ 6 callers
Function
RegexFilter
RegexFilter returns a regex filter for FilterMatcher. A regex filter's format is a string consisting of two parts joined by a period: a namespace and
gir/girgen/types/filter.go:483
↓ 6 callers
Method
Reset
()
gir/girgen/types/tree.go:33
↓ 6 callers
Method
ResolveFromType
ResolveFromType is like Resolve, but the caller directly supplies the resolved top-level type.
gir/girgen/types/tree.go:63
↓ 6 callers
Function
ReturnIsVoid
ReturnIsVoid returns true if the return type is void.
gir/girgen/types/types.go:473
↓ 6 callers
Method
UseLogger
UseLogger sets the logger to be used instead of the given NamespaceGenrator.
gir/girgen/types/typeconv/typeconv.go:117
↓ 6 callers
Function
allocateValue
allocateValue does not attach a finalizer.
pkg/core/glib/glib.go:1039
↓ 6 callers
Function
assertEq
(t *testing.T, msg string, got, expect T)
pkg/core/gioutil/listmodel_test.go:95
← previous
next →
101–200 of 8,844, ranked by callers