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 
5 use glib::object::IsA;
6 use glib::translate::*;
7 use gtk_sys;
8 use std::fmt;
9 
10 glib_wrapper! {
11     pub struct StyleProvider(Interface<gtk_sys::GtkStyleProvider>);
12 
13     match fn {
14         get_type => || gtk_sys::gtk_style_provider_get_type(),
15     }
16 }
17 
18 pub const NONE_STYLE_PROVIDER: Option<&StyleProvider> = None;
19 
20 pub trait StyleProviderExt: 'static {
21     //fn get_style_property(&self, path: &WidgetPath, state: StateFlags, pspec: /*Ignored*/&glib::ParamSpec) -> Option<glib::Value>;
22 }
23 
24 impl<O: IsA<StyleProvider>> StyleProviderExt for O {
25     //fn get_style_property(&self, path: &WidgetPath, state: StateFlags, pspec: /*Ignored*/&glib::ParamSpec) -> Option<glib::Value> {
26     //    unsafe { TODO: call gtk_sys:gtk_style_provider_get_style_property() }
27     //}
28 }
29 
30 impl fmt::Display for StyleProvider {
fmt(&self, f: &mut fmt::Formatter) -> fmt::Result31     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
32         write!(f, "StyleProvider")
33     }
34 }
35