get_icon🔗
Short description🔗
get_icon — Query the icon for region output
Signature🔗
get_icon( out region Icon, window WindowHandle )
Description🔗
get_icon queries the icon that was set with
set_icon.
Execution information🔗
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 (output_object) region → object
Icon for the regions center of gravity.
WindowHandle (input_control) window → (handle)
Window handle.
Example🔗
(C)
/* draw a region and an icon. */
/* set it and get it again. */
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)\;
get_icon(&OldIcon)\;
T_disp_region(OldIcon,WindowHandle)\;
Result🔗
get_icon always returns 2 (H_MSG_TRUE).
Combinations with other operators🔗
Module🔗
Foundation