Class FrameClock.Builder<B extends FrameClock.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
FrameClock

public static class FrameClock.Builder<B extends FrameClock.Builder<B>> extends GObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
  • Constructor Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public FrameClock build()
      Finish building the FrameClock object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to FrameClock.
      Overrides:
      build in class GObject.Builder<B extends FrameClock.Builder<B>>
      Returns:
      a new instance of FrameClock with the properties that were set in the Builder object.
    • onAfterPaint

      public B onAfterPaint(FrameClock.AfterPaintCallback handler)

      This signal ends processing of the frame.

      Applications should generally not handle this signal.

      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      See Also:
    • onBeforePaint

      public B onBeforePaint(FrameClock.BeforePaintCallback handler)

      Begins processing of the frame.

      Applications should generally not handle this signal.

      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      See Also:
    • onFlushEvents

      public B onFlushEvents(FrameClock.FlushEventsCallback handler)

      Used to flush pending motion events that are being batched up and compressed together.

      Applications should not handle this signal.

      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      See Also:
    • onLayout

      public B onLayout(FrameClock.LayoutCallback handler)

      Emitted as the second step of toolkit and application processing of the frame.

      Any work to update sizes and positions of application elements should be performed. GTK normally handles this internally.

      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      See Also:
    • onPaint

      public B onPaint(FrameClock.PaintCallback handler)

      Emitted as the third step of toolkit and application processing of the frame.

      The frame is repainted. GDK normally handles this internally and emits Gdk.Surface::render signals which are turned into GtkWidget::snapshot signals by GTK.

      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      See Also:
    • onResumeEvents

      public B onResumeEvents(FrameClock.ResumeEventsCallback handler)

      Emitted after processing of the frame is finished.

      This signal is handled internally by GTK to resume normal event processing. Applications should not handle this signal.

      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      See Also:
    • onUpdate

      public B onUpdate(FrameClock.UpdateCallback handler)

      Emitted as the first step of toolkit and application processing of the frame.

      Animations should be updated using FrameClock.getFrameTime(). Applications can connect directly to this signal, or use gtk_widget_add_tick_callback() as a more convenient interface.

      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      See Also: