diff options
author | Havoc Pennington <hp@pobox.com> | 2002-01-28 05:16:04 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2002-01-28 05:16:04 +0000 |
commit | 838d999d86e6b5d4aab753b40c44b4b2340f4f42 (patch) | |
tree | 3bce5c19d4230fef3e063dd212883e2626f06128 /src/theme.h | |
parent | 8ddeb4f953148473978443f94e6cf14e2d078f1e (diff) | |
download | metacity-838d999d86e6b5d4aab753b40c44b4b2340f4f42.tar.gz metacity-838d999d86e6b5d4aab753b40c44b4b2340f4f42.tar.bz2 |
implement (meta_texture_spec_draw): implement shape spec and blank texture
2002-01-27 Havoc Pennington <hp@pobox.com>
* src/theme.c (meta_shape_spec_draw): implement
(meta_texture_spec_draw): implement shape spec and blank
texture support
(meta_frame_style_draw): implement
Diffstat (limited to 'src/theme.h')
-rw-r--r-- | src/theme.h | 50 |
1 files changed, 42 insertions, 8 deletions
diff --git a/src/theme.h b/src/theme.h index 4bd2581..6b87c81 100644 --- a/src/theme.h +++ b/src/theme.h @@ -100,6 +100,11 @@ struct _MetaFrameGeometry GdkRectangle spacer_rect; GdkRectangle menu_rect; GdkRectangle title_rect; + + int left_titlebar_edge; + int right_titlebar_edge; + int top_titlebar_edge; + int bottom_titlebar_edge; }; @@ -199,6 +204,7 @@ struct _MetaShapeSpec GtkStateType state; GtkShadowType shadow; GtkArrowType arrow; + gboolean filled; char *x; char *y; char *width; @@ -235,7 +241,9 @@ typedef enum META_TEXTURE_SOLID, META_TEXTURE_GRADIENT, META_TEXTURE_IMAGE, - META_TEXTURE_COMPOSITE + META_TEXTURE_COMPOSITE, + META_TEXTURE_BLANK, + META_TEXTURE_SHAPE_LIST } MetaTextureType; struct _MetaTextureSpec @@ -258,14 +266,19 @@ struct _MetaTextureSpec MetaTextureSpec *foreground; double alpha; } composite; + struct { + int dummy; + } blank; + struct { + MetaShapeSpec **shape_specs; + int n_specs; + } shape_list; } data; }; typedef enum { - META_BUTTON_STATE_UNFOCUSED, - META_BUTTON_STATE_FOCUSED, - META_BUTTON_STATE_INSENSITIVE, + META_BUTTON_STATE_NORMAL, META_BUTTON_STATE_PRESSED, META_BUTTON_STATE_PRELIGHT, META_BUTTON_STATE_LAST @@ -453,10 +466,20 @@ typedef enum META_POSITION_EXPR_ERROR_FAILED } MetaPositionExprError; -gboolean meta_parse_position_expression (const char *expr, - int x, int y, int width, int height, - int *x_return, int *y_return, - GError **err); +gboolean meta_parse_position_expression (const char *expr, + int x, + int y, + int width, + int height, + int *x_return, + int *y_return, + GError **err); +gboolean meta_parse_size_expression (const char *expr, + int width, + int height, + int *val_return, + GError **err); + MetaColorSpec* meta_color_spec_new (MetaColorSpecType type); void meta_color_spec_free (MetaColorSpec *spec); @@ -513,6 +536,17 @@ MetaFrameStyle* meta_frame_style_new (MetaFrameStyle *parent); void meta_frame_style_ref (MetaFrameStyle *style); void meta_frame_style_unref (MetaFrameStyle *style); +void meta_frame_style_draw (MetaFrameStyle *style, + GtkWidget *widget, + GdkDrawable *drawable, + const GdkRectangle *clip, + MetaFrameFlags flags, + int client_width, + int client_height, + PangoLayout *title_layout, + int text_height, + MetaButtonState button_states[META_BUTTON_TYPE_LAST]); + MetaFrameStyleSet* meta_frame_style_set_new (MetaFrameStyleSet *parent); void meta_frame_style_set_ref (MetaFrameStyleSet *style_set); void meta_frame_style_set_unref (MetaFrameStyleSet *style_set); |