Functions to create the 'OpenGL -> Style' submenu.
More...
#include "global.h"
#include "bind.h"
#include "project.h"
#include "glview.h"
#include "glwindow.h"
#include "preferences.h"
Go to the source code of this file.
|
| 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
|
| |
◆ change_style_radio()
| G_MODULE_EXPORT void change_style_radio |
( |
GSimpleAction * | action, |
|
|
GVariant * | parameter, |
|
|
gpointer | data ) |
change style callback GTK4
- Parameters
-
| action | the GAction sending the signal |
| parameter | GVariant parameter of the GAction, if any |
| data | the associated data pointer |
Definition at line 382 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_proj | the target project |
Definition at line 74 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_proj | the target project |
| view | the target glwin |
| id | the type of label to prepare |
Definition at line 73 of file m_atoms.c.
◆ menu_style()
| GMenu * menu_style |
( |
glwin * | view, |
|
|
int | popm ) |
create the 'OpenGL -> Style' submenu - GTK4
- Parameters
-
| view | the target glwin |
| popm | main app (0) or popup (1) |
Definition at line 437 of file m_style.c.
◆ set_style()
| G_MODULE_EXPORT void set_style |
( |
GtkWidget * | widg, |
|
|
gpointer | data ) |
set style callback
- Parameters
-
| widg | the GtkWidget sending the signal |
| data | the associated data pointer |
Definition at line 172 of file m_style.c.
◆ text_filled
Initial value:= {"Covalent radius",
"Ionic radius",
"van Der Waals radius",
"In crystal radius"}
Definition at line 62 of file m_style.c.
◆ text_styles
Initial value:= {"Ball and stick",
"Wireframe",
"Spacefilled",
"Spheres",
"Cylinders",
"Dots"}
Definition at line 55 of file m_style.c.