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

Functions to create the 'Model -> Box' submenu. More...

#include "global.h"
#include "glview.h"
#include "glwindow.h"
#include "color_box.h"
#include "submenus.h"
+ Include dependency graph for m_box.c:

Go to the source code of this file.

Functions

G_MODULE_EXPORT void box_advanced (GtkWidget *widg, gpointer data)
 create the box edition window callback GTK3
 
G_MODULE_EXPORT void window_bonds (GtkWidget *widg, gpointer data)
 create bond(s) configuration window(s) callback GTK3
 
G_MODULE_EXPORT void window_lines (GtkWidget *widg, gpointer data)
 
G_MODULE_EXPORT void show_hide_box_axis (GSimpleAction *action, GVariant *parameter, gpointer data)
 handle the 'box/axis' show/hide signal GTK4
 
G_MODULE_EXPORT void change_box_axis_radio (GSimpleAction *action, GVariant *parameter, gpointer data)
 handle a box/axis radio menu item signal GTK4
 
GMenu * axis_box_style (glwin *view, int popm, int ab, int abs)
 create the box/axis '-> Style' submenu GTK4
 
GMenu * axis_box_param (glwin *view, int popm, int ab, int style)
 create the box/axis '-> Length/Width/Radius' submenus GTK4
 
GMenuItem * menu_box_axis (glwin *view, int popm, int ab)
 create the 'Model -> Box' and 'View -> Axis' submenus GTK4
 

Detailed Description

Functions to create the 'Model -> Box' 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_box.c.

Function Documentation

◆ axis_box_param()

GMenu * axis_box_param ( glwin * view,
int popm,
int ab,
int style )

create the box/axis '-> Length/Width/Radius' submenus GTK4

Parameters
viewthe target glwin
popmmain app (0) or popup (1)
abbox (0) or axis (1)
stylethe active box/axis style

Definition at line 435 of file m_box.c.

◆ axis_box_style()

GMenu * axis_box_style ( glwin * view,
int popm,
int ab,
int abs )

create the box/axis '-> Style' submenu GTK4

Parameters
viewthe target glwin
popmmain app (0) or popup (1)
abbox (0) or axis (1)
absthe active box/axis style

Definition at line 409 of file m_box.c.

◆ box_advanced()

G_MODULE_EXPORT void box_advanced ( GtkWidget * widg,
gpointer data )

create the box edition window callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 177 of file w_box.c.

◆ change_box_axis_radio()

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

handle a box/axis radio menu item signal GTK4

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

Definition at line 358 of file m_box.c.

◆ menu_box_axis()

GMenuItem * menu_box_axis ( glwin * view,
int popm,
int ab )

create the 'Model -> Box' and 'View -> Axis' submenus GTK4

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

Definition at line 470 of file m_box.c.

◆ show_hide_box_axis()

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

handle the 'box/axis' show/hide signal GTK4

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

Definition at line 314 of file m_box.c.

◆ window_bonds()

G_MODULE_EXPORT void window_bonds ( GtkWidget * widg,
gpointer data )
extern

create bond(s) configuration window(s) callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 373 of file w_bonds.c.

◆ window_lines()

G_MODULE_EXPORT void window_lines ( GtkWidget * widg,
gpointer data )
extern