get_iconT_get_iconGetIconGetIconget_icon (Operator)

Name

get_iconT_get_iconGetIconGetIconget_icon — Query the icon for region output

Signature

get_icon( : Icon : 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()

def get_icon(window_handle: HHandle) -> HObject

Description

get_iconget_iconGetIconGetIconGetIconget_icon queries the icon that was set with set_iconset_iconSetIconSetIconSetIconset_icon.

Execution Information

Parameters

IconIconIconIconiconicon (output_object)  region objectHRegionHObjectHRegionHobject *

Icon for the regions center of gravity.

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (input_control)  window HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (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_iconget_iconGetIconGetIconGetIconget_icon always returns TRUE.

Possible Predecessors

set_iconset_iconSetIconSetIconSetIconset_icon

Possible Successors

disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region

Module

Foundation