File: constant.c

package info (click to toggle)
rust-libadwaita-sys 0.7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 492 kB
  • sloc: makefile: 77; ansic: 1
file content (152 lines) | stat: -rw-r--r-- 7,401 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
// Generated by gir (https://github.com/gtk-rs/gir @ 61370e8fc46f)
// from 
// from gir-files (https://github.com/gtk-rs/gir-files.git @ 98d70b9d6535)
// DO NOT EDIT

#include "manual.h"
#include <stdio.h>

#define PRINT_CONSTANT(CONSTANT_NAME) \
    printf("%s;", #CONSTANT_NAME); \
    printf(_Generic((CONSTANT_NAME), \
                    char *: "%s", \
                    const char *: "%s", \
                    char: "%c", \
                    signed char: "%hhd", \
                    unsigned char: "%hhu", \
                    short int: "%hd", \
                    unsigned short int: "%hu", \
                    int: "%d", \
                    unsigned int: "%u", \
                    long: "%ld", \
                    unsigned long: "%lu", \
                    long long: "%lld", \
                    unsigned long long: "%llu", \
                    float: "%f", \
                    double: "%f", \
                    long double: "%ld"), \
           CONSTANT_NAME); \
    printf("\n");

int main() {
    PRINT_CONSTANT((gint) ADW_ACCENT_COLOR_BLUE);
    PRINT_CONSTANT((gint) ADW_ACCENT_COLOR_GREEN);
    PRINT_CONSTANT((gint) ADW_ACCENT_COLOR_ORANGE);
    PRINT_CONSTANT((gint) ADW_ACCENT_COLOR_PINK);
    PRINT_CONSTANT((gint) ADW_ACCENT_COLOR_PURPLE);
    PRINT_CONSTANT((gint) ADW_ACCENT_COLOR_RED);
    PRINT_CONSTANT((gint) ADW_ACCENT_COLOR_SLATE);
    PRINT_CONSTANT((gint) ADW_ACCENT_COLOR_TEAL);
    PRINT_CONSTANT((gint) ADW_ACCENT_COLOR_YELLOW);
    PRINT_CONSTANT((gint) ADW_ANIMATION_FINISHED);
    PRINT_CONSTANT((gint) ADW_ANIMATION_IDLE);
    PRINT_CONSTANT((gint) ADW_ANIMATION_PAUSED);
    PRINT_CONSTANT((gint) ADW_ANIMATION_PLAYING);
    PRINT_CONSTANT((gint) ADW_BANNER_BUTTON_DEFAULT);
    PRINT_CONSTANT((gint) ADW_BANNER_BUTTON_SUGGESTED);
    PRINT_CONSTANT((gint) ADW_BREAKPOINT_CONDITION_MAX_ASPECT_RATIO);
    PRINT_CONSTANT((gint) ADW_BREAKPOINT_CONDITION_MAX_HEIGHT);
    PRINT_CONSTANT((gint) ADW_BREAKPOINT_CONDITION_MAX_WIDTH);
    PRINT_CONSTANT((gint) ADW_BREAKPOINT_CONDITION_MIN_ASPECT_RATIO);
    PRINT_CONSTANT((gint) ADW_BREAKPOINT_CONDITION_MIN_HEIGHT);
    PRINT_CONSTANT((gint) ADW_BREAKPOINT_CONDITION_MIN_WIDTH);
    PRINT_CONSTANT((gint) ADW_CENTERING_POLICY_LOOSE);
    PRINT_CONSTANT((gint) ADW_CENTERING_POLICY_STRICT);
    PRINT_CONSTANT((gint) ADW_COLOR_SCHEME_DEFAULT);
    PRINT_CONSTANT((gint) ADW_COLOR_SCHEME_FORCE_DARK);
    PRINT_CONSTANT((gint) ADW_COLOR_SCHEME_FORCE_LIGHT);
    PRINT_CONSTANT((gint) ADW_COLOR_SCHEME_PREFER_DARK);
    PRINT_CONSTANT((gint) ADW_COLOR_SCHEME_PREFER_LIGHT);
    PRINT_CONSTANT((gint) ADW_DIALOG_AUTO);
    PRINT_CONSTANT((gint) ADW_DIALOG_BOTTOM_SHEET);
    PRINT_CONSTANT((gint) ADW_DIALOG_FLOATING);
    PRINT_CONSTANT(ADW_DURATION_INFINITE);
    PRINT_CONSTANT((gint) ADW_EASE);
    PRINT_CONSTANT((gint) ADW_EASE_IN);
    PRINT_CONSTANT((gint) ADW_EASE_IN_BACK);
    PRINT_CONSTANT((gint) ADW_EASE_IN_BOUNCE);
    PRINT_CONSTANT((gint) ADW_EASE_IN_CIRC);
    PRINT_CONSTANT((gint) ADW_EASE_IN_CUBIC);
    PRINT_CONSTANT((gint) ADW_EASE_IN_ELASTIC);
    PRINT_CONSTANT((gint) ADW_EASE_IN_EXPO);
    PRINT_CONSTANT((gint) ADW_EASE_IN_OUT);
    PRINT_CONSTANT((gint) ADW_EASE_IN_OUT_BACK);
    PRINT_CONSTANT((gint) ADW_EASE_IN_OUT_BOUNCE);
    PRINT_CONSTANT((gint) ADW_EASE_IN_OUT_CIRC);
    PRINT_CONSTANT((gint) ADW_EASE_IN_OUT_CUBIC);
    PRINT_CONSTANT((gint) ADW_EASE_IN_OUT_ELASTIC);
    PRINT_CONSTANT((gint) ADW_EASE_IN_OUT_EXPO);
    PRINT_CONSTANT((gint) ADW_EASE_IN_OUT_QUAD);
    PRINT_CONSTANT((gint) ADW_EASE_IN_OUT_QUART);
    PRINT_CONSTANT((gint) ADW_EASE_IN_OUT_QUINT);
    PRINT_CONSTANT((gint) ADW_EASE_IN_OUT_SINE);
    PRINT_CONSTANT((gint) ADW_EASE_IN_QUAD);
    PRINT_CONSTANT((gint) ADW_EASE_IN_QUART);
    PRINT_CONSTANT((gint) ADW_EASE_IN_QUINT);
    PRINT_CONSTANT((gint) ADW_EASE_IN_SINE);
    PRINT_CONSTANT((gint) ADW_EASE_OUT);
    PRINT_CONSTANT((gint) ADW_EASE_OUT_BACK);
    PRINT_CONSTANT((gint) ADW_EASE_OUT_BOUNCE);
    PRINT_CONSTANT((gint) ADW_EASE_OUT_CIRC);
    PRINT_CONSTANT((gint) ADW_EASE_OUT_CUBIC);
    PRINT_CONSTANT((gint) ADW_EASE_OUT_ELASTIC);
    PRINT_CONSTANT((gint) ADW_EASE_OUT_EXPO);
    PRINT_CONSTANT((gint) ADW_EASE_OUT_QUAD);
    PRINT_CONSTANT((gint) ADW_EASE_OUT_QUART);
    PRINT_CONSTANT((gint) ADW_EASE_OUT_QUINT);
    PRINT_CONSTANT((gint) ADW_EASE_OUT_SINE);
    PRINT_CONSTANT((gint) ADW_FLAP_FOLD_POLICY_ALWAYS);
    PRINT_CONSTANT((gint) ADW_FLAP_FOLD_POLICY_AUTO);
    PRINT_CONSTANT((gint) ADW_FLAP_FOLD_POLICY_NEVER);
    PRINT_CONSTANT((gint) ADW_FLAP_TRANSITION_TYPE_OVER);
    PRINT_CONSTANT((gint) ADW_FLAP_TRANSITION_TYPE_SLIDE);
    PRINT_CONSTANT((gint) ADW_FLAP_TRANSITION_TYPE_UNDER);
    PRINT_CONSTANT((gint) ADW_FOLD_THRESHOLD_POLICY_MINIMUM);
    PRINT_CONSTANT((gint) ADW_FOLD_THRESHOLD_POLICY_NATURAL);
    PRINT_CONSTANT((gint) ADW_INLINE_VIEW_SWITCHER_BOTH);
    PRINT_CONSTANT((gint) ADW_INLINE_VIEW_SWITCHER_ICONS);
    PRINT_CONSTANT((gint) ADW_INLINE_VIEW_SWITCHER_LABELS);
    PRINT_CONSTANT((gint) ADW_JUSTIFY_FILL);
    PRINT_CONSTANT((gint) ADW_JUSTIFY_NONE);
    PRINT_CONSTANT((gint) ADW_JUSTIFY_SPREAD);
    PRINT_CONSTANT((gint) ADW_LEAFLET_TRANSITION_TYPE_OVER);
    PRINT_CONSTANT((gint) ADW_LEAFLET_TRANSITION_TYPE_SLIDE);
    PRINT_CONSTANT((gint) ADW_LEAFLET_TRANSITION_TYPE_UNDER);
    PRINT_CONSTANT((gint) ADW_LENGTH_UNIT_PT);
    PRINT_CONSTANT((gint) ADW_LENGTH_UNIT_PX);
    PRINT_CONSTANT((gint) ADW_LENGTH_UNIT_SP);
    PRINT_CONSTANT((gint) ADW_LINEAR);
    PRINT_CONSTANT((gint) ADW_NAVIGATION_DIRECTION_BACK);
    PRINT_CONSTANT((gint) ADW_NAVIGATION_DIRECTION_FORWARD);
    PRINT_CONSTANT((gint) ADW_PACK_END_TO_START);
    PRINT_CONSTANT((gint) ADW_PACK_START_TO_END);
    PRINT_CONSTANT((gint) ADW_RESPONSE_DEFAULT);
    PRINT_CONSTANT((gint) ADW_RESPONSE_DESTRUCTIVE);
    PRINT_CONSTANT((gint) ADW_RESPONSE_SUGGESTED);
    PRINT_CONSTANT((gint) ADW_SQUEEZER_TRANSITION_TYPE_CROSSFADE);
    PRINT_CONSTANT((gint) ADW_SQUEEZER_TRANSITION_TYPE_NONE);
    PRINT_CONSTANT((guint) ADW_TAB_VIEW_SHORTCUT_ALL_SHORTCUTS);
    PRINT_CONSTANT((guint) ADW_TAB_VIEW_SHORTCUT_ALT_DIGITS);
    PRINT_CONSTANT((guint) ADW_TAB_VIEW_SHORTCUT_ALT_ZERO);
    PRINT_CONSTANT((guint) ADW_TAB_VIEW_SHORTCUT_CONTROL_END);
    PRINT_CONSTANT((guint) ADW_TAB_VIEW_SHORTCUT_CONTROL_HOME);
    PRINT_CONSTANT((guint) ADW_TAB_VIEW_SHORTCUT_CONTROL_PAGE_DOWN);
    PRINT_CONSTANT((guint) ADW_TAB_VIEW_SHORTCUT_CONTROL_PAGE_UP);
    PRINT_CONSTANT((guint) ADW_TAB_VIEW_SHORTCUT_CONTROL_SHIFT_END);
    PRINT_CONSTANT((guint) ADW_TAB_VIEW_SHORTCUT_CONTROL_SHIFT_HOME);
    PRINT_CONSTANT((guint) ADW_TAB_VIEW_SHORTCUT_CONTROL_SHIFT_PAGE_DOWN);
    PRINT_CONSTANT((guint) ADW_TAB_VIEW_SHORTCUT_CONTROL_SHIFT_PAGE_UP);
    PRINT_CONSTANT((guint) ADW_TAB_VIEW_SHORTCUT_CONTROL_SHIFT_TAB);
    PRINT_CONSTANT((guint) ADW_TAB_VIEW_SHORTCUT_CONTROL_TAB);
    PRINT_CONSTANT((guint) ADW_TAB_VIEW_SHORTCUT_NONE);
    PRINT_CONSTANT((gint) ADW_TOAST_PRIORITY_HIGH);
    PRINT_CONSTANT((gint) ADW_TOAST_PRIORITY_NORMAL);
    PRINT_CONSTANT((gint) ADW_TOOLBAR_FLAT);
    PRINT_CONSTANT((gint) ADW_TOOLBAR_RAISED);
    PRINT_CONSTANT((gint) ADW_TOOLBAR_RAISED_BORDER);
    PRINT_CONSTANT((gint) ADW_VIEW_SWITCHER_POLICY_NARROW);
    PRINT_CONSTANT((gint) ADW_VIEW_SWITCHER_POLICY_WIDE);
    PRINT_CONSTANT((gint) ADW_WRAP_MINIMUM);
    PRINT_CONSTANT((gint) ADW_WRAP_NATURAL);
    return 0;
}