VisuGlExtBoxLegend

VisuGlExtBoxLegend — Draw a legend describing the box.

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── ToolDbgObj
        ╰── VisuGlExt
            ╰── VisuGlExtFrame
                ╰── VisuGlExtBoxLegend

Description

This extension allows V_Sim to draw a small box with box information like the box size.

Functions

visu_gl_ext_box_legend_new ()

VisuGlExtBoxLegend *
visu_gl_ext_box_legend_new (const gchar *name);

Creates a new VisuGlExt to draw a legend with the box size.

Parameters

name

the name to give to the extension.

[allow-none]

Returns

a pointer to the VisuGlExt it created or NULL otherwise.

Since: 3.7


visu_gl_ext_box_legend_setBox ()

gboolean
visu_gl_ext_box_legend_setBox (VisuGlExtBoxLegend *legend,
                               VisuBox *boxObj);

Attach an VisuGlView to render to and setup the box to get the size of also.

Parameters

legend

The VisuGlExtBoxLegend to attached to.

 

boxObj

the box to get the size of.

 

Returns

TRUE if model is changed.

Since: 3.7

Types and Values

VISU_GL_EXT_BOX_LEGEND_ID

#define VISU_GL_EXT_BOX_LEGEND_ID "Box legend"

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