GLib.Source – glib-2.0 Reference Manual
Packages
glib-2.0
GLib
Source
remove
remove_by_funcs_user_data
remove_by_user_data
set_name_by_id
Source
add_child_source
add_poll
attach
check
destroy
dispatch
get_can_recurse
get_context
get_current_time
get_id
get_name
get_priority
get_time
is_destroyed
prepare
remove_child_source
remove_poll
set_callback
set_callback_indirect
set_can_recurse
set_funcs
set_name
set_priority
Source
Object Hierarchy:
Description:
[
Compact
]
public
abstract
class
Source
All known sub-classes:
CancellableSource
ChildWatchSource
IOSource
IdleSource
PollableSource
SignalSource
SocketSource
TimeoutSource
Namespace:
GLib
Package:
glib-2.0
Content:
Static methods:
public
static
void
set_name_by_id
(
uint
tag,
string
? name)
public
static
bool
remove
(
uint
id)
public
static
bool
remove_by_funcs_user_data
(
void
* user_data)
public
static
bool
remove_by_user_data
(
void
* user_data)
Creation methods:
protected
Source
()
Methods:
public
void
set_funcs
(
SourceFuncs
funcs)
public
uint
attach
(
MainContext
? context)
public
void
destroy
()
public
bool
is_destroyed
()
public
void
set_priority
(
int
priority)
public
int
get_priority
()
public
void
set_can_recurse
(
bool
can_recurse)
public
bool
get_can_recurse
()
public
uint
get_id
()
public
unowned
string
?
get_name
()
public
void
set_name
(
string
? name)
public
weak
MainContext
get_context
()
public
void
set_callback
(
owned
SourceFunc
func)
public
void
set_callback_indirect
(
void
* callback_data,
SourceCallbackFuncs
callback_funcs)
public
void
add_poll
(
ref
PollFD
fd)
public
void
remove_poll
(
ref
PollFD
fd)
public
void
add_child_source
(
Source
child_source)
public
void
remove_child_source
(
Source
child_source)
public
int64
get_time
()
public
void
get_current_time
(
out
TimeVal
timeval)
protected
abstract
bool
prepare
(
out
int
timeout_)
protected
abstract
bool
check
()
protected
abstract
bool
dispatch
(
SourceFunc
_callback)