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

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

#include "global.h"
#include "bind.h"
#include "project.h"
#include "glview.h"
#include "glwindow.h"
+ Include dependency graph for m_style.c:

Go to the source code of this file.

Functions

gchar * label_atpts (project *this_proj, glwin *view, int id)
 prepare the text of a menu item in the 'Model -> Atom(s)' submenu
 
void clean_atom_style (project *this_proj)
 clean all atom(s) possible alternative rendering styles
 
G_MODULE_EXPORT void set_style (GtkWidget *widg, gpointer data)
 set style callback
 
G_MODULE_EXPORT void change_style_radio (GSimpleAction *action, GVariant *parameter, gpointer data)
 change style callback GTK4
 
GMenu * menu_style (glwin *view, int popm)
 create the 'OpenGL -> Style' submenu - GTK4
 

Variables

char * text_styles [OGL_STYLES]
 
char * text_filled [FILLED_STYLES]
 

Detailed Description

Functions to create the 'OpenGL -> Style' 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_style.c.

Function Documentation

◆ change_style_radio()

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

change style callback GTK4

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

Definition at line 378 of file m_style.c.

◆ clean_atom_style()

void clean_atom_style ( project * this_proj)

clean all atom(s) possible alternative rendering styles

Parameters
this_projthe target project

Definition at line 73 of file m_style.c.

◆ label_atpts()

gchar * label_atpts ( project * this_proj,
glwin * view,
int id )
extern

prepare the text of a menu item in the 'Model -> Atom(s)' submenu

Parameters
this_projthe target project
viewthe target glwin
idthe type of label to prepare

Definition at line 72 of file m_atoms.c.

◆ menu_style()

GMenu * menu_style ( glwin * view,
int popm )

create the 'OpenGL -> Style' submenu - GTK4

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

Definition at line 433 of file m_style.c.

◆ set_style()

G_MODULE_EXPORT void set_style ( GtkWidget * widg,
gpointer data )

set style callback

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 171 of file m_style.c.

Variable Documentation

◆ text_filled

char* text_filled[FILLED_STYLES]
Initial value:
= {"Covalent radius",
"Ionic radius",
"van Der Waals radius",
"In crystal radius"}

Definition at line 61 of file m_style.c.

◆ text_styles

char* text_styles[OGL_STYLES]
Initial value:
= {"Ball and stick",
"Wireframe",
"Spacefilled",
"Spheres",
"Cylinders",
"Dots"}

Definition at line 54 of file m_style.c.