FrameTimings

A GdkFrameTimings object holds timing information for a single frame of the application’s displays.

To retrieve GdkFrameTimings objects, use [method@Gdk.FrameClock.get_timings] or [method@Gdk.FrameClock.get_current_timings]. The information in GdkFrameTimings is useful for precise synchronization of video with the event or audio streams, and for measuring quality metrics for the application’s display, such as latency and jitter.

Constructors

this
this(GdkFrameTimings* gdkFrameTimings, bool ownedRef)

Sets our main struct and passes it to the parent class.

Destructor

~this
~this()
Undocumented in source.

Members

Aliases

doref
alias doref = ref_
Undocumented in source.

Functions

getComplete
bool getComplete()

Returns whether @timings are complete.

getFrameCounter
long getFrameCounter()

Gets the frame counter value of the GdkFrameClock when this frame was drawn.

getFrameTime
long getFrameTime()

Returns the frame time for the frame.

getFrameTimingsStruct
GdkFrameTimings* getFrameTimingsStruct(bool transferOwnership)

Get the main Gtk struct

getPredictedPresentationTime
long getPredictedPresentationTime()

Gets the predicted time at which this frame will be displayed.

getPresentationTime
long getPresentationTime()

Reurns the presentation time.

getRefreshInterval
long getRefreshInterval()

Gets the natural interval between presentation times for the display that this frame was displayed on.

getStruct
void* getStruct()

the main Gtk struct as a void*

ref_
FrameTimings ref_()

Increases the reference count of @timings.

unref
void unref()

Decreases the reference count of @timings.

Static functions

getType
GType getType()

Variables

gdkFrameTimings
GdkFrameTimings* gdkFrameTimings;

the main Gtk struct

ownedRef
bool ownedRef;
Undocumented in source.

Meta