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
↓ 4 callers
Method
Text
Text gets the specified text.
pkg/atk/atk.go:9941
↓ 4 callers
Method
Unrealize
Unrealize releases all the resources created by gsk_renderer_realize().
pkg/gsk/v4/gsk.go:5201
↓ 4 callers
Function
VarValuesOrElse
VarValuesOrElse is like [VarValues], but if a package has an empty/unset value, then that empty value is replaced with the value that is returned from
gir/pkgconfig/pkgconfig.go:98
↓ 4 callers
Function
VersionedName
VersionedName returns the name appended with the version suffix.
gir/gir.go:79
↓ 4 callers
Method
Write
Write implements io.Writer.
pkg/core/gioutil/gioutil.go:90
↓ 4 callers
Method
_ptr
(has, want int)
gir/girgen/types/typeconv/valueconverted.go:849
↓ 4 callers
Method
add
add adds the given class and depth into the depths map. False is returned if the depth is already in.
gir/girgen/types/tree.go:276
↓ 4 callers
Method
builder
()
gir/girgen/pen/paper.go:26
↓ 4 callers
Function
builtinType
builtinType is a convenient function to make a new resolvedType.
gir/girgen/types/resolve.go:48
↓ 4 callers
Function
cFunctionHeader
cFunctionHeader renders the given GIR function in its C function signature string for debugging or callback generation.
gir/girgen/generators/callable/callable.go:1005
↓ 4 callers
Method
castPrimitive
castPrimitive is used to cast primitives of any pointer level from C to Go or vice-versa. It is useful for casting enums and bitfields.
gir/girgen/types/typeconv/valueconverted.go:667
↓ 4 callers
Method
convert
(result *ValueConverted)
gir/girgen/types/typeconv/typeconv.go:211
↓ 4 callers
Method
convertInner
convertInner is used while converting arrays; it returns the result of the inner value converted.
gir/girgen/types/typeconv/typeconv.go:259
↓ 4 callers
Function
girTypeMustBeVersioned
(girType string)
gir/girgen/types/filter.go:118
↓ 4 callers
Function
importFunc
(method func(*file.Header, ArgT))
gir/girgen/gotmpl/gotmpl.go:56
↓ 4 callers
Function
invokeFunc
(info *Info, in, out []Argument)
pkg/core/girepository/girepository.go:261
↓ 4 callers
Method
isPtr
isPtr checks pointer coherency for C types and Go types. It's mostly used to guarantee that conversion routines get what they expect.
gir/girgen/types/typeconv/valueconverted.go:736
↓ 4 callers
Method
isValue
()
pkg/core/glib/glib.go:1015
↓ 4 callers
Function
lowerFirstLetter
lowerFirstLetter lower-cases the first letter in the paragraph.
gir/girgen/cmt/cmt.go:606
↓ 4 callers
Function
newRegionFromNative
newRegionFromNative that handle finalizer.
pkg/cairo/region.go:109
↓ 4 callers
Function
nthWord
nthWord returns the nth word, or an empty string if none.
gir/girgen/cmt/cmt.go:367
↓ 4 callers
Function
objRefCount
(obj unsafe.Pointer)
pkg/core/intern/intern.go:87
↓ 4 callers
Function
privateFromInstance
(obj unsafe.Pointer)
pkg/core/glib/go.go:746
↓ 4 callers
Method
reset
(capacity int)
gir/girgen/generators/iface/method.go:63
↓ 4 callers
Function
sink
go:nosplit
pkg/core/intern/intern.go:65
↓ 4 callers
Function
timeoutAdd
go:nosplit go:nocheckptr
pkg/core/glib/glib.go:435
↓ 4 callers
Function
wordConsonantAndSuffix
wordConsonantAndSuffix returns true if the word ends with a consonant and the given suffix character.
gir/girgen/strcases/strcases.go:365
↓ 4 callers
Function
wrapDeviceTool
(obj *coreglib.Object)
pkg/gdk/v3/gdk.go:10277
↓ 4 callers
Function
wrapGLShader
(obj *coreglib.Object)
pkg/gsk/v4/gsk.go:2813
↓ 4 callers
Function
wrapPaintable
(obj *coreglib.Object)
pkg/gdk/v4/gdk.go:5817
↓ 4 callers
Function
wrapPixbufLoader
(obj *coreglib.Object)
pkg/gdkpixbuf/v2/gdkpixbuf.go:3692
↓ 4 callers
Function
wrapRelation
(obj *coreglib.Object)
pkg/atk/atk.go:15758
↓ 4 callers
Function
wrapRelationSet
(obj *coreglib.Object)
pkg/atk/atk.go:15919
↓ 4 callers
Function
wrapSocket
(obj *coreglib.Object)
pkg/atk/atk.go:16235
↓ 4 callers
Method
writeMalloc
writeMalloc ensures bound-checking.
gir/girgen/types/typeconv/valueconverted.go:586
↓ 3 callers
Method
Acquire
Acquire tries to become the owner of the specified context. If some other thread is the owner of the context, returns FALSE immediately. Ownership is
pkg/glib/v2/glib.go:21354
↓ 3 callers
Method
Add
Add adds the given number of microseconds to time_. microseconds can also be negative to decrease the value of time_. Deprecated: Val is not year-203
pkg/glib/v2/glib.go:26880
↓ 3 callers
Function
AddCallableHeader
AddCallableHeader adds an extern C function header from the callable. The extern function will have the given name.
gir/girgen/types/generator.go:68
↓ 3 callers
Method
AddPackage
AddPackage adds a pkg-config package.
gir/girgen/file/file.go:240
↓ 3 callers
Function
AnyTypeCPrimitive
AnyTypeCPrimitive converts AnyType to a C primitive type.
gir/girgen/types/types.go:379
↓ 3 callers
Function
CallableExportedName
CallableExportedName creates the exported C name of the given callback from the given namespace.
gir/girgen/file/file.go:162
↓ 3 callers
Method
Close
()
pkg/core/gioutil/gioutil.go:171
↓ 3 callers
Function
CoalesceTail
CoalesceTail coalesces certain parameters with the same type to be shorter.
gir/girgen/generators/callable/callable.go:727
↓ 3 callers
Method
Connect
Connect is a wrapper around g_signal_connect_closure(). f must be a function with at least one parameter matching the type it is connected to. It is
pkg/core/glib/connect.go:25
↓ 3 callers
Method
DashImport
DashImport imports the given path if it's not already imported.
gir/girgen/file/file.go:124
↓ 3 callers
Method
Draw
Draw the contents of node to the given cairo context. Typically, you'll use this function to implement fallback rendering of GskRenderNodes on an int
pkg/gsk/v4/gsk.go:4722
↓ 3 callers
Method
Dx
Dx: movement delta in the X axis of the swipe focal point.
pkg/gdk/v3/gdk.go:23375
↓ 3 callers
Function
EnsureNamespace
EnsureNamespace ensures that exported, non-primitive types have the namespace prepended. This is useful for matching hard-coded types.
gir/girgen/types/types.go:188
↓ 3 callers
Function
EqNamespace
EqNamespace is used for FilterMatchers to compare types and namespaces.
gir/girgen/types/filter.go:522
↓ 3 callers
Method
Error
()
pkg/core/gerror/gerror.go:117
↓ 3 callers
Function
Faint
Faint returns the given string with a faint color.
gir/girgen/logger/logger.go:59
↓ 3 callers
Method
Family
Family gets a font family by name. The function takes the following parameters: - name: family name. The function returns the following values: -
pkg/pango/pango.go:8227
↓ 3 callers
Function
FileWriterExportedFromType
FileWriterExportedFromType is like FileWriterFromType, but it should only contain exported Cgo functions.
gir/girgen/generators/generators.go:36
↓ 3 callers
Function
FilterCType
FilterCType filters only the C type or identifier. It is useful for filtering C functions and such.
gir/girgen/types/filter.go:420
↓ 3 callers
Function
FindGIRFiles
FindGIRFiles finds gir files from the given list of pkgs.
gir/gir.go:118
↓ 3 callers
Method
Flush
Flush: this function does nothing. Deprecated: since version 3.14.
pkg/gdk/v3/gdk.go:16779
↓ 3 callers
Method
Get
Get gets the value of the property.
pkg/core/glib/go.go:972
↓ 3 callers
Function
Go
Go converts either pascal or snake case to the Go name. The original casing is inferred from the given name.
gir/girgen/strcases/strcases.go:134
↓ 3 callers
Method
ImplName
ImplName returns the implementation type name.
gir/girgen/types/resolve.go:547
↓ 3 callers
Function
ImportCore
ImportCore returns the path to import a core package.
gir/girgen/file/file.go:87
↓ 3 callers
Method
ImportResolvedType
(imports Import)
gir/girgen/file/file.go:138
↓ 3 callers
Method
IncludeC
IncludeC adds a C header file into the cgo preamble.
gir/girgen/file/file.go:253
↓ 3 callers
Method
IsAbstract
IsAbstract returns true if the resolved type is an interface or an abstract class.
gir/girgen/types/resolve.go:331
↓ 3 callers
Method
IsInterface
IsInterface returns true if the generator is generating an interface.
gir/girgen/generators/iface/iface.go:145
↓ 3 callers
Method
Len
Len returns the internal length of the buffer.
gir/girgen/pen/paper.go:34
↓ 3 callers
Method
Logln
(lvl logger.Level, v ...interface{})
gir/girgen/generators/union.go:291
↓ 3 callers
Method
Logln
(lvl logger.Level, v ...interface{})
gir/girgen/generators/callback/callback.go:74
↓ 3 callers
Function
MoveCPtr
MoveCPtr moves the same number of pointers from the given orig string into another string as prefix, for C types.
gir/girgen/types/types.go:284
↓ 3 callers
Function
MoveContextResult
MoveContextResult moves the context variable. True is returned if the variable is found and moved.
gir/girgen/generators/callable/callable.go:841
↓ 3 callers
Method
New
New creates a new list model of type T.
pkg/core/gioutil/listmodel.go:27
↓ 3 callers
Function
NewFuncStack
NewFuncStack creates a new FuncStack. The given frameSkip is added 2, meaning the first frame from 0 will start from the caller of NewFuncStack.
pkg/core/closure/funcstack.go:23
↓ 3 callers
Function
NewGenerator
NewGenerator creates a new Generator instance.
gir/girgen/generators/callback/callback.go:66
↓ 3 callers
Function
NewInputStream
NewInputStream creates a new InputStream for the given io.Reader. If r implements io.Closer, then it is automatically called if needed.
pkg/core/gioutil/gioutil.go:27
↓ 3 callers
Function
NewReturnValue
NewReturnValue creates a new ConversionValue from the given return attribute.
gir/girgen/types/typeconv/value.go:120
↓ 3 callers
Function
NewThrowValue
NewThrowValue creates a new GError value. Thrown values are always assumed to be conversions from C to Go. Errors should ALWAYS go AFTER the return!
gir/girgen/types/typeconv/value.go:187
↓ 3 callers
Function
NewValue
NewValue creates a new ConversionValue from the given parameter attributes.
gir/girgen/types/typeconv/value.go:75
↓ 3 callers
Method
Next
Next points to the node's next sibling (a sibling is another #GNode with the same parent).
pkg/glib/v2/glib.go:22983
↓ 3 callers
Method
Open
Open opens a subcontainer inside the given builder. When done adding items to the subcontainer, g_variant_builder_close() must be called. type is the
pkg/glib/v2/glib.go:32254
↓ 3 callers
Method
OutPtr
(want int)
gir/girgen/types/typeconv/valueconverted.go:834
↓ 3 callers
Function
ParseRepository
ParseRepository parses a repository from the given file path.
gir/repository.go:26
↓ 3 callers
Function
RecordPrintFree
RecordPrintFree prints the call to the record's free function OR an empty string.
gir/girgen/types/types.go:121
↓ 3 callers
Method
Release
Release releases the GL resources held by a GdkGLTexture. The texture contents are still available via the gdk.Texture.Download() function, after thi
pkg/gdk/v4/gdk.go:15107
↓ 3 callers
Method
Remove
Remove removes the value at the given index.
pkg/core/gioutil/listmodel.go:66
↓ 3 callers
Method
Remove
Remove removes a key/value pair from a #GTree. If the #GTree was created using g_tree_new_full(), the key and value are freed using the supplied dest
pkg/glib/v2/glib.go:27524
↓ 3 callers
Method
Reset
Reset resets the callback generator.
gir/girgen/generators/iface/iface.go:100
↓ 3 callers
Method
Reset
Reset resets the state of the generator while reusing the backing pen.
gir/girgen/generators/callable/callable.go:81
↓ 3 callers
Method
Resize
Resize resizes window; for toplevel windows, asks the window manager to resize the window. The window manager may not allow the resize. When using GTK
pkg/gdk/v3/gdk.go:19089
↓ 3 callers
Function
ResolveParameters
ResolveParameters puts each parameter through the type resolver and fill up any missing CType using ResolveAnyType. The returned slice is a copy.
gir/girgen/types/resolve.go:925
↓ 3 callers
Function
ReturnName
(attrs *gir.CallableAttrs)
gir/girgen/generators/callable/callable.go:896
↓ 3 callers
Method
SetName
SetName sets the type's name. Note that this will change the type inside the repositories as well.
gir/gir.go:422
↓ 3 callers
Method
Size
Size gets the size of the component in terms of width and height.
pkg/atk/atk.go:3931
↓ 3 callers
Function
SnakeNoGo
SnakeNoGo ensures the snake-case string is never a Go keyword.
gir/girgen/strcases/strcases.go:290
↓ 3 callers
Method
Snapshot
Snapshot snapshots the given paintable with the given width and height.
pkg/gdk/v4/gdk.go:5806
↓ 3 callers
Method
Status
Status is a wrapper around cairo_pattern_status().
pkg/cairo/pattern.go:112
↓ 3 callers
Function
StubFileGeneratorWriter
headeredFileGenerator is used to overried a Header to be used inside callable.FileGenerator. type headeredFileGenerator struct { types.FileGenerator
gir/girgen/generators/generators.go:58
↓ 3 callers
Function
TypeRenamer
TypeRenamer creates a new filter matcher that renames a type. The given GIR type must contain the versioned namespace, like "Gtk3.Widget" but the give
gir/girgen/types/filter.go:179
↓ 3 callers
Function
UnexportPascal
UnexportPascal converts the PascalToGo string to be unexported.
gir/girgen/strcases/strcases.go:175
↓ 3 callers
Function
WithCancel
WithCancel behaves similarly to context.WithCancel, except the created context is of type Cancellable. This is useful if the user wants to reuse the s
pkg/core/gcancel/gcancel.go:152
↓ 3 callers
Method
Write
Write writes using Print.
gir/girgen/pen/piece.go:36
↓ 3 callers
Function
assertCursorPos
(t *testing.T, s io.Seeker, gs *gio.Seekable, want int64)
pkg/core/gioutil/gioutil_test.go:88
← previous
next →
301–400 of 8,844, ranked by callers