new_win



Summary

#include <dataman/dataman.h>
      -or-
#include <dataman/sort.h>

new_win(row1,col1,row2,col2,attrib,mode) else ...

int row1, col1;
int row2, col2;
int attrib;
int mode;

Description

new_win saves the area of the screen defined by the corners (row1, col1), (row2, col2) then draws a box on the screen the center of which has the background color attrib. The mode is one of the constants POP_UP or GROW to paint a pop up or an 'exploding' window. attrib is one of the color constants BLACK, BLUE, GREEN, CYAN, RED, MAGEN, BROWN, and L_GREY. This function is used in conjunction with pop_win() to restore the area beneath the box.

Example

    #include <dataman/dataman.h>

    main(int argc, char *argv[])
    {
          ....
        new_win(5,10,10,40,CYAN,GROW);
          ...
    }

This will paint a box 6 lines by 31 columns with a cyan center begining at point (5,10) on the screen. It will appear to grow from it's center.

«previous  next»