atomes 1.1.14
atomes: an atomic scale modeling tool box
|
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"
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 | |
Functions to create the color palettes for the menus of the OpenGL window
Callbacks to set the color using the color palettes.
Definition in file color_box.c.
cairo_surface_t * col_surface | ( | double | r, |
double | g, | ||
double | b, | ||
int | x, | ||
int | y ) |
create a cairo sufrace painted with the appropriate color
r | red value |
g | green value |
b | blue value |
x | surface x size |
y | surface y size |
Definition at line 87 of file color_box.c.
GtkWidget * color_box | ( | glwin * | view, |
int | ideo, | ||
int | spec, | ||
int | geo ) |
create the color palette pointers and menus GTK3 version
view | the target glwin |
ideo | geometry id or else |
spec | species or else |
geo | geometry or else |
Definition at line 254 of file color_box.c.
void get_color | ( | ColRGBA * | but, |
int | cid ) |
get color from the color palette id
but | the color to prepare |
cid | the color palette id, in [0-63] |
Definition at line 66 of file color_box.c.
G_MODULE_EXPORT void set_at_color | ( | GtkWidget * | widg, |
gpointer | data ) |
set atomic species color
widg | the GtkWidget sending the signal |
data | the associated data pointer |
Definition at line 141 of file color_box.c.
G_MODULE_EXPORT void set_back_color | ( | GtkWidget * | widg, |
gpointer | data ) |
set background color
widg | the GtkWidget sending the signal |
data | the associated data pointer |
Definition at line 107 of file color_box.c.
G_MODULE_EXPORT void set_box_color | ( | GtkWidget * | widg, |
gpointer | data ) |
set box color
widg | the GtkWidget sending the signal |
data | the associated data pointer |
Definition at line 124 of file color_box.c.
G_MODULE_EXPORT void set_frag_mol_color | ( | GtkWidget * | widg, |
gpointer | data ) |
set fragment color
widg | the GtkWidget sending the signal |
data | the associated data pointer |
Definition at line 219 of file color_box.c.
G_MODULE_EXPORT void set_partial_coord_color | ( | GtkWidget * | widg, |
gpointer | data ) |
set partial coordination color
widg | the GtkWidget sending the signal |
data | the associated data pointer |
Definition at line 199 of file color_box.c.
G_MODULE_EXPORT void set_rings_color | ( | GtkWidget * | widg, |
gpointer | data ) |
set ring polyhedra color
widg | the GtkWidget sending the signal |
data | the associated data pointer |
Definition at line 161 of file color_box.c.
G_MODULE_EXPORT void set_total_coord_color | ( | GtkWidget * | widg, |
gpointer | data ) |
set total coordination color
widg | the GtkWidget sending the signal |
data | the associated data pointer |
Definition at line 179 of file color_box.c.