[369:7] extends: object
Generated low-level callback wrapper for GIR callback after-paint.
FrameClockAfterpaintCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (nativeSelf, nativeUserData)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[649:7] extends: object
Generated low-level callback wrapper for GIR callback paint.
FrameClockPaintCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (nativeSelf, nativeUserData)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[509:7] extends: object
Generated low-level callback wrapper for GIR callback flush-events.
FrameClockFlusheventsCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (nativeSelf, nativeUserData)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[439:7] extends: object
Generated low-level callback wrapper for GIR callback before-paint.
FrameClockBeforepaintCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (nativeSelf, nativeUserData)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[719:7] extends: object
Generated low-level callback wrapper for GIR callback resume-events.
FrameClockResumeeventsCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (nativeSelf, nativeUserData)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[789:7] extends: object
Generated low-level callback wrapper for GIR callback update.
FrameClockUpdateCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (nativeSelf, nativeUserData)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[859:14] static extends: object
Generated metadata helpers for FrameClock class surfaces.
signals ()
Returns signal metadata for
FrameClock.
A list.[39:7] extends: object
Tells the application when to update and repaint a surface. This may be
synced to the vertical refresh rate of the monitor, for example. Even when
the frame clock uses a simple timer rather than a hardware-based vertical
sync, the frame clock helps because it ensures everything paints at the same
time (reducing the total number of frames). The frame clock can also
automatically stop painting when it knows the frames will not be visible, or
scale back animation framerates. GdkFrameClock is designed to be compatible
with an OpenGL-based implementation or with mozRequestAnimationFrame in
Firefox, for example. A frame clock is idle until someone requests a frame
with [method@Gdk.FrameClock.request_phase]. At some later point that makes
sense for the synchronization being implemented, the clock will process a
frame and emit signals for each phase that has been requested. (See the
signals of the GdkFrameClock class for documentation of the phases.
%GDK_FRAME_CLOCK_PHASE_UPDATE and the [signal@Gdk.FrameClock::update] signal
are most interesting for application writers, and are used to update the
animations, using the frame time given by
[method@Gdk.FrameClock.get_frame_time]. The frame time is reported in
microseconds and generally in the same timescale as g_get_monotonic_time(),
however, it is not the same as g_get_monotonic_time(). The frame time does
not advance during the time a frame is being painted, and outside of a frame,
an attempt is made so that all calls to
[method@Gdk.FrameClock.get_frame_time] that are called at a “similar” time
get the same value. This means that if different animations are timed by
looking at the difference in time between an initial value from
[method@Gdk.FrameClock.get_frame_time] and the value inside the
[signal@Gdk.FrameClock::update] signal of the clock, they will stay exactly
synchronized.
FrameClock (Handle = null)
Creates a new
FrameClockby wrapping a native handle or another wrapper.
Handle is the native handle or another wrapper whose handle to adopt.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asObject ()
Wraps this handle as
Object.
A Object object.connectSignal (string Name, CallbackObj)
Connects one generated callback wrapper to a named signal.
Name is the signal name.CallbackObj is the generated callback wrapper to connect.The connected handler id.disconnectSignalHandler (int HandlerId)
Disconnects one retained signal handler id.
HandlerId is the signal handler id to disconnect.None.setOnAfterpaint (callback Fn, UserData = null)
This signal ends processing of the frame. Applications should generally not handle this signal.
Fn is the Aussom callback.Fn is called with (FrameClock Self).UserData is retained and passed through to the generated callback wrapper when provided.The connected handler id.setOnBeforepaint (callback Fn, UserData = null)
Begins processing of the frame. Applications should generally not handle this signal.
Fn is the Aussom callback.Fn is called with (FrameClock Self).UserData is retained and passed through to the generated callback wrapper when provided.The connected handler id.setOnFlushevents (callback Fn, UserData = null)
Used to flush pending motion events that are being batched up and compressed together. Applications should not handle this signal.
Fn is the Aussom callback.Fn is called with (FrameClock Self).UserData is retained and passed through to the generated callback wrapper when provided.The connected handler id.setOnLayout (callback Fn, UserData = null)
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.
Fn is the Aussom callback.Fn is called with (FrameClock Self).UserData is retained and passed through to the generated callback wrapper when provided.The connected handler id.setOnPaint (callback Fn, UserData = null)
Emitted as the third step of toolkit and application processing of the frame. The frame is repainted. GDK normally handles this internally and emits [signal@Gdk.Surface::render] signals which are turned into GtkWidget::snapshot signals by GTK.
Fn is the Aussom callback.Fn is called with (FrameClock Self).UserData is retained and passed through to the generated callback wrapper when provided.The connected handler id.setOnResumeevents (callback Fn, UserData = null)
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.
Fn is the Aussom callback.Fn is called with (FrameClock Self).UserData is retained and passed through to the generated callback wrapper when provided.The connected handler id.setOnUpdate (callback Fn, UserData = null)
Emitted as the first step of toolkit and application processing of the frame. Animations should be updated using [method@Gdk.FrameClock.get_frame_time]. Applications can connect directly to this signal, or use gtk_widget_add_tick_callback() as a more convenient interface.
Fn is the Aussom callback.Fn is called with (FrameClock Self).UserData is retained and passed through to the generated callback wrapper when provided.The connected handler id.begin_updating ()
Starts updates for an animation. Until a matching call to [method@Gdk.FrameClock.end_updating] is made, the frame clock will continually request a new frame with the %GDK_FRAME_CLOCK_PHASE_UPDATE phase. This function may be called multiple times and frames will be requested until gdk_frame_clock_end_updating() is called the same number of times.
None.end_updating ()
Stops updates for an animation. See the documentation for [method@Gdk.FrameClock.begin_updating].
None.get_current_timings ()
Gets the frame timings for the current frame.
get_fps ()
Calculates the current frames-per-second, based on the frame timings of
request_phase (string phase)
Asks the frame clock to run a particular phase. The signal corresponding the requested phase will be emitted the next time the frame clock processes. Multiple calls to gdk_frame_clock_request_phase() will be combined together and only one frame processed. If you are displaying animated content and want to continually request the %GDK_FRAME_CLOCK_PHASE_UPDATE phase for a period of time, you should use [method@Gdk.FrameClock.begin_updating] instead, since this allows GTK to adjust system parameters to get maximally smooth animations.
phase is the phase that is requested.None.[579:7] extends: object
Generated low-level callback wrapper for GIR callback layout.
FrameClockLayoutCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (nativeSelf, nativeUserData)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.