CAPD DynSys Library
5.2.0
|
#include <capd/krak/krak-library.h>
Public Member Functions | |
void | initFrm (int arglti, int argltj, int argrbi, int argrbj, int bgc=WHITE, int fgc=BLACK, int im=fontHght/2, int jm=fontWdth/2) |
Frame (void) | |
Generates a new frame as a subframe of rootFrm with left top corner at the top left corner of rootFrm, right bottom corner at the botton right bottom cornet of rootFrm, and black and white colors. More... | |
Frame (int lti, int ltj, int rbi, int rbj, int bgc=WHITE, int fgc=BLACK, int im=fontWdth/2, int jm=fontHght/2) | |
It generates a new frame as a subframe of rootFrame with left top corner (lti ,ltj ), right bottom corner at (rbi ,rbj ). More... | |
Frame (const Frame &prntFrm, const capd::krak::At <, const capd::krak::At &rb, int bgc=WHITE, int fgc=BLACK, int im=fontWdth/2, int jm=fontHght/2) | |
Generates a new frame as a subframe of prntFrm with left top corner lt , right bottom corner at rb , where the coordinates are given in columns and rows of the parent frame. More... | |
Frame (Frame &prntFrm, int lti, int ltj, int rbi, int rbj, int bgc=WHITE, int fgc=BLACK, int im=fontHght/2, int jm=fontWdth/2) | |
Generates a new frame as a subframe of prntFrm with left top corner (lti ,ltj ),right bottom corner at (rbi ,rbj ), where the coordinates are given in percentage of the horizontal and vertical size of the parent frame. More... | |
Frame (Frame &prntFrm, int lti, int ltj, int rbi, int rbj, double swx, double swy, double nex, double ney, int bgc=WHITE, int fgc=BLACK, int im=fontHght/2, int jm=fontWdth/2) | |
Generates a new frame as a subframe of prntFrm and sets the world coordinates and colors. More... | |
void | Locate (Frame &prntFrm, capd::krak::At <, capd::krak::At &rb) |
Moves the left top corner to lt and the left botton corner to rb where the coordinates are given in text cells. More... | |
void | Locate (Frame &prntFrm, int lti, int ltj, int rbi, int rbj) |
Moves the left top corner to (arglti , argltj ) and the left botton corner to (argrbi , argrbj ) where the coordinates are given in percentage. More... | |
void | setWorldCoord (double swx, double swy, double nex, double ney) |
Sets to world coordinates. More... | |
void | adjust (void) |
int | NoCol (void) |
Return the number of columns in the frame. More... | |
int | NoRow (void) |
Return the number of rows in the frame. More... | |
void | Clear (void) |
Clears the frame with the background color and moves the current position to (0,0) More... | |
void | Clear (int color) |
Clears the frame with the color color and moves the current position to (0,0) More... | |
void | Bound (int color=BLACK) |
Draw a boundary around the frame in color color . More... | |
void | SetBgColor (int c) |
Sets the background color to c . More... | |
void | SetFgColor (int c) |
Sets the foreground color to c . More... | |
int | getRow (capd::krak::Pxl &pxl) |
returns the character row that correspond to the pixel pxl More... | |
int | getCol (capd::krak::Pxl &pxl) |
returns the character column that correspond to the pixel pxl More... | |
int | x2i (double x) |
Translates world coordinate x to a device coordinate. More... | |
int | y2j (double y) |
Translates world coordinate y to a device coordinate. More... | |
double | x2p (double x) |
Same as x2i() but returns a double. More... | |
double | y2q (double y) |
Same as y2j() but returns a double. More... | |
double | i2x (int i) |
Translates device coordinate i to a world coordinate. More... | |
double | j2y (int j) |
Translates device coordinate j to a world coordinate. More... | |
void | jump (int i, int j) |
Moves the current position to (i , j ), in device coordinates. More... | |
void | draw (int i, int j, int color=FRAME_FG) |
draws a line from the current position to (i , j ) using the color color . More... | |
void | drawText (const char *c, int i, int j, int color=FRAME_FG) |
draws the text given by t from the current position using the color color . More... | |
void | dot (int i, int j, int color=FRAME_FG) |
Draw a dot at position (i , j ) (in pixel coordinates) and color color . More... | |
void | circle (int i, int j, int r, int color=FRAME_FG) |
Draw a circle at position (i , j ) of radius r (in pixel coordinates) and color color . More... | |
void | line (int i1, int j1, int i2, int j2, int color=FRAME_FG) |
Draws a line from the point (x1 , y1 ) to (x2 , y2 ) (in pixel coordinates)in the color color . More... | |
void | box (int lti, int ltj, int rbi, int rbj, int color=FRAME_FG) |
draws a box (an empty rectangle) with the left top corner in (lti , ltj ) and the right botton corner in (rbi , rbj ), in device coordinates. More... | |
void | boxFill (int lti, int ltj, int rbi, int rbj, int col, int pattern=SOLID_P) |
Draws a filled box with the botton left corner at (swx , swy ) and the right top corner at (nex , ney ). More... | |
void | jump (double x, double y) |
Moves the current position to (x , y ), in world coordinates. More... | |
void | draw (double x, double y, int color=FRAME_FG) |
Draws a line from the current position to (x , y ) (in world coordinates) using the color color . More... | |
void | drawText (const char *c, double x, double y, int color=FRAME_FG) |
Draws a text from the position (x , y ) (in world coordinates) using the color color . More... | |
void | dot (double x, double y, int color=FRAME_FG) |
Draw a dot at position (x , y ) (in world coordinates) and color color . More... | |
void | circle (double x, double y, int r, int color=FRAME_FG) |
Draw a circle at position (x , y ) (in world coordinates) of radius r (in pixel coordinates) and color color . More... | |
void | line (double x1, double y1, double x2, double y2, int color=FRAME_FG) |
Draws a line from the point (x1 , y1 ) to (x2 , y2 ) (in world coordinates)in the color color . More... | |
void | box (double swx, double swy, double nex, double ney, int color=FRAME_FG) |
draws a box (an empty rectangle) with the left botton corner in (swx , swy ) and the right top corner in (nex , ney ), in world coordinates. More... | |
void | boxFill (double swx, double swy, double nex, double ney, int col, int pattern=SOLID_P) |
Draws a filled box with the botton left corner at (swx , swy ) and the right top corner at (nex , ney ). More... | |
void | Xcrss (double x, double y, int size=1, int color=FRAME_FG) |
Draw a cross at position (x , y ) (in world coordinates), color color and size size . More... | |
int | precision (int p) |
Frame & | operator<< (char c) |
Prints the character c at the current position. More... | |
Frame & | operator<< (int n) |
Prints the number n at the current position. More... | |
Frame & | operator<< (long n) |
Prints the number n at the current position. More... | |
Frame & | operator<< (double r) |
Outputs the double r , eg. More... | |
Frame & | operator<< (const capd::krak::frstring &a_string) |
Outputs the string a_string on the frame. More... | |
Frame & | operator<< (const char *text) |
Outputs the string text on the frame. More... | |
Frame & | operator<< (const capd::krak::colstring &a_colstring) |
Print a color text on the frame. More... | |
Frame & | operator<< (const capd::krak::FgColor &c) |
Changes the foreground color of the frame, like: More... | |
Frame & | operator<< (const capd::krak::BgColor &c) |
Changes the background color of the frame, like: More... | |
Frame & | operator<< (capd::krak::Tab tab) |
Moves the current position to the column refered by tab . More... | |
Frame & | operator>> (const capd::krak::At &at) |
The same as operator<< - changes the current position to at . More... | |
Frame & | operator>> (const capd::krak::FgColor &c) |
The same as operator<< - changes the foreground color to c . More... | |
Frame & | operator>> (const capd::krak::BgColor &c) |
The same as operator<< - changes the background color to c . More... | |
int | isInside (capd::krak::Pxl &p) |
Checks if the pixel pxl (in device coordinates) is inside the frame. More... | |
Frame & | operator>> (capd::krak::frstring &a_string) |
Reads a string from the keyboard. More... | |
Frame & | operator>> (int &n) |
Reads a number from the keyboard using getText(). More... | |
Frame & | operator>> (long &n) |
Reads a number from the keyboard using getText(). More... | |
Frame & | operator>> (double &r) |
Reads a double from the keyboard using getText(). More... | |
int | Edit (At at, int no_col, capd::krak::frstring &s) |
A more sophisticated version of getText. More... | |
Frame (void) | |
Frame (int lti, int ltj, int rbi, int rbj, int bgc=WHITE, int fgc=BLACK, int im=fontWdth/2, int jm=fontHght/2) | |
void | setWorldCoord (double swx, double swy, double nex, double ney) |
void | Clear (void) |
void | Clear (int color) |
void | Bound (int color=BLACK) |
void | SetBgColor (int c) |
void | SetFgColor (int c) |
void | jump (int i, int j) |
void | draw (int i, int j, int color=FRAME_FG) |
void | drawText (const char *c, int i, int j, int color=FRAME_FG) |
void | dot (int i, int j, int color=FRAME_FG) |
void | circle (int i, int j, int r, int color=FRAME_FG) |
void | line (int i1, int j1, int i2, int j2, int color=FRAME_FG) |
void | box (int lti, int ltj, int rbi, int rbj, int color=FRAME_FG) |
void | boxFill (int lti, int ltj, int rbi, int rbj, int col, int pattern=SOLID_P) |
void | jump (double x, double y) |
void | draw (double x, double y, int color=FRAME_FG) |
void | drawText (const char *c, double x, double y, int color=FRAME_FG) |
void | dot (double x, double y, int color=FRAME_FG) |
void | circle (double x, double y, int r, int color=FRAME_FG) |
void | line (double x1, double y1, double x2, double y2, int color=FRAME_FG) |
void | box (double swx, double swy, double nex, double ney, int color=FRAME_FG) |
void | boxFill (double swx, double swy, double nex, double ney, int col, int pattern=SOLID_P) |
void | Xcrss (double x, double y, int size=1, int color=FRAME_FG) |
int | precision (int p) |
Frame & | operator<< (char c) |
Frame & | operator<< (int n) |
Frame & | operator<< (long n) |
Frame & | operator<< (double r) |
Frame & | operator<< (const char *text) |
Frame & | operator<< (const capd::krak::FgColor &c) |
Frame & | operator<< (const capd::krak::BgColor &c) |
Frame & | operator<< (capd::krak::Tab tab) |
Frame & | operator>> (const capd::krak::At &at) |
Frame & | operator>> (const capd::krak::FgColor &c) |
Frame & | operator>> (const capd::krak::BgColor &c) |
Frame & | operator>> (int &n) |
Frame & | operator>> (long &n) |
Frame & | operator>> (double &r) |
void | initFrm (int arglti, int argltj, int argrbi, int argrbj, int bgc=WHITE, int fgc=BLACK, int im=fontHght/2, int jm=fontWdth/2) |
Frame (void) | |
Frame (int lti, int ltj, int rbi, int rbj, int bgc=WHITE, int fgc=BLACK, int im=fontWdth/2, int jm=fontHght/2) | |
Frame (const Frame &prntFrm, const At <, const At &rb, int bgc=WHITE, int fgc=BLACK, int im=fontWdth/2, int jm=fontHght/2) | |
Frame (Frame &prntFrm, int lti, int ltj, int rbi, int rbj, int bgc=WHITE, int fgc=BLACK, int im=fontHght/2, int jm=fontWdth/2) | |
Frame (Frame &prntFrm, int lti, int ltj, int rbi, int rbj, double swx, double swy, double nex, double ney, int bgc=WHITE, int fgc=BLACK, int im=fontHght/2, int jm=fontWdth/2) | |
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) |
void | adjust (void) |
int | NoCol (void) |
int | NoRow (void) |
void | Clear (void) |
void | Clear (int color) |
void | Bound (int color=BLACK) |
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=FRAME_FG) |
void | drawText (const char *c, int i, int j, int color=FRAME_FG) |
void | dot (int i, int j, int color=FRAME_FG) |
void | circle (int i, int j, int r, int color=FRAME_FG) |
void | line (int i1, int j1, int i2, int j2, int color=FRAME_FG) |
void | box (int lti, int ltj, int rbi, int rbj, int color=FRAME_FG) |
void | boxFill (int lti, int ltj, int rbi, int rbj, int col, int pattern=SOLID_P) |
void | polygon (int coords[], int nPoints, int color=FRAME_FG) |
void | polygonFill (int coords[], int nPoints, int col, int pattern=SOLID_P) |
void | arc (int lti, int ltj, int rbi, int rbj, int bi, int bj, int ei, int ej, int color=FRAME_FG) |
void | arcFill (int lti, int ltj, int rbi, int rbj, int bi, int bj, int ei, int ej, int col, int pattern=SOLID_P) |
void | ellipse (int lti, int ltj, int rbi, int rbj, int color=FRAME_FG) |
Draws an ellipse bound by the rectangle of world coordinates coordinates (lti ,ltj ) and (rbi ,rbj ). More... | |
void | ellipseFill (int lti, int ltj, int rbi, int rbj, int col, int pattern=SOLID_P) |
Draws an ellipse bound by the rectangle of world coordinates coordinates (lti ,ltj ) and (rbi ,rbj ). More... | |
void | jump (double x, double y) |
void | draw (double x, double y, int color=FRAME_FG) |
void | dot (double x, double y, int color=FRAME_FG) |
void | circle (double x, double y, int r, int color=FRAME_FG) |
void | line (double x1, double y1, double x2, double y2, int color=FRAME_FG) |
void | box (double swx, double swy, double nex, double ney, int color=FRAME_FG) |
void | boxFill (double swx, double swy, double nex, double ney, int col, int pattern=SOLID_P) |
void | polygon (double coords[], int nPoints, int color=FRAME_FG) |
void | polygonFill (double coords[], int nPoints, int col, int pattern=SOLID_P) |
void | arc (double swx, double swy, double nex, double ney, double bx, double by, double ex, double ey, int color=FRAME_FG) |
Draws an arc of an ellipse bound by the rectangle of world coordinates coordinates (swx ,swy ) and (nex ,ney ). More... | |
void | arcFill (double swx, double swy, double nex, double ney, double bx, double by, double ex, double ey, int col, int pattern=SOLID_P) |
Fills and area between an arc and its chord. More... | |
void | ellipse (double swx, double swy, double nex, double ney, int color=FRAME_FG) |
Draws an ellipse bound by the rectangle of world coordinates coordinates (swx ,swy ) and (nex ,ney ). More... | |
void | ellipseFill (double swx, double swy, double nex, double ney, int col, int pattern=SOLID_P) |
Draws an ellipse bound by the rectangle of world coordinates coordinates (swx ,swy ) and (nex ,ney ). More... | |
void | Xcrss (double x, double y, int size=1, int color=FRAME_FG) |
int | precision (int p) |
Frame & | operator<< (char c) |
Frame & | operator<< (int n) |
Frame & | operator<< (long n) |
Frame & | operator<< (double r) |
Frame & | operator<< (const frstring &a_string) |
Frame & | operator<< (const char *text) |
Frame & | operator<< (colstring &a_colstring) |
Frame & | operator<< (const FgColor &c) |
Frame & | operator<< (const BgColor &c) |
Frame & | operator<< (Tab tab) |
Frame & | operator>> (const At &at) |
Frame & | operator>> (const FgColor &c) |
Frame & | operator>> (const BgColor &c) |
int | isInside (PXL &p) |
Frame & | operator>> (frstring &a_string) |
Frame & | operator>> (int &n) |
Frame & | operator>> (long &n) |
Frame & | operator>> (double &r) |
int | Edit (At at, int no_col, frstring &s) |
Public Attributes | |
int | ltj |
int | lti |
int | rbj |
int | rbi |
int | cj |
int | ci |
int | imarg |
int | jmarg |
double | swx |
double | swy |
double | nex |
double | ney |
int | cRow |
int | cCol |
int | lRow |
int | lCol |
int | bgColor |
int | fgColor |
int | prec |
Friends | |
Frame & | operator<< (Frame &f, const capd::krak::At &at) |
Moves the current position to the cell refered by at , like: More... | |
Frame & | operator<< (Frame &f, const capd::krak::At &at) |
Moves the current position to the cell refered by at , like: More... | |
Frame & | operator<< (Frame &f, const At &at) |
Moves the current position to the cell refered by at , like: More... | |
capd::krak::Frame::Frame | ( | void | ) |
Generates a new frame as a subframe of rootFrm with left top corner at the top left corner of rootFrm, right bottom corner at the botton right bottom cornet of rootFrm, and black and white colors.
capd::krak::Frame::Frame | ( | int | arglti, |
int | argltj, | ||
int | argrbi, | ||
int | argrbj, | ||
int | bgc = WHITE , |
||
int | fgc = BLACK , |
||
int | im = fontWdth/2 , |
||
int | jm = fontHght/2 |
||
) |
It generates a new frame as a subframe of rootFrame with left top corner (lti
,ltj
), right bottom corner at (rbi
,rbj
).
bgc
and fgc
are the background and foreground color, im
and jm
are the margins.
capd::krak::Frame::Frame | ( | void | ) |
capd::krak::Frame::Frame | ( | int | lti, |
int | ltj, | ||
int | rbi, | ||
int | rbj, | ||
int | bgc = WHITE , |
||
int | fgc = BLACK , |
||
int | im = fontWdth/2 , |
||
int | jm = fontHght/2 |
||
) |
capd::krak::Frame::Frame | ( | const Frame & | prntFrm, |
const At & | lt, | ||
const At & | rb, | ||
int | bgc = WHITE , |
||
int | fgc = BLACK , |
||
int | im = fontWdth/2 , |
||
int | jm = fontHght/2 |
||
) |
capd::krak::Frame::Frame | ( | Frame & | prntFrm, |
int | lti, | ||
int | ltj, | ||
int | rbi, | ||
int | rbj, | ||
int | bgc = WHITE , |
||
int | fgc = BLACK , |
||
int | im = fontHght/2 , |
||
int | jm = fontWdth/2 |
||
) |
capd::krak::Frame::Frame | ( | Frame & | prntFrm, |
int | lti, | ||
int | ltj, | ||
int | rbi, | ||
int | rbj, | ||
double | swx, | ||
double | swy, | ||
double | nex, | ||
double | ney, | ||
int | bgc = WHITE , |
||
int | fgc = BLACK , |
||
int | im = fontHght/2 , |
||
int | jm = fontWdth/2 |
||
) |
|
inline |
void capd::krak::Frame::adjust | ( | void | ) |
|
inline |
Draws an arc of an ellipse bound by the rectangle of world coordinates coordinates (swx
,swy
) and (nex
,ney
).
The arc is indicated by the points (bx
,by
) and (ex
,ey
). The arc is drawn in the color i@(color)
void capd::krak::Frame::arc | ( | int | lti, |
int | ltj, | ||
int | rbi, | ||
int | rbj, | ||
int | bi, | ||
int | bj, | ||
int | ei, | ||
int | ej, | ||
int | color = FRAME_FG |
||
) |
|
inline |
Fills and area between an arc and its chord.
The arch is an arc of an ellipse bound by the rectangle of world coordinates coordinates (swx
,swy
) and (nex
,ney
). The arc is indicated by the points (bx
,by
) and (ex
,ey
). The arc is drawn in the color i@(color)
void capd::krak::Frame::arcFill | ( | int | lti, |
int | ltj, | ||
int | rbi, | ||
int | rbj, | ||
int | bi, | ||
int | bj, | ||
int | ei, | ||
int | ej, | ||
int | col, | ||
int | pattern = SOLID_P |
||
) |
Draw a boundary around the frame in color color
.
|
inlinevirtual |
draws a box (an empty rectangle) with the left botton corner in (swx
, swy
) and the right top corner in (nex
, ney
), in world coordinates.
color | The color of the box. If it is FRAME_FG then the frame foreground color is used |
Implements capd::krak::IFrame.
|
virtual |
Implements capd::krak::IFrame.
|
inlinevirtual |
draws a box (an empty rectangle) with the left top corner in (lti
, ltj
) and the right botton corner in (rbi
, rbj
), in device coordinates.
color | The color of the box. If it is FRAME_FG then the frame foreground color is used |
Implements capd::krak::IFrame.
Implements capd::krak::IFrame.
|
inlinevirtual |
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
Implements capd::krak::IFrame.
|
virtual |
Implements capd::krak::IFrame.
|
inlinevirtual |
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
Implements capd::krak::IFrame.
|
virtual |
Implements capd::krak::IFrame.
Draw a circle at position (x
, y
) (in world coordinates) of radius r
(in pixel coordinates) and color color
.
Implements capd::krak::IFrame.
Implements capd::krak::IFrame.
Draw a circle at position (i
, j
) of radius r
(in pixel coordinates) and color color
.
|
inline |
Clears the frame with the color color
and moves the current position to (0,0)
void capd::krak::Frame::Clear | ( | int | color | ) |
|
inline |
Clears the frame with the background color and moves the current position to (0,0)
void capd::krak::Frame::Clear | ( | void | ) |
Draw a dot at position (x
, y
) (in world coordinates) and color color
.
Implements capd::krak::IFrame.
Implements capd::krak::IFrame.
Draw a dot at position (i
, j
) (in pixel coordinates) and color color
.
Draws a line from the current position to (x
, y
) (in world coordinates) using the color color
.
Draws a line from from the current position to (x
, y
) (in world coordinates) using the color color
.
Implements capd::krak::IFrame.
Implements capd::krak::IFrame.
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.
Implements capd::krak::IFrame.
Implements capd::krak::IFrame.
|
inlinevirtual |
Draws a text from the position (x
, y
) (in world coordinates) using the color color
.
Implements capd::krak::IFrame.
draws the text given by t
from the current position using the color color
.
If color is FRAME_FG then the frame foreground color is used.
|
inline |
Draws an ellipse bound by the rectangle of world coordinates coordinates (swx
,swy
) and (nex
,ney
).
The ellipse is drawn in the color i@(color)
Draws an ellipse bound by the rectangle of world coordinates coordinates (lti
,ltj
) and (rbi
,rbj
).
The ellipse is drawn in the color i@(color)
|
inline |
Draws an ellipse bound by the rectangle of world coordinates coordinates (swx
,swy
) and (nex
,ney
).
The ellipse is drawn in the color i@(color) pattern i@(pattern) in the color i@(color)
|
inline |
Draws an ellipse bound by the rectangle of world coordinates coordinates (lti
,ltj
) and (rbi
,rbj
).
The ellipse is filled with the pattern i@(pattern) in the color i@(color)
|
inline |
returns the character column that correspond to the pixel pxl
|
inline |
returns the character row that correspond to the pixel pxl
void capd::krak::Frame::initFrm | ( | int | arglti, |
int | argltj, | ||
int | argrbi, | ||
int | argrbj, | ||
int | bgc = WHITE , |
||
int | fgc = BLACK , |
||
int | im = fontHght/2 , |
||
int | jm = fontWdth/2 |
||
) |
|
inline |
Checks if the pixel pxl
(in device coordinates) is inside the frame.
Moves the current position to (x
, y
), in world coordinates.
Implements capd::krak::IFrame.
Implements capd::krak::IFrame.
Moves the current position to (i
, j
), in device coordinates.
Implements capd::krak::IFrame.
Implements capd::krak::IFrame.
|
virtual |
Draws a line from the point (x1
, y1
) to (x2
, y2
) (in world coordinates)in the color color
.
The current position is moved to the end of the line
Implements capd::krak::IFrame.
|
virtual |
Implements capd::krak::IFrame.
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
Implements capd::krak::IFrame.
Implements capd::krak::IFrame.
|
inline |
Return the number of columns in the frame.
int capd::krak::Frame::NoCol | ( | void | ) |
|
inline |
Return the number of rows in the frame.
int capd::krak::Frame::NoRow | ( | void | ) |
|
inline |
Moves the current position to the column refered by tab
.
Moves the current position to the column refered by tab.
capd::krak::Frame & capd::krak::Frame::operator<< | ( | char | c | ) |
Prints the character c
at the current position.
Frame& capd::krak::Frame::operator<< | ( | char | c | ) |
|
inline |
Changes the background color of the frame, like:
frm<< BgColor(YELLOW)<<"yellow"<< BgColor(GREEN)<<"green"
|
inline |
Changes the foreground color of the frame, like:
frm<< FgColor(RED)<<"red "<< FgColor(BLUE)<<"blue"
capd::krak::Frame & capd::krak::Frame::operator<< | ( | const char * | text | ) |
Outputs the string text
on the frame.
Frame& capd::krak::Frame::operator<< | ( | const char * | text | ) |
capd::krak::Frame & capd::krak::Frame::operator<< | ( | double | r | ) |
Outputs the double r
, eg.
:
frm<<3.14159;
capd::krak::Frame & capd::krak::Frame::operator<< | ( | int | n | ) |
Prints the number n
at the current position.
capd::krak::Frame & capd::krak::Frame::operator<< | ( | long | n | ) |
Prints the number n
at the current position.
Frame& capd::krak::Frame::operator<< | ( | long | n | ) |
|
inline |
The same as operator<< - changes the current position to at
.
|
inline |
The same as operator<< - changes the background color to c
.
|
inline |
The same as operator<< - changes the foreground color to c
.
capd::krak::Frame & capd::krak::Frame::operator>> | ( | double & | r | ) |
Reads a double from the keyboard using getText().
capd::krak::Frame & capd::krak::Frame::operator>> | ( | int & | n | ) |
Reads a number from the keyboard using getText().
capd::krak::Frame & capd::krak::Frame::operator>> | ( | long & | n | ) |
Reads a number from the keyboard using getText().
Frame& capd::krak::Frame::operator>> | ( | long & | n | ) |
void capd::krak::Frame::polygonFill | ( | double | coords[], |
int | nPoints, | ||
int | col, | ||
int | pattern = SOLID_P |
||
) |
|
inline |
Sets the background color to c
.
Sets the background color to c .
void capd::krak::Frame::SetBgColor | ( | int | c | ) |
|
inline |
Sets the foreground color to c
.
Sets the foreground color to c .
void capd::krak::Frame::SetFgColor | ( | int | c | ) |
|
inlinevirtual |
Sets to world coordinates.
swx,swy | the coordinates of the bottom-left (southwest) corner |
nex,ney | the coordinates of the upper-right (northeast) corner |
Implements capd::krak::IFrame.
Implements capd::krak::IFrame.
Draw a cross at position (x
, y
) (in world coordinates), color color
and size size
.
Implements capd::krak::IFrame.
Implements capd::krak::IFrame.
Moves the current position to the cell refered by at
, like:
Moves the current position to the cell refered by at , like:
frm<<At(30,30)<<"AAAAA";
|
friend |
Moves the current position to the cell refered by at
, like:
Moves the current position to the cell refered by at , like:
frm<<At(30,30)<<"AAAAA";