gwydgets

gwydgets — Base functions

Functions

Includes

#include <libgwydgets/gwydgets.h>

Description

Gwyddion classes has to be initialized before they can be safely deserialized. The function gwy_type_init() performs this initialization.

Before 3D widgets (Gwy3DView) can be used, OpenGL must be initialized with gwy_widgets_gl_init().

Functions

gwy_widgets_type_init()

void
gwy_widgets_type_init (void);

Makes libgwydgets types safe for deserialization and performs other initialization. You have to call this function before using widgets and objects from libgwydgets.

Calls gwy_draw_type_init() first to make sure libgwydraw is initialized.

It is safe to call this function more than once, subsequent calls are no-op.


gwy_widgets_gl_init()

gboolean
gwy_widgets_gl_init (void);

Configures an OpenGL-capable visual for 3D widgets.

This function does not do anything any more.

Returns

TRUE if an appropriate visual was found. If Gwyddion was compiled without OpenGL support, it always returns FALSE.