-
HistogramRedisplay
void HistogramRedisplay( Widget wid );
Invoke the expose method, with NULL as event and region
arguments.
-
Draw_all_lines
void Draw_all_lines( Widget wid, int func );
Draw the manipulating lines in the Histogram widget.
func gives the logical drawing function, typically
GXor (draw) or GXandInverted (erase).
-
HistogramKill
void HistogramKill ( Widget wid, XEvent *event,
String *params, Cardinal *num_params );
Kill the widget tree starting with the ancestor shell.
-
HistogramInitLines
void HistogramInitLines( HistogramWidget wid,
int col, int threshold );
Setup to draw a unit ramp or a threshold line (depending on
whether threshold is set or not) in the Histogram widget,
for the primaries given by col (which may be inclusive or of
DoRed, DoGreen and DoBlue). Then draw all three manipulating
lines (one or more of which has now been changed).
-
HistogramThreshold
void HistogramThreshold( HistogramWidget wid,
int point, int col );
Make treshold manipulating lines for the primaries indicated
by col (which may by inclusive or of DoRed, DoGreen and
DoBlue). Use point as the bin number where the threshold
will be. Draw all three manipulating lines (of which some
may now be thresholds, some are as before).
-
HistogramInsertPoint
void HistogramInsertPoint( HistogramWidget wid,
int point, int val, int col );
Insert a point at point (for a broken line) in the
manipulating primary given by col.
-
HistogramMovePoint
void HistogramMovePoint( HistogramWidget wid,
int point, int val, int col );
Move the line breakpoint (in primaries given by col) closest
to point to new location point (if the closest point is
not too far off).
-
HistogramDeletePoint
void HistogramDeletePoint( HistogramWidget wid,
int point, int val, int col );
Delete line breakpoint closest to point for primaries given
by col. Only delete point if it is not too far off point.
val is not used.
-
HistogramInspect
void HistogramInspect( HistogramWidget wid,
XColor *colortab );
Return in colortab (which must be allocated by the caller)
a colortable which reflects the manipulating primary lines
in the Histogram widget.
-
HistogramGet
void HistogramGet( HistogramWidget wid,
XColor *tab, int *len );
Return in tab the entries in the Histogram widget
manipulating lines which are set (i.e. breakpoints).
the flags attribute of a colortable entry is taken from
the mask attribute of the Histogram widget (inclusive or of
DoRed, DoGreen and DoBlue).
len returns the number of cells set in tab (from cell
number zero to cell number len-1.
-
HistogramSet
void HistogramSet( HistogramWidget wid,
XColor *tab, int len );
Set the manipulating primary lines from tab.