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

Functions to create the color palettes for the menus of the OpenGL window
Callbacks to set the color using the color palettes. More...

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

Go to the source code of this file.

Functions

void get_color (ColRGBA *but, int cid)
 get color from the color palette id
 
cairo_surface_t * col_surface (double r, double g, double b, int x, int y)
 create a cairo sufrace painted with the appropriate color
 
G_MODULE_EXPORT void set_back_color (GtkWidget *widg, gpointer data)
 set background color
 
G_MODULE_EXPORT void set_box_color (GtkWidget *widg, gpointer data)
 set box color
 
G_MODULE_EXPORT void set_at_color (GtkWidget *widg, gpointer data)
 set atomic species color
 
G_MODULE_EXPORT void set_rings_color (GtkWidget *widg, gpointer data)
 set ring polyhedra color
 
G_MODULE_EXPORT void set_total_coord_color (GtkWidget *widg, gpointer data)
 set total coordination color
 
G_MODULE_EXPORT void set_partial_coord_color (GtkWidget *widg, gpointer data)
 set partial coordination color
 
G_MODULE_EXPORT void set_frag_mol_color (GtkWidget *widg, gpointer data)
 set fragment color
 
GtkWidget * color_box (glwin *view, int ideo, int spec, int geo)
 create the color palette pointers and menus GTK3 version
 

Detailed Description

Functions to create the color palettes for the menus of the OpenGL window
Callbacks to set the color using the color palettes.

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

Function Documentation

◆ col_surface()

cairo_surface_t * col_surface ( double r,
double g,
double b,
int x,
int y )

create a cairo sufrace painted with the appropriate color

Parameters
rred value
ggreen value
bblue value
xsurface x size
ysurface y size

Definition at line 87 of file color_box.c.

◆ color_box()

GtkWidget * color_box ( glwin * view,
int ideo,
int spec,
int geo )

create the color palette pointers and menus GTK3 version

Parameters
viewthe target glwin
ideogeometry id or else
specspecies or else
geogeometry or else

Definition at line 254 of file color_box.c.

◆ get_color()

void get_color ( ColRGBA * but,
int cid )

get color from the color palette id

Parameters
butthe color to prepare
cidthe color palette id, in [0-63]

Definition at line 66 of file color_box.c.

◆ set_at_color()

G_MODULE_EXPORT void set_at_color ( GtkWidget * widg,
gpointer data )

set atomic species color

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 141 of file color_box.c.

◆ set_back_color()

G_MODULE_EXPORT void set_back_color ( GtkWidget * widg,
gpointer data )

set background color

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 107 of file color_box.c.

◆ set_box_color()

G_MODULE_EXPORT void set_box_color ( GtkWidget * widg,
gpointer data )

set box color

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 124 of file color_box.c.

◆ set_frag_mol_color()

G_MODULE_EXPORT void set_frag_mol_color ( GtkWidget * widg,
gpointer data )

set fragment color

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 219 of file color_box.c.

◆ set_partial_coord_color()

G_MODULE_EXPORT void set_partial_coord_color ( GtkWidget * widg,
gpointer data )

set partial coordination color

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 199 of file color_box.c.

◆ set_rings_color()

G_MODULE_EXPORT void set_rings_color ( GtkWidget * widg,
gpointer data )

set ring polyhedra color

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 161 of file color_box.c.

◆ set_total_coord_color()

G_MODULE_EXPORT void set_total_coord_color ( GtkWidget * widg,
gpointer data )

set total coordination color

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 179 of file color_box.c.