summaryrefslogtreecommitdiffstats
path: root/rfb.h
diff options
context:
space:
mode:
authordscho <dscho>2001-10-05 20:19:35 +0000
committerdscho <dscho>2001-10-05 20:19:35 +0000
commit8f407f8a1ab2adf08c438f40cd797fef8a810dae (patch)
tree999aab5a3f788f5c6e43621525fdf6515f6bb974 /rfb.h
parent48eb9b22c7097c4af61760ce3fdc7f5135e657bc (diff)
downloadlibtdevnc-8f407f8a1ab2adf08c438f40cd797fef8a810dae.tar.gz
libtdevnc-8f407f8a1ab2adf08c438f40cd797fef8a810dae.zip
extracted font routines from example
Diffstat (limited to 'rfb.h')
-rw-r--r--rfb.h21
1 files changed, 21 insertions, 0 deletions
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);