Please note that the recommended version of Scilab is 6.0.0. This page might be outdated.
See the recommended documentation of this function
Drag rectangle(s) with mouse
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.
a rectangle defined by [x_left, y_top, width, height]
an integer, the number of the mouse button clicked
dragrect drags one or more rectangles anywhere on the screen. The 4xn
matrix rect defines the rectangles. Each column of
must contain the initial rectangle position as [left;top;width;height]
values. When a button is clicked
dragrect returns the final
rectangles definition in