General Terminal

GtSetWindowOpacity

Set the window opacity

Syntax

Signature
void GtSetWindowOpacity( double opacity );

Arguments

opacity is a value from 0.0 (transparent) to 1.0 (opaque).

Return value

No return value.

Description

Requests window opacity from the desktop backend. Use GtGetWindowOpacity() to read the effective setting.

Example

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

#include <stdio.h>

int main( void )
{
   double previous = GtGetWindowOpacity();

   GtSetWindowOpacity( 0.8 );
   printf( "Window opacity: %.2f\n", GtGetWindowOpacity() );
   Inkey( 2, NIL );
   GtSetWindowOpacity( previous );

   return 0;
}

See also