Styles

Name

Styles -- 

Synopsis


#include <gtk/gtk.h>


#define     GTK_STYLE_ATTACHED              (style)
struct      GtkStyle;
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)
GtkIconSet* gtk_style_lookup_icon_set       (GtkStyle *style,
                                             const gchar *stock_id);
GdkPixbuf*  gtk_style_render_icon           (GtkStyle *style,
                                             const GtkIconSource *source,
                                             GtkTextDirection direction,
                                             GtkStateType state,
                                             GtkIconSize size,
                                             GtkWidget *widget,
                                             const gchar *detail);
GdkFont*    gtk_style_get_font              (GtkStyle *style);
void        gtk_style_set_font              (GtkStyle *style,
                                             GdkFont *font);
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_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_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_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_draw_expander               (GtkStyle *style,
                                             GdkWindow *window,
                                             GtkStateType state_type,
                                             gint x,
                                             gint y,
                                             GtkExpanderStyle expander_style);
void        gtk_draw_layout                 (GtkStyle *style,
                                             GdkWindow *window,
                                             GtkStateType state_type,
                                             gboolean use_text,
                                             gint x,
                                             gint y,
                                             PangoLayout *layout);
void        gtk_draw_resize_grip            (GtkStyle *style,
                                             GdkWindow *window,
                                             GtkStateType state_type,
                                             GdkWindowEdge edge,
                                             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,
                                             const 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,
                                             const 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,
                                             const 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,
                                             const 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,
                                             const gchar *detail,
                                             gint x,
                                             gint y,
                                             gint width,
                                             gint height);
void        gtk_paint_focus                 (GtkStyle *style,
                                             GdkWindow *window,
                                             GtkStateType state_type,
                                             GdkRectangle *area,
                                             GtkWidget *widget,
                                             const 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,
                                             const 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,
                                             const 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,
                                             const 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,
                                             const gchar *detail,
                                             GdkPoint *points,
                                             gint npoints,
                                             gboolean fill);
void        gtk_paint_shadow                (GtkStyle *style,
                                             GdkWindow *window,
                                             GtkStateType state_type,
                                             GtkShadowType shadow_type,
                                             GdkRectangle *area,
                                             GtkWidget *widget,
                                             const 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,
                                             const 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,
                                             const 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,
                                             const 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,
                                             const gchar *detail,
                                             gint y1,
                                             gint y2,
                                             gint x);
void        gtk_paint_expander              (GtkStyle *style,
                                             GdkWindow *window,
                                             GtkStateType state_type,
                                             GdkRectangle *area,
                                             GtkWidget *widget,
                                             const gchar *detail,
                                             gint x,
                                             gint y,
                                             GtkExpanderStyle expander_style);
void        gtk_paint_layout                (GtkStyle *style,
                                             GdkWindow *window,
                                             GtkStateType state_type,
                                             gboolean use_text,
                                             GdkRectangle *area,
                                             GtkWidget *widget,
                                             const gchar *detail,
                                             gint x,
                                             gint y,
                                             PangoLayout *layout);
void        gtk_paint_resize_grip           (GtkStyle *style,
                                             GdkWindow *window,
                                             GtkStateType state_type,
                                             GdkRectangle *area,
                                             GtkWidget *widget,
                                             const gchar *detail,
                                             GdkWindowEdge edge,
                                             gint x,
                                             gint y,
                                             gint width,
                                             gint height);

struct      GtkBorder;
GtkBorder*  gtk_border_copy                 (const GtkBorder *border);
void        gtk_border_free                 (GtkBorder *border);

struct      GtkRcProperty;
gboolean    (*GtkRcPropertyParser)          (const GParamSpec *pspec,
                                             const GString *rc_string,
                                             GValue *property_value);


Object Hierarchy


  GObject
   +----GtkStyle

Description

Details

GTK_STYLE_ATTACHED()

#define GTK_STYLE_ATTACHED(style)	(GTK_STYLE (style)->attach_count > 0)

Returns whether the style is attached to a window.


struct GtkStyle

struct GtkStyle {
  
  GdkColor fg[5];
  GdkColor bg[5];
  GdkColor light[5];
  GdkColor dark[5];
  GdkColor mid[5];
  GdkColor text[5];
  GdkColor base[5];
  GdkColor text_aa[5];		/* Halfway between text/base */
  
  GdkColor black;
  GdkColor white;
  PangoFontDescription *font_desc;
  
  gint xthickness;
  gint ythickness;
  
  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 *text_aa_gc[5];
  GdkGC *black_gc;
  GdkGC *white_gc;
  
  GdkPixmap *bg_pixmap[5];

};


gtk_style_new ()

GtkStyle*   gtk_style_new                   (void);

Creates a new GtkStyle.


gtk_style_copy ()

GtkStyle*   gtk_style_copy                  (GtkStyle *style);


gtk_style_attach ()

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

Attaches a style to a window; this process allocates the colors and creates the GC's for the style - it specializes it to a particular visual and colormap. The process may involve the creation of a new style if the style has already been attached to a window with a different style and colormap.


gtk_style_detach ()

void        gtk_style_detach                (GtkStyle *style);


gtk_style_ref ()

GtkStyle*   gtk_style_ref                   (GtkStyle *style);

Warning

gtk_style_ref is deprecated and should not be used in newly-written code.

Deprecated equivalent of g_object_ref().


gtk_style_unref ()

void        gtk_style_unref                 (GtkStyle *style);

Warning

gtk_style_unref is deprecated and should not be used in newly-written code.

Deprecated equivalent of g_object_unref().


gtk_style_set_background ()

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

Sets the background of window to the background color or pixmap specified by style for the given state.


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);


gtk_style_apply_default_pixmap()

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

Warning

gtk_style_apply_default_pixmap is deprecated and should not be used in newly-written code.


gtk_style_lookup_icon_set ()

GtkIconSet* gtk_style_lookup_icon_set       (GtkStyle *style,
                                             const gchar *stock_id);


gtk_style_render_icon ()

GdkPixbuf*  gtk_style_render_icon           (GtkStyle *style,
                                             const GtkIconSource *source,
                                             GtkTextDirection direction,
                                             GtkStateType state,
                                             GtkIconSize size,
                                             GtkWidget *widget,
                                             const gchar *detail);

Renders the icon specified by source at the given size according to the given parameters and returns the result in a pixbuf.


gtk_style_get_font ()

GdkFont*    gtk_style_get_font              (GtkStyle *style);

Warning

gtk_style_get_font is deprecated and should not be used in newly-written code.

Gets the GdkFont to use for the given style. This is meant only as a replacement for direct access to style->font and should not be used in new code. New code should use style->font_desc instead.


gtk_style_set_font ()

void        gtk_style_set_font              (GtkStyle *style,
                                             GdkFont *font);

Warning

gtk_style_set_font is deprecated and should not be used in newly-written code.

Sets the GdkFont to use for a given style. This is meant only as a replacement for direct access to style->font and should not be used in new code. New code should use style->font_desc instead.


gtk_draw_hline ()

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

Warning

gtk_draw_hline is deprecated and should not be used in newly-written code.

Draws a horizontal line from (x1, y) to (x2, y) in window using the given style and state.

This function is deprecated, use gtk_paint_hline() instead.


gtk_draw_vline ()

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

Warning

gtk_draw_vline is deprecated and should not be used in newly-written code.

Draws a vertical line from (x, y1) to (x, y2) in window using the given style and state.

This function is deprecated, use gtk_paint_vline() instead.


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);

Warning

gtk_draw_shadow is deprecated and should not be used in newly-written code.

Draws a shadow around the given rectangle in window using the given style and state and shadow type.

This function is deprecated, use gtk_paint_shadow() instead.


gtk_draw_polygon ()

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

Warning

gtk_draw_polygon is deprecated and should not be used in newly-written code.

Draws a polygon on window with the given parameters.

This function is deprecated, use gtk_paint_polygon() instead.


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);

Warning

gtk_draw_arrow is deprecated and should not be used in newly-written code.

Draws an arrow in the given rectangle on window using the given parameters. arrow_type determines the direction of the arrow.

This function is deprecated, use gtk_paint_arrow() instead.


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);

Warning

gtk_draw_diamond is deprecated and should not be used in newly-written code.

Draws a diamond in the given rectangle on window using the given parameters.

This function is deprecated, use gtk_paint_diamond() instead.


gtk_draw_string ()

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

Warning

gtk_draw_string is deprecated and should not be used in newly-written code.

Draws a text string on window with the given parameters.

This function is deprecated, use gtk_paint_layout() instead.


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);

Warning

gtk_draw_box is deprecated and should not be used in newly-written code.

Draws a box on window with the given parameters.

This function is deprecated, use gtk_paint_box() instead.


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);

Warning

gtk_draw_box_gap is deprecated and should not be used in newly-written code.


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);

Warning

gtk_draw_check is deprecated and should not be used in newly-written code.

Draws a check button indicator in the given rectangle on window with the given parameters.

This function is deprecated, use gtk_paint_check() instead.


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);

Warning

gtk_draw_extension is deprecated and should not be used in newly-written code.


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);

Warning

gtk_draw_flat_box is deprecated and should not be used in newly-written code.

Draws a flat box on window with the given parameters.

This function is deprecated, use gtk_paint_flat_box() instead.


gtk_draw_focus ()

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

Warning

gtk_draw_focus is deprecated and should not be used in newly-written code.

Draws a focus indicator around the given rectangle on window using the given style.

This function is deprecated, use gtk_paint_focus() instead.


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);

Warning

gtk_draw_handle is deprecated and should not be used in newly-written code.


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);

Warning

gtk_draw_option is deprecated and should not be used in newly-written code.

Draws a radio button indicator in the given rectangle on window with the given parameters.

This function is deprecated, use gtk_paint_option() instead.


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);

Warning

gtk_draw_shadow_gap is deprecated and should not be used in newly-written code.


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);

Warning

gtk_draw_slider is deprecated and should not be used in newly-written code.


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);

Warning

gtk_draw_tab is deprecated and should not be used in newly-written code.

Draws an option menu tab (i.e. the up and down pointing arrows) in the given rectangle on window using the given parameters.

This function is deprecated, use gtk_paint_tab() instead.


gtk_draw_expander ()

void        gtk_draw_expander               (GtkStyle *style,
                                             GdkWindow *window,
                                             GtkStateType state_type,
                                             gint x,
                                             gint y,
                                             GtkExpanderStyle expander_style);

Warning

gtk_draw_expander is deprecated and should not be used in newly-written code.


gtk_draw_layout ()

void        gtk_draw_layout                 (GtkStyle *style,
                                             GdkWindow *window,
                                             GtkStateType state_type,
                                             gboolean use_text,
                                             gint x,
                                             gint y,
                                             PangoLayout *layout);

Warning

gtk_draw_layout is deprecated and should not be used in newly-written code.


gtk_draw_resize_grip ()

void        gtk_draw_resize_grip            (GtkStyle *style,
                                             GdkWindow *window,
                                             GtkStateType state_type,
                                             GdkWindowEdge edge,
                                             gint x,
                                             gint y,
                                             gint width,
                                             gint height);

Warning

gtk_draw_resize_grip is deprecated and should not be used in newly-written code.

Draws a resize grip in the given rectangle on window using the given parameters.

This function is deprecated, use gtk_paint_resize_grip() instead.


gtk_paint_arrow ()

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


gtk_paint_box ()

void        gtk_paint_box                   (GtkStyle *style,
                                             GdkWindow *window,
                                             GtkStateType state_type,
                                             GtkShadowType shadow_type,
                                             GdkRectangle *area,
                                             GtkWidget *widget,
                                             const gchar *detail,
                                             gint x,
                                             gint y,
                                             gint width,
                                             gint 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);


gtk_paint_check ()

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


gtk_paint_diamond ()

void        gtk_paint_diamond               (GtkStyle *style,
                                             GdkWindow *window,
                                             GtkStateType state_type,
                                             GtkShadowType shadow_type,
                                             GdkRectangle *area,
                                             GtkWidget *widget,
                                             const gchar *detail,
                                             gint x,
                                             gint y,
                                             gint width,
                                             gint 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);


gtk_paint_flat_box ()

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


gtk_paint_focus ()

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


gtk_paint_handle ()

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


gtk_paint_hline ()

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

Draws a horizontal line from (x1, y) to (x2, y) in window using the given style and state.


gtk_paint_option ()

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


gtk_paint_polygon ()

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


gtk_paint_shadow ()

void        gtk_paint_shadow                (GtkStyle *style,
                                             GdkWindow *window,
                                             GtkStateType state_type,
                                             GtkShadowType shadow_type,
                                             GdkRectangle *area,
                                             GtkWidget *widget,
                                             const gchar *detail,
                                             gint x,
                                             gint y,
                                             gint width,
                                             gint 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);


gtk_paint_slider ()

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


gtk_paint_string ()

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

Warning

gtk_paint_string is deprecated and should not be used in newly-written code.

Draws a text string on window with the given parameters.

This function is deprecated, use gtk_paint_layout() instead.


gtk_paint_tab ()

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


gtk_paint_vline ()

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

Draws a vertical line from (x, y1) to (x, y1) in window using the given style and state.


gtk_paint_expander ()

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


gtk_paint_layout ()

void        gtk_paint_layout                (GtkStyle *style,
                                             GdkWindow *window,
                                             GtkStateType state_type,
                                             gboolean use_text,
                                             GdkRectangle *area,
                                             GtkWidget *widget,
                                             const gchar *detail,
                                             gint x,
                                             gint y,
                                             PangoLayout *layout);


gtk_paint_resize_grip ()

void        gtk_paint_resize_grip           (GtkStyle *style,
                                             GdkWindow *window,
                                             GtkStateType state_type,
                                             GdkRectangle *area,
                                             GtkWidget *widget,
                                             const gchar *detail,
                                             GdkWindowEdge edge,
                                             gint x,
                                             gint y,
                                             gint width,
                                             gint height);


struct GtkBorder

struct GtkBorder
{
  gint left;
  gint right;
  gint top;
  gint bottom;
};


gtk_border_copy ()

GtkBorder*  gtk_border_copy                 (const GtkBorder *border);

Copies a GtkBorder structure.


gtk_border_free ()

void        gtk_border_free                 (GtkBorder *border);

Frees a GtkBorder structure.


struct GtkRcProperty

struct GtkRcProperty
{
  /* quark-ified property identifier like "GtkScrollbar::spacing" */
  GQuark type_name;
  GQuark property_name;

  /* fields similar to GtkSettingsValue */
  gchar *origin;
  GValue value;
};


GtkRcPropertyParser ()

gboolean    (*GtkRcPropertyParser)          (const GParamSpec *pspec,
                                             const GString *rc_string,
                                             GValue *property_value);