ClassesClasses | | Operators

get_window_typeT_get_window_typeGetWindowTypeGetWindowType (Operator)

Name

get_window_typeT_get_window_typeGetWindowTypeGetWindowType — 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()

Description

get_window_typeget_window_typeGetWindowTypeGetWindowTypeGetWindowType 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_typeQueryWindowTypeQueryWindowTypeQueryWindowType. A reasonable use for get_window_typeget_window_typeGetWindowTypeGetWindowTypeGetWindowType 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.

Execution Information

Parameters

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandle (input_control)  window HWindow, HTupleHTupleHtuple (handle / string) (IntPtr / IntPtr) (HHandle / HString) (handle / char*)

Window handle.

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

WindowTypeWindowTypeWindowTypeWindowTypewindowType (output_control)  string HTupleHTupleHtuple (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_typeGetWindowTypeGetWindowTypeGetWindowType returns 2 (H_MSG_TRUE). If necessary an exception is raised.

Possible Predecessors

open_windowopen_windowOpenWindowOpenWindowOpenWindow

See also

query_window_typequery_window_typeQueryWindowTypeQueryWindowTypeQueryWindowType, set_window_typeset_window_typeSetWindowTypeSetWindowTypeSetWindowType, get_window_pointer3get_window_pointer3GetWindowPointer3GetWindowPointer3GetWindowPointer3, open_windowopen_windowOpenWindowOpenWindowOpenWindow

Module

Foundation


ClassesClasses | | Operators