Import line: | GLib = imports.gi.GLib; |
GIR File: | GLib-2.0.gir |
C documentation: | GSource |
Struct : | Source |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
callback_data : void*
|
GLib.Source | |
callback_funcs : GLib.SourceCallbackFuncs
|
GLib.Source | |
context : GLib.MainContext
|
GLib.Source | |
flags : Number
|
GLib.Source | |
name : String
|
GLib.Source | |
next : GLib.Source
|
GLib.Source | |
poll_fds : Array
|
GLib.Source | |
prev : GLib.Source
|
GLib.Source | |
priority : Number
|
GLib.Source | |
ref_count : Number
|
GLib.Source | |
reserved2 : void*
|
GLib.Source | |
source_funcs : GLib.SourceFuncs
|
GLib.Source | |
source_id : Number
|
GLib.Source |
Method / Constructor | Defined By | |
---|---|---|
new GLib.Source
()
Create a new GLib.Source
Create a new GLib.Source
|
||
Create a new GLib.Source
Create a new GLib.Source
|
||
add_poll
(PollFD fd)
:
none
|
GLib.Source | |
attach
(MainContext context)
:
Number
|
GLib.Source | |
destroy
()
:
none
|
GLib.Source | |
get_can_recurse
()
:
Boolean
|
GLib.Source | |
get_context
()
:
GLib.MainContext
|
GLib.Source | |
get_current_time
(TimeVal timeval)
:
none
|
GLib.Source | |
get_id
()
:
Number
|
GLib.Source | |
get_name
()
:
String
|
GLib.Source | |
get_priority
()
:
Number
|
GLib.Source | |
is_destroyed
()
:
Boolean
|
GLib.Source | |
remove_poll
(PollFD fd)
:
none
|
GLib.Source | |
GLib.Source | ||
set_callback_indirect
(void* callback_data, SourceCallbackFuncs callback_funcs)
:
none
|
GLib.Source | |
set_can_recurse
(Boolean can_recurse)
:
none
|
GLib.Source | |
set_funcs
(SourceFuncs funcs)
:
none
|
GLib.Source | |
set_name
(String name)
:
none
|
GLib.Source | |
set_priority
(Number priority)
:
none
|
GLib.Source |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
GLib
Method |
|
GLib
Method |
GLib.idle_source_new
()
:
GLib.Source
|
GLib
Method |
|
GLib
Method |
GLib.main_current_source
()
:
GLib.Source
|
GLib
Method |
|
GLib
Method |
|
GLib.MainContext
Method |
find_source_by_id
(Number source_id)
:
GLib.Source
|
GLib.MainContext
Method |
find_source_by_user_data
(void* user_data)
:
GLib.Source
|
GLib.MainContext
Method |
|
GObject
Method |
|
Gio.Socket
Method |
|
Gst.Bus
Method |
create_watch
()
:
GLib.Source
Create watch for this bus.
|
Soup
Method |
NULL for the default context Adds function to be executed from inside async_context with the default priority.
|
Soup
Method |
NULL for the default context Adds an idle event as with g_idle_add(), but using the given If you want function to run "right away", use soup_add_completion(), since that sets a higher priority on the GSource than soup_add_idle() does.
|
Soup
Method |
Soup.add_io_watch
(MainContext async_context, IOChannel chan, IOCondition condition, Function function, void* data)
:
GLib.Source
NULL for the default context Adds an I/O watch as with g_io_add_watch(), but using the given with g_source_destroy().
|
Soup
Method |
Soup.add_timeout
(MainContext async_context, Number interval, Function function, void* data)
:
GLib.Source
NULL for the default context Adds a timeout as with g_timeout_add(), but using the given with g_source_destroy().
|