Github User Fetcher
1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtkdebug.h
Go to the documentation of this file.
1
/* GTK - The GIMP Toolkit
2
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
3
*
4
* This library is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU Lesser General Public
6
* License as published by the Free Software Foundation; either
7
* version 2 of the License, or (at your option) any later version.
8
*
9
* This library is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* Lesser General Public License for more details.
13
*
14
* You should have received a copy of the GNU Lesser General Public
15
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
16
*/
17
18
/*
19
* Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
20
* file for a list of people on the GTK+ Team. See the ChangeLog
21
* files for a list of changes. These files are distributed with
22
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
23
*/
24
25
#pragma once
26
27
#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
28
#error "Only <gtk/gtk.h> can be included directly."
29
#endif
30
31
#include <
glib.h
>
32
#include <
gdk/gdk.h
>
33
34
G_BEGIN_DECLS
35
36
/**
37
* GtkDebugFlags:
38
* @GTK_DEBUG_TEXT: Information about GtkTextView
39
* @GTK_DEBUG_TREE: Information about GtkTreeView
40
* @GTK_DEBUG_KEYBINDINGS: Information about keyboard shortcuts
41
* @GTK_DEBUG_MODULES: Information about modules and extensions
42
* @GTK_DEBUG_GEOMETRY: Information about size allocation
43
* @GTK_DEBUG_ICONTHEME: Information about icon themes
44
* @GTK_DEBUG_PRINTING: Information about printing
45
* @GTK_DEBUG_BUILDER: Trace GtkBuilder operation
46
* @GTK_DEBUG_SIZE_REQUEST: Information about size requests
47
* @GTK_DEBUG_NO_CSS_CACHE: Disable the style property cache
48
* @GTK_DEBUG_INTERACTIVE: Open the GTK inspector
49
* @GTK_DEBUG_ACTIONS: Information about actions and menu models
50
* @GTK_DEBUG_LAYOUT: Information from layout managers
51
* @GTK_DEBUG_SNAPSHOT: Include debug render nodes in the generated snapshots
52
* @GTK_DEBUG_CONSTRAINTS: Information from the constraints solver
53
* @GTK_DEBUG_BUILDER_OBJECTS: Log unused GtkBuilder objects
54
* @GTK_DEBUG_A11Y: Information about accessibility state changes
55
*
56
* Flags to use with gtk_set_debug_flags().
57
*
58
* Settings these flags causes GTK to print out different
59
* types of debugging information. Some of these flags are
60
* only available when GTK has been configured with `-Ddebug=true`.
61
*/
62
63
/**
64
* GTK_DEBUG_ICONFALLBACK:
65
*
66
* Information about icon fallback.
67
*
68
* Since: 4.2
69
*/
70
71
/**
72
* GTK_DEBUG_INVERT_TEXT_DIR:
73
*
74
* Inverts the default text-direction.
75
*
76
* Since: 4.8
77
*/
78
79
/**
80
* GTK_DEBUG_CSS:
81
*
82
* Information about deprecated CSS features.
83
*
84
* Since: 4.16
85
*/
86
typedef
enum
{
87
GTK_DEBUG_TEXT
= 1 << 0,
88
GTK_DEBUG_TREE
= 1 << 1,
89
GTK_DEBUG_KEYBINDINGS
= 1 << 2,
90
GTK_DEBUG_MODULES
= 1 << 3,
91
GTK_DEBUG_GEOMETRY
= 1 << 4,
92
GTK_DEBUG_ICONTHEME
= 1 << 5,
93
GTK_DEBUG_PRINTING
= 1 << 6,
94
GTK_DEBUG_BUILDER
= 1 << 7,
95
GTK_DEBUG_SIZE_REQUEST
= 1 << 8,
96
GTK_DEBUG_NO_CSS_CACHE
= 1 << 9,
97
GTK_DEBUG_INTERACTIVE
= 1 << 10,
98
GTK_DEBUG_ACTIONS
= 1 << 12,
99
GTK_DEBUG_LAYOUT
= 1 << 13,
100
GTK_DEBUG_SNAPSHOT
= 1 << 14,
101
GTK_DEBUG_CONSTRAINTS
= 1 << 15,
102
GTK_DEBUG_BUILDER_OBJECTS
= 1 << 16,
103
GTK_DEBUG_A11Y
= 1 << 17,
104
GTK_DEBUG_ICONFALLBACK
= 1 << 18,
105
GTK_DEBUG_INVERT_TEXT_DIR
= 1 << 19,
106
GTK_DEBUG_CSS
= 1 << 20,
107
}
GtkDebugFlags
;
108
109
/**
110
* GTK_DEBUG_CHECK:
111
* @type: type to check
112
*
113
* Whether the `type` debug flag is set.
114
**/
115
#define GTK_DEBUG_CHECK(type) G_UNLIKELY (gtk_get_debug_flags () & GTK_DEBUG_##type)
116
117
GDK_AVAILABLE_IN_ALL
118
GtkDebugFlags
gtk_get_debug_flags
(
void
);
119
GDK_AVAILABLE_IN_ALL
120
void
gtk_set_debug_flags
(
GtkDebugFlags
flags);
121
122
G_END_DECLS
123
GDK_AVAILABLE_IN_ALL
#define GDK_AVAILABLE_IN_ALL
Definition
gdk-visibility.h:22
gdk.h
glib.h
G_END_DECLS
#define G_END_DECLS
Definition
gmacros.h:910
G_BEGIN_DECLS
#define G_BEGIN_DECLS
Definition
gmacros.h:909
gtk_get_debug_flags
GDK_AVAILABLE_IN_ALL GtkDebugFlags gtk_get_debug_flags(void)
GtkDebugFlags
GtkDebugFlags
Definition
gtkdebug.h:86
GTK_DEBUG_PRINTING
@ GTK_DEBUG_PRINTING
Definition
gtkdebug.h:93
GTK_DEBUG_TEXT
@ GTK_DEBUG_TEXT
Definition
gtkdebug.h:87
GTK_DEBUG_KEYBINDINGS
@ GTK_DEBUG_KEYBINDINGS
Definition
gtkdebug.h:89
GTK_DEBUG_MODULES
@ GTK_DEBUG_MODULES
Definition
gtkdebug.h:90
GTK_DEBUG_TREE
@ GTK_DEBUG_TREE
Definition
gtkdebug.h:88
GTK_DEBUG_CSS
@ GTK_DEBUG_CSS
Definition
gtkdebug.h:106
GTK_DEBUG_INTERACTIVE
@ GTK_DEBUG_INTERACTIVE
Definition
gtkdebug.h:97
GTK_DEBUG_NO_CSS_CACHE
@ GTK_DEBUG_NO_CSS_CACHE
Definition
gtkdebug.h:96
GTK_DEBUG_ACTIONS
@ GTK_DEBUG_ACTIONS
Definition
gtkdebug.h:98
GTK_DEBUG_INVERT_TEXT_DIR
@ GTK_DEBUG_INVERT_TEXT_DIR
Definition
gtkdebug.h:105
GTK_DEBUG_SIZE_REQUEST
@ GTK_DEBUG_SIZE_REQUEST
Definition
gtkdebug.h:95
GTK_DEBUG_SNAPSHOT
@ GTK_DEBUG_SNAPSHOT
Definition
gtkdebug.h:100
GTK_DEBUG_GEOMETRY
@ GTK_DEBUG_GEOMETRY
Definition
gtkdebug.h:91
GTK_DEBUG_A11Y
@ GTK_DEBUG_A11Y
Definition
gtkdebug.h:103
GTK_DEBUG_BUILDER_OBJECTS
@ GTK_DEBUG_BUILDER_OBJECTS
Definition
gtkdebug.h:102
GTK_DEBUG_LAYOUT
@ GTK_DEBUG_LAYOUT
Definition
gtkdebug.h:99
GTK_DEBUG_CONSTRAINTS
@ GTK_DEBUG_CONSTRAINTS
Definition
gtkdebug.h:101
GTK_DEBUG_BUILDER
@ GTK_DEBUG_BUILDER
Definition
gtkdebug.h:94
GTK_DEBUG_ICONFALLBACK
@ GTK_DEBUG_ICONFALLBACK
Definition
gtkdebug.h:104
GTK_DEBUG_ICONTHEME
@ GTK_DEBUG_ICONTHEME
Definition
gtkdebug.h:92
gtk_set_debug_flags
GDK_AVAILABLE_IN_ALL void gtk_set_debug_flags(GtkDebugFlags flags)
nix
store
v9wbd5iwvxl666sf67ard7lvjamhggbk-gtk4-4.16.12-dev
include
gtk-4.0
gtk
gtkdebug.h
Generated by
1.10.0