get_window_typeT_get_window_typeGetWindowTypeGetWindowTypeget_window_type (Operator)

Name

get_window_typeT_get_window_typeGetWindowTypeGetWindowTypeget_window_type — Get the window type.

Signature

get_window_type( : : WindowHandle : WindowType)

Herror T_get_window_type(const Htuple WindowHandle, Htuple* WindowType)

void GetWindowType(const HTuple& WindowHandle, HTuple* WindowType)

HString HWindow::GetWindowType() const

static void HOperatorSet.GetWindowType(HTuple windowHandle, out HTuple windowType)

string HWindow.GetWindowType()

def get_window_type(window_handle: HHandle) -> str

Description

get_window_typeget_window_typeGetWindowTypeGetWindowTypeGetWindowTypeget_window_type determines the type or the graphical software, respectively, of the output device for the window. You may query the available types of output devices with the operator query_window_typequery_window_typeQueryWindowTypeQueryWindowTypeQueryWindowTypequery_window_type. A reasonable use for get_window_typeget_window_typeGetWindowTypeGetWindowTypeGetWindowTypeget_window_type might be in the field of the development of machine independent software. 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.

'Cocoa'"Cocoa""Cocoa""Cocoa""Cocoa""Cocoa"

macOS.

'pixmap'"pixmap""pixmap""pixmap""pixmap""pixmap"

Windows are not shown, but managed in memory. By this means HALCON programs can be ported on computers without a graphical display. Note that windows of this type support only HALCON objects (images, regions and XLDs). Fonts, for example, are not available.

'PostScript'"PostScript""PostScript""PostScript""PostScript""PostScript"

Objects are output to a PostScript File.

'default'"default""default""default""default""default"

Current window type.

'system_default'"system_default""system_default""system_default""system_default""system_default"

Default window type for current platform.

Execution Information

Parameters

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (input_control)  window HWindow, HTupleHHandleHTupleHtuple (handle / string) (IntPtr / IntPtr) (HHandle / HString) (handle / char*)

Window handle.

Suggested values: 'default'"default""default""default""default""default", 'system_default'"system_default""system_default""system_default""system_default""system_default"

WindowTypeWindowTypeWindowTypeWindowTypewindowTypewindow_type (output_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Window type

Example (HDevelop)

open_window(100,100,200,200,'root','visible','',WindowHandle)
get_window_type(WindowHandle,WindowType)
fwrite_string(FileHandle, ['Window type: ',WindowType])
fnew_line(FileHandle)

Example (C)

open_window(100,100,200,200,"root","visible","",&WindowHandle);
get_window_type(WindowHandle,&WindowType);
fwrite_string("Window type:");
sprintf(buf,"%d",WindowType);
fwrite_string(FileHandle,buf);
fnew_line(FileHandle);

Example (HDevelop)

open_window(100,100,200,200,'root','visible','',WindowHandle)
get_window_type(WindowHandle,WindowType)
fwrite_string(FileHandle, ['Window type: ',WindowType])
fnew_line(FileHandle)

Example (HDevelop)

open_window(100,100,200,200,'root','visible','',WindowHandle)
get_window_type(WindowHandle,WindowType)
fwrite_string(FileHandle, ['Window type: ',WindowType])
fnew_line(FileHandle)

Example (HDevelop)

open_window(100,100,200,200,'root','visible','',WindowHandle)
get_window_type(WindowHandle,WindowType)
fwrite_string(FileHandle, ['Window type: ',WindowType])
fnew_line(FileHandle)

Result

If the window is valid get_window_typeget_window_typeGetWindowTypeGetWindowTypeGetWindowTypeget_window_type returns 2 (H_MSG_TRUE). If necessary an exception is raised.

Possible Predecessors

open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window

See also

query_window_typequery_window_typeQueryWindowTypeQueryWindowTypeQueryWindowTypequery_window_type, set_window_typeset_window_typeSetWindowTypeSetWindowTypeSetWindowTypeset_window_type, get_window_pointer3get_window_pointer3GetWindowPointer3GetWindowPointer3GetWindowPointer3get_window_pointer3, open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window

Module

Foundation