glib/auto/
constants.rs

1// This file was generated by gir (https://github.com/gtk-rs/gir)
2// from gir-files (https://github.com/gtk-rs/gir-files)
3// DO NOT EDIT
4
5use crate::{ffi, GStr};
6
7#[doc(alias = "G_CSET_A_2_Z")]
8pub static CSET_A_2_Z: &GStr = unsafe { GStr::from_utf8_with_nul_unchecked(ffi::G_CSET_A_2_Z) };
9#[doc(alias = "G_CSET_DIGITS")]
10pub static CSET_DIGITS: &GStr = unsafe { GStr::from_utf8_with_nul_unchecked(ffi::G_CSET_DIGITS) };
11#[doc(alias = "G_CSET_a_2_z")]
12pub static CSET_a_2_z: &GStr = unsafe { GStr::from_utf8_with_nul_unchecked(ffi::G_CSET_a_2_z) };
13#[doc(alias = "G_KEY_FILE_DESKTOP_GROUP")]
14pub static KEY_FILE_DESKTOP_GROUP: &GStr =
15    unsafe { GStr::from_utf8_with_nul_unchecked(ffi::G_KEY_FILE_DESKTOP_GROUP) };
16#[doc(alias = "G_KEY_FILE_DESKTOP_KEY_ACTIONS")]
17pub static KEY_FILE_DESKTOP_KEY_ACTIONS: &GStr =
18    unsafe { GStr::from_utf8_with_nul_unchecked(ffi::G_KEY_FILE_DESKTOP_KEY_ACTIONS) };
19#[doc(alias = "G_KEY_FILE_DESKTOP_KEY_CATEGORIES")]
20pub static KEY_FILE_DESKTOP_KEY_CATEGORIES: &GStr =
21    unsafe { GStr::from_utf8_with_nul_unchecked(ffi::G_KEY_FILE_DESKTOP_KEY_CATEGORIES) };
22#[doc(alias = "G_KEY_FILE_DESKTOP_KEY_COMMENT")]
23pub static KEY_FILE_DESKTOP_KEY_COMMENT: &GStr =
24    unsafe { GStr::from_utf8_with_nul_unchecked(ffi::G_KEY_FILE_DESKTOP_KEY_COMMENT) };
25#[doc(alias = "G_KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE")]
26pub static KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE: &GStr =
27    unsafe { GStr::from_utf8_with_nul_unchecked(ffi::G_KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE) };
28#[doc(alias = "G_KEY_FILE_DESKTOP_KEY_EXEC")]
29pub static KEY_FILE_DESKTOP_KEY_EXEC: &GStr =
30    unsafe { GStr::from_utf8_with_nul_unchecked(ffi::G_KEY_FILE_DESKTOP_KEY_EXEC) };
31#[doc(alias = "G_KEY_FILE_DESKTOP_KEY_GENERIC_NAME")]
32pub static KEY_FILE_DESKTOP_KEY_GENERIC_NAME: &GStr =
33    unsafe { GStr::from_utf8_with_nul_unchecked(ffi::G_KEY_FILE_DESKTOP_KEY_GENERIC_NAME) };
34#[doc(alias = "G_KEY_FILE_DESKTOP_KEY_HIDDEN")]
35pub static KEY_FILE_DESKTOP_KEY_HIDDEN: &GStr =
36    unsafe { GStr::from_utf8_with_nul_unchecked(ffi::G_KEY_FILE_DESKTOP_KEY_HIDDEN) };
37#[doc(alias = "G_KEY_FILE_DESKTOP_KEY_ICON")]
38pub static KEY_FILE_DESKTOP_KEY_ICON: &GStr =
39    unsafe { GStr::from_utf8_with_nul_unchecked(ffi::G_KEY_FILE_DESKTOP_KEY_ICON) };
40#[doc(alias = "G_KEY_FILE_DESKTOP_KEY_MIME_TYPE")]
41pub static KEY_FILE_DESKTOP_KEY_MIME_TYPE: &GStr =
42    unsafe { GStr::from_utf8_with_nul_unchecked(ffi::G_KEY_FILE_DESKTOP_KEY_MIME_TYPE) };
43#[doc(alias = "G_KEY_FILE_DESKTOP_KEY_NAME")]
44pub static KEY_FILE_DESKTOP_KEY_NAME: &GStr =
45    unsafe { GStr::from_utf8_with_nul_unchecked(ffi::G_KEY_FILE_DESKTOP_KEY_NAME) };
46#[doc(alias = "G_KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN")]
47pub static KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN: &GStr =
48    unsafe { GStr::from_utf8_with_nul_unchecked(ffi::G_KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN) };
49#[doc(alias = "G_KEY_FILE_DESKTOP_KEY_NO_DISPLAY")]
50pub static KEY_FILE_DESKTOP_KEY_NO_DISPLAY: &GStr =
51    unsafe { GStr::from_utf8_with_nul_unchecked(ffi::G_KEY_FILE_DESKTOP_KEY_NO_DISPLAY) };
52#[doc(alias = "G_KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN")]
53pub static KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN: &GStr =
54    unsafe { GStr::from_utf8_with_nul_unchecked(ffi::G_KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN) };
55#[doc(alias = "G_KEY_FILE_DESKTOP_KEY_PATH")]
56pub static KEY_FILE_DESKTOP_KEY_PATH: &GStr =
57    unsafe { GStr::from_utf8_with_nul_unchecked(ffi::G_KEY_FILE_DESKTOP_KEY_PATH) };
58#[doc(alias = "G_KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY")]
59pub static KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY: &GStr =
60    unsafe { GStr::from_utf8_with_nul_unchecked(ffi::G_KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY) };
61#[doc(alias = "G_KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS")]
62pub static KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS: &GStr =
63    unsafe { GStr::from_utf8_with_nul_unchecked(ffi::G_KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS) };
64#[doc(alias = "G_KEY_FILE_DESKTOP_KEY_TERMINAL")]
65pub static KEY_FILE_DESKTOP_KEY_TERMINAL: &GStr =
66    unsafe { GStr::from_utf8_with_nul_unchecked(ffi::G_KEY_FILE_DESKTOP_KEY_TERMINAL) };
67#[doc(alias = "G_KEY_FILE_DESKTOP_KEY_TRY_EXEC")]
68pub static KEY_FILE_DESKTOP_KEY_TRY_EXEC: &GStr =
69    unsafe { GStr::from_utf8_with_nul_unchecked(ffi::G_KEY_FILE_DESKTOP_KEY_TRY_EXEC) };
70#[doc(alias = "G_KEY_FILE_DESKTOP_KEY_TYPE")]
71pub static KEY_FILE_DESKTOP_KEY_TYPE: &GStr =
72    unsafe { GStr::from_utf8_with_nul_unchecked(ffi::G_KEY_FILE_DESKTOP_KEY_TYPE) };
73#[doc(alias = "G_KEY_FILE_DESKTOP_KEY_URL")]
74pub static KEY_FILE_DESKTOP_KEY_URL: &GStr =
75    unsafe { GStr::from_utf8_with_nul_unchecked(ffi::G_KEY_FILE_DESKTOP_KEY_URL) };
76#[doc(alias = "G_KEY_FILE_DESKTOP_KEY_VERSION")]
77pub static KEY_FILE_DESKTOP_KEY_VERSION: &GStr =
78    unsafe { GStr::from_utf8_with_nul_unchecked(ffi::G_KEY_FILE_DESKTOP_KEY_VERSION) };
79#[doc(alias = "G_KEY_FILE_DESKTOP_TYPE_APPLICATION")]
80pub static KEY_FILE_DESKTOP_TYPE_APPLICATION: &GStr =
81    unsafe { GStr::from_utf8_with_nul_unchecked(ffi::G_KEY_FILE_DESKTOP_TYPE_APPLICATION) };
82#[doc(alias = "G_KEY_FILE_DESKTOP_TYPE_DIRECTORY")]
83pub static KEY_FILE_DESKTOP_TYPE_DIRECTORY: &GStr =
84    unsafe { GStr::from_utf8_with_nul_unchecked(ffi::G_KEY_FILE_DESKTOP_TYPE_DIRECTORY) };
85#[doc(alias = "G_KEY_FILE_DESKTOP_TYPE_LINK")]
86pub static KEY_FILE_DESKTOP_TYPE_LINK: &GStr =
87    unsafe { GStr::from_utf8_with_nul_unchecked(ffi::G_KEY_FILE_DESKTOP_TYPE_LINK) };
88#[doc(alias = "G_OPTION_REMAINING")]
89pub static OPTION_REMAINING: &GStr =
90    unsafe { GStr::from_utf8_with_nul_unchecked(ffi::G_OPTION_REMAINING) };
91/// The standard delimiters, used in `strdelimit()`.
92// rustdoc-stripper-ignore-next-stop
93/// The standard delimiters, used in `strdelimit()`.
94#[doc(alias = "G_STR_DELIMITERS")]
95pub static STR_DELIMITERS: &GStr =
96    unsafe { GStr::from_utf8_with_nul_unchecked(ffi::G_STR_DELIMITERS) };
97/// A value that can be passed as an option to `test_init()`.
98///
99/// Creates a unique temporary directory for each unit test and uses sets
100/// XDG directories to point into subdirectories of it for the duration of
101/// the unit test. The directory tree is cleaned up after the test finishes
102/// successfully.
103///
104/// Note that this doesn’t take effect until `test_run()` is called,
105/// so calls to (for example) [`home_dir()`][crate::home_dir()] will return the
106/// system-wide value when made in a test program’s main() function.
107///
108/// The following functions will return subdirectories of the temporary directory
109/// when this option is used. The specific subdirectory paths in use are not
110/// guaranteed to be stable API — always use a getter function to retrieve them.
111///
112///  - [`home_dir()`][crate::home_dir()]
113///  - [`user_cache_dir()`][crate::user_cache_dir()]
114///  - [`system_config_dirs()`][crate::system_config_dirs()]
115///  - [`user_config_dir()`][crate::user_config_dir()]
116///  - [`system_data_dirs()`][crate::system_data_dirs()]
117///  - [`user_data_dir()`][crate::user_data_dir()]
118///  - [`user_state_dir()`][crate::user_state_dir()]
119///  - [`user_runtime_dir()`][crate::user_runtime_dir()]
120///
121/// The subdirectories may not be created by the test harness; as with normal
122/// calls to functions like [`user_cache_dir()`][crate::user_cache_dir()], the caller must
123/// be prepared to create the directory if it doesn’t exist.
124// rustdoc-stripper-ignore-next-stop
125/// A value that can be passed as an option to `test_init()`.
126///
127/// Creates a unique temporary directory for each unit test and uses sets
128/// XDG directories to point into subdirectories of it for the duration of
129/// the unit test. The directory tree is cleaned up after the test finishes
130/// successfully.
131///
132/// Note that this doesn’t take effect until `test_run()` is called,
133/// so calls to (for example) [`home_dir()`][crate::home_dir()] will return the
134/// system-wide value when made in a test program’s main() function.
135///
136/// The following functions will return subdirectories of the temporary directory
137/// when this option is used. The specific subdirectory paths in use are not
138/// guaranteed to be stable API — always use a getter function to retrieve them.
139///
140///  - [`home_dir()`][crate::home_dir()]
141///  - [`user_cache_dir()`][crate::user_cache_dir()]
142///  - [`system_config_dirs()`][crate::system_config_dirs()]
143///  - [`user_config_dir()`][crate::user_config_dir()]
144///  - [`system_data_dirs()`][crate::system_data_dirs()]
145///  - [`user_data_dir()`][crate::user_data_dir()]
146///  - [`user_state_dir()`][crate::user_state_dir()]
147///  - [`user_runtime_dir()`][crate::user_runtime_dir()]
148///
149/// The subdirectories may not be created by the test harness; as with normal
150/// calls to functions like [`user_cache_dir()`][crate::user_cache_dir()], the caller must
151/// be prepared to create the directory if it doesn’t exist.
152#[cfg(feature = "v2_60")]
153#[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
154#[doc(alias = "G_TEST_OPTION_ISOLATE_DIRS")]
155pub static TEST_OPTION_ISOLATE_DIRS: &GStr =
156    unsafe { GStr::from_utf8_with_nul_unchecked(ffi::G_TEST_OPTION_ISOLATE_DIRS) };
157/// A value that can be passed as an option to `test_init()`.
158///
159/// If this option is given, assertions will not abort the process, but
160/// call `test_fail()`. Equivalent to `test_set_nonfatal_assertions()`.
161// rustdoc-stripper-ignore-next-stop
162/// A value that can be passed as an option to `test_init()`.
163///
164/// If this option is given, assertions will not abort the process, but
165/// call `test_fail()`. Equivalent to `test_set_nonfatal_assertions()`.
166#[cfg(feature = "v2_84")]
167#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
168#[doc(alias = "G_TEST_OPTION_NONFATAL_ASSERTIONS")]
169pub static TEST_OPTION_NONFATAL_ASSERTIONS: &GStr =
170    unsafe { GStr::from_utf8_with_nul_unchecked(ffi::G_TEST_OPTION_NONFATAL_ASSERTIONS) };
171/// A value that can be passed as an option to `test_init()`.
172///
173/// If this option is given, `test_init()` will not call `set_prgname()`.
174// rustdoc-stripper-ignore-next-stop
175/// A value that can be passed as an option to `test_init()`.
176///
177/// If this option is given, `test_init()` will not call `set_prgname()`.
178#[cfg(feature = "v2_84")]
179#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
180#[doc(alias = "G_TEST_OPTION_NO_PRGNAME")]
181pub static TEST_OPTION_NO_PRGNAME: &GStr =
182    unsafe { GStr::from_utf8_with_nul_unchecked(ffi::G_TEST_OPTION_NO_PRGNAME) };
183/// Generic delimiters characters as defined in
184/// [RFC 3986](https://tools.ietf.org/html/rfc3986). Includes `:/?#[]@`.
185// rustdoc-stripper-ignore-next-stop
186/// Generic delimiters characters as defined in
187/// [RFC 3986](https://tools.ietf.org/html/rfc3986). Includes `:/?#[]@`.
188#[doc(alias = "G_URI_RESERVED_CHARS_GENERIC_DELIMITERS")]
189pub static URI_RESERVED_CHARS_GENERIC_DELIMITERS: &GStr =
190    unsafe { GStr::from_utf8_with_nul_unchecked(ffi::G_URI_RESERVED_CHARS_GENERIC_DELIMITERS) };
191/// Subcomponent delimiter characters as defined in
192/// [RFC 3986](https://tools.ietf.org/html/rfc3986). Includes `!$&'()*+,;=`.
193// rustdoc-stripper-ignore-next-stop
194/// Subcomponent delimiter characters as defined in
195/// [RFC 3986](https://tools.ietf.org/html/rfc3986). Includes `!$&'()*+,;=`.
196#[doc(alias = "G_URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS")]
197pub static URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS: &GStr = unsafe {
198    GStr::from_utf8_with_nul_unchecked(ffi::G_URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS)
199};