MCPcopy Create free account

hub / github.com/diamondburned/gotk4 / functions

Functions8,844 in github.com/diamondburned/gotk4

↓ 13 callersMethodMakeFile
MakeFile makes a new GoFileGenerator for the given filename or returns an existing one.
gir/girgen/namespace.go:223
↓ 13 callersFunctionMoveSList
MoveSList is similar to MoveList, except it's used for singly-linked lists.
pkg/core/gextras/gextras.go:99
↓ 13 callersFunctionPascalToGo
PascalToGo converts regular Pascal case to Go.
gir/girgen/strcases/strcases.go:143
↓ 13 callersFunctionSListSize
SListSize returns the length of the singly-linked list.
pkg/core/gextras/gextras.go:94
↓ 13 callersFunctionnewValuePrimitive
(val *Value, v interface{})
pkg/core/glib/glib.go:1187
↓ 13 callersFunctionwrapAction
(obj *coreglib.Object)
pkg/atk/atk.go:3360
↓ 12 callersFunctionAnyTypeC
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 callersFunctionApplyHeader
ApplyHeader applies the given src headers to dst.
gir/girgen/file/file.go:28
↓ 12 callersFunctionFileFilter
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 callersMethodIsBuiltin
IsBuiltin is a convenient function to compare the builtin type.
gir/girgen/types/resolve.go:424
↓ 12 callersMethodToError
ToError returns the error for the status. Returns nil if success.
pkg/cairo/status.go:121
↓ 12 callersMethodnative
native returns a pointer to the underlying GObject.
pkg/core/glib/glib.go:759
↓ 12 callersMethodvtmpl
(tmpl string)
gir/girgen/types/typeconv/valueconverted.go:126
↓ 12 callersFunctionwrapVisual
(obj *coreglib.Object)
pkg/gdk/v3/gdk.go:15483
↓ 11 callersFunctionBaseObject
BaseObject gets the internal Object type. This is used for calling methods not in the Objector.
pkg/core/glib/glib.go:617
↓ 11 callersFunctionCountPtr
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 callersMethodFindFullType
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 callersMethodLogln
(lvl logger.Level, v ...interface{})
gir/girgen/generators/iface/iface.go:90
↓ 11 callersFunctionNewJoints
NewJoints creates a new Joints instance.
gir/girgen/pen/joints.go:15
↓ 11 callersMethodParameterIsOutput
ParameterIsOutput returns true if the direction is out.
gir/girgen/types/typeconv/value.go:218
↓ 11 callersFunctionPrefix
Prefix prepends the given prefixes into the given value list.
gir/girgen/logger/logger.go:82
↓ 11 callersFunctionWrapSurface
(s uintptr)
pkg/cairo/surface.go:82
↓ 11 callersMethodlogIfSkipped
(generated bool, what string)
gir/girgen/namespace.go:412
↓ 11 callersFunctionobjInfo
(obj unsafe.Pointer)
pkg/core/intern/intern.go:83
↓ 11 callersFunctionwrapClipboard
(obj *coreglib.Object)
pkg/gdk/v4/gdk.go:7492
↓ 10 callersFunctionEnsureInfoFields
EnsureInfoFields ensures that the given type contains all fields inside InfoFields.
gir/girgen/cmt/cmt.go:106
↓ 10 callersMethodLoad
Load loads the given GClosure's callback. Nil is returned if it's not found.
pkg/core/closure/closure.go:24
↓ 10 callersMethodUnderlying
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 callersFunctionFileWriterFromType
FileWriterFromType is a convenient function that returns the FileWriter from the given GIR type.
gir/girgen/generators/generators.go:30
↓ 9 callersFunctionMajorVersion
MajorVersion returns the major version number only.
gir/gir.go:65
↓ 9 callersFunctionParamSpecTake
ParamSpecTake wraps ptr into a ParamSpec and ensures that it's properly GC'd.
pkg/core/glib/paramspec.go:207
↓ 9 callersMethodQuark
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 callersMethodReplace
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 callersFunctionResolve
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 callersMethodnative
native returns a pointer to the underlying cairo_pattern_t.
pkg/cairo/pattern.go:79
↓ 9 callersFunctionnewParamSpecCommon
(name, nick, blurb string)
pkg/core/glib/paramspec.go:50
↓ 9 callersFunctionwrapScreen
(obj *coreglib.Object)
pkg/gdk/v3/gdk.go:14050
↓ 8 callersMethodAddf
Addf adds a new joint with Sprintf.
gir/girgen/pen/joints.go:32
↓ 8 callersMethodCopy
Copy is a wrapper around cairo_region_copy().
pkg/cairo/region.go:152
↓ 8 callersMethodDone
Done returns the channel that's closed once the cancellable is cancelled.
pkg/core/gcancel/gcancel.go:93
↓ 8 callersMethodImplType
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 callersMethodIsClass
IsClass returns true if the current ResolvedType is a class.
gir/girgen/types/resolve.go:319
↓ 8 callersFunctionModifyParamDirections
ModifyParamDirections wraps ModifyCallable to conveniently override the parameters' directions.
gir/girgen/types/filter.go:269
↓ 8 callersMethodMustRealloc
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 callersMethodNative
Native returns a pointer to the underlying GObject.
pkg/core/glib/glib.go:767
↓ 8 callersMethodNeedsNamespace
NeedsNamespace returns true if the returned Go type needs a namespace to be referenced properly.
gir/girgen/types/resolve.go:522
↓ 8 callersFunctionResolveAnyType
ResolveAnyType returns a copy of gir.AnyType containg the C type fields filled.
gir/girgen/types/resolve.go:935
↓ 8 callersMethodUnderlyingExtern
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 callersMethodUse
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 callersFunctionexternGLibType
externGLibType returns an external GLib type from core/glib.
gir/girgen/types/resolve.go:87
↓ 8 callersFunctiongobool
(b C.cairo_bool_t)
pkg/cairo/util.go:15
↓ 8 callersMethodnative
()
pkg/core/glib/slist.go:54
↓ 8 callersMethodptr
(sub1 bool)
gir/girgen/types/resolve.go:533
↓ 8 callersFunctiontypeFromObject
(obj unsafe.Pointer)
pkg/core/glib/glib.go:796
↓ 8 callersMethodunset
()
pkg/core/glib/glib.go:1008
↓ 8 callersFunctionwrapSurface
(surface *C.cairo_surface_t)
pkg/cairo/surface.go:66
↓ 7 callersMethodClose
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 callersFunctionGetInfoFields
GetInfoFields gets the InfoFields from the given value.
gir/girgen/cmt/cmt.go:87
↓ 7 callersMethodHas
Has returns true if i contains other.
pkg/glib/v2/glib.go:3694
↓ 7 callersMethodIsInterface
IsInterface returns true if the current ResolvedType is an interface.
gir/girgen/types/resolve.go:308
↓ 7 callersMethodIsRecord
IsRecord returns true if the current ResolvedType is a record.
gir/girgen/types/resolve.go:286
↓ 7 callersMethodIsZeroTerminated
IsZeroTerminated returns true if the Array is zero-terminated. It accounts for edge cases of the structure.
gir/types.go:47
↓ 7 callersMethodName
Name returns a non-localized string naming the specified action of the object.
pkg/atk/atk.go:3353
↓ 7 callersMethodNative
Native returns a pointer to the underlying GValue.
pkg/core/glib/glib.go:1106
↓ 7 callersMethodParse
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 callersMethodPublicType
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 callersMethodRun
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 callersMethodSplice
Splice removes the values in the given range and replaces them with the given values.
pkg/core/gioutil/listmodel.go:72
↓ 7 callersMethodfinalize
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 callersFunctionwrapDeviceTool
(obj *coreglib.Object)
pkg/gdk/v4/gdk.go:10335
↓ 7 callersFunctionwrapLayout
(obj *coreglib.Object)
pkg/pango/pango.go:9237
↓ 7 callersFunctionwrapMonitor
(obj *coreglib.Object)
pkg/gdk/v3/gdk.go:13754
↓ 7 callersFunctionwrapPixbufAnimation
(obj *coreglib.Object)
pkg/gdkpixbuf/v2/gdkpixbuf.go:3049
↓ 7 callersFunctionwrapStateSet
(obj *coreglib.Object)
pkg/atk/atk.go:16382
↓ 6 callersFunctionAddCallbackHeader
AddCallbackHeader is a convenient function around AddCallableHeader that takes in a Callback.
gir/girgen/types/generator.go:62
↓ 6 callersMethodAddMarshaler
AddMarshaler adds the type marshaler into the init header. It also adds imports.
gir/girgen/file/file.go:146
↓ 6 callersFunctionAnyTypeCGo
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 callersFunctionCTypeFallback
CTypeFallback returns the C type OR the GIR type if it's empty.
gir/girgen/types/types.go:450
↓ 6 callersFunctionCallbackArg
CallbackArg formats the callback variable name for the given variable index.
gir/girgen/generators/callback/callback.go:147
↓ 6 callersMethodCanCast
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 callersMethodCount
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 callersMethodDelete
Delete removes the entry at the given index.
pkg/core/slab/slab.go:120
↓ 6 callersMethodEvent
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 callersFunctionFind
Find finds the given GIR type from the given generator.
gir/girgen/types/generator.go:52
↓ 6 callersFunctionFindMethodName
FindMethodName finds from the method the given name.
gir/girgen/types/types.go:177
↓ 6 callersMethodFindNamespace
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 callersFunctionGuessParameterOutput
GuessParameterOutput guesses the parameter output using various clues to make up for GIR's painful shortcomings.
gir/girgen/types/types.go:573
↓ 6 callersMethodInitGoValue
InitGoValue sets the Go value of the GValue. The GValue MUST NOT HAVE BEEN INITIALIED ALREADY!
pkg/core/glib/glib.go:1133
↓ 6 callersMethodLinef
Linef writes a Sprintf'd line.
gir/girgen/pen/section.go:55
↓ 6 callersMethodLogln
(lvl logger.Level, v ...interface{})
gir/girgen/generators/record.go:539
↓ 6 callersFunctionNewConverter
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 callersFunctionOverrideNamespace
OverrideNamespace returns a new generator that overrides a generator's current namespace.
gir/girgen/types/generator.go:47
↓ 6 callersMethodParent
Parent returns the parent surface of a popup.
pkg/gdk/v4/gdk.go:6378
↓ 6 callersFunctionRegexFilter
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 callersMethodReset
()
gir/girgen/types/tree.go:33
↓ 6 callersMethodResolveFromType
ResolveFromType is like Resolve, but the caller directly supplies the resolved top-level type.
gir/girgen/types/tree.go:63
↓ 6 callersFunctionReturnIsVoid
ReturnIsVoid returns true if the return type is void.
gir/girgen/types/types.go:473
↓ 6 callersMethodUseLogger
UseLogger sets the logger to be used instead of the given NamespaceGenrator.
gir/girgen/types/typeconv/typeconv.go:117
↓ 6 callersFunctionallocateValue
allocateValue does not attach a finalizer.
pkg/core/glib/glib.go:1039
↓ 6 callersFunctionassertEq
(t *testing.T, msg string, got, expect T)
pkg/core/gioutil/listmodel_test.go:95
← previousnext →101–200 of 8,844, ranked by callers