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_FixedPlotteragar integer plot widget

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

AG_FixedPlotter traces lines or dots over recorded integer values along a horizontal axis. Originally designed to monitor frame rates, it can be useful for performance monitoring in general.

Note: For general-purpose and more advanced plotting functions, M_Plotter(3) is available as part of the ag_math library.

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

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

The () 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 container.
AG_FIXED_PLOTTER_VFILL
Expand vertically in parent container.
AG_FIXED_PLOTTER_EXPAND
Shorthand for AG_FIXED_PLOTTER_HFILL | .

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


void
(AG_FixedPlotterCurve *curve, AG_FixedPlotterValue val);

The () 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 () 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.

December 21, 2022 Agar 1.7

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.