TachyonUI 1.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::RedrawRequests Class Reference

Redraws asked for: now, or at a time on the steady clock (SteadyClockNowNanos). More...

#include <gui_core/frame/gui_redraw.h>

Public Member Functions

void Request ()
 A frame as soon as possible.
void RequestAt (int64_t nanos)
 A frame at nanos.
bool IsDue (int64_t nowNanos) const
 True when a frame was asked for now, or for nowNanos or before.
int64_t NextAt () const
 The earliest time asked for; INT64_MAX when there's none.
void Answer (int64_t nowNanos)
 At a frame's start: the requests it answers (now, and up to nowNanos) are done.

Detailed Description

Redraws asked for: now, or at a time on the steady clock (SteadyClockNowNanos).

Safe from any thread.

Member Function Documentation

◆ Request()

void tachyon::RedrawRequests::Request ( )
inline

A frame as soon as possible.

◆ RequestAt()

void tachyon::RedrawRequests::RequestAt ( int64_t nanos)

A frame at nanos.

◆ IsDue()

bool tachyon::RedrawRequests::IsDue ( int64_t nowNanos) const

True when a frame was asked for now, or for nowNanos or before.

◆ NextAt()

int64_t tachyon::RedrawRequests::NextAt ( ) const

The earliest time asked for; INT64_MAX when there's none.

◆ Answer()

void tachyon::RedrawRequests::Answer ( int64_t nowNanos)

At a frame's start: the requests it answers (now, and up to nowNanos) are done.


The documentation for this class was generated from the following file: