![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "common/darktable.h"#include "control/control.h"#include "common/image_cache.h"#include "views/view.h"#include <gtk/gtk.h>
Include dependency graph for preview_window.c:Data Structures | |
| struct | dt_preview_window_t |
Typedefs | |
| typedef struct dt_preview_window_t | dt_preview_window_t |
Functions | |
| static void | _preview_window_destroy (GtkWidget *dialog, gpointer user_data) |
| static void | _close_preview_popup (GtkWidget *dialog, gint response_id, gpointer data) |
| static void | _preview_window_size_allocate (GtkWidget *widget, GtkAllocation *allocation, gpointer user_data) |
| void | _colormanage_ui_color (const float L, const float a, const float b, dt_aligned_pixel_t RGB) |
| static gboolean | _thumb_draw_image (GtkWidget *widget, cairo_t *cr, gpointer user_data) |
| void | _preview_redraw (gpointer instance, dt_preview_window_t *preview) |
| void | dt_preview_window_spawn (const int32_t imgid) |
| typedef struct dt_preview_window_t dt_preview_window_t |
Referenced by dt_preview_window_spawn().
| void _colormanage_ui_color | ( | const float | L, |
| const float | a, | ||
| const float | b, | ||
| dt_aligned_pixel_t | RGB | ||
| ) |
References darktable_t::color_profiles, darktable, dt_Lab_to_XYZ(), L, Lab, RGB, dt_colorspaces_t::transform_xyz_to_display, and XYZ.
Referenced by _thumb_draw_image().
| void _preview_redraw | ( | gpointer | instance, |
| dt_preview_window_t * | preview | ||
| ) |
References dt_preview_window_t::area.
Referenced by dt_preview_window_spawn().
References dt_free, dt_view_image_surface_fetcher_cleanup(), and dt_preview_window_t::fetcher.
Referenced by dt_preview_window_spawn().
|
static |
References _colormanage_ui_color(), dt_conf_get_int(), dt_control_draw_busy_msg(), DT_DEBUG_LIGHTTABLE, dt_get_wtime(), DT_PIXEL_APPLY_DPI, dt_print(), dt_view_image_get_surface_async(), DT_VIEW_SURFACE_OK, dt_preview_window_t::fetcher, height, dt_preview_window_t::imgid, IS_NULL_PTR, dt_preview_window_t::surface, TRUE, and width.
Referenced by dt_preview_window_spawn().
| void dt_preview_window_spawn | ( | const int32_t | imgid | ) |
References _close_preview_popup(), _preview_redraw(), _preview_window_destroy(), _preview_window_size_allocate(), _thumb_draw_image(), dt_preview_window_t::area, darktable, DT_DEBUG_CONTROL_SIGNAL_CONNECT, dt_free, dt_image_cache_get(), dt_image_cache_read_release(), dt_osx_disallow_fullscreen(), DT_SIGNAL_DARKROOM_UI_CHANGED, dt_ui_main_window(), dt_view_image_surface_fetcher_init(), FALSE, dt_preview_window_t::fetcher, dt_image_t::filename, darktable_t::gui, darktable_t::image_cache, dt_preview_window_t::imgid, name, darktable_t::signals, TRUE, and dt_gui_gtk_t::ui.
Referenced by _preview_window_open().