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#pragma once
26
27#include <gtk/gtk.h>
28
29#ifdef __cplusplus
30extern "C" {
31#include <gdk/quartz/gdkquartz-cocoa-access.h>
32#endif
33
34void dt_osx_autoset_dpi(GtkWidget *widget);
35float dt_osx_get_ppd();
37gboolean dt_osx_file_trash(const char *filename, GError **error);
41
42#ifdef __cplusplus
43}
44#endif
45// clang-format off
46// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
47// vim: shiftwidth=2 expandtab tabstop=2 cindent
48// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
49// clang-format on
static void error(char *msg)
Definition ashift_lsd.c:202
void dt_osx_focus_window()
Definition osx.mm:301
char * dt_osx_get_bundle_res_path()
Definition osx.mm:138
void dt_osx_prepare_environment()
Definition osx.mm:212
gboolean dt_osx_file_trash(const char *filename, GError **error)
Definition osx.mm:114
void dt_osx_autoset_dpi(GtkWidget *widget)
Definition osx.mm:54
void dt_osx_disallow_fullscreen(GtkWidget *widget)
Definition osx.mm:104
float dt_osx_get_ppd()
Definition osx.mm:73
struct _GtkWidget GtkWidget
Definition splash.h:29