Schnittstelle Source.OnSourceFunc

Umschließende Klasse:
Source
Funktionsschnittstelle:
Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.

@FunctionalInterface public static interface Source.OnSourceFunc
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    boolean
    onSourceFunc(CallbackHandler __self, Pointer user_data)
    Specifies the type of function passed to [func@GLib.timeout_add],
    [func@GLib.timeout_add_full], [func@GLib.idle_add], and
    [func@GLib.idle_add_full].
  • Methodendetails

    • onSourceFunc

      boolean onSourceFunc(CallbackHandler __self, @Nullable Pointer user_data)
      Specifies the type of function passed to [func@GLib.timeout_add],
      [func@GLib.timeout_add_full], [func@GLib.idle_add], and
      [func@GLib.idle_add_full].

      When calling [method@GLib.Source.set_callback], you may need to cast a
      function of a different type to this type. Use [func@GLib.SOURCE_FUNC] to
      avoid warnings about incompatible function types.
      Parameter:
      user_data - data passed to the function, set when the source was created with one of the above functions
      Gibt zurück:
      %FALSE if the source should be removed. [const@GLib.SOURCE_CONTINUE] and [const@GLib.SOURCE_REMOVE] are more memorable names for the return value.