"Fossies" - the Fresh Open Source Software Archive

Member "screentest-2.0/callbacks.h" (26 Jul 2007, 1461 Bytes) of package /linux/privat/old/screentest-2.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "callbacks.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  *  Screentest - CRT/LCD monitor testing utility.
    3  *  http://screentest.sourceforge.net/
    4  *  Copyright (C) 2001 Jan "Yenya" Kasprzak <kas@fi.muni.cz>
    5  *  Copyright (C) 2006-2007 Tobias Gruetzmacher <tobias@portfolio16.de>
    6  *
    7  *  This program is free software; you can redistribute it and/or modify
    8  *  it under the terms of the GNU General Public License version 2 as
    9  *  published by the Free Software Foundation.
   10  *
   11  *  This program is distributed in the hope that it will be useful,
   12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
   13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   14  *  GNU General Public License for more details.
   15  *
   16  *  You should have received a copy of the GNU General Public License
   17  *  along with this program; if not, write to the Free Software
   18  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
   19  */
   20 
   21 #include <gtk/gtk.h>
   22 
   23 struct test_ops {
   24     void (*init) (GtkWidget * widget);
   25     void (*draw) (GtkWidget * widget);
   26     void (*cycle) (GtkWidget * widget);
   27     void (*close) (GtkWidget * widget);
   28 };
   29 
   30 extern struct test_ops basic_ops, grid_ops, horizontal_ops, vertical_ops,
   31     blink_ops, text_ops;
   32 
   33 enum test_color {
   34     COLOR_WHITE,
   35     COLOR_RED,
   36     COLOR_GREEN,
   37     COLOR_BLUE,
   38     COLOR_CYAN,
   39     COLOR_MAGENTA,
   40     COLOR_YELLOW,
   41     COLOR_BLACK,
   42     COLOR_MAX
   43 };
   44 
   45 #define GRAYS_MAX COLOR_MAX
   46 
   47 extern GdkGC *gc, *backgc;
   48 extern GdkColor fgcolors[];
   49 extern GdkColor *fg_color;
   50 extern GdkColor grays[];