view glib/null.c @ 0:5242703e91d3 tip

Initial checkin for AIM92 aimR8.2 (last updated May 1997).
author tomwalters
date Fri, 20 May 2011 15:19:45 +0100
parents
children
line wrap: on
line source
/*
    null.c
    ======

    dummpy null window.


    Copyright (c), 1989  The Medical Research Council, Applied Psychology Unit.


    Author  : John Holdsworth
    Written : 22nd March, 1989.

    Edited  :




*/

#include <stdio.h>
#include <malloc.h>

#include "windows.h"

#ifndef lint
static char *sccs_id = "@(#)null.c	1.1     J. Holdsworth (MRC-APU)  11/8/90" ;
#endif

static short null__x( info )
WindowObject info ;
{
    return( 0 ) ;
}

static short null__y( info )
WindowObject info ;
{
    return( 0 ) ;
}

static short null__width( info )
WindowObject info ;
{
    return( 1 ) ;
}

static short null__height( info )
WindowObject info ;
{
    return( 1 ) ;
}

static void null__draw( info, xs, ys, points )
WindowObject info ;
short xs[], ys[] ;
int points ;
{
    return ;
}

static void null__clear( info )
WindowObject info ;
{
    return ;
}

static void null__close( info )
WindowObject info ;
{
    return ;
}

static int null__store( info )
WindowObject info ;
{
    return ( 1 ) ;
}

static void null__recall( info, which )
WindowObject info ;
int which ;
{
#ifdef lint
    info, which ;
#endif
    return ;
}

static void null__fillRow( info, row, pixels, width )
WindowObject info ;
int row, *pixels, width ;
{
#ifdef lint
    info, row, pixels, width ;
#endif
    return ;
}

static void null__fillCol( info, col, input, min, max, match, height )
WindowObject info ;
int col ;
short *input ;
int min, max, *match, height ;
{
    return ;
}

static void null__function( info, ys, segment, skip, offset, yspan, start, points )
WindowObject info ;
short *ys ;
int segment, skip ;
double offset, yspan ;
int start, points ;
{
    return ;
}

static int null__read( info, fp, which )
WindowObject info ;
FILE *fp ;
int which ;
{
#ifdef lint
    info ; fp ; which ;
#endif
    return ;
}

static void null__write( info, fp )
WindowObject info ;
FILE *fp ;
{
#ifdef lint
    info ; fp ;
#endif
    return ;
}

static char null__pause( info )
WindowObject info ;
{
#ifdef lint
    info ;
#endif
    return ;
}


static void null__axes( info, title, xmin, xmax, xtitle, ymin, ymax, ytitle )
WindowObject info ;
char *title ;
double xmin, xmax ;
char *xtitle ;
double ymin, ymax ;
char *ytitle ;
{
    return ;
}

static void null__marker( info, label, p, points )
WindowObject info ;
char *label ;
int p, points ;
{
    return ;
}

static int null__special( info, code, data )
WindowObject info ;
int code ;
char *data ;
{
    return 0 ;
}

static windowEntries entries = { null__x, null__y, null__width, null__height, null__draw, null__clear, null__close,
				     null__store, null__recall, null__fillRow, null__fillCol,
				     null__function, null__read, null__write,
				     null__pause, null__axes, null__marker, null__special } ;
static struct _window_object dummy_obj = { &entries, { 0 } } ;
WindowObject NullWindowObject = &dummy_obj ;

WindowObject newNullWindow()
{
    return ( NullWindowObject ) ;
}