Operator Reference
set_draw (Operator)
set_draw
— Define the region fill mode.
Signature
set_draw( : : WindowHandle, Mode : )
Description
set_draw
defines the region fill mode. If
Mode
is set to 'fill', output regions are filled, if set
to 'margin', only contours are displayed. Setting Mode
only affects the valid window. It is used by operators with region
output like disp_region
, disp_circle
,
disp_rectangle1
, disp_rectangle2
,
disp_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_width
and set_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
WindowHandle
(input_control) window →
(handle)
Window handle.
Mode
(input_control) string →
(string)
Fill mode for region output.
Default: 'fill'
List of values: 'fill' , 'margin'
Result
set_draw
returns 2 (
H_MSG_TRUE)
if Mode
is correct and the window is valid. Otherwise an exception is
raised.
Possible Predecessors
Possible Successors
See also
get_draw
,
disp_region
,
set_paint
,
disp_image
,
set_line_width
,
set_line_style
Module
Foundation