atomes 1.1.16
atomes: an atomic scale modeling tool box
Loading...
Searching...
No Matches
m_render.c File Reference

Functions to create the 'OpenGL -> Render' submenu. More...

#include "global.h"
#include "glview.h"
#include "glwindow.h"
+ Include dependency graph for m_render.c:

Go to the source code of this file.

Functions

G_MODULE_EXPORT void set_render (GtkWidget *widg, gpointer data)
 set OpenGL rendering mode callback
 
G_MODULE_EXPORT void change_render_radio (GSimpleAction *action, GVariant *parameter, gpointer data)
 set OpenGL rendering mode callback GTK4
 
GMenu * menu_render (glwin *view, int popm)
 create the 'OpenGL -> Render' submenu - GTK4
 

Variables

gchar * text_renders [OGL_RENDERS] = {"Filled", "Lines", "Points"}
 

Detailed Description

Functions to create the 'OpenGL -> Render' submenu.

Author
Sébastien Le Roux sebas.nosp@m.tien.nosp@m..lero.nosp@m.ux@i.nosp@m.pcms..nosp@m.unis.nosp@m.tra.f.nosp@m.r

Definition in file m_render.c.

Function Documentation

◆ change_render_radio()

G_MODULE_EXPORT void change_render_radio ( GSimpleAction * action,
GVariant * parameter,
gpointer data )

set OpenGL rendering mode callback GTK4

Parameters
actionthe GAction sending the signal
parameterGVariant parameter of the GAction, if any
datathe associated data pointer

Definition at line 140 of file m_render.c.

◆ menu_render()

GMenu * menu_render ( glwin * view,
int popm )

create the 'OpenGL -> Render' submenu - GTK4

Parameters
viewthe target glwin
popmmain app (0) or popup (1)

Definition at line 182 of file m_render.c.

◆ set_render()

G_MODULE_EXPORT void set_render ( GtkWidget * widg,
gpointer data )

set OpenGL rendering mode callback

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 56 of file m_render.c.

Variable Documentation

◆ text_renders

gchar* text_renders[OGL_RENDERS] = {"Filled", "Lines", "Points"}

Definition at line 46 of file m_render.c.