HALCON Reference Manual 10.0.2
Table of Contents / Graphics / Window ClassesClassesClasses | | | Operators

get_window_attrget_window_attrget_window_attrGetWindowAttrGetWindowAttr (Operator)

Name

get_window_attrget_window_attrget_window_attrGetWindowAttrGetWindowAttr — Get window characteristics.

Signature

get_window_attr( : : AttributeName : AttributeValue)

Herror get_window_attr(const char* AttributeName, char* AttributeValue)

Herror T_get_window_attr(const Htuple AttributeName, Htuple* AttributeValue)

Herror get_window_attr(const HTuple& AttributeName, char* AttributeValue)

void HOperatorSetX.GetWindowAttr(
[in] VARIANT AttributeName, [out] VARIANT* AttributeValue)

VARIANT HSystemX.GetWindowAttr([in] BSTR AttributeName)

static void HOperatorSet.GetWindowAttr(HTuple attributeName, out HTuple attributeValue)

static HTuple HSystem.GetWindowAttr(string attributeName)

Description

The operator get_window_attrget_window_attrget_window_attrGetWindowAttrGetWindowAttr can be used to read characteristics of graphics windows that were set using set_window_attrset_window_attrset_window_attrSetWindowAttrSetWindowAttr. The following parameters of a window may be queried:

'border_width'

Width of the window border in pixels.

'border_color'

Color of the window border.

'background_color'

Background color of the window.

'window_title'

Name of the window in the titlebar.

Parallelization

Parameters

AttributeNameAttributeNameAttributeNameAttributeNameattributeName (input_control)  string HTupleHTupleVARIANTHtuple (string) (string) (char*) (BSTR) (char*)

Name of the attribute that should be returned.

List of values: 'border_width'"border_width""border_width""border_width""border_width", 'border_color'"border_color""border_color""border_color""border_color", 'background_color'"background_color""background_color""background_color""background_color", 'window_title'"window_title""window_title""window_title""window_title"

AttributeValueAttributeValueAttributeValueAttributeValueattributeValue (output_control)  string HTupleHTupleVARIANTHtuple (string / integer) (string / int / long) (char* / Hlong) (BSTR / Hlong) (char* / Hlong)

Attribute value.

Result

If the parameters are correct get_window_attrget_window_attrget_window_attrGetWindowAttrGetWindowAttr returns 2 (H_MSG_TRUE). If necessary an exception is raised.

Possible Predecessors

open_windowopen_windowopen_windowOpenWindowOpenWindow, set_drawset_drawset_drawSetDrawSetDraw, set_colorset_colorset_colorSetColorSetColor, set_coloredset_coloredset_coloredSetColoredSetColored, set_line_widthset_line_widthset_line_widthSetLineWidthSetLineWidth, open_textwindowopen_textwindowopen_textwindowOpenTextwindowOpenTextwindow

See also

open_windowopen_windowopen_windowOpenWindowOpenWindow, set_window_attrset_window_attrset_window_attrSetWindowAttrSetWindowAttr

Module

Foundation


Table of Contents / Graphics / Window ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH