Operator Reference
set_icon (Operator)
set_icon
— Icon definition for region output.
Signature
set_icon(Icon : : WindowHandle : )
Description
set_icon
defines an icon for region output
(disp_region
). It is displayed
in the regions center of gravity. The use of this icon is activated
with set_shape
.
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
Icon
(input_object) region →
object
Icon for center of gravity.
WindowHandle
(input_control) window →
(handle)
Window handle.
Example (C)
/* draw a region and an icon */ T_draw_region(&Region,WindowHandle); T_draw_region(&Icon,WindowHandle); set_icon(Icon); create_tuple_s(&icon,"icon"); T_set_shape(WindowHandle,icon); destroy_tuple(icon); T_disp_region(Region,WindowHandle);
Result
set_icon
returns 2 (
H_MSG_TRUE)
, if exactly one region is supplied.
Otherwise an exception is raised.
Possible Predecessors
gen_circle
,
gen_ellipse
,
gen_rectangle1
,
gen_rectangle2
,
draw_region
Possible Successors
Module
Foundation