General Terminal

GtSetMaximized

Maximize or restore the terminal window

Syntax

Signature
void GtSetMaximized( xBool on );

Arguments

on enables the setting with T or disables it with F.

Return value

No return value.

Description

Controls maximization of the terminal window through the window manager. Check the resulting state with GtIsMaximized().

Example

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

#include <stdio.h>

int main( void )
{
   xBool previous = GtIsMaximized();

   GtSetMaximized( T );
   printf( "Maximized state: %s\n", GtIsMaximized() ? "on" : "off" );
   Inkey( 2, NIL );
   GtSetMaximized( previous );

   return 0;
}

See also