Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtkdebug.h File Reference
#include <glib.h>
#include <gdk/gdk.h>

Go to the source code of this file.

Macros

#define GTK_DEBUG_CHECK(type)   G_UNLIKELY (gtk_get_debug_flags () & GTK_DEBUG_##type)
 

Enumerations

enum  GtkDebugFlags {
  GTK_DEBUG_TEXT = 1 << 0 , GTK_DEBUG_TREE = 1 << 1 , GTK_DEBUG_KEYBINDINGS = 1 << 2 , GTK_DEBUG_MODULES = 1 << 3 ,
  GTK_DEBUG_GEOMETRY = 1 << 4 , GTK_DEBUG_ICONTHEME = 1 << 5 , GTK_DEBUG_PRINTING = 1 << 6 , GTK_DEBUG_BUILDER = 1 << 7 ,
  GTK_DEBUG_SIZE_REQUEST = 1 << 8 , GTK_DEBUG_NO_CSS_CACHE = 1 << 9 , GTK_DEBUG_INTERACTIVE = 1 << 10 , GTK_DEBUG_ACTIONS = 1 << 12 ,
  GTK_DEBUG_LAYOUT = 1 << 13 , GTK_DEBUG_SNAPSHOT = 1 << 14 , GTK_DEBUG_CONSTRAINTS = 1 << 15 , GTK_DEBUG_BUILDER_OBJECTS = 1 << 16 ,
  GTK_DEBUG_A11Y = 1 << 17 , GTK_DEBUG_ICONFALLBACK = 1 << 18 , GTK_DEBUG_INVERT_TEXT_DIR = 1 << 19 , GTK_DEBUG_CSS = 1 << 20
}
 

Functions

GDK_AVAILABLE_IN_ALL GtkDebugFlags gtk_get_debug_flags (void)
 
GDK_AVAILABLE_IN_ALL void gtk_set_debug_flags (GtkDebugFlags flags)
 

Macro Definition Documentation

◆ GTK_DEBUG_CHECK

#define GTK_DEBUG_CHECK ( type)    G_UNLIKELY (gtk_get_debug_flags () & GTK_DEBUG_##type)

GTK_DEBUG_CHECK: @type: type to check

Whether the type debug flag is set.

Definition at line 115 of file gtkdebug.h.

Enumeration Type Documentation

◆ GtkDebugFlags

GtkDebugFlags: @GTK_DEBUG_TEXT: Information about GtkTextView @GTK_DEBUG_TREE: Information about GtkTreeView @GTK_DEBUG_KEYBINDINGS: Information about keyboard shortcuts @GTK_DEBUG_MODULES: Information about modules and extensions @GTK_DEBUG_GEOMETRY: Information about size allocation @GTK_DEBUG_ICONTHEME: Information about icon themes @GTK_DEBUG_PRINTING: Information about printing @GTK_DEBUG_BUILDER: Trace GtkBuilder operation @GTK_DEBUG_SIZE_REQUEST: Information about size requests @GTK_DEBUG_NO_CSS_CACHE: Disable the style property cache @GTK_DEBUG_INTERACTIVE: Open the GTK inspector @GTK_DEBUG_ACTIONS: Information about actions and menu models @GTK_DEBUG_LAYOUT: Information from layout managers @GTK_DEBUG_SNAPSHOT: Include debug render nodes in the generated snapshots @GTK_DEBUG_CONSTRAINTS: Information from the constraints solver @GTK_DEBUG_BUILDER_OBJECTS: Log unused GtkBuilder objects @GTK_DEBUG_A11Y: Information about accessibility state changes

Flags to use with gtk_set_debug_flags().

Settings these flags causes GTK to print out different types of debugging information. Some of these flags are only available when GTK has been configured with -Ddebug=true. GTK_DEBUG_ICONFALLBACK:

Information about icon fallback.

Since: 4.2 GTK_DEBUG_INVERT_TEXT_DIR:

Inverts the default text-direction.

Since: 4.8 GTK_DEBUG_CSS:

Information about deprecated CSS features.

Since: 4.16

Enumerator
GTK_DEBUG_TEXT 
GTK_DEBUG_TREE 
GTK_DEBUG_KEYBINDINGS 
GTK_DEBUG_MODULES 
GTK_DEBUG_GEOMETRY 
GTK_DEBUG_ICONTHEME 
GTK_DEBUG_PRINTING 
GTK_DEBUG_BUILDER 
GTK_DEBUG_SIZE_REQUEST 
GTK_DEBUG_NO_CSS_CACHE 
GTK_DEBUG_INTERACTIVE 
GTK_DEBUG_ACTIONS 
GTK_DEBUG_LAYOUT 
GTK_DEBUG_SNAPSHOT 
GTK_DEBUG_CONSTRAINTS 
GTK_DEBUG_BUILDER_OBJECTS 
GTK_DEBUG_A11Y 
GTK_DEBUG_ICONFALLBACK 
GTK_DEBUG_INVERT_TEXT_DIR 
GTK_DEBUG_CSS 

Definition at line 86 of file gtkdebug.h.

86 {
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,
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,
103 GTK_DEBUG_A11Y = 1 << 17,
104 GTK_DEBUG_ICONFALLBACK = 1 << 18,
106 GTK_DEBUG_CSS = 1 << 20,
GtkDebugFlags
Definition gtkdebug.h:86
@ GTK_DEBUG_PRINTING
Definition gtkdebug.h:93
@ GTK_DEBUG_TEXT
Definition gtkdebug.h:87
@ GTK_DEBUG_KEYBINDINGS
Definition gtkdebug.h:89
@ GTK_DEBUG_MODULES
Definition gtkdebug.h:90
@ GTK_DEBUG_TREE
Definition gtkdebug.h:88
@ GTK_DEBUG_CSS
Definition gtkdebug.h:106
@ GTK_DEBUG_INTERACTIVE
Definition gtkdebug.h:97
@ GTK_DEBUG_NO_CSS_CACHE
Definition gtkdebug.h:96
@ GTK_DEBUG_ACTIONS
Definition gtkdebug.h:98
@ GTK_DEBUG_INVERT_TEXT_DIR
Definition gtkdebug.h:105
@ GTK_DEBUG_SIZE_REQUEST
Definition gtkdebug.h:95
@ GTK_DEBUG_SNAPSHOT
Definition gtkdebug.h:100
@ GTK_DEBUG_GEOMETRY
Definition gtkdebug.h:91
@ GTK_DEBUG_A11Y
Definition gtkdebug.h:103
@ GTK_DEBUG_BUILDER_OBJECTS
Definition gtkdebug.h:102
@ GTK_DEBUG_LAYOUT
Definition gtkdebug.h:99
@ GTK_DEBUG_CONSTRAINTS
Definition gtkdebug.h:101
@ GTK_DEBUG_BUILDER
Definition gtkdebug.h:94
@ GTK_DEBUG_ICONFALLBACK
Definition gtkdebug.h:104
@ GTK_DEBUG_ICONTHEME
Definition gtkdebug.h:92

Function Documentation

◆ gtk_get_debug_flags()

GDK_AVAILABLE_IN_ALL GtkDebugFlags gtk_get_debug_flags ( void )

◆ gtk_set_debug_flags()

GDK_AVAILABLE_IN_ALL void gtk_set_debug_flags ( GtkDebugFlags flags)