]> Pileus Git - ~andy/gtk/blob - gtk/deprecated/gtkstyle.h
Move gtkstyle and gtkrc to deprecated/
[~andy/gtk] / gtk / deprecated / gtkstyle.h
1 /* GTK - The GIMP Toolkit
2  * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19
20 /*
21  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
22  * file for a list of people on the GTK+ Team.  See the ChangeLog
23  * files for a list of changes.  These files are distributed with
24  * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
25  */
26
27 #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
28 #error "Only <gtk/gtk.h> can be included directly."
29 #endif
30
31 #ifndef __GTK_STYLE_H__
32 #define __GTK_STYLE_H__
33
34
35 #include <gdk/gdk.h>
36 #include <gtk/gtkenums.h>
37 #include <gtk/gtkwidgetpath.h>
38
39
40 G_BEGIN_DECLS
41
42 #define GTK_TYPE_STYLE              (gtk_style_get_type ())
43 #define GTK_STYLE(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_STYLE, GtkStyle))
44 #define GTK_STYLE_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_STYLE, GtkStyleClass))
45 #define GTK_IS_STYLE(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_STYLE))
46 #define GTK_IS_STYLE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_STYLE))
47 #define GTK_STYLE_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_STYLE, GtkStyleClass))
48
49 /* Some forward declarations needed to rationalize the header
50  * files.
51  */
52 typedef struct _GtkStyleClass  GtkStyleClass;
53 typedef struct _GtkThemeEngine GtkThemeEngine;
54 typedef struct _GtkRcProperty  GtkRcProperty;
55
56 /**
57  * GTK_STYLE_ATTACHED:
58  * @style: a #GtkStyle.
59  *
60  * Returns whether the style is attached to a window.
61  */
62 #define GTK_STYLE_ATTACHED(style)       (GTK_STYLE (style)->attach_count > 0)
63
64 struct _GtkStyle
65 {
66   GObject parent_instance;
67
68   /*< public >*/
69
70   GdkColor fg[5];
71   GdkColor bg[5];
72   GdkColor light[5];
73   GdkColor dark[5];
74   GdkColor mid[5];
75   GdkColor text[5];
76   GdkColor base[5];
77   GdkColor text_aa[5];          /* Halfway between text/base */
78
79   GdkColor black;
80   GdkColor white;
81   PangoFontDescription *font_desc;
82
83   gint xthickness;
84   gint ythickness;
85
86   cairo_pattern_t *background[5];
87
88   /*< private >*/
89
90   gint attach_count;
91
92   GdkVisual *visual;
93   PangoFontDescription *private_font_desc; /* Font description for style->private_font or %NULL */
94
95   /* the RcStyle from which this style was created */
96   GtkRcStyle     *rc_style;
97
98   GSList         *styles;         /* of type GtkStyle* */
99   GArray         *property_cache;
100   GSList         *icon_factories; /* of type GtkIconFactory* */
101 };
102
103 struct _GtkStyleClass
104 {
105   GObjectClass parent_class;
106
107   /* Initialize for a particular visual. style->visual
108    * will have been set at this point. Will typically chain
109    * to parent.
110    */
111   void (*realize)               (GtkStyle               *style);
112
113   /* Clean up for a particular visual. Will typically chain
114    * to parent.
115    */
116   void (*unrealize)             (GtkStyle               *style);
117
118   /* Make style an exact duplicate of src.
119    */
120   void (*copy)                  (GtkStyle               *style,
121                                  GtkStyle               *src);
122
123   /* Create an empty style of the same type as this style.
124    * The default implementation, which does
125    * g_object_new (G_OBJECT_TYPE (style), NULL);
126    * should work in most cases.
127    */
128   GtkStyle *(*clone)             (GtkStyle               *style);
129
130   /* Initialize the GtkStyle with the values in the GtkRcStyle.
131    * should chain to the parent implementation.
132    */
133   void     (*init_from_rc)      (GtkStyle               *style,
134                                  GtkRcStyle             *rc_style);
135
136   void (*set_background)        (GtkStyle               *style,
137                                  GdkWindow              *window,
138                                  GtkStateType            state_type);
139
140
141   GdkPixbuf * (* render_icon)   (GtkStyle               *style,
142                                  const GtkIconSource    *source,
143                                  GtkTextDirection        direction,
144                                  GtkStateType            state,
145                                  GtkIconSize             size,
146                                  GtkWidget              *widget,
147                                  const gchar            *detail);
148
149   /* Drawing functions
150    */
151
152   void (*draw_hline)            (GtkStyle               *style,
153                                  cairo_t                *cr,
154                                  GtkStateType            state_type,
155                                  GtkWidget              *widget,
156                                  const gchar            *detail,
157                                  gint                    x1,
158                                  gint                    x2,
159                                  gint                    y);
160   void (*draw_vline)            (GtkStyle               *style,
161                                  cairo_t                *cr,
162                                  GtkStateType            state_type,
163                                  GtkWidget              *widget,
164                                  const gchar            *detail,
165                                  gint                    y1_,
166                                  gint                    y2_,
167                                  gint                    x);
168   void (*draw_shadow)           (GtkStyle               *style,
169                                  cairo_t                *cr,
170                                  GtkStateType            state_type,
171                                  GtkShadowType           shadow_type,
172                                  GtkWidget              *widget,
173                                  const gchar            *detail,
174                                  gint                    x,
175                                  gint                    y,
176                                  gint                    width,
177                                  gint                    height);
178   void (*draw_arrow)            (GtkStyle               *style,
179                                  cairo_t                *cr,
180                                  GtkStateType            state_type,
181                                  GtkShadowType           shadow_type,
182                                  GtkWidget              *widget,
183                                  const gchar            *detail,
184                                  GtkArrowType            arrow_type,
185                                  gboolean                fill,
186                                  gint                    x,
187                                  gint                    y,
188                                  gint                    width,
189                                  gint                    height);
190   void (*draw_diamond)          (GtkStyle               *style,
191                                  cairo_t                *cr,
192                                  GtkStateType            state_type,
193                                  GtkShadowType           shadow_type,
194                                  GtkWidget              *widget,
195                                  const gchar            *detail,
196                                  gint                    x,
197                                  gint                    y,
198                                  gint                    width,
199                                  gint                    height);
200   void (*draw_box)              (GtkStyle               *style,
201                                  cairo_t                *cr,
202                                  GtkStateType            state_type,
203                                  GtkShadowType           shadow_type,
204                                  GtkWidget              *widget,
205                                  const gchar            *detail,
206                                  gint                    x,
207                                  gint                    y,
208                                  gint                    width,
209                                  gint                    height);
210   void (*draw_flat_box)         (GtkStyle               *style,
211                                  cairo_t                *cr,
212                                  GtkStateType            state_type,
213                                  GtkShadowType           shadow_type,
214                                  GtkWidget              *widget,
215                                  const gchar            *detail,
216                                  gint                    x,
217                                  gint                    y,
218                                  gint                    width,
219                                  gint                    height);
220   void (*draw_check)            (GtkStyle               *style,
221                                  cairo_t                *cr,
222                                  GtkStateType            state_type,
223                                  GtkShadowType           shadow_type,
224                                  GtkWidget              *widget,
225                                  const gchar            *detail,
226                                  gint                    x,
227                                  gint                    y,
228                                  gint                    width,
229                                  gint                    height);
230   void (*draw_option)           (GtkStyle               *style,
231                                  cairo_t                *cr,
232                                  GtkStateType            state_type,
233                                  GtkShadowType           shadow_type,
234                                  GtkWidget              *widget,
235                                  const gchar            *detail,
236                                  gint                    x,
237                                  gint                    y,
238                                  gint                    width,
239                                  gint                    height);
240   void (*draw_tab)              (GtkStyle               *style,
241                                  cairo_t                *cr,
242                                  GtkStateType            state_type,
243                                  GtkShadowType           shadow_type,
244                                  GtkWidget              *widget,
245                                  const gchar            *detail,
246                                  gint                    x,
247                                  gint                    y,
248                                  gint                    width,
249                                  gint                    height);
250   void (*draw_shadow_gap)       (GtkStyle               *style,
251                                  cairo_t                *cr,
252                                  GtkStateType            state_type,
253                                  GtkShadowType           shadow_type,
254                                  GtkWidget              *widget,
255                                  const gchar            *detail,
256                                  gint                    x,
257                                  gint                    y,
258                                  gint                    width,
259                                  gint                    height,
260                                  GtkPositionType         gap_side,
261                                  gint                    gap_x,
262                                  gint                    gap_width);
263   void (*draw_box_gap)          (GtkStyle               *style,
264                                  cairo_t                *cr,
265                                  GtkStateType            state_type,
266                                  GtkShadowType           shadow_type,
267                                  GtkWidget              *widget,
268                                  const gchar            *detail,
269                                  gint                    x,
270                                  gint                    y,
271                                  gint                    width,
272                                  gint                    height,
273                                  GtkPositionType         gap_side,
274                                  gint                    gap_x,
275                                  gint                    gap_width);
276   void (*draw_extension)        (GtkStyle               *style,
277                                  cairo_t                *cr,
278                                  GtkStateType            state_type,
279                                  GtkShadowType           shadow_type,
280                                  GtkWidget              *widget,
281                                  const gchar            *detail,
282                                  gint                    x,
283                                  gint                    y,
284                                  gint                    width,
285                                  gint                    height,
286                                  GtkPositionType         gap_side);
287   void (*draw_focus)            (GtkStyle               *style,
288                                  cairo_t                *cr,
289                                  GtkStateType            state_type,
290                                  GtkWidget              *widget,
291                                  const gchar            *detail,
292                                  gint                    x,
293                                  gint                    y,
294                                  gint                    width,
295                                  gint                    height);
296   void (*draw_slider)           (GtkStyle               *style,
297                                  cairo_t                *cr,
298                                  GtkStateType            state_type,
299                                  GtkShadowType           shadow_type,
300                                  GtkWidget              *widget,
301                                  const gchar            *detail,
302                                  gint                    x,
303                                  gint                    y,
304                                  gint                    width,
305                                  gint                    height,
306                                  GtkOrientation          orientation);
307   void (*draw_handle)           (GtkStyle               *style,
308                                  cairo_t                *cr,
309                                  GtkStateType            state_type,
310                                  GtkShadowType           shadow_type,
311                                  GtkWidget              *widget,
312                                  const gchar            *detail,
313                                  gint                    x,
314                                  gint                    y,
315                                  gint                    width,
316                                  gint                    height,
317                                  GtkOrientation          orientation);
318
319   void (*draw_expander)         (GtkStyle               *style,
320                                  cairo_t                *cr,
321                                  GtkStateType            state_type,
322                                  GtkWidget              *widget,
323                                  const gchar            *detail,
324                                  gint                    x,
325                                  gint                    y,
326                                  GtkExpanderStyle        expander_style);
327   void (*draw_layout)           (GtkStyle               *style,
328                                  cairo_t                *cr,
329                                  GtkStateType            state_type,
330                                  gboolean                use_text,
331                                  GtkWidget              *widget,
332                                  const gchar            *detail,
333                                  gint                    x,
334                                  gint                    y,
335                                  PangoLayout            *layout);
336   void (*draw_resize_grip)      (GtkStyle               *style,
337                                  cairo_t                *cr,
338                                  GtkStateType            state_type,
339                                  GtkWidget              *widget,
340                                  const gchar            *detail,
341                                  GdkWindowEdge           edge,
342                                  gint                    x,
343                                  gint                    y,
344                                  gint                    width,
345                                  gint                    height);
346   void (*draw_spinner)          (GtkStyle               *style,
347                                  cairo_t                *cr,
348                                  GtkStateType            state_type,
349                                  GtkWidget              *widget,
350                                  const gchar            *detail,
351                                  guint                   step,
352                                  gint                    x,
353                                  gint                    y,
354                                  gint                    width,
355                                  gint                    height);
356
357   /* Padding for future expansion */
358   void (*_gtk_reserved1)  (void);
359   void (*_gtk_reserved2)  (void);
360   void (*_gtk_reserved3)  (void);
361   void (*_gtk_reserved4)  (void);
362   void (*_gtk_reserved5)  (void);
363   void (*_gtk_reserved6)  (void);
364   void (*_gtk_reserved7)  (void);
365   void (*_gtk_reserved8)  (void);
366   void (*_gtk_reserved9)  (void);
367   void (*_gtk_reserved10) (void);
368   void (*_gtk_reserved11) (void);
369 };
370
371 GType     gtk_style_get_type                 (void) G_GNUC_CONST;
372 GDK_DEPRECATED_FOR(GtkStyleContext)
373 GtkStyle* gtk_style_new                      (void);
374 GDK_DEPRECATED_FOR(GtkStyleContext)
375 GtkStyle* gtk_style_copy                     (GtkStyle     *style);
376 GDK_DEPRECATED_FOR(GtkStyleContext)
377 GtkStyle* gtk_style_attach                   (GtkStyle     *style,
378                                               GdkWindow    *window);
379 GDK_DEPRECATED_FOR(GtkStyleContext)
380 void      gtk_style_detach                   (GtkStyle     *style);
381 GDK_DEPRECATED_FOR(GtkStyleContext)
382 void      gtk_style_set_background           (GtkStyle     *style,
383                                               GdkWindow    *window,
384                                               GtkStateType  state_type);
385 GDK_DEPRECATED_FOR(GtkStyleContext)
386 void      gtk_style_apply_default_background (GtkStyle     *style,
387                                               cairo_t      *cr,
388                                               GdkWindow    *window,
389                                               GtkStateType  state_type,
390                                               gint          x,
391                                               gint          y,
392                                               gint          width,
393                                               gint          height);
394
395 GDK_DEPRECATED_FOR(GtkStyleContext)
396 GtkIconSet* gtk_style_lookup_icon_set        (GtkStyle     *style,
397                                               const gchar  *stock_id);
398 GDK_DEPRECATED_FOR(GtkStyleContext)
399 gboolean    gtk_style_lookup_color           (GtkStyle     *style,
400                                               const gchar  *color_name,
401                                               GdkColor     *color);
402
403 GDK_DEPRECATED_FOR(GtkStyleContext)
404 GdkPixbuf*  gtk_style_render_icon     (GtkStyle            *style,
405                                        const GtkIconSource *source,
406                                        GtkTextDirection     direction,
407                                        GtkStateType         state,
408                                        GtkIconSize          size,
409                                        GtkWidget           *widget,
410                                        const gchar         *detail);
411
412 GDK_DEPRECATED_FOR(GtkStyleContext)
413 void gtk_paint_hline             (GtkStyle           *style,
414                                   cairo_t            *cr,
415                                   GtkStateType        state_type,
416                                   GtkWidget          *widget,
417                                   const gchar        *detail,
418                                   gint                x1,
419                                   gint                x2,
420                                   gint                y);
421 GDK_DEPRECATED_FOR(GtkStyleContext)
422 void gtk_paint_vline             (GtkStyle           *style,
423                                   cairo_t            *cr,
424                                   GtkStateType        state_type,
425                                   GtkWidget          *widget,
426                                   const gchar        *detail,
427                                   gint                y1_,
428                                   gint                y2_,
429                                   gint                x);
430 GDK_DEPRECATED_FOR(GtkStyleContext)
431 void gtk_paint_shadow            (GtkStyle           *style,
432                                   cairo_t            *cr,
433                                   GtkStateType        state_type,
434                                   GtkShadowType       shadow_type,
435                                   GtkWidget          *widget,
436                                   const gchar        *detail,
437                                   gint                x,
438                                   gint                y,
439                                   gint                width,
440                                   gint                height);
441 GDK_DEPRECATED_FOR(GtkStyleContext)
442 void gtk_paint_arrow             (GtkStyle           *style,
443                                   cairo_t            *cr,
444                                   GtkStateType        state_type,
445                                   GtkShadowType       shadow_type,
446                                   GtkWidget          *widget,
447                                   const gchar        *detail,
448                                   GtkArrowType        arrow_type,
449                                   gboolean            fill,
450                                   gint                x,
451                                   gint                y,
452                                   gint                width,
453                                   gint                height);
454 GDK_DEPRECATED_FOR(GtkStyleContext)
455 void gtk_paint_diamond           (GtkStyle           *style,
456                                   cairo_t            *cr,
457                                   GtkStateType        state_type,
458                                   GtkShadowType       shadow_type,
459                                   GtkWidget          *widget,
460                                   const gchar        *detail,
461                                   gint                x,
462                                   gint                y,
463                                   gint                width,
464                                   gint                height);
465 GDK_DEPRECATED_FOR(GtkStyleContext)
466 void gtk_paint_box               (GtkStyle           *style,
467                                   cairo_t            *cr,
468                                   GtkStateType        state_type,
469                                   GtkShadowType       shadow_type,
470                                   GtkWidget          *widget,
471                                   const gchar        *detail,
472                                   gint                x,
473                                   gint                y,
474                                   gint                width,
475                                   gint                height);
476 GDK_DEPRECATED_FOR(GtkStyleContext)
477 void gtk_paint_flat_box          (GtkStyle           *style,
478                                   cairo_t            *cr,
479                                   GtkStateType        state_type,
480                                   GtkShadowType       shadow_type,
481                                   GtkWidget          *widget,
482                                   const gchar        *detail,
483                                   gint                x,
484                                   gint                y,
485                                   gint                width,
486                                   gint                height);
487 GDK_DEPRECATED_FOR(GtkStyleContext)
488 void gtk_paint_check             (GtkStyle           *style,
489                                   cairo_t            *cr,
490                                   GtkStateType        state_type,
491                                   GtkShadowType       shadow_type,
492                                   GtkWidget          *widget,
493                                   const gchar        *detail,
494                                   gint                x,
495                                   gint                y,
496                                   gint                width,
497                                   gint                height);
498 GDK_DEPRECATED_FOR(GtkStyleContext)
499 void gtk_paint_option            (GtkStyle           *style,
500                                   cairo_t            *cr,
501                                   GtkStateType        state_type,
502                                   GtkShadowType       shadow_type,
503                                   GtkWidget          *widget,
504                                   const gchar        *detail,
505                                   gint                x,
506                                   gint                y,
507                                   gint                width,
508                                   gint                height);
509 GDK_DEPRECATED_FOR(GtkStyleContext)
510 void gtk_paint_tab               (GtkStyle           *style,
511                                   cairo_t            *cr,
512                                   GtkStateType        state_type,
513                                   GtkShadowType       shadow_type,
514                                   GtkWidget          *widget,
515                                   const gchar        *detail,
516                                   gint                x,
517                                   gint                y,
518                                   gint                width,
519                                   gint                height);
520 GDK_DEPRECATED_FOR(GtkStyleContext)
521 void gtk_paint_shadow_gap        (GtkStyle           *style,
522                                   cairo_t            *cr,
523                                   GtkStateType        state_type,
524                                   GtkShadowType       shadow_type,
525                                   GtkWidget          *widget,
526                                   const gchar        *detail,
527                                   gint                x,
528                                   gint                y,
529                                   gint                width,
530                                   gint                height,
531                                   GtkPositionType     gap_side,
532                                   gint                gap_x,
533                                   gint                gap_width);
534 GDK_DEPRECATED_FOR(GtkStyleContext)
535 void gtk_paint_box_gap           (GtkStyle           *style,
536                                   cairo_t            *cr,
537                                   GtkStateType        state_type,
538                                   GtkShadowType       shadow_type,
539                                   GtkWidget          *widget,
540                                   const gchar        *detail,
541                                   gint                x,
542                                   gint                y,
543                                   gint                width,
544                                   gint                height,
545                                   GtkPositionType     gap_side,
546                                   gint                gap_x,
547                                   gint                gap_width);
548 GDK_DEPRECATED_FOR(GtkStyleContext)
549 void gtk_paint_extension         (GtkStyle           *style,
550                                   cairo_t            *cr,
551                                   GtkStateType        state_type,
552                                   GtkShadowType       shadow_type,
553                                   GtkWidget          *widget,
554                                   const gchar        *detail,
555                                   gint                x,
556                                   gint                y,
557                                   gint                width,
558                                   gint                height,
559                                   GtkPositionType     gap_side);
560 GDK_DEPRECATED_FOR(GtkStyleContext)
561 void gtk_paint_focus             (GtkStyle           *style,
562                                   cairo_t            *cr,
563                                   GtkStateType        state_type,
564                                   GtkWidget          *widget,
565                                   const gchar        *detail,
566                                   gint                x,
567                                   gint                y,
568                                   gint                width,
569                                   gint                height);
570 GDK_DEPRECATED_FOR(GtkStyleContext)
571 void gtk_paint_slider            (GtkStyle           *style,
572                                   cairo_t            *cr,
573                                   GtkStateType        state_type,
574                                   GtkShadowType       shadow_type,
575                                   GtkWidget          *widget,
576                                   const gchar        *detail,
577                                   gint                x,
578                                   gint                y,
579                                   gint                width,
580                                   gint                height,
581                                   GtkOrientation      orientation);
582 GDK_DEPRECATED_FOR(GtkStyleContext)
583 void gtk_paint_handle            (GtkStyle           *style,
584                                   cairo_t            *cr,
585                                   GtkStateType        state_type,
586                                   GtkShadowType       shadow_type,
587                                   GtkWidget          *widget,
588                                   const gchar        *detail,
589                                   gint                x,
590                                   gint                y,
591                                   gint                width,
592                                   gint                height,
593                                   GtkOrientation      orientation);
594 GDK_DEPRECATED_FOR(GtkStyleContext)
595 void gtk_paint_expander          (GtkStyle           *style,
596                                   cairo_t            *cr,
597                                   GtkStateType        state_type,
598                                   GtkWidget          *widget,
599                                   const gchar        *detail,
600                                   gint                x,
601                                   gint                y,
602                                   GtkExpanderStyle    expander_style);
603 GDK_DEPRECATED_FOR(GtkStyleContext)
604 void gtk_paint_layout            (GtkStyle           *style,
605                                   cairo_t            *cr,
606                                   GtkStateType        state_type,
607                                   gboolean            use_text,
608                                   GtkWidget          *widget,
609                                   const gchar        *detail,
610                                   gint                x,
611                                   gint                y,
612                                   PangoLayout        *layout);
613 GDK_DEPRECATED_FOR(GtkStyleContext)
614 void gtk_paint_resize_grip       (GtkStyle           *style,
615                                   cairo_t            *cr,
616                                   GtkStateType        state_type,
617                                   GtkWidget          *widget,
618                                   const gchar        *detail,
619                                   GdkWindowEdge       edge,
620                                   gint                x,
621                                   gint                y,
622                                   gint                width,
623                                   gint                height);
624 GDK_DEPRECATED_FOR(GtkStyleContext)
625 void gtk_paint_spinner           (GtkStyle           *style,
626                                   cairo_t            *cr,
627                                   GtkStateType        state_type,
628                                   GtkWidget          *widget,
629                                   const gchar        *detail,
630                                   guint               step,
631                                   gint                x,
632                                   gint                y,
633                                   gint                width,
634                                   gint                height);
635
636 GDK_DEPRECATED_FOR(GtkStyleContext)
637 void gtk_style_get_style_property (GtkStyle    *style,
638                                    GType        widget_type,
639                                    const gchar *property_name,
640                                    GValue      *value);
641 GDK_DEPRECATED_FOR(GtkStyleContext)
642 void gtk_style_get_valist         (GtkStyle    *style,
643                                    GType        widget_type,
644                                    const gchar *first_property_name,
645                                    va_list      var_args);
646 GDK_DEPRECATED_FOR(GtkStyleContext)
647 void gtk_style_get                (GtkStyle    *style,
648                                    GType        widget_type,
649                                    const gchar *first_property_name,
650                                    ...) G_GNUC_NULL_TERMINATED;
651
652
653 /* --- private API --- */
654 GtkStyle*     _gtk_style_new_for_path        (GdkScreen          *screen,
655                                               GtkWidgetPath      *path);
656 void          _gtk_style_shade               (const GdkColor     *a,
657                                               GdkColor           *b,
658                                               gdouble             k);
659
660 gboolean   gtk_style_has_context    (GtkStyle *style);
661
662
663
664 G_END_DECLS
665
666 #endif /* __GTK_STYLE_H__ */