General Terminal

GtGetWindowWidth

Get the width for window client dimensions

Syntax

Signature
int GtGetWindowWidth( void );

Arguments

No arguments.

Return value

The width in window coordinates of the client area.

Description

Read GtGetWindowHeight() for the other dimension. Use GtGetOutputWidth() when you need the related measurement.

Example

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

#include <stdio.h>

int main( void )
{
   printf( "Window client dimensions, width (window coordinates): %d\n", GtGetWindowWidth() );

   return 0;
}

See also