VisuGlExtPaths

VisuGlExtPaths — Defines methods to draw paths.

Synopsis

#define             VISU_GL_EXT_PATHS_ID
struct              VisuGlExtPaths;
struct              VisuGlExtPathsClass;
void                visu_gl_ext_paths_draw              (VisuGlExtPaths *paths);
VisuGlExtPaths *    visu_gl_ext_paths_new               (const gchar *name);
gboolean            visu_gl_ext_paths_set               (VisuGlExtPaths *paths,
                                                         VisuPaths *obj);
void                visu_gl_ext_paths_setDirty          (VisuGlExtPaths *paths);

Object Hierarchy

  GObject
   +----VisuGlExt
         +----VisuGlExtPaths

Description

Create a VisuGlExt object to handle VisuPaths drawing.

Details

VISU_GL_EXT_PATHS_ID

#define VISU_GL_EXT_PATHS_ID "Paths"

The id used to identify this extension, see visu_gl_ext_rebuild() for instance.


struct VisuGlExtPaths

struct VisuGlExtPaths;

An opaque structure.

Since 3.7


struct VisuGlExtPathsClass

struct VisuGlExtPathsClass {
  VisuGlExtClass parent;
};

A short way to identify _VisuGlExtPathsClass structure.

VisuGlExtClass parent;

the parent class;

Since 3.7


visu_gl_ext_paths_draw ()

void                visu_gl_ext_paths_draw              (VisuGlExtPaths *paths);

This method creates a compiled list that draws paths.

paths :

the VisuBox object to build paths for.

visu_gl_ext_paths_new ()

VisuGlExtPaths *    visu_gl_ext_paths_new               (const gchar *name);

Creates a new VisuGlExt to draw paths.

name :

the name to give to the extension (default is VISU_GL_EXT_PATHS_ID). [allow-none]

Returns :

a pointer to the VisuGlExt it created or NULL otherwise.

Since 3.7


visu_gl_ext_paths_set ()

gboolean            visu_gl_ext_paths_set               (VisuGlExtPaths *paths,
                                                         VisuPaths *obj);

Set the VisuPaths to be drawn.

paths :

the VisuGlExtPaths object to modify.

obj :

a VisuPaths object. [allow-none]

Returns :

TRUE if visu_gl_ext_paths_draw() should be called and then 'OpenGLAskForReDraw' signal be emitted.

Since 3.7


visu_gl_ext_paths_setDirty ()

void                visu_gl_ext_paths_setDirty          (VisuGlExtPaths *paths);

Currently, VisuPath are not objects, so paths cannot react to a change on them. Callers have to set by hand that paths should be redrawn with this routine.

paths :

a VisuGlExtPaths object.

Since 3.7