gtk/auto/style_properties.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::{StyleProvider, ffi};
6
7glib::wrapper! {
8 /// GtkStyleProperties provides the storage for style information
9 /// that is used by [`StyleContext`][crate::StyleContext] and other [`StyleProvider`][crate::StyleProvider]
10 /// implementations.
11 ///
12 /// Before style properties can be stored in GtkStyleProperties, they
13 /// must be registered with `gtk_style_properties_register_property()`.
14 ///
15 /// Unless you are writing a [`StyleProvider`][crate::StyleProvider] implementation, you
16 /// are unlikely to use this API directly, as `gtk_style_context_get()`
17 /// and its variants are the preferred way to access styling information
18 /// from widget implementations and theming engine implementations
19 /// should use the APIs provided by `GtkThemingEngine` instead.
20 ///
21 /// [`StyleProperties`][crate::StyleProperties] has been deprecated in GTK 3.16. The CSS
22 /// machinery does not use it anymore and all users of this object
23 /// have been deprecated.
24 ///
25 /// # Implements
26 ///
27 /// [`trait@glib::ObjectExt`], [`StyleProviderExt`][trait@crate::prelude::StyleProviderExt]
28 #[doc(alias = "GtkStyleProperties")]
29 pub struct StyleProperties(Object<ffi::GtkStyleProperties, ffi::GtkStylePropertiesClass>) @implements StyleProvider;
30
31 match fn {
32 type_ => || ffi::gtk_style_properties_get_type(),
33 }
34}
35
36impl StyleProperties {
37 pub const NONE: Option<&'static StyleProperties> = None;
38}