Skip to content

move_rectangleMoveRectangleMoveRectanglemove_rectangleT_move_rectangle🔗

説明🔗

move_rectangleMoveRectangleMoveRectanglemove_rectangleT_move_rectangle — 出力ウインドウの内側をコピーする。

警告🔗

move_rectangleMoveRectangle は、HDevelopグラフィックスウィンドウでは機能しません。 下位互換性の理由からのみ提供されています。

書式🔗

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 )void MoveRectangle( const HTuple& WindowHandle, const HTuple& Row1, const HTuple& Column1, const HTuple& Row2, const HTuple& Column2, const HTuple& DestRow, const HTuple& DestColumn )static void HOperatorSet.MoveRectangle( HTuple windowHandle, HTuple row1, HTuple column1, HTuple row2, HTuple column2, HTuple destRow, HTuple destColumn )def move_rectangle( window_handle: HHandle, row_1: MaybeSequence[int], column_1: MaybeSequence[int], row_2: MaybeSequence[int], column_2: MaybeSequence[int], dest_row: MaybeSequence[int], dest_column: MaybeSequence[int] ) -> None

Herror T_move_rectangle( 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

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_rectangleMoveRectangle は、出力ウインドウに関する矩形 ( Row1row1row_1,Column1column1column_1), (Row2row2row_2,Column2column2column_2) 内のすべての要素を同じウインドウ内の新しい位置にコピーします。 この位置は、左上隅 (DestRowdestRowdest_row, DestColumndestColumndest_column) によって 決定されます。 コピーにより覆われないウインドウの領域は、背景色の色に設定されます。

一度に複数の矩形を移動させる場合、パラメーターを Tuple(組変数)の 形で入力してください。

実行情報🔗

実行情報
  • マルチスレッドタイプ: リエントラント(非排他なオペレーターと並列に動作)

  • マルチスレッドスコープ: グローバル(他のスレッドから呼び出される可能性あり)

  • 並列演算処理には未対応

パラメーター🔗

WindowHandlewindowHandlewindow_handle (input_control) window → (handle)HTuple (HHandle)HWindow, HTuple (IntPtr)HHandleHtuple (handle)

ウインドウハンドル

Row1row1row_1 (input_control) rectangle.origin.y(-array) → (integer)HTuple (Hlong)HTuple (int / long)MaybeSequence[int]Htuple (Hlong)

ソースの矩形の左上隅の行座標

初期値: 00
値域: 0 ≤ Row1 ≤ 511 (lin)
最小増分: 1
推奨増分: 1

Column1column1column_1 (input_control) rectangle.origin.x(-array) → (integer)HTuple (Hlong)HTuple (int / long)MaybeSequence[int]Htuple (Hlong)

ソースの矩形の左上隅の列座標

初期値: 00
値域: 0 ≤ Column1 ≤ 511 (lin)
最小増分: 1
推奨増分: 1

Row2row2row_2 (input_control) rectangle.corner.y(-array) → (integer)HTuple (Hlong)HTuple (int / long)MaybeSequence[int]Htuple (Hlong)

ソースの矩形の右下隅の行座標

初期値: 6464
値域: 0 ≤ Row2 ≤ 511 (lin)
最小増分: 1
推奨増分: 1

Column2column2column_2 (input_control) rectangle.corner.x(-array) → (integer)HTuple (Hlong)HTuple (int / long)MaybeSequence[int]Htuple (Hlong)

ソースの矩形の右下隅の列座標

初期値: 6464
値域: 0 ≤ Column2 ≤ 511 (lin)
最小増分: 1
推奨増分: 1

DestRowdestRowdest_row (input_control) point.y(-array) → (integer)HTuple (Hlong)HTuple (int / long)MaybeSequence[int]Htuple (Hlong)

目標位置の左上隅の行座標

初期値: 6464
値域: 0 ≤ DestRow ≤ 511 (lin)
最小増分: 1
推奨増分: 1

DestColumndestColumndest_column (input_control) point.x(-array) → (integer)HTuple (Hlong)HTuple (int / long)MaybeSequence[int]Htuple (Hlong)

目標位置の左上隅の列座標

初期値: 6464
値域: 0 ≤ DestColumn ≤ 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)\;

結果🔗

ウインドウが有効で、指定されたパラメーターが正しいならば、 move_rectangleMoveRectangle は、値 2 (H_MSG_TRUE) を返します。 必要に応じて、例外が発生します。

他のオペレーターとの組み合わせ🔗

組み合わせ

前処理の候補

open_windowOpenWindow

他の選択候補

copy_rectangleCopyRectangle

関連項目

open_windowOpenWindow

モジュール🔗

Foundation