atomes 1.1.14
atomes: an atomic scale modeling tool box
Loading...
Searching...
No Matches
color_box.h
Go to the documentation of this file.
1/* This file is part of the 'atomes' software
2
3'atomes' is free software: you can redistribute it and/or modify it under the terms
4of the GNU Affero General Public License as published by the Free Software Foundation,
5either version 3 of the License, or (at your option) any later version.
6
7'atomes' is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
8without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
9See the GNU General Public License for more details.
10
11You should have received a copy of the GNU Affero General Public License along with 'atomes'.
12If not, see <https://www.gnu.org/licenses/>
13
14Copyright (C) 2022-2024 by CNRS and University of Strasbourg */
15
23/*
24* This header file: 'color_box.h'
25*
26* Contains:
27
28 - Structure definitions for color management
29 - Function declarations for color management
30
31*/
32
33typedef struct {
34 double red;
35 double green;
36 double blue;
37} color;
38
39extern color colorp[64];
40
41#ifdef GTK4
42extern void color_box (glwin * view, int ideo, int spec, int geo);
43extern G_MODULE_EXPORT void to_run_back_color_window (GSimpleAction * action, GVariant * parameter, gpointer data);
44extern G_MODULE_EXPORT void to_run_box_color_window (GSimpleAction * action, GVariant * parameter, gpointer data);
45extern G_MODULE_EXPORT void to_run_atom_color_window (GSimpleAction * action, GVariant * parameter, gpointer data);
46#else
47extern GtkWidget * color_box (glwin * view, int ideo, int spec, int geo);
48extern G_MODULE_EXPORT void window_color_coord (GtkWidget * widg, gpointer data);
49extern G_MODULE_EXPORT void to_run_back_color_window (GtkWidget * widg, gpointer data);
50extern G_MODULE_EXPORT void to_run_box_color_window (GtkWidget * widg, gpointer data);
51extern G_MODULE_EXPORT void to_run_atom_color_window (GtkWidget * widg, gpointer data);
52#endif
53extern G_MODULE_EXPORT void window_color_total_poly (GtkWidget * widg, gpointer data);
54extern G_MODULE_EXPORT void window_color_partial_poly (GtkWidget * widg, gpointer data);
G_MODULE_EXPORT void window_color_total_poly(GtkWidget *widg, gpointer data)
G_MODULE_EXPORT void to_run_back_color_window(GtkWidget *widg, gpointer data)
to run background color selection window callback GTK3
Definition w_colors.c:159
G_MODULE_EXPORT void to_run_box_color_window(GtkWidget *widg, gpointer data)
to run box color selection window callback GTK3
Definition w_colors.c:187
GtkWidget * color_box(glwin *view, int ideo, int spec, int geo)
create the color palette pointers and menus GTK3 version
Definition color_box.c:254
color colorp[64]
G_MODULE_EXPORT void window_color_coord(GtkWidget *widg, gpointer data)
create a window to select a color callback GTK3
Definition w_colors.c:277
G_MODULE_EXPORT void window_color_partial_poly(GtkWidget *widg, gpointer data)
G_MODULE_EXPORT void to_run_atom_color_window(GtkWidget *widg, gpointer data)
to run atom color selection window callback GTK3
Definition w_colors.c:216
action
Definition glview.h:189
double green
Definition color_box.h:35
double red
Definition color_box.h:34
double blue
Definition color_box.h:36
Definition glwin.h:875