ClassesClassesClassesClasses | | | | Operators

get_window_typeget_window_typeGetWindowTypeget_window_typeGetWindowTypeGetWindowType (Operator)

Name

get_window_typeget_window_typeGetWindowTypeget_window_typeGetWindowTypeGetWindowType — Get the window type.

Signature

get_window_type( : : WindowHandle : WindowType)

Herror get_window_type(const Hlong WindowHandle, char* WindowType)

Herror T_get_window_type(const Htuple WindowHandle, Htuple* WindowType)

Herror get_window_type(const HTuple& WindowHandle, char* WindowType)

HTuple HWindow::GetWindowType() const

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

HString HWindow::GetWindowType() const

void HOperatorSetX.GetWindowType(
[in] VARIANT WindowHandle, [out] VARIANT* WindowType)

BSTR HWindowX.GetWindowType()

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

string HWindow.GetWindowType()

Description

get_window_typeget_window_typeGetWindowTypeget_window_typeGetWindowTypeGetWindowType 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_typeQueryWindowTypequery_window_typeQueryWindowTypeQueryWindowType. A reasonable use for get_window_typeget_window_typeGetWindowTypeget_window_typeGetWindowTypeGetWindowType might be in the field of the development of machine independent software. Possible values are:

'X-Window'

X-Window Version 11.

'WIN32-Window'

Microsoft Windows.

'Cocoa'

macOS.

'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'

Objects are output to a PostScript File.

'default'

Current window type.

'system_default'

Default window type for current platform.

Parallelization

Parameters

WindowHandleWindowHandleWindowHandleWindowHandleWindowHandlewindowHandle (input_control)  window HWindow, HTupleHTupleHTupleHWindowX, VARIANTHtuple (integer / string) (IntPtr / IntPtr) (Hlong / HString) (Hlong / char*) (Hlong / BSTR) (Hlong / char*)

Window handle.

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

WindowTypeWindowTypeWindowTypeWindowTypeWindowTypewindowType (output_control)  string HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (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)

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_typeGetWindowTypeget_window_typeGetWindowTypeGetWindowType returns 2 (H_MSG_TRUE). If necessary an exception is raised.

Possible Predecessors

open_windowopen_windowOpenWindowopen_windowOpenWindowOpenWindow

See also

query_window_typequery_window_typeQueryWindowTypequery_window_typeQueryWindowTypeQueryWindowType, set_window_typeset_window_typeSetWindowTypeset_window_typeSetWindowTypeSetWindowType, get_window_pointer3get_window_pointer3GetWindowPointer3get_window_pointer3GetWindowPointer3GetWindowPointer3, open_windowopen_windowOpenWindowopen_windowOpenWindowOpenWindow

Module

Foundation


ClassesClassesClassesClasses | | | | Operators