Main Page | Data Structures | Directories | File List | Globals

mqinsets4i.h File Reference

The definition and functions of rectangle boundaries described by 4 32-bit integer numbers. More...

Go to the source code of this file.

Data Structures

struct  Insets4i
 The general structure that defines the boundaries (in 32-bit integer) of a rectangle. More...

Typedefs

typedef Insets4i Insets4i
typedef Insets4i Rectangle4i

Enumerations

enum  { RECTANGLE_GLOBAL_TO_LOCAL, RECTANGLE_LOCAL_TO_GLOBAL }

Functions

void Insets4i_init (Insets4i *rRect, int x1, int x2, int y1, int y2)
int Insets4i_cmp (const void *rect1, const void *rect2)
Insets4i Insets4i_new (int x1, int x2, int y1, int y2)
MQDimensions2i Insets4i_getDimensions2i (Insets4i *rect)
int Insets4i_isPointWithin (Insets4i *ref, int x, int y)
int Insets4i_areInsetsWithin (Insets4i *ref, Insets4i *rect)
void Insets4i_merge (Insets4i *result, Insets4i *rect1, Insets4i *rect2)
int Insets4i_correctSubRect (Insets4i *subrect, Insets4i *rect)
int Insets4i_calcArea (Insets4i *rect)
void Insets4i_fprint (FILE *fp, Insets4i *R)
void Insets4i_fprintln (FILE *fp, Insets4i *R)
void Insets4i_fprintf (FILE *fp, Insets4i *R, const char *format)
void Insets4i_fprintAsHeader (FILE *fp, Insets4i *R)
Insets4iInsets4iArray_create (int size, int start_index)
void Insets4iArray_fprint (FILE *fp, Insets4i *R, int nstart, int nstop)
void Insets4iArray_fprintf (FILE *fp, Insets4i *R, int nstart, int nstop, const char *format)


Detailed Description

The definition and functions of rectangle boundaries described by 4 32-bit integer numbers.

Author:
Kyriacos C. Leptos
Date:
2004-05-04
A file that has the definitions of Insets4i

Function Documentation

void Insets4i_fprint FILE *  fp,
Insets4i rRect
 

Prints the rectangle in the form of "N N N N" without any new-line character at the end

Parameters:
fp input stream
rRect pointer to a Insets4i

void Insets4i_fprintf FILE *  fp,
Insets4i R,
const char *  format
 

Prints the rectangle in the form of "N N N N" without any new-line character at the end and accoring to the specified format

Parameters:
fp input stream
rRect pointer to a Insets4i
format format of how to print the integers

void Insets4i_fprintln FILE *  fp,
Insets4i rRect
 

Same as in Insets4i_fprint but with a new-line character at the end

Parameters:
fp input stream
rRect pointer to a Insets4i

void Insets4i_init Insets4i rRect,
int  x1,
int  x2,
int  y1,
int  y2
 

Initializing the rectangle

Parameters:
rRect pointer to the rectangle to be initialized
x1 the scan-start
x2 the scan-stop
y1 the bin-start
y2 the bin-stop


Generated on Tue Feb 7 03:25:44 2006 for libmqbasic by  doxygen 1.4.4