Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
preview_window.c File Reference
#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 Documentation

◆ dt_preview_window_t

Function Documentation

◆ _close_preview_popup()

static void _close_preview_popup ( GtkWidget dialog,
gint  response_id,
gpointer  data 
)
static

Referenced by dt_preview_window_spawn().

◆ _colormanage_ui_color()

void _colormanage_ui_color ( const float  L,
const float  a,
const float  b,
dt_aligned_pixel_t  RGB 
)
Todo:
: we color-manage the preview window assuming it sits on the same screen as the main window

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().

◆ _preview_redraw()

void _preview_redraw ( gpointer  instance,
dt_preview_window_t preview 
)

◆ _preview_window_destroy()

static void _preview_window_destroy ( GtkWidget dialog,
gpointer  user_data 
)
static

◆ _preview_window_size_allocate()

static void _preview_window_size_allocate ( GtkWidget widget,
GtkAllocation *  allocation,
gpointer  user_data 
)
static

◆ _thumb_draw_image()

static gboolean _thumb_draw_image ( GtkWidget widget,
cairo_t *  cr,
gpointer  user_data 
)
static

◆ dt_preview_window_spawn()