2008-11-30 22:31:20 +00:00
|
|
|
/** \file server/render.h
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/* This file is part of LCDd, the lcdproc server.
|
2001-12-27 23:30:36 +00:00
|
|
|
*
|
2008-11-30 22:31:20 +00:00
|
|
|
* This file is released under the GNU General Public License.
|
|
|
|
|
* Refer to the COPYING file distributed with this package.
|
2001-12-27 23:30:36 +00:00
|
|
|
*
|
|
|
|
|
* Copyright (c) 1999, William Ferrell, Scott Scriven
|
|
|
|
|
*/
|
|
|
|
|
|
1999-12-09 23:15:14 +00:00
|
|
|
#ifndef RENDER_H
|
|
|
|
|
#define RENDER_H
|
|
|
|
|
|
|
|
|
|
#include "screen.h"
|
|
|
|
|
|
2007-04-30 13:06:06 +00:00
|
|
|
#define HEARTBEAT_OFF 0
|
|
|
|
|
#define HEARTBEAT_ON 1
|
|
|
|
|
#define HEARTBEAT_OPEN 2
|
1999-12-09 23:15:14 +00:00
|
|
|
|
2007-04-30 13:06:06 +00:00
|
|
|
#define BACKLIGHT_OFF 0
|
|
|
|
|
#define BACKLIGHT_ON 1
|
|
|
|
|
#define BACKLIGHT_OPEN 2
|
1999-12-09 23:15:14 +00:00
|
|
|
|
2007-04-30 13:06:06 +00:00
|
|
|
#define BACKLIGHT_BLINK 0x100
|
|
|
|
|
#define BACKLIGHT_FLASH 0x200
|
1999-12-09 23:15:14 +00:00
|
|
|
|
2007-04-30 13:06:06 +00:00
|
|
|
#define CURSOR_OFF 0
|
|
|
|
|
#define CURSOR_DEFAULT_ON 1
|
|
|
|
|
#define CURSOR_BLOCK 4
|
|
|
|
|
#define CURSOR_UNDER 5
|
|
|
|
|
|
|
|
|
|
#define TITLESPEED_NO 0 /* needs to be (TITLESPEED_MIN - 1) */
|
|
|
|
|
#define TITLESPEED_MIN 1
|
|
|
|
|
#define TITLESPEED_MAX 10
|
2002-04-26 00:00:31 +00:00
|
|
|
|
1999-12-09 23:15:14 +00:00
|
|
|
extern int heartbeat;
|
|
|
|
|
extern int backlight;
|
2007-04-30 13:06:06 +00:00
|
|
|
extern int titlespeed;
|
1999-12-09 23:15:14 +00:00
|
|
|
extern int output_state;
|
2003-02-28 15:19:58 +00:00
|
|
|
|
2007-04-30 13:06:06 +00:00
|
|
|
/* Render the given screen. */
|
2007-04-28 21:16:39 +00:00
|
|
|
int render_screen(Screen *s, long timer);
|
2003-02-28 15:19:58 +00:00
|
|
|
|
2007-04-30 13:06:06 +00:00
|
|
|
/* Display a short message, which must be shorter than 16 chars, in a corner */
|
2007-04-02 21:29:53 +00:00
|
|
|
int server_msg(const char *text, int expire);
|
1999-12-09 23:15:14 +00:00
|
|
|
|
|
|
|
|
#endif
|