G:/ScriptBasic/source/extensions/gd/interface.c File Reference

#include <stdio.h>
#include "../../basext.h"
#include "gd.h"
#include "gdfontt.h"
#include "gdfonts.h"
#include "gdfontmb.h"
#include "gdfontl.h"
#include "gdfontg.h"

Go to the source code of this file.

Data Structures

struct  _ImageList
struct  _GdClass

Defines

#define MAXBFONT   5
#define DEFAULTBFONT   3
#define DEFAULTPTSIZE   12.0
#define ANGLE_UP   270
#define GD_ERROR_ARGUMENT   0x00080001
#define GD_ERROR_FILE   0x00080002
#define GD_ERROR_ERROR   0x00080003
#define GD_ERROR_POLYAS   0x00080004
#define GD_ERROR_POLYAS1   0x00080005
#define InsertImage(x)   __InsertImage(pSt,ppModuleInternal,(x))
#define RemoveImage(x)   __RemoveImage(pSt,ppModuleInternal,(x))
#define GET_M_L_ARGUMENT(x, y)
#define GET_COLOR_ARGUMENT(y)
#define GET_M_P_ARGUMENT(x, y)

Typedefs

typedef _ImageList ImageList
typedef _ImageListpImageList
typedef _GdClass GdClass
typedef _GdClasspGdClass

Functions

static pImageList __InsertImage (pSupportTable pSt, void **ppModuleInternal, gdImagePtr pImage)
static void __RemoveImage (pSupportTable pSt, void **ppModuleInternal, pImageList q)
besVERSION_NEGOTIATE return (int)
 besFREE (p)
 besFUNCTION (gdicfpng)
 besFREE (pszFileName)
 if (fp==NULL)
 besALLOC_RETURN_STRING (sizeof(p))
 memcpy (STRINGVALUE(besRETURNVALUE),&p, sizeof(p))
besEND besFUNCTION (getxdime)
besEND besFUNCTION (imdestr)
besEND besFUNCTION (gdrect)
 if (fill)
 gdImageSetStyle (p->im, style, ArraySize)
 besFREE (style)
besEND besFUNCTION (gdgetc)
 LONGVALUE (besRETURNVALUE) = pS->lPingTime
besEND besFUNCTION (gdbons)
 if ()
 if (s==NULL)
 for (r=s, argI=4;argI<=besARGNR;argI++)
 besFREE (pV)
 if (p->TTFfont)

Variables

 fp = fopen(pszFileName,"rb")
 fp = fopen(pszFileName,"wb")
 besALLOC_RETURN_LONG
 s = besALLOC(slen+1)
r = (char)0
 pV = 4


Define Documentation

#define ANGLE_UP   270
 

Definition at line 21 of file interface.c.

#define DEFAULTBFONT   3
 

Definition at line 19 of file interface.c.

Referenced by __InsertImage().

#define DEFAULTPTSIZE   12.0
 

Definition at line 20 of file interface.c.

Referenced by __InsertImage().

#define GD_ERROR_ARGUMENT   0x00080001
 

Definition at line 23 of file interface.c.

#define GD_ERROR_ERROR   0x00080003
 

Definition at line 25 of file interface.c.

#define GD_ERROR_FILE   0x00080002
 

Definition at line 24 of file interface.c.

Referenced by besFUNCTION().

#define GD_ERROR_POLYAS   0x00080004
 

Definition at line 26 of file interface.c.

#define GD_ERROR_POLYAS1   0x00080005
 

Definition at line 27 of file interface.c.

#define GET_COLOR_ARGUMENT y   ) 
 

Value:

if( besARGNR < y ){ color = p->color; }else{\
    Argument = besARGUMENT(y);\
    besDEREFERENCE(Argument);\
    if( Argument == NULL ) color = p->color; else{\
    Argument = besCONVERT2LONG(Argument);\
    color = (int)LONGVALUE(Argument);}}

Definition at line 132 of file interface.c.

#define GET_M_L_ARGUMENT x,
y   ) 
 

Value:

Argument = besARGUMENT(y);\
  besDEREFERENCE(Argument);\
  if( Argument == NULL )return COMMAND_ERROR_ARGUMENT_RANGE;\
  Argument = besCONVERT2LONG(Argument);\
  x = (int)LONGVALUE(Argument);

Definition at line 126 of file interface.c.

#define GET_M_P_ARGUMENT x,
y   ) 
 

Value:

Argument = besARGUMENT(y);\
  besDEREFERENCE(Argument);\
  if( Argument == NULL )return COMMAND_ERROR_ARGUMENT_RANGE;\
  if( TYPE(Argument) != VTYPE_STRING ||\
      STRLEN(Argument) != sizeof(x) )return COMMAND_ERROR_ARGUMENT_TYPE;\
  memcpy(&(x),STRINGVALUE(Argument),sizeof(x));

Definition at line 141 of file interface.c.

#define InsertImage  )     __InsertImage(pSt,ppModuleInternal,(x))
 

Definition at line 47 of file interface.c.

#define MAXBFONT   5
 

Definition at line 18 of file interface.c.

Referenced by besFUNCTION().

#define RemoveImage  )     __RemoveImage(pSt,ppModuleInternal,(x))
 

Definition at line 75 of file interface.c.


Typedef Documentation

typedef struct _GdClass GdClass
 

typedef struct _ImageList ImageList
 

typedef struct _GdClass * pGdClass
 

typedef struct _ImageList * pImageList
 


Function Documentation

static pImageList __InsertImage pSupportTable  pSt,
void **  ppModuleInternal,
gdImagePtr  pImage
[static]
 

Definition at line 48 of file interface.c.

References besMODULEPOINTER, DEFAULTBFONT, DEFAULTPTSIZE, NULL, p, and q.

static void __RemoveImage pSupportTable  pSt,
void **  ppModuleInternal,
pImageList  q
[static]
 

Definition at line 76 of file interface.c.

References besFREE(), besMODULEPOINTER, p, and q.

besALLOC_RETURN_STRING sizeof(p  ) 
 

besFREE pV   ) 
 

besFREE style   ) 
 

besFREE pszFileName   ) 
 

besFREE p   ) 
 

besEND besFUNCTION gdbons   ) 
 

Definition at line 649 of file interface.c.

References besCONVERT2LONG(), besCONVERT2ZCHAR(), LONGVALUE(), MAXBFONT, STRINGVALUE(), and STRLEN().

besEND besFUNCTION gdgetc   ) 
 

Definition at line 618 of file interface.c.

References gdImageBlue, gdImageGreen, and gdImageRed.

besEND besFUNCTION gdrect   ) 
 

Definition at line 312 of file interface.c.

References besFREE(), and GD_ERROR_FILE.

besEND besFUNCTION imdestr   ) 
 

Definition at line 243 of file interface.c.

besEND besFUNCTION getxdime   ) 
 

Definition at line 191 of file interface.c.

References gdImageDestroy().

besFUNCTION gdicfpng   ) 
 

Definition at line 149 of file interface.c.

References besFREE(), and GD_ERROR_FILE.

for r  = s  ) 
 

Definition at line 783 of file interface.c.

gdImageSetStyle p->  im,
style  ,
ArraySize 
 

if p->  TTFfont  ) 
 

Definition at line 791 of file interface.c.

References besFREE(), gdImageStringTTF(), r, and s.

if s  = NULL  ) 
 

Definition at line 778 of file interface.c.

References besFREE(), and pV.

if  ) 
 

Definition at line 720 of file interface.c.

if fill   ) 
 

Definition at line 466 of file interface.c.

References besCONVERT2LONG(), gdTransparent, and LONGVALUE().

if fp  = NULL  ) 
 

Definition at line 175 of file interface.c.

LONGVALUE besRETURNVALUE   )  = pS->lPingTime
 

memcpy STRINGVALUE(besRETURNVALUE ,
p,
sizeof(p
 

besVERSION_NEGOTIATE return int   ) 
 

Definition at line 96 of file interface.c.


Variable Documentation

besALLOC_RETURN_LONG
 

Definition at line 641 of file interface.c.

Referenced by besFUNCTION(), if(), and switch().

fp = fopen(pszFileName,"wb")
 

Definition at line 367 of file interface.c.

fp = fopen(pszFileName,"rb")
 

Definition at line 173 of file interface.c.

pV = 4
 

Definition at line 788 of file interface.c.

Referenced by build_PutVTableItem(), and if().

* r = (char)0
 

Definition at line 787 of file interface.c.

s = besALLOC(slen+1)
 

Definition at line 777 of file interface.c.


Generated on Sun Mar 12 23:56:35 2006 for ScriptBasic by  doxygen 1.4.6-NO