Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
dev_toolbox.h
Go to the documentation of this file.
1/*
2 This file is part of the Ansel project.
3 Copyright (C) 2026 Guillaume STUTIN.
4
5 Ansel is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 Ansel is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14*/
15
16#pragma once
17
18#include <stddef.h>
19
20#include "views/view.h"
21
22struct dt_develop_t;
23
35
59 const dt_dev_toolbox_button_t *buttons, size_t n_buttons);
60
72void dt_dev_toolbox_add_accels(struct dt_develop_t *dev, GtkAccelGroup *accel_group, const char *category,
73 const dt_dev_toolbox_button_t *buttons, size_t n_buttons);
74
81 GdkModifierType modifier, gpointer data);
83 GdkModifierType modifier, gpointer data);
84
90
96
101gboolean dt_dev_toolbox_show_popup(gpointer popover);
102
107void dt_dev_toolbox_popover_set_preshow(GtkWidget *popover, void (*preshow)(gpointer user_data),
108 gpointer user_data);
109
114#define DT_DEV_TOOLBOX_POPOVER_KEY "dt-dev-toolbox-popover"
const char ** views(dt_lib_module_t *self)
dt_dev_toolbox_button_t
Definition dev_toolbox.h:27
@ DT_DEV_TOOLBOX_DISPLAY
Definition dev_toolbox.h:33
@ DT_DEV_TOOLBOX_GAMUT
Definition dev_toolbox.h:32
@ DT_DEV_TOOLBOX_RAWOVEREXPOSED
Definition dev_toolbox.h:30
@ DT_DEV_TOOLBOX_OVEREXPOSED
Definition dev_toolbox.h:29
@ DT_DEV_TOOLBOX_SOFTPROOF
Definition dev_toolbox.h:31
@ DT_DEV_TOOLBOX_ISO_12646
Definition dev_toolbox.h:28
void dt_dev_toolbox_create(struct dt_develop_t *dev, dt_view_type_flags_t views, const dt_dev_toolbox_button_t *buttons, size_t n_buttons)
gboolean dt_dev_toolbox_focus_accel(GtkAccelGroup *accel_group, GObject *accelerable, guint keyval, GdkModifierType modifier, gpointer data)
gboolean dt_dev_toolbox_show_popup(gpointer popover)
Definition dev_toolbox.c:72
void dt_dev_toolbox_connect_popover(GtkWidget *button, GtkWidget *popover)
gboolean dt_dev_toolbox_activate_accel(GtkAccelGroup *accel_group, GObject *accelerable, guint keyval, GdkModifierType modifier, gpointer data)
void dt_dev_toolbox_popover_set_preshow(GtkWidget *popover, void(*preshow)(gpointer user_data), gpointer user_data)
Definition dev_toolbox.c:66
void dt_dev_toolbox_add_accels(struct dt_develop_t *dev, GtkAccelGroup *accel_group, const char *category, const dt_dev_toolbox_button_t *buttons, size_t n_buttons)
void dt_dev_toolbox_apply_iso_12646_size(struct dt_develop_t *dev)
Definition dev_toolbox.c:38
struct _GtkWidget GtkWidget
Definition splash.h:29
GtkWidget * button
Definition develop.h:455
dt_view_type_flags_t
Definition view.h:76