Shistogram(3)

NAME

Shistogram - Shistogram Widget (Simple Histogram Widget)

DESCRIPTION

#include "Shistogram.h"

The shistogram widget is an X toolkit compatible widget that displays data in a histogram. The data must be unsigned chars (values 0-255). The widget is autoscaling, and can display a title and statistics.

WIDGET CLASS

shistogramWidgetClass

RESOURCES

XtNforeground
    foreground pixel of the widget, default is XtDefaultForeground.

XtNmargin
    minimum margin around widget (int), default is 5.

XtNselectCallback
    select callback, default is NULL.

XtNxAxis
    show the x axis? (Boolean)

XtNyAxis
    show the y axis? (Boolean)

XtNtitleFont
    font of title (XFontStruct), default is XtDefaultFont

XtNstatisticsFont
    font of statistics labels (XFontStruct), default is XtDefaultFont

XtNaxisFont
    font of axis labels (XFontStruct), default is XtDefaultFont

XtNtitleForeground
    foreground pixel of title label

XtNstatisticsForeground
    foreground pixel of statistics label

XtNaxisForeground
    foreground pixel of axis labels

XtNshowTitle
    show title label? (Boolean)

XtNshowStatistics
    show statistics label? (Boolean)

ACTIONS

select()
    accpets any event

DEFAULT TRANSLATIONS

<Btn1Down>: select()

CALLBACK STRUCTURE

typedef struct _ShistogramCallbackStruct
{
  int reason;
  XEvent *event;
  int minX;
  int maxX;
  int minY;
  int maxY;
  double mean;
  double variance;
  int *count;
  int number;
} ShistogramCallbackStruct, *ShistogramCallbackPtr;

REASONS

SHISTOGRAM_SELECT

CALLABLE FUNCTIONS

void ShistogramSetData(Widget _w, unsigned char *_data, int _count);
    sets the shistogram widget's data.

AUTHOR

John L. Cwikla, 1992
Materials Research Laboratory Center for Computation
University of Illinois, Champaign