General Terminal

GtGetDesktopWidth

Get the width for desktop dimensions

Syntax

Signature
int GtGetDesktopWidth( void );

Arguments

No arguments.

Return value

The width in pixels for the desktop reported by the driver.

Description

Read GtGetDesktopHeight() for the other dimension. Use GtGetDesktopCols() when you need the related measurement.

Example

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

#include <stdio.h>

int main( void )
{
   printf( "Desktop dimensions, width (pixels): %d\n", GtGetDesktopWidth() );

   return 0;
}

See also