FrameClockImpl

class FrameClockImpl(pointer: <Error class: unknown class><<Error class: unknown class>>) : FrameClock

The FrameClockImpl type represents a native instance of the abstract FrameClock class.

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Creates a new instance of FrameClock for the provided CPointer.

Properties

Link copied to clipboard
val gdkFrameClockPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
open fun beginUpdating()

Starts updates for an animation.

Link copied to clipboard

Emits the "after-paint" signal. See onAfterPaint.

Link copied to clipboard

Emits the "before-paint" signal. See onBeforePaint.

Link copied to clipboard

Emits the "flush-events" signal. See onFlushEvents.

Link copied to clipboard

Emits the "layout" signal. See onLayout.

Link copied to clipboard
fun emitPaint()

Emits the "paint" signal. See onPaint.

Link copied to clipboard

Emits the "resume-events" signal. See onResumeEvents.

Link copied to clipboard

Emits the "update" signal. See onUpdate.

Link copied to clipboard
open fun endUpdating()

Stops updates for an animation.

Link copied to clipboard

Gets the frame timings for the current frame.

Link copied to clipboard
open fun getFps(): <Error class: unknown class>

Calculates the current frames-per-second, based on the frame timings of @frame_clock.

Link copied to clipboard
open fun getFrameCounter(): <Error class: unknown class>

GdkFrameClock maintains a 64-bit counter that increments for each frame drawn.

Link copied to clipboard
open fun getFrameTime(): <Error class: unknown class>

Gets the time that should currently be used for animations.

Link copied to clipboard
open fun getHistoryStart(): <Error class: unknown class>

Returns the frame counter for the oldest frame available in history.

Link copied to clipboard
open fun getTimings(frameCounter: <Error class: unknown class>): FrameTimings?

Retrieves a GdkFrameTimings object holding timing information for the current frame or a recent frame.

Link copied to clipboard
fun onAfterPaint(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

This signal ends processing of the frame.

Link copied to clipboard
fun onBeforePaint(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

Begins processing of the frame.

Link copied to clipboard
fun onFlushEvents(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

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

Link copied to clipboard
fun onLayout(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

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

Link copied to clipboard
fun onPaint(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

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

Link copied to clipboard
fun onResumeEvents(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

Emitted after processing of the frame is finished.

Link copied to clipboard
fun onUpdate(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

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

Link copied to clipboard
open fun requestPhase(phase: FrameClockPhase)

Asks the frame clock to run a particular phase.