diff options
Diffstat (limited to 'libnautilus-extensions/nautilus-smooth-widget.h')
-rw-r--r-- | libnautilus-extensions/nautilus-smooth-widget.h | 121 |
1 files changed, 0 insertions, 121 deletions
diff --git a/libnautilus-extensions/nautilus-smooth-widget.h b/libnautilus-extensions/nautilus-smooth-widget.h deleted file mode 100644 index d92fc0515..000000000 --- a/libnautilus-extensions/nautilus-smooth-widget.h +++ /dev/null @@ -1,121 +0,0 @@ -/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ - -/* nautilus-smooth-widget.h - Functions and types shared by smooth widgets. - - Copyright (C) 2000 Eazel, Inc. - - The Gnome 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. - - The Gnome Library 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 - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public - License along with the Gnome Library; see the file COPYING.LIB. If not, - write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. - - Authors: Ramiro Estrugo <ramiro@eazel.com> -*/ - -#ifndef NAUTILUS_SMOOTH_WIDGET_H -#define NAUTILUS_SMOOTH_WIDGET_H - -#include <libgnome/gnome-defs.h> -#include <gtk/gtkwidget.h> -#include <libnautilus-extensions/nautilus-art-extensions.h> -#include <libnautilus-extensions/nautilus-gdk-pixbuf-extensions.h> - -BEGIN_GNOME_DECLS - -/* See nautilus_smooth_widget_get_tile_bounds() */ -#define NAUTILUS_SMOOTH_TILE_EXTENT_FULL -1 -#define NAUTILUS_SMOOTH_TILE_EXTENT_ONE_STEP -2 - -/* See nautilus_smooth_widget_paint() */ -typedef enum -{ - NAUTILUS_SMOOTH_BACKGROUND_GTK, - NAUTILUS_SMOOTH_BACKGROUND_CALLBACK, - NAUTILUS_SMOOTH_BACKGROUND_SOLID_COLOR -} NautilusSmoothBackgroundMode; - -/* See nautilus_smooth_widget_paint() */ -typedef enum -{ - NAUTILUS_SMOOTH_TILE_SELF, - NAUTILUS_SMOOTH_TILE_ANCESTOR -} NautilusSmoothTileMode; - -/* Prototypes for shared methods. We declare these here so that - * the signatures in the smooth widget's class struture dont - * get out of whack. - */ -typedef void (* NautilusSmoothWidgetDrawBackground) (GtkWidget *widget, - GdkPixbuf *buffer, - const ArtIRect *area); -typedef void (* NautilusSmoothWidgetSetIsSmooth) (GtkWidget *widget, - gboolean is_smooth); - - -/* Callback for nautilus_smooth_widget_paint() used to render the - * smooth widget's content when not in smooth mode. - */ -typedef void (* NautilusSmoothPaintOpaqueCallback) (GtkWidget *widget, - GdkDrawable *destination_drawable, - GdkGC *gc, - int source_x, - int source_y, - const ArtIRect *area, - gpointer callback_data); - -/* Callback for nautilus_smooth_widget_paint() used to composite the - * smooth widget's content when in smooth mode. - */ -typedef void (* NautilusSmoothCompositeCallback) (GtkWidget *widget, - GdkPixbuf *destination_pixbuf, - int source_x, - int source_y, - const ArtIRect *area, - int opacity, - gpointer callback_data); - -void nautilus_smooth_widget_register (GtkWidget *widget); -void nautilus_smooth_widget_paint (GtkWidget *widget, - GdkGC *gc, - gboolean is_smooth, - NautilusSmoothBackgroundMode background_mode, - guint32 solid_background_color, - const GdkPixbuf *tile_pixbuf, - const ArtIRect *tile_bounds, - int tile_opacity, - NautilusSmoothTileMode tile_mode_vertical, - NautilusSmoothTileMode tile_mode_horizontal, - const ArtIRect *content_bounds, - int content_opacity, - const ArtIRect *dirty_area, - NautilusSmoothPaintOpaqueCallback paint_callback, - NautilusSmoothCompositeCallback composite_callback, - gpointer callback_data); -ArtIRect nautilus_smooth_widget_get_tile_bounds (const GtkWidget *widget, - const GdkPixbuf *tile_pixbuf, - int tile_width, - int tile_height); -NautilusDimensions nautilus_smooth_widget_get_preferred_dimensions (const GtkWidget *widget, - const NautilusDimensions *content_dimensions, - const NautilusDimensions *tile_dimensions, - int tile_width, - int tile_height); -void nautilus_smooth_widget_register_type (GtkType type); - -void nautilus_smooth_widget_global_set_is_smooth (gboolean is_smooth); - -END_GNOME_DECLS - -#endif /* NAUTILUS_SMOOTH_WIDGET_H */ - - |