General Terminal

GtGetWindowHandle

Get the native window handle

Syntax

Signature
void *GtGetWindowHandle( void );

Arguments

No arguments.

Return value

A driver-specific handle or NULL if the driver supplies none.

Description

The terminal owns the returned handle. Its representation depends on the active backend. Use it only with an API that accepts that backend’s handle type.

Example

gtgetwindowhandle.c
#include "xdev-wtui.h"

#include <stdio.h>

int main( void )
{
   printf( "Window handle: %p\n", GtGetWindowHandle() );

   return 0;
}

See also