move_rectangleπ
Short descriptionπ
move_rectangle β Copy inside an output window.
Warningπ
move_rectangle is obsolete and is only provided for
reasons of backward compatibility.
Signatureπ
move_rectangle( window WindowHandle, rectangle.origin.y Row1, rectangle.origin.x Column1, rectangle.corner.y Row2, rectangle.corner.x Column2, point.y DestRow, point.x DestColumn )
Descriptionπ
move_rectangle copies all entries in the rectangle
(Row1,Column1), (Row2,Column2)
of the output window to a new position inside the same window.
This position is determined by the upper left corner (DestRow,
DestColumn).
Regions of the window, which are βuncoveredβ through moving the rectangle,
are set to the color of the background.
If you want to move several rectangles at once, you may pass parameters in form of tuples.
Execution informationπ
Execution information
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: global (may be called from any thread).
-
Processed without parallelization.
Parametersπ
WindowHandle (input_control) window β (handle)
Window handle.
Row1 (input_control) rectangle.origin.y(-array) β (integer)
Row index of upper left corner of the source rectangle.
Default: 0
Value range: 0 β€ Row1 β€ 511 (lin)
Minimum increment: 1
Recommended increment: 1
Column1 (input_control) rectangle.origin.x(-array) β (integer)
Column index of upper left corner of the source rectangle.
Default: 0
Value range: 0 β€ Column1 β€ 511 (lin)
Minimum increment: 1
Recommended increment: 1
Row2 (input_control) rectangle.corner.y(-array) β (integer)
Row index of lower right corner of the source rectangle.
Default: 64
Value range: 0 β€ Row2 β€ 511 (lin)
Minimum increment: 1
Recommended increment: 1
Column2 (input_control) rectangle.corner.x(-array) β (integer)
Column index of lower right corner of the source rectangle.
Default: 64
Value range: 0 β€ Column2 β€ 511 (lin)
Minimum increment: 1
Recommended increment: 1
DestRow (input_control) point.y(-array) β (integer)
Row index of upper left corner of the target position.
Default: 64
Value range: 0 β€ DestRow β€ 511 (lin)
Minimum increment: 1
Recommended increment: 1
DestColumn (input_control) point.x(-array) β (integer)
Column index of upper left corner of the target position.
Default: 64
Value range: 0 β€ DestColumn β€ 511 (lin)
Minimum increment: 1
Recommended increment: 1
Exampleπ
(HDevelop)
* "Interactive" copy of a rectangle in the same window
draw_rectangle1(WindowHandle,L1,C1,L2,C2)
get_mbutton(WindowHandle,LN,CN,Button)
move_rectangle(WindowHandle,L1,C1,L2,C2,LN,CN)
/* "Interactive" copy of a rectangle in the same window */
draw_rectangle1(WindowHandle,&L1,&C1,&L2,&C2)\;
get_mbutton(WindowHandle,LN,CN,NULL)\;
move_rectangle(WindowHandle,L1,C1,L2,C2,LN,CN)\;
Resultπ
If the window is valid and the specified parameters are correct
move_rectangle returns 2 (H_MSG_TRUE).
If necessary an exception is raised.
Combinations with other operatorsπ
Moduleπ
Foundation