vnc-out.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 #ifndef __VNC_OUT_H__
00036 #define __VNC_OUT_H__
00037
00038
00039 void vnc_out_init(void);
00040 void vnc_out_new(struct vnc_server_state *vs);
00041
00042 void vnc_out_send_blank(struct vnc_server_state *vs);
00043 void vnc_out_send_screen(struct vnc_server_state *vs);
00044 void vnc_out_send_update(struct vnc_server_state *vs);
00045
00046 void vnc_out_key_event(struct vnc_server_state *vs);
00047 void vnc_out_pointer_event(struct vnc_server_state *vs);
00048
00049 void vnc_out_acked(struct vnc_server_state *vs);
00050
00051 void vnc_out_poll(struct vnc_server_state *vs);
00052
00053
00054 void vnc_out_update_screen(u8_t x, u8_t y, u8_t c, u8_t color);
00055 char vnc_out_getkey(void);
00056 char vnc_out_keyavail(void);
00057
00058 void vnc_out_update_area(struct vnc_server_state *vs,
00059 u8_t x, u8_t y, u8_t w, u8_t h);
00060
00061 #include "ctk/ctk.h"
00062
00063 unsigned char vnc_out_add_icon(struct ctk_icon *icon);
00064
00065 #if 1
00066 #define VNC_OUT_BACKGROUNDCOLOR 0
00067 #define VNC_OUT_WINDOWCOLOR 1
00068 #define VNC_OUT_SEPARATORCOLOR 7
00069 #define VNC_OUT_LABELCOLOR 13
00070 #define VNC_OUT_BUTTONCOLOR 19
00071 #define VNC_OUT_HYPERLINKCOLOR 25
00072 #define VNC_OUT_TEXTENTRYCOLOR 31
00073 #define VNC_OUT_ICONCOLOR 37
00074 #define VNC_OUT_MENUCOLOR 43
00075 #define VNC_OUT_OPENMENUCOLOR 44
00076 #define VNC_OUT_ACTIVEMENUCOLOR 45
00077 #else
00078 #define VNC_OUT_BACKGROUNDCOLOR 0
00079 #define VNC_OUT_WINDOWCOLOR 1
00080 #define VNC_OUT_SEPARATORCOLOR (VNC_OUT_WINDOWCOLOR + 6)
00081 #define VNC_OUT_LABELCOLOR (VNC_OUT_SEPARATORCOLOR + 6)
00082 #define VNC_OUT_BUTTONCOLOR (VNC_OUT_LABELCOLOR + 6)
00083 #define VNC_OUT_HYPERLINKCOLOR (VNC_OUT_BUTTONCOLOR + 6)
00084 #define VNC_OUT_TEXTENTRYCOLOR (VNC_OUT_HYPERLINKCOLOR + 6)
00085 #define VNC_OUT_ICONCOLOR (VNC_OUT_TEXTENTRYCOLOR + 6)
00086 #define VNC_OUT_MENUCOLOR (VNC_OUT_ICONCOLOR + 6)
00087 #define VNC_OUT_OPENMENUCOLOR (VNC_OUT_MENUCOLOR + 1)
00088 #define VNC_OUT_ACTIVEMENUCOLOR (VNC_OUT_OPENMENUCOLOR + 1)
00089
00090 #endif
00091
00092 #endif