pict.h

Go to the documentation of this file.
00001 
00002 /*  $Id: pict.h 355 2005-01-11 22:48:55Z andreradke $    */
00003 
00004 /******************************************************************************
00005 
00006     UserLand Frontier(tm) -- High performance Web content management,
00007     object database, system-level and Internet scripting environment,
00008     including source code editing and debugging.
00009 
00010     Copyright (C) 1992-2004 UserLand Software, Inc.
00011 
00012     This program is free software; you can redistribute it and/or modify
00013     it under the terms of the GNU General Public License as published by
00014     the Free Software Foundation; either version 2 of the License, or
00015     (at your option) any later version.
00016 
00017     This program is distributed in the hope that it will be useful,
00018     but WITHOUT ANY WARRANTY; without even the implied warranty of
00019     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020     GNU General Public License for more details.
00021 
00022     You should have received a copy of the GNU General Public License
00023     along with this program; if not, write to the Free Software
00024     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00025 
00026 ******************************************************************************/
00027 
00028 #define pictstringlist 167
00029 #define picttypestring 1
00030 #define picttextstring 2
00031 #define pictsizestring 3
00032 #define picterrorstring 5
00033 
00034 
00035 
00036 typedef struct typictrecord {
00037     
00038     PicHandle macpicture; /*the structure that's passed off to DrawPicture*/
00039     
00040     Rect windowrect; /*the size of the window that last displayed this pict*/
00041     
00042     long timecreated, timelastsave; /*maybe we'll use these at some later date?*/
00043     
00044     long ctsaves; /*the number of times this structure has been saved*/
00045     
00046     short updateticks; /*how many ticks between updates when window is in front*/
00047     
00048     long timelastupdate; /*last time this pict was updated*/
00049     
00050     long pictrefcon; /*could be anything -- we don't care*/
00051 
00052     boolean fldirty: 1; /*maybe someday we'll have a pict editor*/
00053     
00054     boolean fllocked: 1; /*are changes allowed to be made?*/
00055     
00056     boolean flwindowopen: 1; /*true if the record is being edited in a window*/
00057     
00058     boolean flbitmapupdate: 1; /*if true, use offscreen bitmap when updating*/
00059     
00060     boolean flevalexpressions: 1; /*if true, parse all text that begins with an = sign*/
00061     
00062     boolean flscaletofitwindow: 1; /*if true, scale window down to fit inside window*/
00063     
00064     } typictrecord, *ptrpictrecord, **hdlpictrecord;
00065     
00066     
00067 extern WindowPtr pictwindow;
00068 
00069 extern hdlwindowinfo pictwindowinfo;
00070 
00071 extern hdlpictrecord pictdata;
00072 
00073 
00074 /*prototypes*/
00075 
00076 
00077 extern void pictdirty (void);
00078 
00079 extern boolean pictgetframerect (hdlpictrecord, Rect *);
00080 
00081 extern boolean pictpack (hdlpictrecord, Handle *);
00082 
00083 extern boolean pictunpack (Handle, long *, hdlpictrecord *);
00084 
00085 extern boolean pictnewrecord (void);
00086 
00087 extern boolean pictdisposerecord (hdlpictrecord);
00088 
00089 extern boolean pictreadfile (bigstring, PicHandle *);
00090 
00091 extern void pictresetscrollbars (void);
00092 
00093 extern boolean pictscroll (tydirection, boolean, long);
00094 
00095 extern void pictupdatepatcher (void);
00096 
00097 extern void pictdepatcher (void);
00098 
00099 extern void pictupdate (void);
00100 
00101 extern void pictidle (void);
00102 
00103 extern void pictscheduleupdate (short);
00104 
00105 extern void pictsetbitmapupdate (boolean);
00106 
00107 extern void pictsetevaluate (boolean);
00108 
00109 extern void pictgetnewwindowrect (hdlpictrecord, Rect *);
00110 
00111 
00112 
00113 

Generated on Wed May 31 18:20:00 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6