vnc-out.h

00001 /*
00002  * Copyright (c) 2001, Adam Dunkels.
00003  * All rights reserved. 
00004  *
00005  * Redistribution and use in source and binary forms, with or without 
00006  * modification, are permitted provided that the following conditions 
00007  * are met: 
00008  * 1. Redistributions of source code must retain the above copyright 
00009  *    notice, this list of conditions and the following disclaimer. 
00010  * 2. Redistributions in binary form must reproduce the above copyright 
00011  *    notice, this list of conditions and the following disclaimer in the 
00012  *    documentation and/or other materials provided with the distribution. 
00013  * 3. The name of the author may not be used to endorse or promote
00014  *    products derived from this software without specific prior
00015  *    written permission.  
00016  *
00017  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
00018  * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
00019  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00020  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
00021  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00022  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
00023  * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
00024  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
00025  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
00026  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
00027  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
00028  *
00029  * This file is part of the uIP TCP/IP stack.
00030  *
00031  * $Id: vnc-out.h,v 1.1 2006/06/17 22:41:16 adamdunkels Exp $
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 /*(VNC_OUT_WINDOWCOLOR + 6)*/
00069 #define VNC_OUT_LABELCOLOR     13 /*(VNC_OUT_SEPARATORCOLOR + 6)*/
00070 #define VNC_OUT_BUTTONCOLOR    19 /*(VNC_OUT_LABELCOLOR + 6)*/
00071 #define VNC_OUT_HYPERLINKCOLOR 25 /*(VNC_OUT_BUTTONCOLOR + 6)*/
00072 #define VNC_OUT_TEXTENTRYCOLOR 31 /*(VNC_OUT_HYPERLINKCOLOR + 6)*/
00073 #define VNC_OUT_ICONCOLOR      37 /*(VNC_OUT_TEXTENTRYCOLOR + 6)*/
00074 #define VNC_OUT_MENUCOLOR      43 /*(VNC_OUT_ICONCOLOR + 6)*/
00075 #define VNC_OUT_OPENMENUCOLOR  44/*(VNC_OUT_MENUCOLOR + 1)*/
00076 #define VNC_OUT_ACTIVEMENUCOLOR 45 /*(VNC_OUT_OPENMENUCOLOR + 1) */
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 /* __VNC_OUT_H__ */

Generated on Mon Apr 11 14:23:27 2011 for Contiki 2.5 by  doxygen 1.6.1