ClassesClasses | | Operators

get_iconget_iconGetIconGetIcon (Operator)

Name

get_iconget_iconGetIconGetIcon — Query the icon for region output

Signature

get_icon( : Icon : WindowHandle : )

Herror get_icon(Hobject* Icon, const Hlong WindowHandle)

Herror T_get_icon(Hobject* Icon, const Htuple WindowHandle)

void GetIcon(HObject* Icon, const HTuple& WindowHandle)

void HRegion::GetIcon(const HWindow& WindowHandle)

HRegion HWindow::GetIcon() const

static void HOperatorSet.GetIcon(out HObject icon, HTuple windowHandle)

void HRegion.GetIcon(HWindow windowHandle)

HRegion HWindow.GetIcon()

Description

get_iconget_iconGetIconGetIconGetIcon queries the icon that was set with set_iconset_iconSetIconSetIconSetIcon.

Execution Information

Parameters

IconIconIconIconicon (output_object)  region objectHRegionHRegionHobject *

Icon for the regions center of gravity.

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandle (input_control)  window HWindow, HTupleHTupleHtuple (integer) (IntPtr) (Hlong) (Hlong)

Window handle.

Example (C)

/* draw a region and an icon.  */
/* set it and get it again. */
draw_region(&Region,WindowHandle) ;
draw_region(&Icon,WindowHandle) ;
set_icon(Icon) ;
set_shape(WindowHandle,"icon") ;
disp_region(Region,WindowHandle) ;
get_icon(&OldIcon) ;
disp_region(OldIcon,WindowHandle) ;

Result

get_iconget_iconGetIconGetIconGetIcon always returns 2 (H_MSG_TRUE).

Possible Predecessors

set_iconset_iconSetIconSetIconSetIcon

Possible Successors

disp_regiondisp_regionDispRegionDispRegionDispRegion

Module

Foundation


ClassesClasses | | Operators