home *** CD-ROM | disk | FTP | other *** search
- (* gembox.pas - Grow-, shrink-, drag-, and rubber-box calls. *)
-
- (*$M+,E+,R-*)
- PROGRAM Gem_Box ;
-
- CONST
- (*$I gemconst.pas*)
-
- TYPE
- (*$I gemtype.pas*)
- (*$I gemhtype.pas*)
-
- (*$I gemhdr.pas*)
-
-
-
- (*$E-*)(* Next routine is private! *)
-
- PROCEDURE Box_Cmd( cmd, i1, i2, i3, i4, i5, i6, i7, i8 : integer ;
- VAR out1, out2 : integer ) ;
-
- VAR
- int_in : Int_In_Parms ;
- int_out : Int_Out_Parms ;
- addr_in : Addr_In_Parms ;
- addr_out : Addr_Out_Parms ;
-
- BEGIN
- int_in[0] := i1 ;
- int_in[1] := i2 ;
- int_in[2] := i3 ;
- int_in[3] := i4 ;
- int_in[4] := i5 ;
- int_in[5] := i6 ;
- int_in[6] := i7 ;
- int_in[7] := i8 ;
- AES_Call( cmd, int_in, int_out, addr_in, addr_out ) ;
- out1 := int_out[1] ;
- out2 := int_out[2] ;
- END ;
-
- (*$E+*)(* Back to public routines! *)
-
- PROCEDURE Rubber_Box( x, y, min_w, min_h : integer ; VAR w, h : integer ) ;
-
- BEGIN
- Box_Cmd( 70, x, y, min_w, min_h, 0, 0, 0, 0, w, h ) ;
- END ;
-
- PROCEDURE Drag_Box( w, h, x0, y0, x_max, y_max, w_max, h_max : integer ;
- VAR x, y : integer ) ;
-
- BEGIN
- Box_Cmd( 71, w, h, x0, y0, x_max, y_max, w_max, h_max, x, y ) ;
- END ;
-
-
-
- (*$E-*)(* Another private routine! *)
-
- PROCEDURE Grow_Shrink( cmd, small_x, small_y, small_w, small_h,
- big_x, big_y, big_w, big_h : integer ) ;
-
- VAR
- int_in : Int_In_Parms ;
- int_out : Int_Out_Parms ;
- addr_in : Addr_In_Parms ;
- addr_out : Addr_Out_Parms ;
-
- BEGIN
- int_in[0] := small_x ;
- int_in[1] := small_y ;
- int_in[2] := small_w ;
- int_in[3] := small_h ;
- int_in[4] := big_x ;
- int_in[5] := big_y ;
- int_in[6] := big_w ;
- int_in[7] := big_h ;
- AES_Call( cmd, int_in, int_out, addr_in, addr_out ) ;
- END ;
-
- (*$E+*)(* Back to the public routines! *)
-
- PROCEDURE Grow_Box( small_x, small_y, small_w, small_h,
- big_x, big_y, big_w, big_h : integer ) ;
-
- BEGIN
- Grow_Shrink( 73, small_x, small_y, small_w, small_h,
- big_x, big_y, big_w, big_h ) ;
- END ;
-
- PROCEDURE Shrink_Box( big_x, big_y, big_w, big_h,
- small_x, small_y, small_w, small_h : integer ) ;
-
- BEGIN
- Grow_Shrink( 74, small_x, small_y, small_w, small_h,
- big_x, big_y, big_w, big_h ) ;
- END ;
-
- PROCEDURE Move_Box( w, h, x, y, new_x, new_y : integer ) ;
-
- BEGIN
- Grow_Shrink( 72, w, h, x, y, new_x, new_y, 0, 0 ) ;
- END ;
-
- BEGIN
- END.
-
- (* End of gembox.pas *)
-