bgc | Background color |
jgc | Foreground color |
im,jm | Margins |
bgc | Background color |
jgc | Foreground color |
im,jm | Margins |
lti,ltj | The coordinates of the left top corner in percentage of the parent frame |
rbi,rbj | The coordinates of the right botton corner in percentage of the parent frame |
swx,swy,nex,ney | The world coordinates. Check setWorldCoord for details |
bgc,fgc | The background and foreground color |
im,jm | The margins for text in device coordinates |
void Locate(Frame &prntFrm, At <, At &rb)
void Locate(Frame &prntFrm,int lti,int ltj,int rbi,int rbj)
void setWorldCoord(double swx,double swy,double nex,double ney)
Moves the left top corner to lt and the left botton
corner to rb where the coordinates are given in
text cells. This function in used internally by some constructors
Moves the left top corner to (arglti, argltj) and the left botton
corner to (argrbi, argrbj) where the coordinates are given in
percentage. This function in used internally by some constructors
Sets to world coordinates.
swx,swy | the coordinates of the bottom-left (southwest) corner |
nex,ney | the coordinates of the upper-right (northeast) corner |
int NoCol(void)
int NoRow(void)
void Clear(void)
void Clear(int color)
void Bound(int color)
void SetBgColor(int c)
void SetFgColor(int c)
int getRow(PXL &pxl)
int getCol(PXL &pxl)
int x2i(double x)
int y2j(double y)
double x2p(double x)
double y2q(double y)
double i2x(int i)
double j2y(int j)
void jump(int i,int j)
void draw(int i,int j,int color)
void dot(int i,int j,int color)
void line(int i1,int j1,int i2,int j2,int color)
void jump(double x,double y)
void draw(double x,double y,int color)
void dot(double x,double y,int color)
Return the number of columns in the frame
Return the number of rows in the frame
Clears the frame with the background color and moves
the current position to (0,0)
Clears the frame with the color color and moves
the current position to (0,0)
Draw a boundary around the frame in color color
Sets the background color to c.
Sets the foreground color to c.
returns the character row that correspond to the pixel pxl
returns the character column that correspond to the pixel pxl
Translates world coordinate x to a device coordinate
Translates world coordinate y to a device coordinate
Same as x2i() but returns a double
Same as y2j() but returns a double
Translates device coordinate i to a world coordinate
Translates device coordinate j to a world coordinate
Moves the current position to (i, j), in device coordinates
draws a line from the current position to (i, j)
using the color color. If color is FRAME_FG then the
frame foreground color is used.
Draw a dot at position (i, j) (in pixel coordinates)
and color color
Draws a line from the point (x1, y1) to (x2, y2) (in pixel
coordinates)in the color color. The current position is moved to the
end of the line
Moves the current position to (x, y), in world coordinates
Draws a line from from the current position to (x, y) (in world
coordinates) using the color color
Draw a dot at position (x, y) (in world coordinates)
and color color
color | The color of the box. If it is FRAME_FG then the frame foreground color is used |
color | The color of the box. If it is FRAME_FG then the frame foreground color is used |
void boxFill(double swx,double swy, double nex, double ney,int col)
void Xcrss(double x,double y,int size, int color)
Frame &operator<<(char c)
Frame &operator<<(int n)
Frame &operator<<(long n)
Frame &operator<<(double r)
Frame &operator<<(const frstring &a_string)
Frame &operator<<(char *text)
Frame &operator<<(colstring &a_colstring)
Frame &operator<<(FgColor &c)
Frame &operator<<(BgColor &c)
Frame &operator<<(Tab tab)
Frame &operator>>(const At &at)
Frame &operator>>(FgColor &c)
Frame &operator>>(BgColor &c)
int isInside(PXL &p)
Frame &operator>>(frstring &a_string)
Frame &operator>>(int &n)
Frame &operator>>(long &n)
Frame &operator>>(double &r)
Draws a filled box with the botton left corner at (swx, swy) and
the right top corner at (nex, ney). The box is filled with color
color
Draw a cross at position (x, y) (in world coordinates),
color color and size size
Prints the character c at the current position
Prints the number n at the current position
Prints the number n at the current position
Outputs the double r, eg.:
frm<<3.14159;
Outputs the string a_string on the frame.
Outputs the string text on the frame.
Print a color text on the frame. The current color isn't changed by that
function
Changes the foreground color of the frame, like:
frm<< FgColor(RED)<<"red "<< FgColor(BLUE)<<"blue"
Changes the background color of the frame, like:
frm<< BgColor(YELLOW)<<"yellow"<< BgColor(GREEN)<<"green"
Moves the current position to the column refered by tab
The same as operator<< - changes the current position to at
The same as operator<< - changes the foreground color to c
The same as operator<< - changes the background color to c
Checks if the pixel pxl (in device coordinates) is inside the frame
Reads a string from the keyboard. The same, as getText.
Reads a number from the keyboard using getText().
Reads a number from the keyboard using getText().
Reads a double from the keyboard using getText().
at | The position of the begining of the edition |
no_col | The number of columns used for the edition |
s | The string. Then calling it contains the text that should appear in the edition. The result string in also returned here. |