GTK+ Reference Manual
<<< Previous Page | Home | Up | Next Page >>>

# Styles

## Name

Styles --

## Synopsis

    #include <gtk/gtk.h>

    #define     GTK_STYLE_NUM_STYLECOLORS       ()
    #define     GTK_STYLE_ATTACHED              (style)
    struct      GtkStyle;
    struct      GtkStyleClass;
    GtkStyle*   gtk_style_new                   (void);
    GtkStyle*   gtk_style_copy                  (GtkStyle *style);
    GtkStyle*   gtk_style_attach                (GtkStyle *style,
                                                 GdkWindow *window);
    void        gtk_style_detach                (GtkStyle *style);
    GtkStyle*   gtk_style_ref                   (GtkStyle *style);
    void        gtk_style_unref                 (GtkStyle *style);
    void        gtk_style_set_background        (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type);
    void        gtk_style_apply_default_background
                                                (GtkStyle *style,
                                                 GdkWindow *window,
                                                 gboolean set_bg,
                                                 GtkStateType state_type,
                                                 GdkRectangle *area,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);
    #define     gtk_style_apply_default_pixmap  (s,gw,st,a,x,y,w,h)
    void        gtk_draw_hline                  (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 gint x1,
                                                 gint x2,
                                                 gint y);
    void        gtk_draw_vline                  (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 gint y1,
                                                 gint y2,
                                                 gint x);
    void        gtk_draw_shadow                 (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);
    void        gtk_draw_polygon                (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GdkPoint *points,
                                                 gint npoints,
                                                 gboolean fill);
    void        gtk_draw_arrow                  (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GtkArrowType arrow_type,
                                                 gboolean fill,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);
    void        gtk_draw_diamond                (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);
    void        gtk_draw_oval                   (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);
    void        gtk_draw_string                 (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 gint x,
                                                 gint y,
                                                 const gchar *string);
    void        gtk_draw_box                    (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);
    void        gtk_draw_box_gap                (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height,
                                                 GtkPositionType gap_side,
                                                 gint gap_x,
                                                 gint gap_width);
    void        gtk_draw_check                  (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);
    void        gtk_draw_cross                  (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);
    void        gtk_draw_extension              (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height,
                                                 GtkPositionType gap_side);
    void        gtk_draw_flat_box               (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);
    void        gtk_draw_focus                  (GtkStyle *style,
                                                 GdkWindow *window,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);
    void        gtk_draw_handle                 (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height,
                                                 GtkOrientation orientation);
    void        gtk_draw_option                 (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);
    void        gtk_draw_ramp                   (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GtkArrowType arrow_type,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);
    void        gtk_draw_shadow_gap             (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height,
                                                 GtkPositionType gap_side,
                                                 gint gap_x,
                                                 gint gap_width);
    void        gtk_draw_slider                 (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height,
                                                 GtkOrientation orientation);
    void        gtk_draw_tab                    (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);
    void        gtk_paint_arrow                 (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 GtkArrowType arrow_type,
                                                 gboolean fill,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);
    void        gtk_paint_box                   (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);
    void        gtk_paint_box_gap               (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height,
                                                 GtkPositionType gap_side,
                                                 gint gap_x,
                                                 gint gap_width);
    void        gtk_paint_check                 (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);
    void        gtk_paint_cross                 (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);
    void        gtk_paint_diamond               (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);
    void        gtk_paint_extension             (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height,
                                                 GtkPositionType gap_side);
    void        gtk_paint_flat_box              (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);
    void        gtk_paint_focus                 (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);
    void        gtk_paint_handle                (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height,
                                                 GtkOrientation orientation);
    void        gtk_paint_hline                 (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 gint x1,
                                                 gint x2,
                                                 gint y);
    void        gtk_paint_option                (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);
    void        gtk_paint_oval                  (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);
    void        gtk_paint_polygon               (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 GdkPoint *points,
                                                 gint npoints,
                                                 gboolean fill);
    void        gtk_paint_ramp                  (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 GtkArrowType arrow_type,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);
    void        gtk_paint_shadow                (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);
    void        gtk_paint_shadow_gap            (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height,
                                                 GtkPositionType gap_side,
                                                 gint gap_x,
                                                 gint gap_width);
    void        gtk_paint_slider                (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height,
                                                 GtkOrientation orientation);
    void        gtk_paint_string                (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 gint x,
                                                 gint y,
                                                 const gchar *string);
    void        gtk_paint_tab                   (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);
    void        gtk_paint_vline                 (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 gint y1,
                                                 gint y2,
                                                 gint x);

## Description

## Details

### GTK_STYLE_NUM_STYLECOLORS()

    #define GTK_STYLE_NUM_STYLECOLORS()	(7 * 5)

### GTK_STYLE_ATTACHED()

    #define GTK_STYLE_ATTACHED(style)	(((GtkStyle*) (style))->attach_count > 0)

`style` : |

### struct GtkStyle

    struct GtkStyle
    {
      GtkStyleClass *klass;

      GdkColor fg[5];
      GdkColor bg[5];
      GdkColor light[5];
      GdkColor dark[5];
      GdkColor mid[5];
      GdkColor text[5];
      GdkColor base[5];

      GdkColor black;
      GdkColor white;
      GdkFont *font;

      GdkGC *fg_gc[5];
      GdkGC *bg_gc[5];
      GdkGC *light_gc[5];
      GdkGC *dark_gc[5];
      GdkGC *mid_gc[5];
      GdkGC *text_gc[5];
      GdkGC *base_gc[5];
      GdkGC *black_gc;
      GdkGC *white_gc;

      GdkPixmap *bg_pixmap[5];

      /* private */

      gint ref_count;
      gint attach_count;

      gint depth;
      GdkColormap *colormap;

      GtkThemeEngine *engine;

      gpointer	  engine_data;

      GtkRcStyle	 *rc_style;	/* the Rc style from which this style
    				 * was created
    				 */
      GSList	 *styles;
    };

### struct GtkStyleClass

    struct GtkStyleClass
    {
      gint xthickness;
      gint ythickness;

      void (*draw_hline)		(GtkStyle		*style,
    				 GdkWindow		*window,
    				 GtkStateType		 state_type,
    				 GdkRectangle		*area,
    				 GtkWidget		*widget,
    				 gchar			*detail,
    				 gint			 x1,
    				 gint			 x2,
    				 gint			 y);
      void (*draw_vline)		(GtkStyle		*style,
    				 GdkWindow		*window,
    				 GtkStateType		 state_type,
    				 GdkRectangle		*area,
    				 GtkWidget		*widget,
    				 gchar			*detail,
    				 gint			 y1,
    				 gint			 y2,
    				 gint			 x);
      void (*draw_shadow)		(GtkStyle		*style,
    				 GdkWindow		*window,
    				 GtkStateType		 state_type,
    				 GtkShadowType		 shadow_type,
    				 GdkRectangle		*area,
    				 GtkWidget		*widget,
    				 gchar			*detail,
    				 gint			 x,
    				 gint			 y,
    				 gint			 width,
    				 gint			 height);
      void (*draw_polygon)		(GtkStyle		*style,
    				 GdkWindow		*window,
    				 GtkStateType		 state_type,
    				 GtkShadowType		 shadow_type,
    				 GdkRectangle		*area,
    				 GtkWidget		*widget,
    				 gchar			*detail,
    				 GdkPoint		*point,
    				 gint			 npoints,
    				 gboolean		 fill);
      void (*draw_arrow)		(GtkStyle		*style,
    				 GdkWindow		*window,
    				 GtkStateType		 state_type,
    				 GtkShadowType		 shadow_type,
    				 GdkRectangle		*area,
    				 GtkWidget		*widget,
    				 gchar			*detail,
    				 GtkArrowType		 arrow_type,
    				 gboolean		 fill,
    				 gint			 x,
    				 gint			 y,
    				 gint			 width,
    				 gint			 height);
      void (*draw_diamond)		(GtkStyle		*style,
    				 GdkWindow		*window,
    				 GtkStateType		 state_type,
    				 GtkShadowType		 shadow_type,
    				 GdkRectangle		*area,
    				 GtkWidget		*widget,
    				 gchar			*detail,
    				 gint			 x,
    				 gint			 y,
    				 gint			 width,
    				 gint			 height);
      void (*draw_oval)		(GtkStyle		*style,
    				 GdkWindow		*window,
    				 GtkStateType		 state_type,
    				 GtkShadowType		 shadow_type,
    				 GdkRectangle		*area,
    				 GtkWidget		*widget,
    				 gchar			*detail,
    				 gint			 x,
    				 gint			 y,
    				 gint			 width,
    				 gint			 height);
      void (*draw_string)		(GtkStyle		*style,
    				 GdkWindow		*window,
    				 GtkStateType		 state_type,
    				 GdkRectangle		*area,
    				 GtkWidget		*widget,
    				 gchar			*detail,
    				 gint			 x,
    				 gint			 y,
    				 const gchar		*string);
      void (*draw_box)		(GtkStyle		*style,
    				 GdkWindow		*window,
    				 GtkStateType		 state_type,
    				 GtkShadowType		 shadow_type,
    				 GdkRectangle		*area,
    				 GtkWidget		*widget,
    				 gchar			*detail,
    				 gint			 x,
    				 gint			 y,
    				 gint			 width,
    				 gint			 height);
      void (*draw_flat_box)		(GtkStyle		*style,
    				 GdkWindow		*window,
    				 GtkStateType		 state_type,
    				 GtkShadowType		 shadow_type,
    				 GdkRectangle		*area,
    				 GtkWidget		*widget,
    				 gchar			*detail,
    				 gint			 x,
    				 gint			 y,
    				 gint			 width,
    				 gint			 height);
      void (*draw_check)		(GtkStyle		*style,
    				 GdkWindow		*window,
    				 GtkStateType		 state_type,
    				 GtkShadowType		 shadow_type,
    				 GdkRectangle		*area,
    				 GtkWidget		*widget,
    				 gchar			*detail,
    				 gint			 x,
    				 gint			 y,
    				 gint			 width,
    				 gint			 height);
      void (*draw_option)		(GtkStyle		*style,
    				 GdkWindow		*window,
    				 GtkStateType		 state_type,
    				 GtkShadowType		 shadow_type,
    				 GdkRectangle		*area,
    				 GtkWidget		*widget,
    				 gchar			*detail,
    				 gint			 x,
    				 gint			 y,
    				 gint			 width,
    				 gint			 height);
      void (*draw_cross)		(GtkStyle		*style,
    				 GdkWindow		*window,
    				 GtkStateType		 state_type,
    				 GtkShadowType		 shadow_type,
    				 GdkRectangle		*area,
    				 GtkWidget		*widget,
    				 gchar			*detail,
    				 gint			 x,
    				 gint			 y,
    				 gint			 width,
    				 gint			 height);
      void (*draw_ramp)		(GtkStyle		*style,
    				 GdkWindow		*window,
    				 GtkStateType		 state_type,
    				 GtkShadowType		 shadow_type,
    				 GdkRectangle		*area,
    				 GtkWidget		*widget,
    				 gchar			*detail,
    				 GtkArrowType		 arrow_type,
    				 gint			 x,
    				 gint			 y,
    				 gint			 width,
    				 gint			 height);
      void (*draw_tab)		(GtkStyle		*style,
    				 GdkWindow		*window,
    				 GtkStateType		 state_type,
    				 GtkShadowType		 shadow_type,
    				 GdkRectangle		*area,
    				 GtkWidget		*widget,
    				 gchar			*detail,
    				 gint			 x,
    				 gint			 y,
    				 gint			 width,
    				 gint			 height);
      void (*draw_shadow_gap)	(GtkStyle		*style,
    				 GdkWindow		*window,
    				 GtkStateType		 state_type,
    				 GtkShadowType		 shadow_type,
    				 GdkRectangle		*area,
    				 GtkWidget		*widget,
    				 gchar			*detail,
    				 gint			 x,
    				 gint			 y,
    				 gint			 width,
    				 gint			 height,
    				 GtkPositionType	 gap_side,
    				 gint			 gap_x,
    				 gint			 gap_width);
      void (*draw_box_gap)		(GtkStyle		*style,
    				 GdkWindow		*window,
    				 GtkStateType		 state_type,
    				 GtkShadowType		 shadow_type,
    				 GdkRectangle		*area,
    				 GtkWidget		*widget,
    				 gchar			*detail,
    				 gint			 x,
    				 gint			 y,
    				 gint			 width,
    				 gint			 height,
    				 GtkPositionType	 gap_side,
    				 gint			 gap_x,
    				 gint			 gap_width);
      void (*draw_extension)	(GtkStyle		*style,
    				 GdkWindow		*window,
    				 GtkStateType		 state_type,
    				 GtkShadowType		 shadow_type,
    				 GdkRectangle		*area,
    				 GtkWidget		*widget,
    				 gchar			*detail,
    				 gint			 x,
    				 gint			 y,
    				 gint			 width,
    				 gint			 height,
    				 GtkPositionType	 gap_side);
      void (*draw_focus)		(GtkStyle		*style,
    				 GdkWindow		*window,
    				 GdkRectangle		*area,
    				 GtkWidget		*widget,
    				 gchar			*detail,
    				 gint			 x,
    				 gint			 y,
    				 gint			 width,
    				 gint			 height);
      void (*draw_slider)		(GtkStyle		*style,
    				 GdkWindow		*window,
    				 GtkStateType		 state_type,
    				 GtkShadowType		 shadow_type,
    				 GdkRectangle		*area,
    				 GtkWidget		*widget,
    				 gchar			*detail,
    				 gint			 x,
    				 gint			 y,
    				 gint			 width,
    				 gint			 height,
    				 GtkOrientation		 orientation);
      void (*draw_handle)		(GtkStyle		*style,
    				 GdkWindow		*window,
    				 GtkStateType		 state_type,
    				 GtkShadowType		 shadow_type,
    				 GdkRectangle		*area,
    				 GtkWidget		*widget,
    				 gchar			*detail,
    				 gint			 x,
    				 gint			 y,
    				 gint			 width,
    				 gint			 height,
    				 GtkOrientation		 orientation);
    };

### gtk_style_new ()

    GtkStyle*   gtk_style_new                   (void);

Returns : |

### gtk_style_copy ()

    GtkStyle*   gtk_style_copy                  (GtkStyle *style);

`style` : |
Returns : |

### gtk_style_attach ()

    GtkStyle*   gtk_style_attach                (GtkStyle *style,
                                                 GdkWindow *window);

`style` : |
`window` : |
Returns : |

### gtk_style_detach ()

    void        gtk_style_detach                (GtkStyle *style);

`style` : |

### gtk_style_ref ()

    GtkStyle*   gtk_style_ref                   (GtkStyle *style);

`style` : |
Returns : |

### gtk_style_unref ()

    void        gtk_style_unref                 (GtkStyle *style);

`style` : |

### gtk_style_set_background ()

    void        gtk_style_set_background        (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type);

`style` : |
`window` : |
`state_type` : |

### gtk_style_apply_default_background ()

    void        gtk_style_apply_default_background
                                                (GtkStyle *style,
                                                 GdkWindow *window,
                                                 gboolean set_bg,
                                                 GtkStateType state_type,
                                                 GdkRectangle *area,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);

`style` : |
`window` : |
`set_bg` : |
`state_type` : |
`area` : |
`x` : |
`y` : |
`width` : |
`height` : |

### gtk_style_apply_default_pixmap()

    #define     gtk_style_apply_default_pixmap(s,gw,st,a,x,y,w,h)

`s` : |
`gw` : |
`st` : |
`a` : |
`x` : |
`y` : |
`w` : |
`h` : |

### gtk_draw_hline ()

    void        gtk_draw_hline                  (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 gint x1,
                                                 gint x2,
                                                 gint y);

`style` : |
`window` : |
`state_type` : |
`x1` : |
`x2` : |
`y` : |

### gtk_draw_vline ()

    void        gtk_draw_vline                  (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 gint y1,
                                                 gint y2,
                                                 gint x);

`style` : |
`window` : |
`state_type` : |
`y1` : |
`y2` : |
`x` : |

### gtk_draw_shadow ()

    void        gtk_draw_shadow                 (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);

`style` : |
`window` : |
`state_type` : |
`shadow_type` : |
`x` : |
`y` : |
`width` : |
`height` : |

### gtk_draw_polygon ()

    void        gtk_draw_polygon                (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GdkPoint *points,
                                                 gint npoints,
                                                 gboolean fill);

`style` : |
`window` : |
`state_type` : |
`shadow_type` : |
`points` : |
`npoints` : |
`fill` : |

### gtk_draw_arrow ()

    void        gtk_draw_arrow                  (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GtkArrowType arrow_type,
                                                 gboolean fill,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);

`style` : |
`window` : |
`state_type` : |
`shadow_type` : |
`arrow_type` : |
`fill` : |
`x` : |
`y` : |
`width` : |
`height` : |

### gtk_draw_diamond ()

    void        gtk_draw_diamond                (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);

`style` : |
`window` : |
`state_type` : |
`shadow_type` : |
`x` : |
`y` : |
`width` : |
`height` : |

### gtk_draw_oval ()

    void        gtk_draw_oval                   (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);

`style` : |
`window` : |
`state_type` : |
`shadow_type` : |
`x` : |
`y` : |
`width` : |
`height` : |

### gtk_draw_string ()

    void        gtk_draw_string                 (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 gint x,
                                                 gint y,
                                                 const gchar *string);

`style` : |
`window` : |
`state_type` : |
`x` : |
`y` : |
`string` : |

### gtk_draw_box ()

    void        gtk_draw_box                    (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);

`style` : |
`window` : |
`state_type` : |
`shadow_type` : |
`x` : |
`y` : |
`width` : |
`height` : |

### gtk_draw_box_gap ()

    void        gtk_draw_box_gap                (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height,
                                                 GtkPositionType gap_side,
                                                 gint gap_x,
                                                 gint gap_width);

`style` : |
`window` : |
`state_type` : |
`shadow_type` : |
`x` : |
`y` : |
`width` : |
`height` : |
`gap_side` : |
`gap_x` : |
`gap_width` : |

### gtk_draw_check ()

    void        gtk_draw_check                  (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);

`style` : |
`window` : |
`state_type` : |
`shadow_type` : |
`x` : |
`y` : |
`width` : |
`height` : |

### gtk_draw_cross ()

    void        gtk_draw_cross                  (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);

`style` : |
`window` : |
`state_type` : |
`shadow_type` : |
`x` : |
`y` : |
`width` : |
`height` : |

### gtk_draw_extension ()

    void        gtk_draw_extension              (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height,
                                                 GtkPositionType gap_side);

`style` : |
`window` : |
`state_type` : |
`shadow_type` : |
`x` : |
`y` : |
`width` : |
`height` : |
`gap_side` : |

### gtk_draw_flat_box ()

    void        gtk_draw_flat_box               (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);

`style` : |
`window` : |
`state_type` : |
`shadow_type` : |
`x` : |
`y` : |
`width` : |
`height` : |

### gtk_draw_focus ()

    void        gtk_draw_focus                  (GtkStyle *style,
                                                 GdkWindow *window,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);

`style` : |
`window` : |
`x` : |
`y` : |
`width` : |
`height` : |

### gtk_draw_handle ()

    void        gtk_draw_handle                 (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height,
                                                 GtkOrientation orientation);

`style` : |
`window` : |
`state_type` : |
`shadow_type` : |
`x` : |
`y` : |
`width` : |
`height` : |
`orientation` : |

### gtk_draw_option ()

    void        gtk_draw_option                 (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);

`style` : |
`window` : |
`state_type` : |
`shadow_type` : |
`x` : |
`y` : |
`width` : |
`height` : |

### gtk_draw_ramp ()

    void        gtk_draw_ramp                   (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GtkArrowType arrow_type,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);

`style` : |
`window` : |
`state_type` : |
`shadow_type` : |
`arrow_type` : |
`x` : |
`y` : |
`width` : |
`height` : |

### gtk_draw_shadow_gap ()

    void        gtk_draw_shadow_gap             (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height,
                                                 GtkPositionType gap_side,
                                                 gint gap_x,
                                                 gint gap_width);

`style` : |
`window` : |
`state_type` : |
`shadow_type` : |
`x` : |
`y` : |
`width` : |
`height` : |
`gap_side` : |
`gap_x` : |
`gap_width` : |

### gtk_draw_slider ()

    void        gtk_draw_slider                 (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height,
                                                 GtkOrientation orientation);

`style` : |
`window` : |
`state_type` : |
`shadow_type` : |
`x` : |
`y` : |
`width` : |
`height` : |
`orientation` : |

### gtk_draw_tab ()

    void        gtk_draw_tab                    (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);

`style` : |
`window` : |
`state_type` : |
`shadow_type` : |
`x` : |
`y` : |
`width` : |
`height` : |

### gtk_paint_arrow ()

    void        gtk_paint_arrow                 (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 GtkArrowType arrow_type,
                                                 gboolean fill,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);

`style` : |
`window` : |
`state_type` : |
`shadow_type` : |
`area` : |
`widget` : |
`detail` : |
`arrow_type` : |
`fill` : |
`x` : |
`y` : |
`width` : |
`height` : |

### gtk_paint_box ()

    void        gtk_paint_box                   (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);

`style` : |
`window` : |
`state_type` : |
`shadow_type` : |
`area` : |
`widget` : |
`detail` : |
`x` : |
`y` : |
`width` : |
`height` : |

### gtk_paint_box_gap ()

    void        gtk_paint_box_gap               (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height,
                                                 GtkPositionType gap_side,
                                                 gint gap_x,
                                                 gint gap_width);

`style` : |
`window` : |
`state_type` : |
`shadow_type` : |
`area` : |
`widget` : |
`detail` : |
`x` : |
`y` : |
`width` : |
`height` : |
`gap_side` : |
`gap_x` : |
`gap_width` : |

### gtk_paint_check ()

    void        gtk_paint_check                 (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);

`style` : |
`window` : |
`state_type` : |
`shadow_type` : |
`area` : |
`widget` : |
`detail` : |
`x` : |
`y` : |
`width` : |
`height` : |

### gtk_paint_cross ()

    void        gtk_paint_cross                 (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);

`style` : |
`window` : |
`state_type` : |
`shadow_type` : |
`area` : |
`widget` : |
`detail` : |
`x` : |
`y` : |
`width` : |
`height` : |

### gtk_paint_diamond ()

    void        gtk_paint_diamond               (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);

`style` : |
`window` : |
`state_type` : |
`shadow_type` : |
`area` : |
`widget` : |
`detail` : |
`x` : |
`y` : |
`width` : |
`height` : |

### gtk_paint_extension ()

    void        gtk_paint_extension             (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height,
                                                 GtkPositionType gap_side);

`style` : |
`window` : |
`state_type` : |
`shadow_type` : |
`area` : |
`widget` : |
`detail` : |
`x` : |
`y` : |
`width` : |
`height` : |
`gap_side` : |

### gtk_paint_flat_box ()

    void        gtk_paint_flat_box              (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);

`style` : |
`window` : |
`state_type` : |
`shadow_type` : |
`area` : |
`widget` : |
`detail` : |
`x` : |
`y` : |
`width` : |
`height` : |

### gtk_paint_focus ()

    void        gtk_paint_focus                 (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);

`style` : |
`window` : |
`area` : |
`widget` : |
`detail` : |
`x` : |
`y` : |
`width` : |
`height` : |

### gtk_paint_handle ()

    void        gtk_paint_handle                (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height,
                                                 GtkOrientation orientation);

`style` : |
`window` : |
`state_type` : |
`shadow_type` : |
`area` : |
`widget` : |
`detail` : |
`x` : |
`y` : |
`width` : |
`height` : |
`orientation` : |

### gtk_paint_hline ()

    void        gtk_paint_hline                 (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 gint x1,
                                                 gint x2,
                                                 gint y);

`style` : |
`window` : |
`state_type` : |
`area` : |
`widget` : |
`detail` : |
`x1` : |
`x2` : |
`y` : |

### gtk_paint_option ()

    void        gtk_paint_option                (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);

`style` : |
`window` : |
`state_type` : |
`shadow_type` : |
`area` : |
`widget` : |
`detail` : |
`x` : |
`y` : |
`width` : |
`height` : |

### gtk_paint_oval ()

    void        gtk_paint_oval                  (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);

`style` : |
`window` : |
`state_type` : |
`shadow_type` : |
`area` : |
`widget` : |
`detail` : |
`x` : |
`y` : |
`width` : |
`height` : |

### gtk_paint_polygon ()

    void        gtk_paint_polygon               (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 GdkPoint *points,
                                                 gint npoints,
                                                 gboolean fill);

`style` : |
`window` : |
`state_type` : |
`shadow_type` : |
`area` : |
`widget` : |
`detail` : |
`points` : |
`npoints` : |
`fill` : |

### gtk_paint_ramp ()

    void        gtk_paint_ramp                  (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 GtkArrowType arrow_type,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);

`style` : |
`window` : |
`state_type` : |
`shadow_type` : |
`area` : |
`widget` : |
`detail` : |
`arrow_type` : |
`x` : |
`y` : |
`width` : |
`height` : |

### gtk_paint_shadow ()

    void        gtk_paint_shadow                (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);

`style` : |
`window` : |
`state_type` : |
`shadow_type` : |
`area` : |
`widget` : |
`detail` : |
`x` : |
`y` : |
`width` : |
`height` : |

### gtk_paint_shadow_gap ()

    void        gtk_paint_shadow_gap            (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height,
                                                 GtkPositionType gap_side,
                                                 gint gap_x,
                                                 gint gap_width);

`style` : |
`window` : |
`state_type` : |
`shadow_type` : |
`area` : |
`widget` : |
`detail` : |
`x` : |
`y` : |
`width` : |
`height` : |
`gap_side` : |
`gap_x` : |
`gap_width` : |

### gtk_paint_slider ()

    void        gtk_paint_slider                (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height,
                                                 GtkOrientation orientation);

`style` : |
`window` : |
`state_type` : |
`shadow_type` : |
`area` : |
`widget` : |
`detail` : |
`x` : |
`y` : |
`width` : |
`height` : |
`orientation` : |

### gtk_paint_string ()

    void        gtk_paint_string                (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 gint x,
                                                 gint y,
                                                 const gchar *string);

`style` : |
`window` : |
`state_type` : |
`area` : |
`widget` : |
`detail` : |
`x` : |
`y` : |
`string` : |

### gtk_paint_tab ()

    void        gtk_paint_tab                   (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GtkShadowType shadow_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 gint x,
                                                 gint y,
                                                 gint width,
                                                 gint height);

`style` : |
`window` : |
`state_type` : |
`shadow_type` : |
`area` : |
`widget` : |
`detail` : |
`x` : |
`y` : |
`width` : |
`height` : |

### gtk_paint_vline ()

    void        gtk_paint_vline                 (GtkStyle *style,
                                                 GdkWindow *window,
                                                 GtkStateType state_type,
                                                 GdkRectangle *area,
                                                 GtkWidget *widget,
                                                 gchar *detail,
                                                 gint y1,
                                                 gint y2,
                                                 gint x);

`style` : |
`window` : |
`state_type` : |
`area` : |
`widget` : |
`detail` : |
`y1` : |
`y2` : |
`x` : |

<<< Previous Page | Home | Up | Next Page >>>
Graphics Contexts | Themes