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 * Conversion parameters: 26 * inFile = GtkStyleProvider.html 27 * outPack = gtk 28 * outFile = StyleProviderIF 29 * strct = GtkStyleProvider 30 * realStrct= 31 * ctorStrct= 32 * clss = StyleProviderT 33 * interf = StyleProviderIF 34 * class Code: No 35 * interface Code: No 36 * template for: 37 * extend = 38 * implements: 39 * prefixes: 40 * - gtk_style_provider_ 41 * omit structs: 42 * omit prefixes: 43 * omit code: 44 * omit signals: 45 * imports: 46 * - gobject.ParamSpec 47 * - gobject.Value 48 * - gtk.IconFactory 49 * - gtk.StyleProperties 50 * - gtk.WidgetPath 51 * structWrap: 52 * - GParamSpec* -> ParamSpec 53 * - GValue* -> Value 54 * - GtkIconFactory* -> IconFactory 55 * - GtkStyleProperties* -> StyleProperties 56 * - GtkWidgetPath* -> WidgetPath 57 * module aliases: 58 * local aliases: 59 * overrides: 60 */ 61 62 module gtk.StyleProviderIF; 63 64 public import gtkc.gtktypes; 65 66 private import gtkc.gtk; 67 private import glib.ConstructionException; 68 private import gobject.ObjectG; 69 70 private import gobject.ParamSpec; 71 private import gobject.Value; 72 private import gtk.IconFactory; 73 private import gtk.StyleProperties; 74 private import gtk.WidgetPath; 75 76 77 78 /** 79 * GtkStyleProvider is an interface used to provide style information to a GtkStyleContext. 80 * See gtk_style_context_add_provider() and gtk_style_context_add_provider_for_screen(). 81 */ 82 public interface StyleProviderIF 83 { 84 85 86 /** Get the main Gtk struct */ 87 public GtkStyleProvider* getStyleProviderTStruct(); 88 89 /** the main Gtk struct as a void* */ 90 protected void* getStruct(); 91 92 93 /** 94 */ 95 96 /** 97 * Warning 98 * gtk_style_provider_get_icon_factory has been deprecated since version 3.8 and should not be used in newly-written code. Will always return NULL for all GTK-provided style providers. 99 * Returns the GtkIconFactory defined to be in use for path, or NULL if none 100 * is defined. 101 * Params: 102 * path = GtkWidgetPath to query 103 * Returns: The icon factory to use for path, or NULL. [transfer none] Since 3.0 104 */ 105 public IconFactory getIconFactory(WidgetPath path); 106 107 /** 108 * Warning 109 * gtk_style_provider_get_style has been deprecated since version 3.8 and should not be used in newly-written code. Will always return NULL for all GTK-provided style providers 110 * as the interface cannot correctly work the way CSS is specified. 111 * Returns the style settings affecting a widget defined by path, or NULL if 112 * provider doesn't contemplate styling path. 113 * Params: 114 * path = GtkWidgetPath to query 115 * Returns: a GtkStyleProperties containing the style settings affecting path. [transfer full] Since 3.0 116 */ 117 public StyleProperties getStyle(WidgetPath path); 118 119 /** 120 * Looks up a widget style property as defined by provider for 121 * the widget represented by path. 122 * Params: 123 * path = GtkWidgetPath to query 124 * state = state to query the style property for 125 * pspec = The GParamSpec to query 126 * value = return location for the property value. [out] 127 * Returns: TRUE if the property was found and has a value, FALSE otherwise Since 3.0 128 */ 129 public int getStyleProperty(WidgetPath path, GtkStateFlags state, ParamSpec pspec, Value value); 130 }