GLG Toolkit, C / C++ API Library  Version 4.5
1. C API

Detailed Description

The C API includes C functions and callbacks, as well as platform-specific widgets and controls.

The C functions include are grouped by the API type: Standard, Intermediate and Extended API.

The C API functions can also be used with the C++ API, providing additional functionality that is not available via the C++ bindings. When C API functions are used in C++, the GLG_C_CONST_CHAR_PTR macro may be set to 1 before the GlgApi.h file is included to use constant strings (const char *).

Displaying a GLG Drawing in a Program

A GLG drawing can be displayed by using either the platform-independent GLG Generic API or one of the native widgets and controls:

Regardless of the way the GLG drawing is displayed (the GLG Generic API or a native container), the rest of the GLG-related application logic is the same, which promotes code sharing between different deployment platforms.

Animating a Drawing with RealTime Data

The drawing can be updates with live data using either resources or tags:

Handling User Interaction

Input callback is the primary way user interaction is handled in a GLG application. The callback is added to a drawing's viewport using GlgAddCallback.

Trace callback may be used to handle native window system events.

Include file: GlgApi.h

Modules

 Standard API Functions
 
 Intermediate API Functions
 
 Extended API Functions
 
 Callbacks
 
 Native Widgets
 
 Interface Handler Functions
 
 Graph Layout
 This group contains classes that implement the spring-embedder and circular graph layouts.