From 8f407f8a1ab2adf08c438f40cd797fef8a810dae Mon Sep 17 00:00:00 2001 From: dscho Date: Fri, 5 Oct 2001 20:19:35 +0000 Subject: extracted font routines from example --- rfb.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'rfb.h') diff --git a/rfb.h b/rfb.h index c1313f5..04bb9de 100644 --- a/rfb.h +++ b/rfb.h @@ -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); -- cgit v1.2.1