8ae714eeae
2002-02-06 Havoc Pennington <hp@pobox.com> * src/main.c (main): disable custom log handler and fatal mask for now * src/theme.c (meta_draw_op_list_draw): Add META_DRAW_CLIP * src/main.c: load theme, monitor current theme setting * src/prefs.c: add "current theme" setting * src/stack.c (meta_stack_free): don't try to free last_root_children_stacked if it doesn't exist * src/themewidget.c: pluggable GtkMisc subclass to use for menu icons * src/screen.c (meta_screen_manage_all_windows): fix signed/unsigned warning * src/frames.c: port to theme system (meta_frames_style_set): chain up * theme-format.txt: new file * configure.in: add more compiler warnings * src/theme.c: add various stuff needed to get theme parser working. Remove the "spacer" concept from FrameLayout object. Add draw op that references a draw op list. * configure.in: require GTK 1.3.13 * src/Makefile.am: add theme-parser.[hc], implement loading a theme * src/theme.c: add "draw title" and "draw window icon" operations (meta_draw_op_draw): put object_width/object_height in expression environment before computing x/y. Handle out-of-memory when creating pixbufs. Assorted other cleanups.
55 lines
2.2 KiB
C
55 lines
2.2 KiB
C
/* Metacity gradient rendering */
|
|
|
|
/*
|
|
* Copyright (C) 2001 Havoc Pennington, 99% copied from wrlib in
|
|
* WindowMaker, Copyright (C) 1997-2000 Dan Pascu and Alfredo Kojima
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License as
|
|
* published by the Free Software Foundation; either version 2 of the
|
|
* License, or (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful, but
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
* 02111-1307, USA. */
|
|
|
|
#ifndef META_GRADIENT_H
|
|
#define META_GRADIENT_H
|
|
|
|
#include <gdk-pixbuf/gdk-pixbuf.h>
|
|
#include <gdk/gdkcolor.h>
|
|
|
|
typedef enum
|
|
{
|
|
META_GRADIENT_VERTICAL,
|
|
META_GRADIENT_HORIZONTAL,
|
|
META_GRADIENT_DIAGONAL,
|
|
META_GRADIENT_LAST
|
|
} MetaGradientType;
|
|
|
|
GdkPixbuf* meta_gradient_create_simple (int width,
|
|
int height,
|
|
const GdkColor *from,
|
|
const GdkColor *to,
|
|
MetaGradientType style);
|
|
GdkPixbuf* meta_gradient_create_multi (int width,
|
|
int height,
|
|
const GdkColor *colors,
|
|
int n_colors,
|
|
MetaGradientType style);
|
|
GdkPixbuf* meta_gradient_create_interwoven (int width,
|
|
int height,
|
|
const GdkColor colors1[2],
|
|
int thickness1,
|
|
const GdkColor colors2[2],
|
|
int thickness2);
|
|
|
|
|
|
#endif
|