set_drawT_set_drawSetDrawSetDrawset_draw (Operator)

Name

set_drawT_set_drawSetDrawSetDrawset_draw — Define the region fill mode.

Signature

set_draw( : : WindowHandle, Mode : )

Herror T_set_draw(const Htuple WindowHandle, const Htuple Mode)

void SetDraw(const HTuple& WindowHandle, const HTuple& Mode)

void HWindow::SetDraw(const HString& Mode) const

void HWindow::SetDraw(const char* Mode) const

void HWindow::SetDraw(const wchar_t* Mode) const   (Windows only)

static void HOperatorSet.SetDraw(HTuple windowHandle, HTuple mode)

void HWindow.SetDraw(string mode)

def set_draw(window_handle: HHandle, mode: str) -> None

Description

set_drawset_drawSetDrawSetDrawSetDrawset_draw defines the region fill mode. If ModeModeModeModemodemode is set to 'fill', output regions are filled, if set to 'margin', only contours are displayed. Setting ModeModeModeModemodemode only affects the valid window. It is used by operators with region output like disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region, disp_circledisp_circleDispCircleDispCircleDispCircledisp_circle, disp_rectangle1disp_rectangle1DispRectangle1DispRectangle1DispRectangle1disp_rectangle1, disp_rectangle2disp_rectangle2DispRectangle2DispRectangle2DispRectangle2disp_rectangle2, disp_arrowdisp_arrowDispArrowDispArrowDispArrowdisp_arrow etc. It is also used by operators with gray value output for some gray value output modes. If the mode is 'margin', the contour can be affected with set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width and set_line_styleset_line_styleSetLineStyleSetLineStyleSetLineStyleset_line_style.

Attention

If the output mode is 'margin' and the line width is more than one, objects may not be displayed.

Execution Information

Parameters

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

Window handle.

ModeModeModeModemodemode (input_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Fill mode for region output.

Default value: 'fill' "fill" "fill" "fill" "fill" "fill"

List of values: 'fill'"fill""fill""fill""fill""fill", 'margin'"margin""margin""margin""margin""margin"

Result

set_drawset_drawSetDrawSetDrawSetDrawset_draw returns TRUE if ModeModeModeModemodemode is correct and the window is valid. Otherwise an exception is raised.

Possible Predecessors

get_drawget_drawGetDrawGetDrawGetDrawget_draw

Possible Successors

disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region

See also

get_drawget_drawGetDrawGetDrawGetDrawget_draw, disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region, set_paintset_paintSetPaintSetPaintSetPaintset_paint, disp_imagedisp_imageDispImageDispImageDispImagedisp_image, set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width, set_line_styleset_line_styleSetLineStyleSetLineStyleSetLineStyleset_line_style

Module

Foundation