Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function
rubberband box for rectangle selection
[final_rect, btn] = rubberbox() [final_rect, btn] = rubberbox(initial_rect) [final_rect, btn] = rubberbox(edition_mode) [final_rect, btn] = rubberbox(initial_rect, edition_mode)
a vector with two or four entries. With four entries it gives the initial rectangle defined by
[x_min, y_max, width, height](where
y_maxare coordinates of initial corner position, with two entries width and height are supposed to be 0.
a boolean, if
%tbutton press selects the first corner, release selects the opposite corner. If
%f, a button press or click selects the first corner, a click is requested to select the opposite corner. The default value is
a rectangle defined by
[x_min, y_max, width, height].
an integer, the number of the mouse button clicked.
rubberbox(initial_rect) tracks a rubberband box in
the current graphic window, following the mouse. When a button is
rubberbox returns the final
rectangles definition in
final_Rect. If the
initial_rect is not specified, a click
is needed to fix the initial corner position.
|Report an issue|
|<< event handler functions||interaction||seteventhandler >>|