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#ifndef DT_VIEWS_DEV_TOOLBOX_H
17#define DT_VIEWS_DEV_TOOLBOX_H
18
19#include <stddef.h>
20
21#include "views/view.h"
22
23struct dt_develop_t;
24
36
60 const dt_dev_toolbox_button_t *buttons, size_t n_buttons);
61
73void dt_dev_toolbox_add_accels(struct dt_develop_t *dev, GtkAccelGroup *accel_group, const char *category,
74 const dt_dev_toolbox_button_t *buttons, size_t n_buttons);
75
81gboolean dt_dev_toolbox_activate_accel(GtkAccelGroup *accel_group, GObject *accelerable, guint keyval,
82 GdkModifierType modifier, gpointer data);
83gboolean dt_dev_toolbox_focus_accel(GtkAccelGroup *accel_group, GObject *accelerable, guint keyval,
84 GdkModifierType modifier, gpointer data);
85
91
97
102gboolean dt_dev_toolbox_show_popup(gpointer popover);
103
108void dt_dev_toolbox_popover_set_preshow(GtkWidget *popover, void (*preshow)(gpointer user_data),
109 gpointer user_data);
110
115#define DT_DEV_TOOLBOX_POPOVER_KEY "dt-dev-toolbox-popover"
116#endif // DT_VIEWS_DEV_TOOLBOX_H
const char ** views(dt_lib_module_t *self)
struct _GtkWidget GtkWidget
GtkWidget, opaque, spelled exactly as GTK spells it.
Definition colorspaces.h:98
dt_dev_toolbox_button_t
Definition dev_toolbox.h:28
@ DT_DEV_TOOLBOX_DISPLAY
Definition dev_toolbox.h:34
@ DT_DEV_TOOLBOX_GAMUT
Definition dev_toolbox.h:33
@ DT_DEV_TOOLBOX_RAWOVEREXPOSED
Definition dev_toolbox.h:31
@ DT_DEV_TOOLBOX_OVEREXPOSED
Definition dev_toolbox.h:30
@ DT_DEV_TOOLBOX_SOFTPROOF
Definition dev_toolbox.h:32
@ DT_DEV_TOOLBOX_ISO_12646
Definition dev_toolbox.h:29
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:73
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:67
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:39
GtkWidget * button
Definition develop.h:435
dt_view_type_flags_t
Definition view.h:76