set_drawT_set_drawSetDrawSetDrawset_draw (Operator)
Name
set_drawT_set_drawSetDrawSetDrawset_draw
— Define the region fill mode.
Signature
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
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
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 2 (H_MSG_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