draw-workspace.h

Go to the documentation of this file.
00001 /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
00002 
00003 /* Draw a workspace */
00004 
00005 /* This file should not be modified to depend on other files in
00006  * libwnck or metacity, since it's used in both of them
00007  */
00008 
00009 /* 
00010  * Copyright (C) 2002 Red Hat Inc.
00011  * 
00012  * This program is free software; you can redistribute it and/or
00013  * modify it under the terms of the GNU General Public License as
00014  * published by the Free Software Foundation; either version 2 of the
00015  * License, or (at your option) any later version.
00016  *
00017  * This program is distributed in the hope that it will be useful, but
00018  * WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00020  * General Public License for more details.
00021  * 
00022  * You should have received a copy of the GNU General Public License
00023  * along with this program; if not, write to the Free Software
00024  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00025  * 02111-1307, USA.
00026  */
00027 
00028 #ifndef WNCK_DRAW_WORKSPACE_H
00029 #define WNCK_DRAW_WORKSPACE_H
00030 
00031 #include <gdk/gdkdrawable.h>
00032 #include <gdk-pixbuf/gdk-pixbuf.h>
00033 #include <gtk/gtkwidget.h>
00034 
00035 typedef struct
00036 {
00037   GdkPixbuf *icon;
00038   GdkPixbuf *mini_icon;
00039   int x;
00040   int y;
00041   int width;
00042   int height;
00043 
00044   guint is_active : 1;
00045   
00046 } WnckWindowDisplayInfo;
00047 
00048 void wnck_draw_workspace (GtkWidget                   *widget,
00049                           GdkDrawable                 *drawable,
00050                           int                          x,
00051                           int                          y,
00052                           int                          width,
00053                           int                          height,
00054                           int                          screen_width,
00055                           int                          screen_height,
00056                           GdkPixbuf                   *workspace_background,
00057                           gboolean                     is_active,
00058                           const WnckWindowDisplayInfo *windows,
00059                           int                          n_windows);
00060 
00061 #endif

Generated on Sat Aug 23 22:04:18 2008 for metacity by  doxygen 1.5.5