delrdsrecwindow(3) - Linux man page

Name

delrdsrecwindow - deletes a rectangle from the windowing of rds structure.

Synopsys

#include "rwinnn.h"
void delrdsrecwindow( Rectangle, RdsWindow )
   rdsrec_list ∗Rectangle;
   rdswindow   ∗RdsWindow;

Parameter

Rectangle

The rectangle to delete from the windowing.

RdsWindow

Pointer to the windowing of rds structure.

Description

The delrdsrecwindow function deletes a rectangle from the windowing of the rds structure. Some fields of the rectangle structure are modified :
Field 'USER' is set to NULL.
Field 'FLAGS' is modified (bits about the windowing - see librds : the field 'FLAGS' of rdsrec_list structure).

Return Value

nothing

Errors

none

Example

        #include "mutnnn.h"
        #include "rdsnnn.h"
        #include "rwinnn.h"
        #include "rtlnnn.h"
        typedef struct UserStruct
         {
           void ∗POINTER;
         } UserStruct;
        main()
          {
            rdsfig_list ∗Figure;
            rdsrec_list ∗Rectangle;
            rdswindow ∗RdsWindow;
             mbkenv();
             rdsenv();
             loadrdsparam();
             Figure = addrdsfig( "core",sizeof ( UserStruct ) );
             Rectangle =
               addrdsfigrec(Figure,"Alu1",RDS_ALU1,2,4,5,1);
            RdsWindow = allocrdswindow();
            RdsWindow->XMIN = -200;
            RdsWindow->YMIN = -200;
            RdsWindow->XMAX =  200;
            RdsWindow->YMAX =  200;
            RdsWindow->DX   =  4;
            RdsWindow->DY   =  4;
            RdsWindow->SIDE =  100;
            RdsWindow->SIZE =  RdsWindow->DX ∗ RdsWindow->DY ;
            RdsWindow->WINTAB = allocrdswin( RdsWindow->SIZE );
            addrdsrecwindow( Rectangle, RdsWindow );
            . . .
            /∗ ∗/ delrdsrecwindow( Rectangle, RdsWindow );
            . . .
          }

See Also

librwi, addrdsrecwindow