Tscope5
Functions | Variables
display_internal.c File Reference

Definitions of internal display functions. More...

Go to the source code of this file.

Functions

void ts5_check_display (char *calling_function)
 Do some checks at the start of each display function. More...
 
void ts5_check_display2 (char *calling_function, const int display)
 Do some checks at the start of each display function. More...
 
void ts5_uninstall_displays ()
 Close all open displays. More...
 

Variables

int _ts5_is_display_installed = 0
 Is the display subsystem installed?w. More...
 

Detailed Description

Definitions of internal display functions.

Definition in file display_internal.c.

Function Documentation

void ts5_check_display ( char *  calling_function)

Do some checks at the start of each display function.

Parameters
calling_functionName the function that calls for this check or installation.

Checks whether Tscope5 is installed. If not, Tscope5 is installed.

Definition at line 30 of file display_internal.c.

void ts5_check_display2 ( char *  calling_function,
const int  display 
)

Do some checks at the start of each display function.

Parameters
calling_functionName the function that calls for this check or installation.
displayIndex of the display that has to be checked.

Checks whether display 'display' is a valid display. If not, the program is aborted.

Definition at line 50 of file display_internal.c.

void ts5_uninstall_displays ( )

Close all open displays.

Currently all displays are closed at once, there is no option to close only one display and leave the others open.

This function is called automatically at the end of the program.

Warning
Do not call this function yourself and try to reopen a new window in the same program. This will result in undefined behavior (i.e. sometimes it will work fine, sometimes it will crash).

Definition at line 75 of file display_internal.c.

Variable Documentation

int _ts5_is_display_installed = 0

Is the display subsystem installed?w.

Definition at line 19 of file display_internal.c.