clear_rectangleT_clear_rectangleClearRectangleClearRectangleclear_rectangle (Operator)

Name

clear_rectangleT_clear_rectangleClearRectangleClearRectangleclear_rectangle — Delete a rectangle on the output window.

Warning

clear_rectangleclear_rectangleClearRectangleClearRectangleclear_rectangle is obsolete and is only provided for reasons of backward compatibility.

Signature

clear_rectangle( : : WindowHandle, Row1, Column1, Row2, Column2 : )

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

void ClearRectangle(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

static void HOperatorSet.ClearRectangle(HTuple windowHandle, HTuple row1, HTuple column1, HTuple row2, HTuple column2)

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

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

def clear_rectangle(window_handle: HHandle, row_1: MaybeSequence[int], column_1: MaybeSequence[int], row_2: MaybeSequence[int], column_2: MaybeSequence[int]) -> None

Description

clear_rectangleclear_rectangleClearRectangleClearRectangleclear_rectangle deletes all entries in the rectangle which is defined through the upper left corner (Row1Row1Row1row1row_1,Column1Column1Column1column1column_1) and the lower right corner (Row2Row2Row2row2row_2,Column2Column2Column2column2column_2). Deletion means that the specified rectangle is set to the background color (see open_windowopen_windowOpenWindowOpenWindowopen_window).

If you want to delete more than one rectangle, you may pass several rectangles, i.e., the parameters Row1Row1Row1row1row_1, Column1Column1Column1column1column_1, Row2Row2Row2row2row_2 and Column2Column2Column2column2column_2 are tuples.

Execution Information

Parameters

WindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (input_control)  window HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Window handle.

Row1Row1Row1row1row_1 (input_control)  rectangle.origin.y(-array) HTupleMaybeSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Line index of upper left corner.

Default: 10

Value range: 0 ≤ Row1 Row1 Row1 row1 row_1 ≤ 511 (lin)

Minimum increment: 1

Recommended increment: 1

Column1Column1Column1column1column_1 (input_control)  rectangle.origin.x(-array) HTupleMaybeSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Column index of upper left corner.

Default: 10

Value range: 0 ≤ Column1 Column1 Column1 column1 column_1 ≤ 511 (lin)

Minimum increment: 1

Recommended increment: 1

Row2Row2Row2row2row_2 (input_control)  rectangle.corner.y(-array) HTupleMaybeSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Row index of lower right corner.

Default: 118

Value range: 0 ≤ Row2 Row2 Row2 row2 row_2 ≤ 511 (lin)

Minimum increment: 1

Recommended increment: 1

Restriction: Row2 > Row1

Column2Column2Column2column2column_2 (input_control)  rectangle.corner.x(-array) HTupleMaybeSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Column index of lower right corner.

Default: 118

Value range: 0 ≤ Column2 Column2 Column2 column2 column_2 ≤ 511 (lin)

Minimum increment: 1

Recommended increment: 1

Restriction: Column2 >= Column1

Example (HDevelop)

* Erase a rectangle in the output window interactively:
draw_rectangle1(WindowHandle,L1,C1,L2,C2)

Example (C)

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

Example (HDevelop)

* Erase a rectangle in the output window interactively:
draw_rectangle1(WindowHandle,L1,C1,L2,C2)

Example (HDevelop)

* Erase a rectangle in the output window interactively:
draw_rectangle1(WindowHandle,L1,C1,L2,C2)

Result

If an output window exists and the specified parameters are correct clear_rectangleclear_rectangleClearRectangleClearRectangleclear_rectangle returns 2 ( H_MSG_TRUE) . If necessary an exception is raised.

Possible Predecessors

open_windowopen_windowOpenWindowOpenWindowopen_window, set_drawset_drawSetDrawSetDrawset_draw, set_colorset_colorSetColorSetColorset_color, set_coloredset_coloredSetColoredSetColoredset_colored, set_line_widthset_line_widthSetLineWidthSetLineWidthset_line_width, set_rgbset_rgbSetRgbSetRgbset_rgb, set_hsiset_hsiSetHsiSetHsiset_hsi, draw_rectangle1draw_rectangle1DrawRectangle1DrawRectangle1draw_rectangle1

Alternatives

clear_windowclear_windowClearWindowClearWindowclear_window, disp_rectangle1disp_rectangle1DispRectangle1DispRectangle1disp_rectangle1

See also

open_windowopen_windowOpenWindowOpenWindowopen_window

Module

Foundation