Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

linux/X/LgiOsDefs.h

Go to the documentation of this file.
00001 
00007 #ifndef __LGI_OS_DEFS_H
00008 #define __LGI_OS_DEFS_H
00009 
00010 #include "assert.h"
00011 
00012 #include <stdarg.h>
00013 #include <stdlib.h>
00014 #include <stdio.h>
00015 #define _MULTI_THREADED
00016 #include <pthread.h>
00017 
00018 #undef stricmp
00019 
00020 #include "LgiInc.h"
00021 
00022 
00023 #define LINUX                       1
00024 #define XP_CTRLS                    1
00025 
00027 #define LgiSleep(i)                 _lgi_sleep(i)
00028 LgiFunc void _lgi_sleep(int i);
00029 
00030 #define atoi64                      atoll
00031 
00033 #define LgiYield()                  LgiApp->Run(false)
00034 
00035 #define K_CHAR                      0x0
00036 
00038 #define LGI_FileDropFormat          "text/uri-list"
00039 #define LGI_WideCharset             "utf-32"
00040 
00041 #define SND_ASYNC                   1
00042 
00043 #define DOUBLE_CLICK_THRESHOLD      5
00044 
00045 // Window flags
00046 #define GWF_VISIBLE                 0x00000001
00047 #define GWF_ENABLED                 0x00000002
00048 #define GWF_FOCUS                   0x00000004
00049 #define GWF_OVER                    0x00000008
00050 #define GWF_DROP_TARGET             0x00000010
00051 #define GWF_SUNKEN                  0x00000020
00052 #define GWF_FLAT                    0x00000040
00053 #define GWF_RAISED                  0x00000080
00054 #define GWF_BORDER                  0x00000100
00055 #define GWF_DIALOG                  0x00000200
00056 #define GWF_DESTRUCTOR              0x00000400
00057 #define GWF_QUIT_WND                0x00000800
00058 
00059 // Menu flags
00060 #define ODS_SELECTED                0x1
00061 #define ODS_DISABLED                0x2
00062 #define ODS_CHECKED                 0x4
00063 
00065 #define SUNKEN                      1
00066 
00067 #define RAISED                      2
00068 
00069 #define CHISEL                      3
00070 
00071 #define FLAT                        4
00072 
00074 #define DIR_CHAR                    '/'
00075 
00076 #define DIR_STR                     "/"
00077 
00078 #define EOL_SEQUENCE                "\n"
00079 
00080 #define IsSlash(c)                  (((c)=='/')OR((c)=='\\'))
00081 
00082 #define IsQuote(c)                  (((c)=='\"')OR((c)=='\''))
00083 
00084 #define LGI_PATH_SEPARATOR          ":"
00085 
00086 #define LGI_ALL_FILES               "*"
00087 
00088 #define LGI_LIBRARY_EXT             "so"
00089 
00091 #define M_SYSTEM                    (1000)
00092 
00093 #define M_CLOSE                     (M_SYSTEM+1)
00094 
00095 #define M_X11_INVALIDATE            (M_SYSTEM+2)
00096 
00097 #define M_X11_PULSE                 (M_SYSTEM+3)
00098 
00099 #define M_X11_REPARENT              (M_SYSTEM+4)
00100 
00102 #define M_USER                      (M_SYSTEM+1000)
00103 
00108 #define M_MOUSEENTER                (M_USER+100)
00109 
00114 #define M_MOUSEEXIT                 (M_USER+101)
00115 
00120 #define M_CHANGE                    (M_USER+102)
00121 
00126 #define M_DESCRIBE                  (M_USER+103)
00127 
00128 // return (bool)
00129 #define M_WANT_DIALOG_PROC          (M_USER+104)
00130 
00131 #define M_MENU                      (M_USER+105)
00132 #define M_COMMAND                   (M_USER+106)
00133 #define M_DRAG_DROP                 (M_USER+107)
00134 
00135 #define M_TRAY_NOTIFY               (M_USER+108)
00136 #define M_CUT                       (M_USER+109)
00137 #define M_COPY                      (M_USER+110)
00138 #define M_PASTE                     (M_USER+111)
00139 
00142 #define IDOK                        1
00145 #define IDCANCEL                    2
00148 #define IDYES                       3
00151 #define IDNO                        4
00152 
00155 #define MB_OK                       5
00158 #define MB_OKCANCEL                 6
00161 #define MB_YESNO                    7
00164 #define MB_YESNOCANCEL              8
00165 
00166 #define MB_SYSTEMMODAL              0x1000
00167 
00170 #define LGI_VKEY_CTRL               0x001
00173 #define LGI_VKEY_ALT                0x002
00176 #define LGI_VKEY_SHIFT              0x004
00177 
00180 #define LGI_VMOUSE_LEFT             0x008
00183 #define LGI_VMOUSE_MIDDLE           0x010
00186 #define LGI_VMOUSE_RIGHT            0x020
00189 #define LGI_VMOUSE_CTRL             0x040
00192 #define LGI_VMOUSE_ALT              0x080
00195 #define LGI_VMOUSE_SHIFT            0x100
00198 #define LGI_VMOUSE_DOWN             0x200
00201 #define LGI_VMOUSE_DOUBLE           0x400
00202 
00203 // Keys
00204 #define VK_F1                       1
00205 #define VK_F2                       2
00206 #define VK_F3                       3
00207 #define VK_F4                       4
00208 #define VK_F5                       5
00209 #define VK_F6                       6
00210 #define VK_F7                       7
00211 #define VK_F8                       11
00212 #define VK_F9                       12
00213 #define VK_F10                      14
00214 #define VK_F11                      15
00215 #define VK_F12                      16
00216 
00217 #define VK_BACK                     8
00218 #define VK_TAB                      9
00219 #define VK_RETURN                   13
00220 
00221 #define VK_SHIFT                    17
00222 #define VK_ESCAPE                   18
00223 #define VK_RIGHT                    19
00224 #define VK_LEFT                     20
00225 #define VK_UP                       21
00226 #define VK_DOWN                     22
00227 #define VK_PRIOR                    23
00228 #define VK_NEXT                     24
00229 #define VK_HOME                     25
00230 #define VK_END                      26
00231 #define VK_INSERT                   27
00232 #define VK_DELETE                   28
00233 
00234 #define abs(a)                      ( (a) < 0 ? -(a) : (a) )
00235 
00237 // Externs
00238 #ifndef __CYGWIN__
00239 LgiFunc char *strnistr(char *a, char *b, int n);
00240 LgiFunc int strnicmp(char *a, char *b, int i);
00241 LgiFunc char *strupr(char *a);
00242 LgiFunc char *strlwr(char *a);
00243 LgiFunc int stricmp(char *a, char *b);
00244 #endif
00245 
00246 LgiFunc int stricmp(char *a, char *b);
00247 
00248 #endif
00249 

Generated on Wed Oct 26 14:46:50 2005 for Lgi by  doxygen 1.4.1