Skip to content

clear_rectangleClearRectangleClearRectangleclear_rectangleT_clear_rectangle🔗

説明🔗

clear_rectangleClearRectangleClearRectangleclear_rectangleT_clear_rectangle — 出力ウインドウ上の短形を削除する。

警告🔗

clear_rectangleClearRectangle は、現在では使用されず、 下位互換性 維持のためだけに提供されます。

書式🔗

clear_rectangle( window WindowHandle, rectangle.origin.y Row1, rectangle.origin.x Column1, rectangle.corner.y Row2, rectangle.corner.x Column2 )void ClearRectangle( const HTuple& WindowHandle, const HTuple& Row1, const HTuple& Column1, const HTuple& Row2, const HTuple& Column2 )static void HOperatorSet.ClearRectangle( HTuple windowHandle, HTuple row1, HTuple column1, HTuple row2, HTuple column2 )def clear_rectangle( window_handle: HHandle, row_1: MaybeSequence[int], column_1: MaybeSequence[int], row_2: MaybeSequence[int], column_2: MaybeSequence[int] ) -> None

Herror T_clear_rectangle( const Htuple WindowHandle, const Htuple Row1, const Htuple Column1, const Htuple Row2, const Htuple Column2 )

void HWindow::ClearRectangle( const HTuple& Row1, const HTuple& Column1, const HTuple& Row2, const HTuple& Column2 ) const

void HWindow::ClearRectangle( Hlong Row1, Hlong Column1, Hlong Row2, Hlong Column2 ) const

void HWindow.ClearRectangle( HTuple row1, HTuple column1, HTuple row2, HTuple column2 )

void HWindow.ClearRectangle( int row1, int column1, int row2, int column2 )

説明🔗

clear_rectangleClearRectangle は、左上隅 (Row1row1row_1,Column1column1column_1 ) と右下隅 (Row2row2row_2,Column2column2column_2) 座標によって定義される 矩形内のすべての要素を削除します。削除は指定された矩形が背景色に設 定されることを意味します(open_windowOpenWindow を参照)。

1 つ以上の矩形を削除する場合、複数の矩形を入力することも可能です。 この場合、パラメーター Row1row1row_1, Column1column1column_1, Row2row2row_2, Column2column2column_2 は 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)

左上隅の行座標

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

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

左上隅の列座標

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

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

右下隅の行座標

初期値: 118118
値域: 0 ≤ Row2 ≤ 511 (lin)
最小増分: 1
推奨増分: 1
制限: Row2 > Row1

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

右下隅の列座標

初期値: 118118
値域: 0 ≤ Column2 ≤ 511 (lin)
最小増分: 1
推奨増分: 1
制限: Column2 >= Column1

例🔗

(HDevelop)


* Erase a rectangle in the output window interactively:
draw_rectangle1(WindowHandle,L1,C1,L2,C2)
(C)
/* Erase a rectangle in the output window interactively: */
draw_rectangle1(WindowHandle,&L1,&C1,&L2,&C2)\;

結果🔗

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

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

組み合わせ

前処理の候補

open_windowOpenWindow, set_drawSetDraw, set_colorSetColor, set_coloredSetColored, set_line_widthSetLineWidth, set_rgbSetRgb, set_hsiSetHsi, draw_rectangle1DrawRectangle1

他の選択候補

clear_windowClearWindow, disp_rectangle1DispRectangle1

関連項目

open_windowOpenWindow

モジュール🔗

Foundation