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

Functions to create the box properties window. More...

#include "global.h"
#include "interface.h"
#include "glview.h"
#include "glwindow.h"
#include "preferences.h"
+ Include dependency graph for w_box.c:

Go to the source code of this file.

Macros

#define BOX_STYLES   2
 

Functions

G_MODULE_EXPORT void update_box_parameter (GtkEntry *res, gpointer data)
 update box parameter callback
 
G_MODULE_EXPORT void set_box_combo_style (GtkWidget *widg, gpointer data)
 set box style callback
 
G_MODULE_EXPORT void set_show_box_toggle (GtkToggleButton *but, gpointer data)
 toggle show / hide box callback GTK3
 
G_MODULE_EXPORT void set_color_box (GtkColorChooser *colob, gpointer data)
 set box color callback
 
G_MODULE_EXPORT gboolean on_box_delete (GtkWidget *widg, GdkEvent *event, gpointer data)
 box window delete event - GTK3
 
G_MODULE_EXPORT void box_advanced (GtkWidget *widg, gpointer data)
 create the box edition window
 

Variables

gchar * box_style [BOX_STYLES] = {"Wireframe", "Cylinders"}
 
gboolean from_box_or_axis = FALSE
 

Detailed Description

Functions to create the box properties window.

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 w_box.c.

Macro Definition Documentation

◆ BOX_STYLES

#define BOX_STYLES   2

Definition at line 48 of file w_box.c.

Function Documentation

◆ box_advanced()

G_MODULE_EXPORT void box_advanced ( GtkWidget * widg,
gpointer data )

create the box edition window

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 338 of file w_box.c.

◆ on_box_delete()

G_MODULE_EXPORT gboolean on_box_delete ( GtkWidget * widg,
GdkEvent * event,
gpointer data )

box window delete event - GTK3

Parameters
widgthe GtkWidget sending the signal
eventthe GdkEvent triggering the signal
datathe associated data pointer

Definition at line 320 of file w_box.c.

◆ set_box_combo_style()

G_MODULE_EXPORT void set_box_combo_style ( GtkWidget * widg,
gpointer data )

set box style callback

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 140 of file w_box.c.

◆ set_color_box()

G_MODULE_EXPORT void set_color_box ( GtkColorChooser * colob,
gpointer data )

set box color callback

Parameters
colobthe GtkColorChooser sending the signal
datathe associated data pointer

Definition at line 285 of file w_box.c.

◆ set_show_box_toggle()

G_MODULE_EXPORT void set_show_box_toggle ( GtkToggleButton * but,
gpointer data )

toggle show / hide box callback GTK3

Parameters
butthe GtkToggleButton sending the signal
datathe associated data pointer

Definition at line 228 of file w_box.c.

◆ update_box_parameter()

G_MODULE_EXPORT void update_box_parameter ( GtkEntry * res,
gpointer data )

update box parameter callback

Parameters
resthe GtkEntry sending the signal
datathe associated data pointer

Definition at line 62 of file w_box.c.

Variable Documentation

◆ box_style

gchar* box_style[BOX_STYLES] = {"Wireframe", "Cylinders"}

Definition at line 50 of file w_box.c.

◆ from_box_or_axis

gboolean from_box_or_axis = FALSE

Definition at line 52 of file w_box.c.