Package org.gnome.gobject
Class Source
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gobject.Source
- All Implemented Interfaces:
Proxy
-
Constructor Summary
ConstructorDescriptionSource
(MemorySegment address) Create a Source proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the Source classstatic void
setClosure
(Source source, Closure closure) Set the callback for a source as aGClosure
.static void
setDummyCallback
(Source source) Sets a dummy callback forsource
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
Source
Create a Source proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
-
Method Details
-
getType
-
setClosure
Set the callback for a source as aGClosure
.If the source is not one of the standard GLib types, the
closureCallback
andclosureMarshal
fields of theGSourceFuncs
structure must have been filled in with pointers to appropriate functions.- Parameters:
source
- the sourceclosure
- aGClosure
-
setDummyCallback
Sets a dummy callback forsource
. The callback will do nothing, and if the source expects agboolean
return value, it will returntrue
. (If the source expects any other type of return value, it will return a 0/null
value; whatever g_value_init() initializes aGValue
to for that type.)If the source is not one of the standard GLib types, the
closureCallback
andclosureMarshal
fields of theGSourceFuncs
structure must have been filled in with pointers to appropriate functions.- Parameters:
source
- the source
-