move_rectangleT_move_rectangleMoveRectangleMoveRectanglemove_rectangle (算子)
名称
move_rectangleT_move_rectangleMoveRectangleMoveRectanglemove_rectangle — 在输出窗口内复制。
警告
move_rectanglemove_rectangleMoveRectangleMoveRectangleMoveRectanglemove_rectangle 已过时,仅出于向后兼容性考虑而保留。
签名
void MoveRectangle(const HTuple& WindowHandle, const HTuple& Row1, const HTuple& Column1, const HTuple& Row2, const HTuple& Column2, const HTuple& DestRow, const HTuple& DestColumn)
void HWindow::MoveRectangle(const HTuple& Row1, const HTuple& Column1, const HTuple& Row2, const HTuple& Column2, const HTuple& DestRow, const HTuple& DestColumn) const
void HWindow::MoveRectangle(Hlong Row1, Hlong Column1, Hlong Row2, Hlong Column2, Hlong DestRow, Hlong DestColumn) const
static void HOperatorSet.MoveRectangle(HTuple windowHandle, HTuple row1, HTuple column1, HTuple row2, HTuple column2, HTuple destRow, HTuple destColumn)
void HWindow.MoveRectangle(HTuple row1, HTuple column1, HTuple row2, HTuple column2, HTuple destRow, HTuple destColumn)
void HWindow.MoveRectangle(int row1, int column1, int row2, int column2, int destRow, int destColumn)
描述
move_rectanglemove_rectangleMoveRectangleMoveRectangleMoveRectanglemove_rectangle copies all entries in the rectangle
(Row1Row1Row1Row1row1row_1,Column1Column1Column1Column1column1column_1), (Row2Row2Row2Row2row2row_2,Column2Column2Column2Column2column2column_2)
of the output window to a new position inside the same window.
This position is determined by the upper left corner (DestRowDestRowDestRowDestRowdestRowdest_row,
DestColumnDestColumnDestColumnDestColumndestColumndest_column).
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.
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (输入控制) window → HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
窗口句柄。
Row1Row1Row1Row1row1row_1 (输入控制) rectangle.origin.y(-array) → HTupleMaybeSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Row index of upper left corner of the source rectangle.
默认值:
0
值范围:
0
≤
Row1
Row1
Row1
Row1
row1
row_1
≤
511 (lin)
最小增量:
1
建议增量:
1
Column1Column1Column1Column1column1column_1 (输入控制) rectangle.origin.x(-array) → HTupleMaybeSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Column index of upper left corner of the source rectangle.
默认值:
0
值范围:
0
≤
Column1
Column1
Column1
Column1
column1
column_1
≤
511 (lin)
最小增量:
1
建议增量:
1
Row2Row2Row2Row2row2row_2 (输入控制) rectangle.corner.y(-array) → HTupleMaybeSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Row index of lower right corner of the source rectangle.
默认值:
64
值范围:
0
≤
Row2
Row2
Row2
Row2
row2
row_2
≤
511 (lin)
最小增量:
1
建议增量:
1
Column2Column2Column2Column2column2column_2 (输入控制) rectangle.corner.x(-array) → HTupleMaybeSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Column index of lower right corner of the source rectangle.
默认值:
64
值范围:
0
≤
Column2
Column2
Column2
Column2
column2
column_2
≤
511 (lin)
最小增量:
1
建议增量:
1
DestRowDestRowDestRowDestRowdestRowdest_row (输入控制) point.y(-array) → HTupleMaybeSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Row index of upper left corner of the target position.
默认值:
64
值范围:
0
≤
DestRow
DestRow
DestRow
DestRow
destRow
dest_row
≤
511 (lin)
最小增量:
1
建议增量:
1
DestColumnDestColumnDestColumnDestColumndestColumndest_column (输入控制) point.x(-array) → HTupleMaybeSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Column index of upper left corner of the target position.
默认值:
64
值范围:
0
≤
DestColumn
DestColumn
DestColumn
DestColumn
destColumn
dest_column
≤
511 (lin)
最小增量:
1
建议增量:
1
示例(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)
示例(C)
/* "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);
示例(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)
示例(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)
示例(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)
结果
If the window is valid and the specified parameters are correct
move_rectanglemove_rectangleMoveRectangleMoveRectangleMoveRectanglemove_rectangle 返回 2 ( H_MSG_TRUE )。如有必要,则抛出异常。
可能的前趋
open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window
替代
copy_rectanglecopy_rectangleCopyRectangleCopyRectangleCopyRectanglecopy_rectangle
另见
open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window
模块
基础