![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "common/darktable.h"#include "bauhaus/bauhaus.h"#include "common/debug.h"#include "common/file_location.h"#include "control/conf.h"#include "control/control.h"#include "develop/develop.h"#include "gui/gtk.h"#include "gui/draw.h"#include "libs/lib.h"#include "libs/lib_api.h"
Include dependency graph for snapshots.c:Data Structures | |
| struct | dt_lib_snapshot_t |
| struct | dt_lib_snapshots_t |
Macros | |
| #define | DT_LIB_SNAPSHOTS_COUNT 4 |
| #define | HANDLE_SIZE 0.02 |
Typedefs | |
| typedef struct dt_lib_snapshot_t | dt_lib_snapshot_t |
| typedef struct dt_lib_snapshots_t | dt_lib_snapshots_t |
Functions | |
| static void | _lib_snapshots_add_button_clicked_callback (GtkWidget *widget, gpointer user_data) |
| static void | _lib_snapshots_toggled_callback (GtkToggleButton *widget, gpointer user_data) |
| const char * | name (struct dt_lib_module_t *self) |
| const char ** | views (dt_lib_module_t *self) |
| uint32_t | container (dt_lib_module_t *self) |
| int | position () |
| static void | _draw_sym (cairo_t *cr, float x, float y, gboolean vertical, gboolean inverted) |
| void | gui_post_expose (dt_lib_module_t *self, cairo_t *cri, int32_t width, int32_t height, int32_t pointerx, int32_t pointery) |
| int | button_released (struct dt_lib_module_t *self, double x, double y, int which, uint32_t state) |
| int | button_pressed (struct dt_lib_module_t *self, double x, double y, double pressure, int which, int type, uint32_t state) |
| int | mouse_moved (dt_lib_module_t *self, double x, double y, double pressure, int which) |
| void | gui_reset (dt_lib_module_t *self) |
| void | gui_init (dt_lib_module_t *self) |
| void | gui_cleanup (dt_lib_module_t *self) |
Variables | |
| static int | _lib_snapshot_rotation_cnt = 0 |
| #define DT_LIB_SNAPSHOTS_COUNT 4 |
| #define HANDLE_SIZE 0.02 |
| typedef struct dt_lib_snapshot_t dt_lib_snapshot_t |
| typedef struct dt_lib_snapshots_t dt_lib_snapshots_t |
|
static |
References darktable_t::bauhaus, darktable, dt_draw_set_color_overlay(), DT_PIXEL_APPLY_DPI, FALSE, inv, dt_bauhaus_t::pango_font_desc, and x.
Referenced by gui_post_expose().
|
static |
References b, dt_lib_snapshot_t::button, d, darktable, dt_lib_module_t::data, darktable_t::develop, dt_dev_get_history_end_ext(), dt_dev_snapshot_request(), dt_develop_t::filename, dt_develop_t::history, name, and dt_develop_t::snapshot.
Referenced by gui_init().
|
static |
| int button_pressed | ( | struct dt_lib_module_t * | self, |
| double | x, | ||
| double | y, | ||
| double | pressure, | ||
| int | which, | ||
| int | type, | ||
| uint32_t | state | ||
| ) |
References _lib_snapshot_rotation_cnt, d, dt_lib_module_t::data, dt_control_queue_redraw_center(), HANDLE_SIZE, TRUE, and x.
| int button_released | ( | struct dt_lib_module_t * | self, |
| double | x, | ||
| double | y, | ||
| int | which, | ||
| uint32_t | state | ||
| ) |
References d, dt_lib_module_t::data, and FALSE.
| uint32_t container | ( | dt_lib_module_t * | self | ) |
References DT_UI_CONTAINER_PANEL_LEFT_CENTER.
| void gui_cleanup | ( | dt_lib_module_t * | self | ) |
References d, dt_lib_module_t::data, and dt_free.
| void gui_init | ( | dt_lib_module_t * | self | ) |
| void gui_post_expose | ( | dt_lib_module_t * | self, |
| cairo_t * | cri, | ||
| int32_t | width, | ||
| int32_t | height, | ||
| int32_t | pointerx, | ||
| int32_t | pointery | ||
| ) |
References _draw_sym(), d, darktable, dt_lib_module_t::data, darktable_t::develop, double(), dt_draw_set_color_overlay(), DT_PIXEL_APPLY_DPI, dtgtk_cairo_paint_refresh(), FALSE, h, HANDLE_SIZE, height, dt_develop_t::preview_height, dt_develop_t::preview_width, dt_develop_t::roi, size, TRUE, width, and x.
| void gui_reset | ( | dt_lib_module_t * | self | ) |
References d, dt_lib_module_t::data, dt_control_queue_redraw_center(), and FALSE.
| int mouse_moved | ( | dt_lib_module_t * | self, |
| double | x, | ||
| double | y, | ||
| double | pressure, | ||
| int | which | ||
| ) |
References d, dt_lib_module_t::data, dt_control_queue_redraw_center(), and x.
| const char * name | ( | struct dt_lib_module_t * | self | ) |
| int position | ( | ) |
| const char ** views | ( | dt_lib_module_t * | self | ) |
References v.
|
static |
Referenced by button_pressed().