home *** CD-ROM | disk | FTP | other *** search
-
- The HASWIN window library.
- ===========================
- Copyright H.A. Shaw 1990.
- ===========================
-
- The functions below allow a user program to directly draw on the
- screen. They use the graphics primitives and fall into two types. The
- functions starting "haswin_" check that at least part of the drawing is in
- the window area and adjust the x and y coordinates from window relative to
- actual screen coordinates before calling the approprate "graphics_" routine
- to do the actual drawing. They do not, however, clip the object to the
- window. The functions starting "graphics_" are actually macros that use
- absolute screen positions.
-
- void haswin_circle(window *win, int x, int y, int r);
- - draw a circle at "x","y" radius "r" in window "win".
- Set the current place to "x","y".
-
- void haswin_circlefill(window *win, int x, int y, int r);
- - draw a filled circle at "x","y" radius "r" in window "win".
- Set the current place to "x","y".
-
- void haswin_draw(window *win, int x, int y);
- - draw a line from the current place to "x","y" in window "win".
- Set the current place to "x","y".
-
- void haswin_drawby(window *win, int x, int y);
- - draw a line from the current place by "x","y" in window "win".
- Set the current place to the line end.
-
- void haswin_fill(window *win, int x, int y);
- - fill an area starting at "x","y" in window "win".
- Set the current place to "x","y".
-
- void haswin_gcol(window *win, int c, int g);
- - Set the foreground colour for window "win" to "c" action "g".
-
- void haswin_rectangle(window *win, int x, int y, int w, int h);
- - draw a rectangle width "w", hieght "h" in window "win" with
- "x", "y" as the bottom left corner.
- Set the current place to "x","y".
-
- void haswin_rectanglefill(window *win, int x, int y, int w, int h);
- - draw a filled rectangle width "w", hieght "h" in window "win"
- with "x", "y" as the bottom left corner.
- Set the current place to "x","y".
-
- void graphics_plotxy(int a, int x, int y);
- - perform plot action "a" parameters "x", "y" (OS_Plot,a,x,y).
-
- These routines are the basic graphics drawing primitives. Their
- names and parameters should be obvious. These routines are implimented
- as macros using the function graphics_plotxy().
-
- void graphics_circle(int x, int y, int r);
- void graphics_circlefill(int x, int y, int r);
- void graphics_draw(int x, int y);
- void graphics_drawby(int x, int y);
- void graphics_fill(int x, int y);
- void graphics_gcol(int c, int g);
- void graphics_move(int x, int y);
- void graphics_moveby(int x, int y);
- void graphics_rectangle(int x, int y, int w, int h);
- void graphics_rectanglefill(int x, int y, int w, int h);
-
-
-