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

Functions to create the color selection dialogs. More...

#include "global.h"
#include "interface.h"
#include "project.h"
#include "glwindow.h"
#include "glview.h"
#include "color_box.h"
#include "preferences.h"
+ Include dependency graph for w_colors.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
 
G_MODULE_EXPORT void run_window_color (GtkDialog *win, gint response_id, gpointer data)
 window color chooser - running the dialog
 
void window_color (project *this_proj, glwin *view)
 window color chooser - creating the dialog
 
G_MODULE_EXPORT void to_run_back_color_window (GtkWidget *widg, gpointer data)
 to run background color selection window callback GTK3
 
G_MODULE_EXPORT void set_gradient_color (GtkColorChooser *colob, gpointer data)
 change background color
 
G_MODULE_EXPORT void set_gradient_parameter (GtkWidget *widg, gpointer data)
 set gradient parameter callback
 
void back_position_has_changed (gpointer data, GLfloat v)
 change gradient mixed position
 
G_MODULE_EXPORT gboolean scroll_set_back_position (GtkRange *range, GtkScrollType scroll, gdouble value, gpointer data)
 set gradient mixed position - scroll callback
 
G_MODULE_EXPORT void set_back_position (GtkRange *range, gpointer data)
 set gradient mixed position - range callback
 
G_MODULE_EXPORT gboolean on_gradient_delete (GtkWidget *widg, GdkEvent *event, gpointer data)
 gradient window delete event - GTK3
 
G_MODULE_EXPORT void gradient_advanced (GtkWidget *widg, gpointer data)
 Background configuration window.
 
G_MODULE_EXPORT void to_run_box_color_window (GtkWidget *widg, gpointer data)
 to run box color selection window callback GTK3
 
G_MODULE_EXPORT void to_run_atom_color_window (GtkWidget *widg, gpointer data)
 to run atom color selection window callback GTK3
 
G_MODULE_EXPORT void run_window_color_coord (GtkDialog *win, gint response_id, gpointer data)
 window to select a color - running the dialog
 
G_MODULE_EXPORT void window_color_coord (GtkWidget *widg, gpointer data)
 create a window to select a color callback GTK3
 

Variables

int wc_cid
 

Detailed Description

Functions to create the color selection dialogs.

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

Function Documentation

◆ back_position_has_changed()

void back_position_has_changed ( gpointer data,
GLfloat v )

change gradient mixed position

Parameters
datathe associated data pointer
vthe new position value

Definition at line 351 of file w_colors.c.

◆ gradient_advanced()

G_MODULE_EXPORT void gradient_advanced ( GtkWidget * widg,
gpointer data )

Background configuration window.

Parameters
widgthe widget sending the signal, if any
theassociated data pointer

Definition at line 434 of file w_colors.c.

◆ on_gradient_delete()

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

gradient window delete event - GTK3

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

Definition at line 416 of file w_colors.c.

◆ run_window_color()

G_MODULE_EXPORT void run_window_color ( GtkDialog * win,
gint response_id,
gpointer data )

window color chooser - running the dialog

Parameters
winthe GtkDialog sending the signal
response_idthe response id
datathe associated data pointer

Definition at line 125 of file w_colors.c.

◆ run_window_color_coord()

G_MODULE_EXPORT void run_window_color_coord ( GtkDialog * win,
gint response_id,
gpointer data )

window to select a color - running the dialog

Parameters
winthe GtkDialog sending the signal
response_idthe response id
datathe associated data pointer

Definition at line 638 of file w_colors.c.

◆ scroll_set_back_position()

G_MODULE_EXPORT gboolean scroll_set_back_position ( GtkRange * range,
GtkScrollType scroll,
gdouble value,
gpointer data )

set gradient mixed position - scroll callback

Parameters
rangethe GtkRange sending the signal
scrollthe associated scroll type
valuethe range value
datathe associated data pointer

Definition at line 377 of file w_colors.c.

◆ set_back_position()

G_MODULE_EXPORT void set_back_position ( GtkRange * range,
gpointer data )

set gradient mixed position - range callback

Parameters
rangethe GtkRange sending the signal
datathe associated data pointer

Definition at line 391 of file w_colors.c.

◆ set_gradient_color()

G_MODULE_EXPORT void set_gradient_color ( GtkColorChooser * colob,
gpointer data )

change background color

Parameters
colobthe GtkColorChooser sending the signal
datathe associated data pointer

Definition at line 240 of file w_colors.c.

◆ set_gradient_parameter()

G_MODULE_EXPORT void set_gradient_parameter ( GtkWidget * widg,
gpointer data )

set gradient parameter callback

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 288 of file w_colors.c.

◆ to_run_atom_color_window()

G_MODULE_EXPORT void to_run_atom_color_window ( GtkWidget * widg,
gpointer data )

to run atom color selection window callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 615 of file w_colors.c.

◆ to_run_back_color_window()

G_MODULE_EXPORT void to_run_back_color_window ( GtkWidget * widg,
gpointer data )

to run background color selection window callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 223 of file w_colors.c.

◆ to_run_box_color_window()

G_MODULE_EXPORT void to_run_box_color_window ( GtkWidget * widg,
gpointer data )

to run box color selection window callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 585 of file w_colors.c.

◆ update_gradient_widgets()

void update_gradient_widgets ( gradient_edition * gradient_win,
background * back )

update the widgets of the gradient window

Parameters
gradient_winthe target gradient edition
backthe target background information

Definition at line 84 of file w_colors.c.

◆ window_color()

void window_color ( project * this_proj,
glwin * view )

window color chooser - creating the dialog

Parameters
this_projthe target project
viewthe target glwin

Definition at line 169 of file w_colors.c.

◆ window_color_coord()

G_MODULE_EXPORT void window_color_coord ( GtkWidget * widg,
gpointer data )

create a window to select a color callback GTK3

Parameters
widgthe GtkWidget sending the signal
datathe associated data pointer

Definition at line 677 of file w_colors.c.

Variable Documentation

◆ wc_cid

int wc_cid

Definition at line 73 of file w_colors.c.