Subversion Repositories freemyipod

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 theseven 1
//
2
//
3
//    Copyright 2010 TheSeven
4
//
5
//
427 farthen 6
//    This file is part of emCORE.
2 theseven 7
//
427 farthen 8
//    emCORE is free software: you can redistribute it and/or
2 theseven 9
//    modify it under the terms of the GNU General Public License as
10
//    published by the Free Software Foundation, either version 2 of the
11
//    License, or (at your option) any later version.
12
//
427 farthen 13
//    emCORE is distributed in the hope that it will be useful,
2 theseven 14
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
15
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16
//    See the GNU General Public License for more details.
17
//
18
//    You should have received a copy of the GNU General Public License along
427 farthen 19
//    with emCORE.  If not, see <http://www.gnu.org/licenses/>.
2 theseven 20
//
21
//
22
 
23
 
24
#ifndef __LCDCONSOLE_H__
25
#define __LCDCONSOLE_H__
26
 
27
 
28
#include "global.h"
29
#include "drawing.h"
30
#include "lcd.h"
124 theseven 31
#include "progressbar.h"
2 theseven 32
 
33
 
34
#define LCDCONSOLE_COLS (LCD_WIDTH / FONT_WIDTH)
35
#define LCDCONSOLE_ROWS (LCD_HEIGHT / FONT_HEIGHT)
36
#define LCDCONSOLE_OFFSETX ((LCD_WIDTH - LCDCONSOLE_COLS * FONT_WIDTH) / 2)
37
#define LCDCONSOLE_OFFSETY ((LCD_HEIGHT - LCDCONSOLE_ROWS * FONT_HEIGHT) / 2)
38
 
39
 
40
void lcdconsole_init();
41
void lcdconsole_putc(char string, int fgcolor, int bgcolor) ICODE_ATTR;
42
void lcdconsole_puts(const char* string, int fgcolor, int bgcolor) ICODE_ATTR;
25 theseven 43
void lcdconsole_write(const char* string, size_t length, int fgcolor, int bgcolor) ICODE_ATTR;
15 theseven 44
void lcdconsole_putc_noblit(char string, int fgcolor, int bgcolor) ICODE_ATTR;
45
void lcdconsole_puts_noblit(const char* string, int fgcolor, int bgcolor) ICODE_ATTR;
25 theseven 46
void lcdconsole_write_noblit(const char* string, size_t length, int fgcolor, int bgcolor) ICODE_ATTR;
2 theseven 47
void lcdconsole_update() ICODE_ATTR;
704 theseven 48
void lcdconsole_supdate() ICODE_ATTR;
15 theseven 49
void lcdconsole_callback() ICODE_ATTR;
122 theseven 50
int lcdconsole_get_current_x() ICODE_ATTR;
51
int lcdconsole_get_current_y() ICODE_ATTR;
52
int lcdconsole_get_lineend_x() ICODE_ATTR;
53
int lcdconsole_get_lineend_y() ICODE_ATTR;
124 theseven 54
void lcdconsole_progressbar(struct progressbar_state* progressbar, int min, int max);
2 theseven 55
 
56
 
57
#endif