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
M_MATVIEW(3) FreeBSD Library Functions Manual M_MATVIEW(3)

M_MatviewAgar-Math matrix viewer widget

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

The M_Matview widget displays the contents of a M_Matrix(3), either numerically or graphically.

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

M_Matview *
(AG_Widget *parent, M_Matrix *M, Uint flags);


void
(M_Matview *mv, const char *text, Uint m, Uint n);


void
(M_Matview *mv, M_Matrix *M);


void
(M_Matview *mv, enum m_matview_mode mode);


void
(M_Matview *mv, const char *fmt);

The () function allocates, initializes, and attaches a new M_Matview widget displaying the matrix M (if not NULL). Acceptable flags include:

M_MATVIEW_HFILL
Expand horizontally in parent container.
M_MATVIEW_VFILL
Expand vertically in parent container.
M_MATVIEW_EXPAND
Shorthand for M_MATVIEW_HFILL | .

() sets an initial preferred widget size such that the widget can display m by n cells containing the specified text string.

() changes the matrix currently associated with the widget.

() selects the display mode, where mode can be:

enum m_matview_mode {
	M_MATVIEW_GREYSCALE,	/* Graphical rendering (greyscale) */
	M_MATVIEW_NUMERICAL	/* Numerical display */
};

() configures the numerical format (i.e., the printf(3) format string) that will be used to display element values.

The M_Matview widget does not generate any event.

For the M_Matview object:

int hSpacing
Horizontal spacing between entries
int vSpacing
Vertical spacing between entries
int xOffs
X display offset (bound to scrollbar)
int yOffs
Y display offset (bound to scrollbar)
int scale
Scaling factor in graphical mode

AG_Intro(3), AG_Widget(3), M_Matrix(3)

The M_Matview widget first appeared in Agar 1.3.4.

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.