GLG Toolkit, C / C++ API Library  Version 4.6
Timers and Work Procedures

These platform-independent callbacks can be used for animating drawings with live data. More...

Detailed Description

These platform-independent callbacks can be used for animating drawings with live data.

Typedefs

typedef void(* GlgTimerProc) (GlgAnyType client_data, GlgIntervalID *timer_id)
 A platform-independent timer callback installed via GlgAddTimeOut. More...
 
typedef GlgBoolean(* GlgWorkProc) (GlgAnyType client_data)
 A platform-independent work procedure callback installed via GlgAddWorkProc. More...
 

Typedef Documentation

◆ GlgTimerProc

typedef void(* GlgTimerProc) (GlgAnyType client_data, GlgIntervalID *timer_id)

A platform-independent timer callback installed via GlgAddTimeOut.

Parameters
client_dataThe client data supplied when the timer was added.
timer_idA pointer to the timer id.

◆ GlgWorkProc

typedef GlgBoolean(* GlgWorkProc) (GlgAnyType client_data)

A platform-independent work procedure callback installed via GlgAddWorkProc.

Parameters
client_dataThe client data supplied when the work procedure was added.
Returns
  • If work procedure callback returns True, it is removed and will not be called again.
  • If it returns False, it will be called continuously until the application calls the GlgRemoveWorkProc function.

A work procedure must return quickly to avoid response time delays.