Package ch.bailu.gtk.glib
Interface SourceFuncs.OnSourceFunc
- Enclosing class:
- SourceFuncs
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
onSourceFunc
(CallbackHandler __self, Pointer user_data) Specifies the type of function passed to g_timeout_add(),
g_timeout_add_full(), g_idle_add(), and g_idle_add_full().
-
Method Details
-
onSourceFunc
Specifies the type of function passed to g_timeout_add(),
g_timeout_add_full(), g_idle_add(), and g_idle_add_full().
When calling g_source_set_callback(), you may need to cast a function of a
different type to this type. Use G_SOURCE_FUNC() to avoid warnings about
incompatible function types.- Parameters:
user_data
- data passed to the function, set when the source was created with one of the above functions- Returns:
- %FALSE if the source should be removed. %G_SOURCE_CONTINUE and %G_SOURCE_REMOVE are more memorable names for the return value.
-