General Terminal

GtGetWindowOpacity

Get the window opacity

Syntax

Signature
double GtGetWindowOpacity( void );

Arguments

No arguments.

Return value

The current opacity reported by the driver.

Description

The range is 0.0 for transparent through 1.0 for opaque on drivers that implement opacity. Use GtSetWindowOpacity() to request a change.

Example

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

#include <stdio.h>

int main( void )
{
   printf( "Window opacity: %.2f\n", GtGetWindowOpacity() );

   return 0;
}

See also