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 gtk.c.functions;
34 public  import gtk.c.types;
35 public  import gtkc.gtktypes;
36 
37 
38 /**
39  * GtkStyleProvider is an interface used to provide style information to a #GtkStyleContext.
40  * See gtk_style_context_add_provider() and gtk_style_context_add_provider_for_screen().
41  */
42 public interface StyleProviderIF{
43 	/** Get the main Gtk struct */
44 	public GtkStyleProvider* getStyleProviderStruct(bool transferOwnership = false);
45 
46 	/** the main Gtk struct as a void* */
47 	protected void* getStruct();
48 
49 
50 	/** */
51 	public static GType getType()
52 	{
53 		return gtk_style_provider_get_type();
54 	}
55 
56 	/**
57 	 * Returns the #GtkIconFactory defined to be in use for @path, or %NULL if none
58 	 * is defined.
59 	 *
60 	 * Deprecated: Will always return %NULL for all GTK-provided style providers.
61 	 *
62 	 * Params:
63 	 *     path = #GtkWidgetPath to query
64 	 *
65 	 * Returns: The icon factory to use for @path, or %NULL
66 	 *
67 	 * Since: 3.0
68 	 */
69 	public IconFactory getIconFactory(WidgetPath path);
70 
71 	/**
72 	 * Returns the style settings affecting a widget defined by @path, or %NULL if
73 	 * @provider doesn’t contemplate styling @path.
74 	 *
75 	 * Deprecated: Will always return %NULL for all GTK-provided style providers
76 	 * as the interface cannot correctly work the way CSS is specified.
77 	 *
78 	 * Params:
79 	 *     path = #GtkWidgetPath to query
80 	 *
81 	 * Returns: a #GtkStyleProperties containing the
82 	 *     style settings affecting @path
83 	 *
84 	 * Since: 3.0
85 	 */
86 	public StyleProperties getStyle(WidgetPath path);
87 
88 	/**
89 	 * Looks up a widget style property as defined by @provider for
90 	 * the widget represented by @path.
91 	 *
92 	 * Params:
93 	 *     path = #GtkWidgetPath to query
94 	 *     state = state to query the style property for
95 	 *     pspec = The #GParamSpec to query
96 	 *     value = return location for the property value
97 	 *
98 	 * Returns: %TRUE if the property was found and has a value, %FALSE otherwise
99 	 *
100 	 * Since: 3.0
101 	 */
102 	public bool getStyleProperty(WidgetPath path, GtkStateFlags state, ParamSpec pspec, out Value value);
103 }