File: dragrect.man

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (32 lines) | stat: -rw-r--r-- 953 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
.TH dragrect 2 "April 2000" "Scilab Group" "Scilab Function"
.so ../sci.an
.SH NAME
dragrect - Drag rectangle(s) with mouse
.SH CALLING SEQUENCE
.nf
final_rect=dragrect(initial_rect)
.fi
.SH PARAMETERS 
.TP 13
initial_rect
: 4 4xn matrix containing the initial rectangles definition. Each
column contains [x_left; y_top; width; height]. If only one rectangle
is present the initial_rect may also be a vector. 
.TP
final_rect
:a rectangle defined by [x_left, y_top, width, height] 
.SH DESCRIPTION
\fVdragrect\fR tracks one or more rectangles anywhere on the screen. The 4xn
matrix rect defines the rectangles. Each column of \fVinitial_rect\fR
must contain the initial rectangle position as [left;top;width;height]
values. When a button is clicked \fVdragrect\fR returns the final
rectangles definition  in \fVfinal_Rect\fR.

.SH EXAMPLE
.nf
xsetech(frect=[0,0,100,100])
r=dragrect([10;10;30;10])
xrect(r)
.fi
.SH SEE ALSO
xrect, xrects, xclick, xmouse