gtk/auto/
style_provider.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 glib::object::IsA;
6use glib::translate::*;
7use gtk_sys;
8use std::fmt;
9
10glib_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
18pub const NONE_STYLE_PROVIDER: Option<&StyleProvider> = None;
19
20pub trait StyleProviderExt: 'static {
21    //fn get_style_property(&self, path: &WidgetPath, state: StateFlags, pspec: /*Ignored*/&glib::ParamSpec) -> Option<glib::Value>;
22}
23
24impl<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
30impl fmt::Display for StyleProvider {
31    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
32        write!(f, "StyleProvider")
33    }
34}