Functions to create the graph/curve window.
More...
#include <stdlib.h>
#include <math.h>
#include <gtk/gtk.h>
#include <gdk/gdk.h>
#include <cairo.h>
#include "global.h"
#include "callbacks.h"
#include "curve.h"
#include "cedit.h"
#include "datab.h"
Go to the source code of this file.
|
| void | autoscale (gpointer data) |
| | autoscale callback
|
| |
| void | curve_menu_bar_action (GSimpleAction *action, GVariant *parameter, gpointer data) |
| | curve menu action callback
|
| |
| void | curve_zoom_in_out (gboolean state, gdouble event_x, gdouble event_y, gpointer data) |
| | curve zoom in or out
|
| |
| void | curve_button_event (GdkEvent *event, double event_x, double event_y, guint event_button, guint event_type, guint32 event_time, gpointer data) |
| | handle mouse button event on the curve window GTK3
|
| |
| G_MODULE_EXPORT gboolean | on_curve_button_event (GtkWidget *widget, GdkEvent *event, gpointer data) |
| | mouse button event on the curve window
|
| |
| void | curve_key_pressed (guint keyval, GdkModifierType state, gpointer data) |
| | the keyboard shortcut actions for the curve window
|
| |
| G_MODULE_EXPORT gboolean | on_curve_key_pressed (GtkEventControllerKey *self, guint keyval, guint keycode, GdkModifierType state, gpointer data) |
| | keyboard key press event for the curve window GTK4
|
| |
| int | get_curve_shift (project *this_proj, int b, int c) |
| | get cruve window size shift
|
| |
| G_MODULE_EXPORT void | on_curve_realize (GtkWidget *widg, gpointer data) |
| | curve window realize callback
|
| |
| GtkWidget * | create_curve (tint *data) |
| | create the curve data plot window
|
| |
◆ autoscale()
| void autoscale |
( |
gpointer | data | ) |
|
|
extern |
autoscale callback
- Parameters
-
| data | the associated data pointer |
Definition at line 100 of file m_curve.c.
◆ create_curve()
| GtkWidget * create_curve |
( |
tint * | data | ) |
|
create the curve data plot window
- Parameters
-
| data | the associated data pointer |
Definition at line 605 of file w_curve.c.
◆ curve_button_event()
| void curve_button_event |
( |
GdkEvent * | event, |
|
|
double | event_x, |
|
|
double | event_y, |
|
|
guint | event_button, |
|
|
guint | event_type, |
|
|
guint32 | event_time, |
|
|
gpointer | data ) |
handle mouse button event on the curve window GTK3
- Parameters
-
| event | the GdkEvent triggering the signal |
| event_x | x position |
| event_y | y position |
| event_button | event button |
| event_type | event type |
| event_time | event time |
| data | the associated data pointer |
Definition at line 333 of file w_curve.c.
◆ curve_key_pressed()
| void curve_key_pressed |
( |
guint | keyval, |
|
|
GdkModifierType | state, |
|
|
gpointer | data ) |
the keyboard shortcut actions for the curve window
- Parameters
-
| keyval | the key pressed |
| state | the keyboard modifier |
| data | the associated data pointer |
Definition at line 503 of file w_curve.c.
◆ curve_menu_bar_action()
| void curve_menu_bar_action |
( |
GSimpleAction * | action, |
|
|
GVariant * | parameter, |
|
|
gpointer | data ) |
|
extern |
curve menu action callback
- Parameters
-
| action | the GAction sending the signal |
| parameter | GVariant parameter of the GAction, if any |
| data | the associated data pointer |
Definition at line 297 of file m_curve.c.
◆ curve_zoom_in_out()
| void curve_zoom_in_out |
( |
gboolean | state, |
|
|
gdouble | event_x, |
|
|
gdouble | event_y, |
|
|
gpointer | data ) |
curve zoom in or out
- Parameters
-
| state | mouse button state (pressed or released) |
| event_x | x position |
| event_y | y position |
| data | the associated data pointer |
Definition at line 102 of file w_curve.c.
◆ get_curve_shift()
| int get_curve_shift |
( |
project * | this_proj, |
|
|
int | b, |
|
|
int | c ) |
get cruve window size shift
- Parameters
-
| this_proj | the target project |
| b | the calculation id |
| c | the curve id |
Definition at line 576 of file w_curve.c.
◆ on_curve_button_event()
| G_MODULE_EXPORT gboolean on_curve_button_event |
( |
GtkWidget * | widget, |
|
|
GdkEvent * | event, |
|
|
gpointer | data ) |
mouse button event on the curve window
- Parameters
-
| widget | the GtkWidget sending the signal |
| event | the GdkEvent triggering the signal |
| data | the associated data pointer |
Definition at line 486 of file w_curve.c.
◆ on_curve_key_pressed()
| G_MODULE_EXPORT gboolean on_curve_key_pressed |
( |
GtkEventControllerKey * | self, |
|
|
guint | keyval, |
|
|
guint | keycode, |
|
|
GdkModifierType | state, |
|
|
gpointer | data ) |
keyboard key press event for the curve window GTK4
- Parameters
-
| self | the GtkEventControllerKey sending the signal |
| keyval | number of times it was pressed |
| keycode | the key pressed |
| state | the keyboard modifier |
| data | the associated data pointer |
Definition at line 560 of file w_curve.c.
◆ on_curve_realize()
| G_MODULE_EXPORT void on_curve_realize |
( |
GtkWidget * | widg, |
|
|
gpointer | data ) |
curve window realize callback
- Parameters
-
| widg | the GtkWidget sending the signal |
| data | the associated data pointer |
Definition at line 589 of file w_curve.c.
◆ activec
◆ activeg
◆ activer
◆ curve_action_id