1 /*
2  * This file is part of gtkD.
3  *
4  * gtkD is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License
6  * as published by the Free Software Foundation; either version 3
7  * of the License, or (at your option) any later version, with
8  * some exceptions, please read the COPYING file.
9  *
10  * gtkD is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with gtkD; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
18  */
19 
20 // generated automatically - do not change
21 // find conversion definition on APILookup.txt
22 // implement new conversion functionalities on the wrap.utils pakage
23 
24 
25 module gtk.StyleProviderIF;
26 
27 private import gobject.ObjectG;
28 private import gobject.ParamSpec;
29 private import gobject.Value;
30 private import gtk.IconFactory;
31 private import gtk.StyleProperties;
32 private import gtk.WidgetPath;
33 private import gtkc.gtk;
34 public  import gtkc.gtktypes;
35 
36 
37 /**
38  * GtkStyleProvider is an interface used to provide style information to a #GtkStyleContext.
39  * See gtk_style_context_add_provider() and gtk_style_context_add_provider_for_screen().
40  */
41 public interface StyleProviderIF{
42 	/** Get the main Gtk struct */
43 	public GtkStyleProvider* getStyleProviderStruct();
44 
45 	/** the main Gtk struct as a void* */
46 	protected void* getStruct();
47 
48 
49 	/**
50 	 * Returns the #GtkIconFactory defined to be in use for @path, or %NULL if none
51 	 * is defined.
52 	 *
53 	 * Deprecated: Will always return %NULL for all GTK-provided style providers.
54 	 *
55 	 * Params:
56 	 *     path = #GtkWidgetPath to query
57 	 *
58 	 * Return: The icon factory to use for @path, or %NULL
59 	 *
60 	 * Since: 3.0
61 	 */
62 	public IconFactory getIconFactory(WidgetPath path);
63 
64 	/**
65 	 * Returns the style settings affecting a widget defined by @path, or %NULL if
66 	 * @provider doesn’t contemplate styling @path.
67 	 *
68 	 * Deprecated: Will always return %NULL for all GTK-provided style providers
69 	 * as the interface cannot correctly work the way CSS is specified.
70 	 *
71 	 * Params:
72 	 *     path = #GtkWidgetPath to query
73 	 *
74 	 * Return: a #GtkStyleProperties containing the
75 	 *     style settings affecting @path
76 	 *
77 	 * Since: 3.0
78 	 */
79 	public StyleProperties getStyle(WidgetPath path);
80 
81 	/**
82 	 * Looks up a widget style property as defined by @provider for
83 	 * the widget represented by @path.
84 	 *
85 	 * Params:
86 	 *     path = #GtkWidgetPath to query
87 	 *     state = state to query the style property for
88 	 *     pspec = The #GParamSpec to query
89 	 *     value = return location for the property value
90 	 *
91 	 * Return: %TRUE if the property was found and has a value, %FALSE otherwise
92 	 *
93 	 * Since: 3.0
94 	 */
95 	public bool getStyleProperty(WidgetPath path, GtkStateFlags state, ParamSpec pspec, out Value value);
96 }