diff options
author | dscho <dscho> | 2001-10-05 20:19:35 +0000 |
---|---|---|
committer | dscho <dscho> | 2001-10-05 20:19:35 +0000 |
commit | 8f407f8a1ab2adf08c438f40cd797fef8a810dae (patch) | |
tree | 999aab5a3f788f5c6e43621525fdf6515f6bb974 /rfb.h | |
parent | 48eb9b22c7097c4af61760ce3fdc7f5135e657bc (diff) | |
download | libtdevnc-8f407f8a1ab2adf08c438f40cd797fef8a810dae.tar.gz libtdevnc-8f407f8a1ab2adf08c438f40cd797fef8a810dae.zip |
extracted font routines from example
Diffstat (limited to 'rfb.h')
-rw-r--r-- | rfb.h | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -679,9 +679,30 @@ extern void defaultPtrAddEvent(int buttonMask,int x,int y,rfbClientPtr cl); extern void rfbResetStats(rfbClientPtr cl); extern void rfbPrintStats(rfbClientPtr cl); +/* socket.c */ + extern void rfbInitSockets(rfbScreenInfoPtr rfbScreen); extern void rfbDisconnectUDPSock(rfbScreenInfoPtr cl); +/* font.c */ + +typedef struct rfbFontData { + char* data; + /* + metaData is a 256*5 array: + for each character + (offset,width,height,x,y) + */ + int* metaData; +} rfbFontData,* rfbFontDataPtr; + +int rfbDrawChar(rfbScreenInfoPtr rfbScreen,rfbFontDataPtr font,int x,int y,char c,CARD32 colour); +void rfbDrawString(rfbScreenInfoPtr rfbScreen,rfbFontDataPtr font,int x,int y,char* string,CARD32 colour); +int rfbWidth(rfbFontDataPtr font,char* string); +void rfbFontBBox(rfbFontDataPtr font,char c,int* x1,int* y1,int* x2,int* y2); + +/* main.c */ + void rfbMarkRectAsModified(rfbScreenInfoPtr rfbScreen,int x1,int y1,int x2,int y2); void rfbMarkRegionAsModified(rfbScreenInfoPtr rfbScreen,sraRegionPtr modRegion); void doNothingWithClient(rfbClientPtr cl); |