rust_macios/foundation/
globals.rs

1use super::NSEdgeInsets;
2
3/// Size of UTF8 encoding
4pub const UTF8_ENCODING: usize = 4;
5
6/// The keys used to access components of a locale.
7pub mod ns_localekey {
8    use crate::foundation::NSLocaleKey;
9
10    extern "C" {
11        /// The locale identifier.
12        #[link_name = "NSLocaleIdentifier"]
13        pub static Identifier: NSLocaleKey;
14
15        /// The locale country or region code.
16        #[link_name = "NSLocaleCountryCode"]
17        pub static CountryCode: NSLocaleKey;
18
19        /// The locale language code.
20        #[link_name = "NSLocaleLanguageCode"]
21        pub static LanguageCode: NSLocaleKey;
22
23        /// The locale script code.
24        #[link_name = "NSLocaleScriptCode"]
25        pub static ScriptCode: NSLocaleKey;
26
27        /// The locale variant code.
28        #[link_name = "NSLocaleVariantCode"]
29        pub static VariantCode: NSLocaleKey;
30
31        /// The exemplar character set for the locale.
32        #[link_name = "NSLocaleExemplarCharacterSet"]
33        pub static ExemplarCharacterSet: NSLocaleKey;
34
35        /// The calendar associated with the locale.
36        #[link_name = "NSLocaleCalendar"]
37        pub static Calendar: NSLocaleKey;
38
39        /// The collation associated with the locale.
40        #[link_name = "NSLocaleCollationIdentifier"]
41        pub static CollationIdentifier: NSLocaleKey;
42
43        /// The collation identifier for the locale.
44        #[link_name = "NSLocaleCollatorIdentifier"]
45        pub static CollatorIdentifier: NSLocaleKey;
46
47        /// A flag that indicates whether the locale uses the metric system.
48        #[link_name = "NSLocaleUsesMetricSystem"]
49        pub static UsesMetricSystem: NSLocaleKey;
50
51        /// The measurement system associated with the locale.
52        #[link_name = "NSLocaleMeasurementSystem"]
53        pub static MeasurementSystem: NSLocaleKey;
54
55        /// The decimal separator associated with the locale.
56        #[link_name = "NSLocaleDecimalSeparator"]
57        pub static DecimalSeparator: NSLocaleKey;
58
59        /// The numeric grouping separator associated with the locale.
60        #[link_name = "NSLocaleGroupingSeparator"]
61        pub static GroupingSeparator: NSLocaleKey;
62
63        /// The currency symbol associated with the locale.
64        #[link_name = "NSLocaleCurrencySymbol"]
65        pub static CurrencySymbol: NSLocaleKey;
66
67        /// The currency code associated with the locale.
68        #[link_name = "NSLocaleCurrencyCode"]
69        pub static CurrencyCode: NSLocaleKey;
70
71        /// The end quotation symbol associated with the locale.
72        #[link_name = "NSLocaleQuotationBeginSymbol"]
73        pub static QuotationBeginSymbol: NSLocaleKey;
74
75        /// The begin quotation symbol associated with the locale.
76        #[link_name = "NSLocaleQuotationEndSymbol"]
77        pub static QuotationEndSymbol: NSLocaleKey;
78
79        /// The alternate end quotation symbol associated with the locale.
80        #[link_name = "NSLocaleAlternateQuotationBeginSymbol"]
81        pub static AlternateQuotationBeginSymbol: NSLocaleKey;
82
83        /// The alternating begin quotation symbol associated with the locale.
84        #[link_name = "NSLocaleAlternateQuotationEndSymbol"]
85        pub static AlternateQuotationEndSymbol: NSLocaleKey;
86    }
87}
88
89extern "C" {
90    /// A zero initialized `NSEdgeInsets`.
91    pub static NSEdgeInsetsZero: NSEdgeInsets;
92}