General Terminal

GtSetWindowPos

Move the window on the desktop

Syntax

Signature
void GtSetWindowPos( int x, int y );

Arguments

x is the horizontal desktop coordinate.

y is the vertical desktop coordinate.

Return value

No return value.

Description

Requests a new desktop position. Use GtGetWindowPos() to query the result on the current backend.

Example

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

int main( void )
{
   int x, y;

   GtGetWindowPos( &x, &y );
   GtSetWindowPos( 100, 100 );
   Inkey( 2, NIL );
   GtSetWindowPos( x, y );

   return 0;
}

See also