Package org.gnome.gdk
Class FrameClock.Builder<B extends FrameClock.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gdk.FrameClock.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
FrameClock
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theFrameClockobject.This signal ends processing of the frame.Begins processing of the frame.Used to flush pending motion events that are being batched up and compressed together.onLayout(FrameClock.LayoutCallback handler) Emitted as the second step of toolkit and application processing of the frame.onPaint(FrameClock.PaintCallback handler) Emitted as the third step of toolkit and application processing of the frame.Emitted after processing of the frame is finished.onUpdate(FrameClock.UpdateCallback handler) Emitted as the first step of toolkit and application processing of the frame.Methods inherited from class org.gnome.gobject.GObject.Builder
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theFrameClockobject. This will callGObject.withProperties(org.gnome.glib.Type, java.lang.String[], org.gnome.gobject.Value[])to create a new GObject instance, which is then cast toFrameClock.- Overrides:
buildin classGObject.Builder<B extends FrameClock.Builder<B>>- Returns:
- a new instance of
FrameClockwith the properties that were set in the Builder object.
-
onAfterPaint
This signal ends processing of the frame.Applications should generally not handle this signal.
- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-
onBeforePaint
Begins processing of the frame.Applications should generally not handle this signal.
- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-
onFlushEvents
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
Builderinstance is returned, to allow method chaining - See Also:
-
onLayout
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
Builderinstance is returned, to allow method chaining - See Also:
-
onPaint
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::rendersignals which are turned into GtkWidget::snapshot signals by GTK.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-
onResumeEvents
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
Builderinstance is returned, to allow method chaining - See Also:
-
onUpdate
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
Builderinstance is returned, to allow method chaining - See Also:
-