1997-11-24 22:37:52 +00:00
|
|
|
/* GTK - The GIMP Toolkit
|
|
|
|
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
1998-02-27 16:31:06 +00:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
1997-11-24 22:37:52 +00:00
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
1998-04-13 02:02:47 +00:00
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
1997-11-24 22:37:52 +00:00
|
|
|
*/
|
1999-02-24 07:37:18 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Modified by the GTK+ Team and others 1997-1999. See the AUTHORS
|
|
|
|
* file for a list of people on the GTK+ Team. See the ChangeLog
|
|
|
|
* files for a list of changes. These files are distributed with
|
|
|
|
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
|
|
|
|
*/
|
|
|
|
|
1997-11-24 22:37:52 +00:00
|
|
|
#ifndef __GTK_STYLE_H__
|
|
|
|
#define __GTK_STYLE_H__
|
|
|
|
|
|
|
|
|
|
|
|
#include <gdk/gdk.h>
|
|
|
|
#include <gtk/gtkenums.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
typedef struct _GtkStyle GtkStyle;
|
|
|
|
typedef struct _GtkStyleClass GtkStyleClass;
|
|
|
|
|
1998-11-06 22:05:02 +00:00
|
|
|
/* Some forward declarations needed to rationalize the header
|
|
|
|
* files.
|
|
|
|
*/
|
|
|
|
typedef struct _GtkThemeEngine GtkThemeEngine;
|
|
|
|
typedef struct _GtkRcStyle GtkRcStyle;
|
|
|
|
|
1999-01-15 18:41:43 +00:00
|
|
|
|
1998-11-06 22:05:02 +00:00
|
|
|
/* We make this forward declaration here, since we pass
|
|
|
|
* GtkWidgt's to the draw functions.
|
|
|
|
*/
|
|
|
|
typedef struct _GtkWidget GtkWidget;
|
|
|
|
|
1999-01-15 18:41:43 +00:00
|
|
|
/* This is used for having dynamic style changing stuff
|
|
|
|
* fg, bg, light, dark, mid, text, base
|
|
|
|
*/
|
|
|
|
#define GTK_STYLE_NUM_STYLECOLORS() (7 * 5)
|
1997-11-24 22:37:52 +00:00
|
|
|
|
1999-01-15 18:41:43 +00:00
|
|
|
#define GTK_STYLE_ATTACHED(style) (((GtkStyle*) (style))->attach_count > 0)
|
1998-02-27 16:31:06 +00:00
|
|
|
|
1997-11-24 22:37:52 +00:00
|
|
|
struct _GtkStyle
|
|
|
|
{
|
1999-01-17 04:50:13 +00:00
|
|
|
GtkStyleClass *klass;
|
|
|
|
|
1997-11-24 22:37:52 +00:00
|
|
|
GdkColor fg[5];
|
|
|
|
GdkColor bg[5];
|
|
|
|
GdkColor light[5];
|
|
|
|
GdkColor dark[5];
|
|
|
|
GdkColor mid[5];
|
|
|
|
GdkColor text[5];
|
|
|
|
GdkColor base[5];
|
1999-01-15 18:41:43 +00:00
|
|
|
|
1997-11-24 22:37:52 +00:00
|
|
|
GdkColor black;
|
|
|
|
GdkColor white;
|
|
|
|
GdkFont *font;
|
1999-01-15 18:41:43 +00:00
|
|
|
|
1997-11-24 22:37:52 +00:00
|
|
|
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;
|
1999-01-15 18:41:43 +00:00
|
|
|
|
1997-11-24 22:37:52 +00:00
|
|
|
GdkPixmap *bg_pixmap[5];
|
1999-01-15 18:41:43 +00:00
|
|
|
|
|
|
|
/* private */
|
|
|
|
|
1997-11-24 22:37:52 +00:00
|
|
|
gint ref_count;
|
|
|
|
gint attach_count;
|
1999-01-15 18:41:43 +00:00
|
|
|
|
1997-11-24 22:37:52 +00:00
|
|
|
gint depth;
|
|
|
|
GdkColormap *colormap;
|
1999-01-15 18:41:43 +00:00
|
|
|
|
1998-11-06 22:05:02 +00:00
|
|
|
GtkThemeEngine *engine;
|
1999-01-15 18:41:43 +00:00
|
|
|
|
|
|
|
gpointer engine_data;
|
|
|
|
|
|
|
|
GtkRcStyle *rc_style; /* the Rc style from which this style
|
|
|
|
* was created
|
|
|
|
*/
|
|
|
|
GSList *styles;
|
1997-11-24 22:37:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _GtkStyleClass
|
|
|
|
{
|
|
|
|
gint xthickness;
|
|
|
|
gint ythickness;
|
1999-01-15 18:41:43 +00:00
|
|
|
|
|
|
|
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);
|
1997-11-24 22:37:52 +00:00
|
|
|
};
|
|
|
|
|
1999-01-15 18:41:43 +00:00
|
|
|
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,
|
1999-01-12 15:12:14 +00:00
|
|
|
GdkWindow *window,
|
|
|
|
GtkStateType state_type);
|
1999-01-15 18:41:43 +00:00
|
|
|
void gtk_style_apply_default_background (GtkStyle *style,
|
|
|
|
GdkWindow *window,
|
1999-01-15 15:54:39 +00:00
|
|
|
gboolean set_bg,
|
1999-01-12 15:12:14 +00:00
|
|
|
GtkStateType state_type,
|
|
|
|
GdkRectangle *area,
|
1999-01-15 18:41:43 +00:00
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
|
|
|
|
1998-02-27 16:31:06 +00:00
|
|
|
void gtk_draw_hline (GtkStyle *style,
|
1997-11-24 22:37:52 +00:00
|
|
|
GdkWindow *window,
|
|
|
|
GtkStateType state_type,
|
1998-02-27 16:31:06 +00:00
|
|
|
gint x1,
|
|
|
|
gint x2,
|
|
|
|
gint y);
|
|
|
|
void gtk_draw_vline (GtkStyle *style,
|
1997-11-24 22:37:52 +00:00
|
|
|
GdkWindow *window,
|
|
|
|
GtkStateType state_type,
|
1998-02-27 16:31:06 +00:00
|
|
|
gint y1,
|
|
|
|
gint y2,
|
|
|
|
gint x);
|
|
|
|
void gtk_draw_shadow (GtkStyle *style,
|
1997-11-24 22:37:52 +00:00
|
|
|
GdkWindow *window,
|
|
|
|
GtkStateType state_type,
|
|
|
|
GtkShadowType shadow_type,
|
1998-02-27 16:31:06 +00:00
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
|
|
|
void gtk_draw_polygon (GtkStyle *style,
|
1997-11-24 22:37:52 +00:00
|
|
|
GdkWindow *window,
|
|
|
|
GtkStateType state_type,
|
|
|
|
GtkShadowType shadow_type,
|
1998-02-27 16:31:06 +00:00
|
|
|
GdkPoint *points,
|
|
|
|
gint npoints,
|
1998-11-06 22:05:02 +00:00
|
|
|
gboolean fill);
|
1998-02-27 16:31:06 +00:00
|
|
|
void gtk_draw_arrow (GtkStyle *style,
|
1997-11-24 22:37:52 +00:00
|
|
|
GdkWindow *window,
|
|
|
|
GtkStateType state_type,
|
|
|
|
GtkShadowType shadow_type,
|
|
|
|
GtkArrowType arrow_type,
|
1998-11-06 22:05:02 +00:00
|
|
|
gboolean fill,
|
1998-02-27 16:31:06 +00:00
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
|
|
|
void gtk_draw_diamond (GtkStyle *style,
|
1997-11-24 22:37:52 +00:00
|
|
|
GdkWindow *window,
|
|
|
|
GtkStateType state_type,
|
|
|
|
GtkShadowType shadow_type,
|
1998-02-27 16:31:06 +00:00
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
|
|
|
void gtk_draw_oval (GtkStyle *style,
|
1997-11-24 22:37:52 +00:00
|
|
|
GdkWindow *window,
|
|
|
|
GtkStateType state_type,
|
|
|
|
GtkShadowType shadow_type,
|
1998-02-27 16:31:06 +00:00
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
|
|
|
void gtk_draw_string (GtkStyle *style,
|
1997-11-24 22:37:52 +00:00
|
|
|
GdkWindow *window,
|
|
|
|
GtkStateType state_type,
|
1998-02-27 16:31:06 +00:00
|
|
|
gint x,
|
|
|
|
gint y,
|
1997-11-24 22:37:52 +00:00
|
|
|
const gchar *string);
|
1998-11-06 22:05:02 +00:00
|
|
|
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_flat_box (GtkStyle *style,
|
|
|
|
GdkWindow *window,
|
|
|
|
GtkStateType state_type,
|
|
|
|
GtkShadowType shadow_type,
|
1999-01-15 18:41:43 +00:00
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
|
|
|
void gtk_draw_check (GtkStyle *style,
|
1998-11-06 22:05:02 +00:00
|
|
|
GdkWindow *window,
|
|
|
|
GtkStateType state_type,
|
|
|
|
GtkShadowType shadow_type,
|
1999-01-15 18:41:43 +00:00
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
|
|
|
void gtk_draw_option (GtkStyle *style,
|
1998-11-06 22:05:02 +00:00
|
|
|
GdkWindow *window,
|
|
|
|
GtkStateType state_type,
|
|
|
|
GtkShadowType shadow_type,
|
1999-01-15 18:41:43 +00:00
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
|
|
|
void gtk_draw_cross (GtkStyle *style,
|
1998-11-06 22:05:02 +00:00
|
|
|
GdkWindow *window,
|
|
|
|
GtkStateType state_type,
|
|
|
|
GtkShadowType shadow_type,
|
1999-01-15 18:41:43 +00:00
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
|
|
|
void gtk_draw_ramp (GtkStyle *style,
|
1998-11-06 22:05:02 +00:00
|
|
|
GdkWindow *window,
|
|
|
|
GtkStateType state_type,
|
|
|
|
GtkShadowType shadow_type,
|
|
|
|
GtkArrowType arrow_type,
|
1999-01-15 18:41:43 +00:00
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
|
|
|
void gtk_draw_tab (GtkStyle *style,
|
1998-11-06 22:05:02 +00:00
|
|
|
GdkWindow *window,
|
|
|
|
GtkStateType state_type,
|
|
|
|
GtkShadowType shadow_type,
|
1999-01-15 18:41:43 +00:00
|
|
|
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,
|
1998-11-06 22:05:02 +00:00
|
|
|
GtkPositionType gap_side,
|
1999-01-15 18:41:43 +00:00
|
|
|
gint gap_x,
|
|
|
|
gint gap_width);
|
|
|
|
void gtk_draw_box_gap (GtkStyle *style,
|
1998-11-06 22:05:02 +00:00
|
|
|
GdkWindow *window,
|
|
|
|
GtkStateType state_type,
|
|
|
|
GtkShadowType shadow_type,
|
1999-01-15 18:41:43 +00:00
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height,
|
1998-11-06 22:05:02 +00:00
|
|
|
GtkPositionType gap_side,
|
1999-01-15 18:41:43 +00:00
|
|
|
gint gap_x,
|
|
|
|
gint gap_width);
|
|
|
|
void gtk_draw_extension (GtkStyle *style,
|
|
|
|
GdkWindow *window,
|
|
|
|
GtkStateType state_type,
|
|
|
|
GtkShadowType shadow_type,
|
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height,
|
1998-11-06 22:05:02 +00:00
|
|
|
GtkPositionType gap_side);
|
1999-01-15 18:41:43 +00:00
|
|
|
void gtk_draw_focus (GtkStyle *style,
|
1998-11-06 22:05:02 +00:00
|
|
|
GdkWindow *window,
|
1999-01-15 18:41:43 +00:00
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
|
|
|
void gtk_draw_slider (GtkStyle *style,
|
1998-11-06 22:05:02 +00:00
|
|
|
GdkWindow *window,
|
|
|
|
GtkStateType state_type,
|
|
|
|
GtkShadowType shadow_type,
|
1999-01-15 18:41:43 +00:00
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height,
|
1998-11-06 22:05:02 +00:00
|
|
|
GtkOrientation orientation);
|
1999-01-15 18:41:43 +00:00
|
|
|
void gtk_draw_handle (GtkStyle *style,
|
1998-11-06 22:05:02 +00:00
|
|
|
GdkWindow *window,
|
|
|
|
GtkStateType state_type,
|
|
|
|
GtkShadowType shadow_type,
|
1999-01-15 18:41:43 +00:00
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height,
|
1998-11-06 22:05:02 +00:00
|
|
|
GtkOrientation orientation);
|
1997-11-24 22:37:52 +00:00
|
|
|
|
1998-11-06 22:05:02 +00:00
|
|
|
void gtk_paint_hline (GtkStyle *style,
|
|
|
|
GdkWindow *window,
|
|
|
|
GtkStateType state_type,
|
|
|
|
GdkRectangle *area,
|
|
|
|
GtkWidget *widget,
|
1999-01-15 18:41:43 +00:00
|
|
|
gchar *detail,
|
1998-11-06 22:05:02 +00:00
|
|
|
gint x1,
|
|
|
|
gint x2,
|
|
|
|
gint y);
|
|
|
|
void gtk_paint_vline (GtkStyle *style,
|
|
|
|
GdkWindow *window,
|
|
|
|
GtkStateType state_type,
|
|
|
|
GdkRectangle *area,
|
|
|
|
GtkWidget *widget,
|
1999-01-15 18:41:43 +00:00
|
|
|
gchar *detail,
|
1998-11-06 22:05:02 +00:00
|
|
|
gint y1,
|
|
|
|
gint y2,
|
|
|
|
gint x);
|
|
|
|
void gtk_paint_shadow (GtkStyle *style,
|
|
|
|
GdkWindow *window,
|
|
|
|
GtkStateType state_type,
|
|
|
|
GtkShadowType shadow_type,
|
|
|
|
GdkRectangle *area,
|
|
|
|
GtkWidget *widget,
|
1999-01-15 18:41:43 +00:00
|
|
|
gchar *detail,
|
1998-11-06 22:05:02 +00:00
|
|
|
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,
|
1999-01-15 18:41:43 +00:00
|
|
|
gchar *detail,
|
1998-11-06 22:05:02 +00:00
|
|
|
GdkPoint *points,
|
|
|
|
gint npoints,
|
|
|
|
gboolean fill);
|
|
|
|
void gtk_paint_arrow (GtkStyle *style,
|
|
|
|
GdkWindow *window,
|
|
|
|
GtkStateType state_type,
|
|
|
|
GtkShadowType shadow_type,
|
|
|
|
GdkRectangle *area,
|
|
|
|
GtkWidget *widget,
|
1999-01-15 18:41:43 +00:00
|
|
|
gchar *detail,
|
1998-11-06 22:05:02 +00:00
|
|
|
GtkArrowType arrow_type,
|
|
|
|
gboolean fill,
|
|
|
|
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,
|
1999-01-15 18:41:43 +00:00
|
|
|
gchar *detail,
|
1998-11-06 22:05:02 +00:00
|
|
|
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,
|
1999-01-15 18:41:43 +00:00
|
|
|
gchar *detail,
|
1998-11-06 22:05:02 +00:00
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
|
|
|
void gtk_paint_string (GtkStyle *style,
|
|
|
|
GdkWindow *window,
|
|
|
|
GtkStateType state_type,
|
|
|
|
GdkRectangle *area,
|
|
|
|
GtkWidget *widget,
|
1999-01-15 18:41:43 +00:00
|
|
|
gchar *detail,
|
1998-11-06 22:05:02 +00:00
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
const gchar *string);
|
|
|
|
void gtk_paint_box (GtkStyle *style,
|
|
|
|
GdkWindow *window,
|
|
|
|
GtkStateType state_type,
|
|
|
|
GtkShadowType shadow_type,
|
|
|
|
GdkRectangle *area,
|
|
|
|
GtkWidget *widget,
|
1999-01-15 18:41:43 +00:00
|
|
|
gchar *detail,
|
1998-11-06 22:05:02 +00:00
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
|
|
|
void gtk_paint_flat_box (GtkStyle *style,
|
|
|
|
GdkWindow *window,
|
1999-01-15 18:41:43 +00:00
|
|
|
GtkStateType state_type,
|
|
|
|
GtkShadowType shadow_type,
|
1998-11-06 22:05:02 +00:00
|
|
|
GdkRectangle *area,
|
|
|
|
GtkWidget *widget,
|
1999-01-15 18:41:43 +00:00
|
|
|
gchar *detail,
|
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
1998-11-06 22:05:02 +00:00
|
|
|
void gtk_paint_check (GtkStyle *style,
|
|
|
|
GdkWindow *window,
|
|
|
|
GtkStateType state_type,
|
|
|
|
GtkShadowType shadow_type,
|
|
|
|
GdkRectangle *area,
|
|
|
|
GtkWidget *widget,
|
1999-01-15 18:41:43 +00:00
|
|
|
gchar *detail,
|
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
1998-11-06 22:05:02 +00:00
|
|
|
void gtk_paint_option (GtkStyle *style,
|
|
|
|
GdkWindow *window,
|
|
|
|
GtkStateType state_type,
|
|
|
|
GtkShadowType shadow_type,
|
|
|
|
GdkRectangle *area,
|
|
|
|
GtkWidget *widget,
|
1999-01-15 18:41:43 +00:00
|
|
|
gchar *detail,
|
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
1998-11-06 22:05:02 +00:00
|
|
|
void gtk_paint_cross (GtkStyle *style,
|
|
|
|
GdkWindow *window,
|
|
|
|
GtkStateType state_type,
|
|
|
|
GtkShadowType shadow_type,
|
|
|
|
GdkRectangle *area,
|
|
|
|
GtkWidget *widget,
|
1999-01-15 18:41:43 +00:00
|
|
|
gchar *detail,
|
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
1998-11-06 22:05:02 +00:00
|
|
|
void gtk_paint_ramp (GtkStyle *style,
|
|
|
|
GdkWindow *window,
|
|
|
|
GtkStateType state_type,
|
|
|
|
GtkShadowType shadow_type,
|
|
|
|
GdkRectangle *area,
|
|
|
|
GtkWidget *widget,
|
1999-01-15 18:41:43 +00:00
|
|
|
gchar *detail,
|
1998-11-06 22:05:02 +00:00
|
|
|
GtkArrowType arrow_type,
|
1999-01-15 18:41:43 +00:00
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
1998-11-06 22:05:02 +00:00
|
|
|
void gtk_paint_tab (GtkStyle *style,
|
|
|
|
GdkWindow *window,
|
|
|
|
GtkStateType state_type,
|
|
|
|
GtkShadowType shadow_type,
|
|
|
|
GdkRectangle *area,
|
|
|
|
GtkWidget *widget,
|
1999-01-15 18:41:43 +00:00
|
|
|
gchar *detail,
|
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
|
|
|
void gtk_paint_shadow_gap (GtkStyle *style,
|
|
|
|
GdkWindow *window,
|
|
|
|
GtkStateType state_type,
|
1998-11-06 22:05:02 +00:00
|
|
|
GtkShadowType shadow_type,
|
1999-01-15 18:41:43 +00:00
|
|
|
GdkRectangle *area,
|
|
|
|
GtkWidget *widget,
|
|
|
|
gchar *detail,
|
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height,
|
1998-11-06 22:05:02 +00:00
|
|
|
GtkPositionType gap_side,
|
1999-01-15 18:41:43 +00:00
|
|
|
gint gap_x,
|
|
|
|
gint gap_width);
|
1998-11-06 22:05:02 +00:00
|
|
|
void gtk_paint_box_gap (GtkStyle *style,
|
|
|
|
GdkWindow *window,
|
1999-01-15 18:41:43 +00:00
|
|
|
GtkStateType state_type,
|
|
|
|
GtkShadowType shadow_type,
|
1998-11-06 22:05:02 +00:00
|
|
|
GdkRectangle *area,
|
|
|
|
GtkWidget *widget,
|
1999-01-15 18:41:43 +00:00
|
|
|
gchar *detail,
|
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height,
|
1998-11-06 22:05:02 +00:00
|
|
|
GtkPositionType gap_side,
|
1999-01-15 18:41:43 +00:00
|
|
|
gint gap_x,
|
|
|
|
gint gap_width);
|
|
|
|
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,
|
1998-11-06 22:05:02 +00:00
|
|
|
GtkPositionType gap_side);
|
|
|
|
void gtk_paint_focus (GtkStyle *style,
|
|
|
|
GdkWindow *window,
|
|
|
|
GdkRectangle *area,
|
|
|
|
GtkWidget *widget,
|
1999-01-15 18:41:43 +00:00
|
|
|
gchar *detail,
|
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
1998-11-06 22:05:02 +00:00
|
|
|
void gtk_paint_slider (GtkStyle *style,
|
|
|
|
GdkWindow *window,
|
|
|
|
GtkStateType state_type,
|
|
|
|
GtkShadowType shadow_type,
|
|
|
|
GdkRectangle *area,
|
|
|
|
GtkWidget *widget,
|
1999-01-15 18:41:43 +00:00
|
|
|
gchar *detail,
|
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height,
|
1998-11-06 22:05:02 +00:00
|
|
|
GtkOrientation orientation);
|
|
|
|
void gtk_paint_handle (GtkStyle *style,
|
|
|
|
GdkWindow *window,
|
|
|
|
GtkStateType state_type,
|
|
|
|
GtkShadowType shadow_type,
|
|
|
|
GdkRectangle *area,
|
|
|
|
GtkWidget *widget,
|
1999-01-15 18:41:43 +00:00
|
|
|
gchar *detail,
|
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height,
|
1998-11-06 22:05:02 +00:00
|
|
|
GtkOrientation orientation);
|
1999-01-12 19:40:21 +00:00
|
|
|
|
|
|
|
|
1997-11-24 22:37:52 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* __GTK_STYLE_H__ */
|