Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

Terminal.h

Go to the documentation of this file.
00001 /*
00002  *    gui - [gega user interface] the flexible solution for user interface problems
00003  *    Copyright (C) 2002  Gergely Gati
00004  *
00005  *    This program is free software; you can redistribute it and/or modify
00006  *    it under the terms of the GNU General Public License as published by
00007  *    the Free Software Foundation; version 2 of the License.
00008  *
00009  *    This program is distributed in the hope that it will be useful,
00010  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *    GNU General Public License for more details.
00013  *
00014  *    You should have received a copy of the GNU General Public License
00015  *    along with this program; if not, write to the Free Software
00016  *    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00017  *
00018  *    Gergely Gati
00019  *      email:           g.gati@freemail.hu
00020  *      AIM screenname:  GatiGergely
00021  *      ICQ number:      93131690
00022  *
00023  */
00024 /* Terminal.h */
00025 #ifndef __TERMINAL_H
00026 #define __TERMINAL_H
00027 
00028 
00029 #include "types.h"
00030 #include "Tag.h"
00031 #include "Bases.h"
00032 
00033 
00034 #define RPCF_RETVAL                 (1<<15)
00035 #define RPCF_TAGLIST                (1<<14)
00036 
00037 #define RPC_INVALID                 0x0000
00038 
00039 // api functions
00040 #define RPC_STARTMOUSETRACKING      0x0001
00041 #define RPC_STOPMOUSETRACKING       0x0002
00042 #define RPC_DRAGWINDOW              0x0003
00043 #define RPC_RESIZEWINDOW            0x0004
00044 #define RPC_SETCOLOR               (0x0005|RPCF_RETVAL)
00045 #define RPC_SETBACKGROUND          (0x0006|RPCF_RETVAL)
00046 #define RPC_DRAWLINE                0x0007
00047 #define RPC_DRAWRECT                0x0008
00048 #define RPC_DRAWFILLEDRECT          0x0009
00049 #define RPC_DRAWPIXEL               0x000A
00050 #define RPC_OPENFONT               (0x000B|RPCF_RETVAL)
00051 #define RPC_CLOSEFONT               0x000C
00052 #define RPC_DRAWTEXT                0x000D
00053 #define RPC_GETFONTSIZE            (0x000E|RPCF_RETVAL)
00054 #define RPC_GETTEXTLENGTH          (0x000F|RPCF_RETVAL)
00055 #define RPC_PUTIMAGE                0x0010
00056 #define RPC_GETSCREENDIMENSIONS    (0x0011|RPCF_TAGLIST)
00057 #define RPC_SETWINDOWDIMENSIONS     0x0012
00058 #define RPC_GETWINDOWDIMENSIONS    (0x0013|RPCF_TAGLIST)
00059 #define RPC_SETPOINTER              0x0014
00060 #define RPC_SETWINDOWTRANSPARENCY   0x0015
00061 // sys functions
00062 #define RPC_OPENWINDOW             (0x0100|RPCF_RETVAL)
00063 #define RPC_CLOSEWINDOW             0x0101
00064 #define RPC_REFRESHWINDOW           0x0102
00065 #define RPC_REFRESHWINDOWPARTIAL    0x0103
00066 #define RPC_CLEARWINDOW             0x0104
00067 #define RPC_GETWINDOWUSERDATA      (0x0105|RPCF_RETVAL)
00068 #define RPC_SETWINDOWLIMITS         0x0106
00069 #define RPC_SETWINDOWSTATE          0x0107
00070 #define RPC_SETWINDOWSHAPE          0x0108
00071 #define RPC_GETWINDOWSTATE         (0x0109|RPCF_RETVAL)
00072 
00073 
00074 //Enum for calling BEGIN
00075 enum term_functions
00076 {
00077   TERM_STARTMOUSETRACKING=TERM_FUNCBASE,
00078   TERM_STOPMOUSETRACKING,
00079   TERM_DRAGWINDOW,
00080   TERM_RESIZEWINDOW,
00081   TERM_SETCOLOR,
00082   TERM_SETBACKGROUND,
00083   TERM_DRAWLINE,
00084   TERM_DRAWRECT,
00085   TERM_DRAWFILLEDRECT,
00086   TERM_DRAWPIXEL,
00087   TERM_OPENFONT,
00088   TERM_CLOSEFONT,
00089   TERM_DRAWTEXT,
00090   TERM_GETFONTSIZE,
00091   TERM_GETTEXTLENGTH,
00092   TERM_PUTIMAGE,
00093   TERM_GETSCREENDIMENSIONS,
00094   TERM_SETWINDOWDIMENSIONS,
00095   TERM_GETWINDOWDIMENSIONS,
00096   TERM_SETPOINTER,
00097   TERM_SETWINDOWTRANSPARENCY,
00098   TERM_FUNC_DONE
00099 };
00100 //Enum for calling END
00101 
00102 
00103 int term_Init(void);
00104 void term_CleanUp(void);
00105 
00106 u32 term_CallTL(int function, tag *taglist);
00107 u32 term_Call(int function, u32 firsttag, ...);
00108 
00109 //Prototypes BEGIN
00110 u32 term_StartMouseTracking(u32 firsttag, ...);
00111 u32 term_StartMouseTrackingTL(tag *taglist);
00112 u32 term_StopMouseTracking(u32 firsttag, ...);
00113 u32 term_StopMouseTrackingTL(tag *taglist);
00114 u32 term_DragWindow(u32 firsttag, ...);
00115 u32 term_DragWindowTL(tag *taglist);
00116 u32 term_ResizeWindow(u32 firsttag, ...);
00117 u32 term_ResizeWindowTL(tag *taglist);
00118 u32 term_SetColor(u32 firsttag, ...);
00119 u32 term_SetColorTL(tag *taglist);
00120 u32 term_SetBackground(u32 firsttag, ...);
00121 u32 term_SetBackgroundTL(tag *taglist);
00122 u32 term_DrawLine(u32 firsttag, ...);
00123 u32 term_DrawLineTL(tag *taglist);
00124 u32 term_DrawRect(u32 firsttag, ...);
00125 u32 term_DrawRectTL(tag *taglist);
00126 u32 term_DrawFilledRect(u32 firsttag, ...);
00127 u32 term_DrawFilledRectTL(tag *taglist);
00128 u32 term_DrawPixel(u32 firsttag, ...);
00129 u32 term_DrawPixelTL(tag *taglist);
00130 u32 term_OpenFont(u32 firsttag, ...);
00131 u32 term_OpenFontTL(tag *taglist);
00132 u32 term_CloseFont(u32 firsttag, ...);
00133 u32 term_CloseFontTL(tag *taglist);
00134 u32 term_DrawText(u32 firsttag, ...);
00135 u32 term_DrawTextTL(tag *taglist);
00136 u32 term_GetFontSize(u32 firsttag, ...);
00137 u32 term_GetFontSizeTL(tag *taglist);
00138 u32 term_GetTextLength(u32 firsttag, ...);
00139 u32 term_GetTextLengthTL(tag *taglist);
00140 u32 term_PutImage(u32 firsttag, ...);
00141 u32 term_PutImageTL(tag *taglist);
00142 u32 term_GetScreenDimensions(u32 firsttag, ...);
00143 u32 term_GetScreenDimensionsTL(tag *taglist);
00144 u32 term_SetWindowDimensions(u32 firsttag, ...);
00145 u32 term_SetWindowDimensionsTL(tag *taglist);
00146 u32 term_GetWindowDimensions(u32 firsttag, ...);
00147 u32 term_GetWindowDimensionsTL(tag *taglist);
00148 u32 term_SetPointer(u32 firsttag, ...);
00149 u32 term_SetPointerTL(tag *taglist);
00150 u32 term_SetWindowTransparency(u32 firsttag, ...);
00151 u32 term_SetWindowTransparencyTL(tag *taglist);
00152 //Prototypes END
00153 
00154 //system calls
00155 u32 term_OpenWindow(u32 firsttag, ...);
00156 u32 term_OpenWindowTL(tag *taglist);
00157 u32 term_CloseWindow(u32 firsttag, ...);
00158 u32 term_CloseWindowTL(tag *taglist);
00159 u32 term_RefreshWindow(u32 firsttag, ...);
00160 u32 term_RefreshWindowTL(tag *taglist);
00161 u32 term_ClearWindow(u32 firsttag, ...);
00162 u32 term_ClearWindowTL(tag *taglist);
00163 u32 term_GetWindowUserdata(u32 firsttag, ...);
00164 u32 term_GetWindowUserdataTL(tag *taglist);
00165 u32 term_RefreshWindowPartial(u32 firsttag, ...);
00166 u32 term_RefreshWindowPartialTL(tag *taglist);
00167 u32 term_SetWindowLimits(u32 firsttag, ...);
00168 u32 term_SetWindowLimitsTL(tag *taglist);
00169 u32 term_SetWindowState(u32 firsttag, ...);
00170 u32 term_SetWindowStateTL(tag *taglist);
00171 u32 term_SetWindowShape(u32 firsttag, ...);
00172 u32 term_SetWindowShapeTL(tag *taglist);
00173 u32 term_GetWindowState(u32 firsttag, ...);
00174 u32 term_GetWindowStateTL(tag *taglist);
00175 
00176 
00177 #endif

Generated on Tue Jan 7 12:11:24 2003 for THEGUI by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002