General Terminal

GtGetOutputWidth

Get the width for rendering output dimensions

Syntax

Signature
int GtGetOutputWidth( void );

Arguments

No arguments.

Return value

The width in output pixels of the render target or framebuffer.

Description

Read GtGetOutputHeight() for the other dimension. Use GtGetWindowWidth() when you need the related measurement.

Example

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

#include <stdio.h>

int main( void )
{
   printf( "Rendering output dimensions, width (output pixels): %d\n", GtGetOutputWidth() );

   return 0;
}

See also