|
atomes 1.2.1
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"
Include dependency graph for color_box.c:Go to the source code of this file.
Functions | |
| void | update_gradient_widgets (gradient_edition *gradient_win, background *back) |
| update the widgets of the gradient window | |
| 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 89 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 259 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 68 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 146 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 109 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 129 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 224 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 204 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 166 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 184 of file color_box.c.
|
extern |
update the widgets of the gradient window
| gradient_win | the target gradient edition |
| back | the target background information |
Definition at line 84 of file w_colors.c.