00001 #ifndef __LgiLinux_h
00002 #define __LgiLinux_h
00003
00004 #include <stdio.h>
00005 #include "GMem.h"
00006 #include "GToken.h"
00007 #include "GRect.h"
00008
00009 extern "C" uint64 LgiCurrentTime();
00010 extern bool _GetKdePaths(GToken &t, char *Type);
00011 extern bool _GetIniField(char *Grp, char *Field, char *In, char *Out, int OutSize);
00012 extern bool _GetSystemFont(char *FontType, char *Font, int FontBufSize, int &PointSize);
00013
00014 XChar2b *ConvertToX(char16 *s, int len = -1);
00015 extern char *XErr(int i);
00016 extern char *XMessage(int i);
00017
00018 class OsPoint
00019 {
00020 public:
00021 int x, y;
00022
00023 OsPoint()
00024 {
00025 x = y = 0;
00026 }
00027
00028 OsPoint(int X, int Y)
00029 {
00030 x = X;
00031 y = Y;
00032 }
00033
00034 void set(int sx, int sy) { x = sx; y = sy; }
00035 };
00036
00037 #endif