Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
osx.h
Go to the documentation of this file.
1/*
2 * This file is part of darktable,
3 * Copyright (C) 2014-2020 parafin.
4 * Copyright (C) 2014, 2016 Tobias Ellinghaus.
5 * Copyright (C) 2015 Pedro Côrte-Real.
6 * Copyright (C) 2020 Hubert Kowalski.
7 * Copyright (C) 2020 Pascal Obry.
8 * Copyright (C) 2022 Martin Bařinka.
9 * Copyright (C) 2025 Aurélien PIERRE.
10 *
11 * darktable is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * darktable is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with darktable. If not, see <http://www.gnu.org/licenses/>.
23 */
24
25#ifndef DT_OSX_OSX_H
26#define DT_OSX_OSX_H
27
28#include <gtk/gtk.h>
29
30#ifdef __cplusplus
31extern "C" {
32#include <gdk/quartz/gdkquartz-cocoa-access.h>
33#endif
34
35void dt_osx_autoset_dpi(GtkWidget *widget);
36float dt_osx_get_ppd();
38gboolean dt_osx_file_trash(const char *filename, GError **error);
42
43#ifdef __cplusplus
44}
45#endif
46
47#endif // DT_OSX_OSX_H
48
49// clang-format off
50// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
51// vim: shiftwidth=2 expandtab tabstop=2 cindent
52// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
53// clang-format on
static void error(char *msg)
Definition ashift_lsd.c:202
struct _GtkWidget GtkWidget
GtkWidget, opaque, spelled exactly as GTK spells it.
Definition colorspaces.h:98
void dt_osx_focus_window()
Definition osx.mm:289
char * dt_osx_get_bundle_res_path()
Definition osx.mm:139
void dt_osx_prepare_environment()
Definition osx.mm:213
gboolean dt_osx_file_trash(const char *filename, GError **error)
Definition osx.mm:115
void dt_osx_autoset_dpi(GtkWidget *widget)
Definition osx.mm:55
void dt_osx_disallow_fullscreen(GtkWidget *widget)
Definition osx.mm:105
float dt_osx_get_ppd()
Definition osx.mm:74