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

Functions to create the 'View -> Projection' submenu. More...

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

Go to the source code of this file.

Enumerations

enum  position {
  RIGHT = 0 , LEFT = 1 , TOP = 2 , BOTTOM = 3 ,
  FRONT = 4 , BACK = 5
}
 

Functions

G_MODULE_EXPORT void set_camera_pos (GtkWidget *widg, gpointer data)
 set camera position callback
 
G_MODULE_EXPORT void to_set_camera_pos (GSimpleAction *action, GVariant *parameter, gpointer data)
 set camera position callback GTK4
 
GMenu * menu_proj (glwin *view, int popm)
 create the 'View -> Projection' submenu - GTK4
 

Detailed Description

Functions to create the 'View -> Projection' 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_proj.c.

Enumeration Type Documentation

◆ position

enum position
Enumerator
RIGHT 

0

LEFT 

1

TOP 

2

BOTTOM 

3

FRONT 

4

BACK 

5

Definition at line 47 of file m_proj.c.

Function Documentation

◆ menu_proj()

GMenu * menu_proj ( glwin * view,
int popm )

create the 'View -> Projection' submenu - GTK4

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

Definition at line 164 of file m_proj.c.

◆ set_camera_pos()

G_MODULE_EXPORT void set_camera_pos ( GtkWidget * widg,
gpointer data )

set camera position callback

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 64 of file m_proj.c.

◆ to_set_camera_pos()

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

set camera position callback GTK4

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

Definition at line 151 of file m_proj.c.