graphicSession.c File Reference

#include "graphicSession.h"

Include dependency graph for graphicSession.c:

Go to the source code of this file.

Functions

int openGraphicSession (void)
int closeGraphicSession (void)
BOOL isGraphicSessionOpened (void)

Variables

static BOOL isSessionOpened = FALSE


Function Documentation

int closeGraphicSession ( void   ) 

Specify that the graphic session is not used any longer.

Returns:
* 0 if a session has been closed. * 1 if their was not any session opened. * -1 if an error occured.

Definition at line 29 of file graphicSession.c.

References FALSE, and isSessionOpened.

Referenced by sci_xend(), and scig_toPs().

00030 {
00031   if ( isSessionOpened )
00032   {
00033     isSessionOpened = FALSE ;
00034     return 0 ;
00035   }
00036   else
00037   {
00038     return 1 ;
00039   }
00040   return -1 ;
00041 }

Here is the caller graph for this function:

BOOL isGraphicSessionOpened ( void   ) 

Use to know if a graphic is opened.

Definition at line 43 of file graphicSession.c.

References isSessionOpened.

Referenced by sciDrawObj(), and scig_toPs().

00044 {
00045   return isSessionOpened ;
00046 }

Here is the caller graph for this function:

int openGraphicSession ( void   ) 

Specify that a graphic session has been opened.

Returns:
* 0 if a session has been opened * 1 if another session was already running * -1 if an other error occured.

Definition at line 15 of file graphicSession.c.

References isSessionOpened, and TRUE.

Referenced by sci_xinit(), and scig_toPs().

00016 {
00017   if ( !isSessionOpened )
00018   {
00019      isSessionOpened = TRUE ;
00020      return 0 ;
00021   }
00022   else
00023   {
00024     return 1 ;
00025   }
00026   return -1 ;
00027 }

Here is the caller graph for this function:


Variable Documentation

BOOL isSessionOpened = FALSE [static]

Definition at line 12 of file graphicSession.c.

Referenced by closeGraphicSession(), isGraphicSessionOpened(), and openGraphicSession().


Generated on Sun Mar 4 15:46:40 2007 for Scilab [trunk] by  doxygen 1.5.1