GLib.Source – glib-2.0 Reference Manual
Packages
glib-2.0
GLib
Source
CONTINUE
REMOVE
remove
remove_by_funcs_user_data
remove_by_user_data
set_name_by_id
Source
add_child_source
add_poll
add_unix_fd
attach
check
destroy
dispatch
get_can_recurse
get_context
get_current_time
get_id
get_name
get_priority
get_ready_time
get_time
is_destroyed
modify_unix_fd
prepare
query_unix_fd
remove_child_source
remove_poll
remove_unix_fd
set_callback
set_callback_indirect
set_can_recurse
set_funcs
set_name
set_priority
set_ready_time
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:
Constants:
public
const
bool
CONTINUE
public
const
bool
REMOVE
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 =
null
)
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_unix_fd
(
int
fd,
IOCondition
events)
public
void
remove_unix_fd
(
void
* tag)
public
void
modify_unix_fd
(
void
* tag,
IOCondition
new_events)
public
IOCondition
query_unix_fd
(
void
* tag)
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)
public
void
set_ready_time
(
int64
ready_time)
public
int64
get_ready_time
()
protected
abstract
bool
prepare
(
out
int
timeout_)
protected
abstract
bool
check
()
protected
abstract
bool
dispatch
(
SourceFunc
_callback)