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 51 /** 52 * Returns the #GtkIconFactory defined to be in use for @path, or %NULL if none 53 * is defined. 54 * 55 * Deprecated: Will always return %NULL for all GTK-provided style providers. 56 * 57 * Params: 58 * path = #GtkWidgetPath to query 59 * 60 * Return: The icon factory to use for @path, or %NULL 61 * 62 * Since: 3.0 63 */ 64 public IconFactory getIconFactory(WidgetPath path); 65 66 /** 67 * Returns the style settings affecting a widget defined by @path, or %NULL if 68 * @provider doesn’t contemplate styling @path. 69 * 70 * Deprecated: Will always return %NULL for all GTK-provided style providers 71 * as the interface cannot correctly work the way CSS is specified. 72 * 73 * Params: 74 * path = #GtkWidgetPath to query 75 * 76 * Return: a #GtkStyleProperties containing the 77 * style settings affecting @path 78 * 79 * Since: 3.0 80 */ 81 public StyleProperties getStyle(WidgetPath path); 82 83 /** 84 * Looks up a widget style property as defined by @provider for 85 * the widget represented by @path. 86 * 87 * Params: 88 * path = #GtkWidgetPath to query 89 * state = state to query the style property for 90 * pspec = The #GParamSpec to query 91 * value = return location for the property value 92 * 93 * Return: %TRUE if the property was found and has a value, %FALSE otherwise 94 * 95 * Since: 3.0 96 */ 97 public bool getStyleProperty(WidgetPath path, GtkStateFlags state, ParamSpec pspec, out Value value); 98 }