ClassesClasses | | Operators

set_iconT_set_iconSetIconSetIcon (Operator)

Name

set_iconT_set_iconSetIconSetIcon — Icon definition for region output.

Signature

set_icon(Icon : : WindowHandle : )

Herror T_set_icon(const Hobject Icon, const Htuple WindowHandle)

void SetIcon(const HObject& Icon, const HTuple& WindowHandle)

void HRegion::SetIcon(const HWindow& WindowHandle) const

void HWindow::SetIcon(const HRegion& Icon) const

static void HOperatorSet.SetIcon(HObject icon, HTuple windowHandle)

void HRegion.SetIcon(HWindow windowHandle)

void HWindow.SetIcon(HRegion icon)

Description

set_iconset_iconSetIconSetIconSetIcon defines an icon for region output (disp_regiondisp_regionDispRegionDispRegionDispRegion). It is displayed in the regions center of gravity. The use of this icon is activated with set_shapeset_shapeSetShapeSetShapeSetShape.

Execution Information

Parameters

IconIconIconIconicon (input_object)  region objectHRegionHRegionHobject

Icon for center of gravity.

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandle (input_control)  window HWindow, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Window handle.

Example (C)

/* draw a region and an icon */
draw_region(&Region,WindowHandle) ;
draw_region(&Icon,WindowHandle) ;
set_icon(Icon) ;
set_shape(WindowHandle,"icon") ;
disp_region(Region,WindowHandle) ;

Result

set_iconset_iconSetIconSetIconSetIcon returns 2 (H_MSG_TRUE), if exactly one region is supplied. Otherwise an exception is raised.

Possible Predecessors

gen_circlegen_circleGenCircleGenCircleGenCircle, gen_ellipsegen_ellipseGenEllipseGenEllipseGenEllipse, gen_rectangle1gen_rectangle1GenRectangle1GenRectangle1GenRectangle1, gen_rectangle2gen_rectangle2GenRectangle2GenRectangle2GenRectangle2, draw_regiondraw_regionDrawRegionDrawRegionDrawRegion

Possible Successors

set_shapeset_shapeSetShapeSetShapeSetShape, disp_regiondisp_regionDispRegionDispRegionDispRegion

Module

Foundation


ClassesClasses | | Operators