Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
resize_handle.h
Go to the documentation of this file.
1/*
2 This file is part of Ansel,
3 Copyright (C) 2026 Aurélien PIERRE.
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 You should have received a copy of the GNU General Public License
16 along with Ansel. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19#ifndef DT_WIDGETS_RESIZE_HANDLE_H
20#define DT_WIDGETS_RESIZE_HANDLE_H
21
22#include <gtk/gtk.h>
23
25
26/* The drag grip that resizes a panel, the histogram scope, the filmstrip.
27 *
28 * It lived in bauhaus.c, which is the slider/combobox toolkit and has nothing to do with
29 * dragging a panel edge. Nothing here touches a dt_bauhaus_widget_t; it is a GtkEventBox
30 * that converts a pointer drag into a size, and hands the size to its owner.
31 */
32
34typedef int (*dtgtk_resize_handle_get_size_f)(gpointer user_data);
35
38typedef int (*dtgtk_resize_handle_resize_f)(int requested_size, gboolean finished, gpointer user_data);
39
58GtkWidget *dtgtk_resize_handle_new(GtkOrientation orientation, gboolean invert, const char *tooltip,
60 dtgtk_resize_handle_resize_f resize, gpointer user_data);
61
63
64#endif // DT_WIDGETS_RESIZE_HANDLE_H
65
66// clang-format off
67// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
68// vim: shiftwidth=2 expandtab tabstop=2 cindent
69// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
70// clang-format on
struct _GtkWidget GtkWidget
GtkWidget, opaque, spelled exactly as GTK spells it.
Definition colorspaces.h:98
const char * tooltip
Definition image.h:284
static dt_mipmap_size_t get_size(const uint32_t key)
int(* dtgtk_resize_handle_resize_f)(int requested_size, gboolean finished, gpointer user_data)
GtkWidget * dtgtk_resize_handle_new(GtkOrientation orientation, gboolean invert, const char *tooltip, dtgtk_resize_handle_get_size_f get_size, dtgtk_resize_handle_resize_f resize, gpointer user_data)
Create a themed handle widget driving one-dimensional resize gestures.
G_BEGIN_DECLS typedef int(* dtgtk_resize_handle_get_size_f)(gpointer user_data)