OSDN Git Service

clear btn, about btn, dicts info ...
[eb123/eb123.git] / src / ebook.h
1
2 #ifndef __EBOOK_H_
3 #define __EBOOK_H_
4
5 gint            ebook_search_method(gint index);
6 BOOK_INFO*      ebook_load(const gchar *path, int subbook_no);
7 GdkPixbuf*      ebook_load_image(BOOK_INFO *binfo, EB_Position *pos);
8 void            ebook_free(BOOK_INFO *binfo);
9 gchar*          ebook_get_text(RESULT *res);
10 gchar*          ebook_get_raw_text(EB_Book *book, gint page, gint offset);
11 void            ebook_search(const gchar *word, gint method, GSequence *results, gint maxhits);
12 void            ebook_search_book(const gchar *word, gint method, GSequence *results, gint maxhits, BOOK_INFO *binfo);
13 void            ebook_menu_or_copyright(gboolean menu, GSequence *results);
14 GdkPixbuf*      ebook_read_gaiji(BOOK_INFO *binfo, gchar *code, gint *w, gint *h);
15 EB_Error_Code   ebook_search_keyword(EB_Book *book, const char *input_word);
16
17 enum
18 {
19     IMAGE_TYPE_JPEG, 
20     IMAGE_TYPE_COLOR_BMP, 
21     IMAGE_TYPE_MONO_BMP,
22     IMAGE_TYPE_GRAY_BMP 
23 };
24
25 struct _ebook
26 {
27     GSequence   *results;
28 } ebook;
29
30 #endif /* __EBOOK_H__ */