get_window_attrget_window_attrGetWindowAttrGetWindowAttrget_window_attr (算子名称)
名称
get_window_attrget_window_attrGetWindowAttrGetWindowAttrget_window_attr — Get window characteristics.
参数签名
描述
该算子 get_window_attrget_window_attrGetWindowAttrGetWindowAttrGetWindowAttrget_window_attr can be used to read
characteristics of graphics windows that were set using
set_window_attrset_window_attrSetWindowAttrSetWindowAttrSetWindowAttrset_window_attr. 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 title bar.
运行信息
- 多线程类型:可重入(与非独占操作符并行运行)。
- 多线程作用域:全局(可以从任何线程调用)。
- 未经并行化处理。
参数表
AttributeNameAttributeNameAttributeNameAttributeNameattributeNameattribute_name (input_control) string → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Name of the attribute that should be returned.
List of values:
'background_color'"background_color""background_color""background_color""background_color""background_color", 'border_color'"border_color""border_color""border_color""border_color""border_color", 'border_width'"border_width""border_width""border_width""border_width""border_width", 'window_title'"window_title""window_title""window_title""window_title""window_title"
AttributeValueAttributeValueAttributeValueAttributeValueattributeValueattribute_value (output_control) string → HTupleUnion[str, int]HTupleHtuple (string / integer) (string / int / long) (HString / Hlong) (char* / Hlong)
Attribute value.
结果
If the parameters are correct get_window_attrget_window_attrGetWindowAttrGetWindowAttrGetWindowAttrget_window_attr returns 2 (
H_MSG_TRUE)
.
If necessary an exception is raised.
可能的前置算子
open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window,
set_drawset_drawSetDrawSetDrawSetDrawset_draw,
set_colorset_colorSetColorSetColorSetColorset_color,
set_coloredset_coloredSetColoredSetColoredSetColoredset_colored,
set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width
参考其它
open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window,
set_window_attrset_window_attrSetWindowAttrSetWindowAttrSetWindowAttrset_window_attr
模块
Foundation