GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
AG_FIXED_PLOTTER(3) FreeBSD Library Functions Manual AG_FIXED_PLOTTER(3)

AG_FixedPlotter
agar integer plot widget

#include <agar/core.h>
#include <agar/gui.h>

The AG_FixedPlotter widget is a scrollable plotter widget that accepts integer values. It is mainly designed for displaying performance measurements.

Note: A much more featureful floating-point plotting widget is available as M_Plotter(3) in the ag_math library.

AG_Object(3) -> AG_Widget(3) -> AG_FixedPlotter.

AG_FixedPlotter *
AG_FixedPlotterNew(AG_Widget *parent, enum ag_fixed_plotter_type type, Uint flags);

The AG_FixedPlotterNew() function allocates, initializes, and attaches a new AG_FixedPlotter widget. The type argument is one of:

enum ag_fixed_plotter_type {
	AG_FIXED_PLOTTER_POINTS,   /* Dots */
	AG_FIXED_PLOTTER_LINES     /* Lines */
} type;

Acceptable flags include:

AG_FIXED_PLOTTER_SCROLL
Always scroll to the end of the plot if it is not visible.
AG_FIXED_PLOTTER_XAXIS
Display the X-axis line.
AG_FIXED_PLOTTER_HFILL
Expand horizontally in parent (equivalent to invoking AG_ExpandHoriz(3)).
AG_FIXED_PLOTTER_VFILL
Expand vertically in parent (equivalent to invoking AG_ExpandVert(3)).
AG_FIXED_PLOTTER_EXPAND
Shorthand for AG_FIXED_PLOTTER_HFILL|AG_FIXED_PLOTTER_VFILL.

AG_FixedPlotterCurve *
AG_FixedPlotterCurve(AG_FixedPlotter *fpl, const char *name, Uint8 r, Uint8 g, Uint8 b, Uint32 limit);


void
AG_FixedPlotterDatum(AG_FixedPlotterCurve *curve, AG_FixedPlotterValue val);

The AG_FixedPlotterCurve() function creates a new curve into fpl. The r, g, b triplet composes a color to visually identify the item. limit is the maximum number of points (if 0, the maximum is implicitely INT_MAX - 1).

The AG_FixedPlotterDatum() function adds a value val to the specified curve.

The AG_FixedPlotter widget does not generate any event.

For the AG_FixedPlotter object:
enum ag_fixed_plotter_type type
Drawing method, initially set by AG_FixedPlotterNew().

AG_Intro(3), AG_Widget(3), AG_Window(3)

The AG_FixedPlotter widget first appeared in Agar 1.0.
August 20, 2002 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.