set_window_typeset_window_typeSetWindowTypeSetWindowTypeset_window_type (算子名称)
名称
set_window_typeset_window_typeSetWindowTypeSetWindowTypeset_window_type — Specify a window type.
参数签名
描述
set_window_typeset_window_typeSetWindowTypeSetWindowTypeSetWindowTypeset_window_type determines on which type of output device the
output is going to be displayed.
This specification is going to be used by 该算子 open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window
while opening the windows. You may open different windows on different types
of output devices. Therefore you have to specify the wanted type before
opening. You may request the available types of output devices by calling
该算子 query_window_typequery_window_typeQueryWindowTypeQueryWindowTypeQueryWindowTypequery_window_type.
Possible values are:
- 'X-Window'"X-Window""X-Window""X-Window""X-Window""X-Window"
X-Window Version 11.
- 'WIN32-Window'"WIN32-Window""WIN32-Window""WIN32-Window""WIN32-Window""WIN32-Window"
Microsoft Windows.
- 'pixmap'"pixmap""pixmap""pixmap""pixmap""pixmap"
Windows are not displayed, but managed in memory only.
In this manner you may port HALCON programs to computers without
graphical display.
- 'PostScript'"PostScript""PostScript""PostScript""PostScript""PostScript"
Objects are output to a PostScript File.
- 'system_default'"system_default""system_default""system_default""system_default""system_default"
Default for current platform.
A useful usage of set_window_typeset_window_typeSetWindowTypeSetWindowTypeSetWindowTypeset_window_type could be the development of
machine independent programs.
运行信息
- 多线程类型:可重入(与非独占操作符并行运行)。
- 多线程作用域:全局(可以从任何线程调用)。
- 未经并行化处理。
参数表
WindowTypeWindowTypeWindowTypeWindowTypewindowTypewindow_type (input_control) string → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Name of the window type which has to be set.
Default:
'X-Window'
"X-Window"
"X-Window"
"X-Window"
"X-Window"
"X-Window"
List of values:
'PostScript'"PostScript""PostScript""PostScript""PostScript""PostScript", 'WIN32-Window'"WIN32-Window""WIN32-Window""WIN32-Window""WIN32-Window""WIN32-Window", 'X-Window'"X-Window""X-Window""X-Window""X-Window""X-Window", 'pixmap'"pixmap""pixmap""pixmap""pixmap""pixmap", 'system_default'"system_default""system_default""system_default""system_default""system_default"
结果
If the type of the output device is available, then
set_window_typeset_window_typeSetWindowTypeSetWindowTypeSetWindowTypeset_window_type returns 2 (
H_MSG_TRUE)
.
If necessary an exception is raised.
可能的前置算子
open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window
参考其它
open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window,
query_window_typequery_window_typeQueryWindowTypeQueryWindowTypeQueryWindowTypequery_window_type,
get_window_typeget_window_typeGetWindowTypeGetWindowTypeGetWindowTypeget_window_type
模块
Foundation