General Terminal

GtGetLogicalWidth

Get the width for logical drawing dimensions

Syntax

Signature
int GtGetLogicalWidth( void );

Arguments

No arguments.

Return value

The width in logical pixels of the drawing surface before display scaling.

Description

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

Example

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

#include <stdio.h>

int main( void )
{
   printf( "Logical drawing dimensions, width (logical pixels): %d\n", GtGetLogicalWidth() );

   return 0;
}

See also