Interface Widget.OnTickCallback

Enclosing class:
Widget
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Widget.OnTickCallback
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    onTickCallback(CallbackHandler __self, Widget widget, FrameClock frame_clock, Pointer user_data)
    Callback type for adding a function to update animations.
  • Method Details

    • onTickCallback

      boolean onTickCallback(CallbackHandler __self, @Nonnull Widget widget, @Nonnull FrameClock frame_clock, @Nullable Pointer user_data)
      Callback type for adding a function to update animations. See gtk_widget_add_tick_callback().
      Parameters:
      widget - the widget
      frame_clock - the frame clock for the widget (same as calling gtk_widget_get_frame_clock())
      user_data - user data passed to gtk_widget_add_tick_callback().
      Returns:
      %G_SOURCE_CONTINUE if the tick callback should continue to be called, %G_SOURCE_REMOVE if the tick callback should be removed.