Remove unused stuff
[claws.git] / src / plugins / litehtml_viewer / lh_widget.h
1 #include <gtk/gtk.h>
2 #include <glib.h>
3 #include <gio/gio.h>
4
5 #include "container_linux.h"
6
7 class lh_widget : public container_linux
8 {
9         public:
10                 lh_widget();
11                 ~lh_widget();
12
13                 GtkWidget *get_widget() const;
14
15                 void set_caption(const litehtml::tchar_t* caption);
16                 void set_base_url(const litehtml::tchar_t* base_url);
17                 void on_anchor_click(const litehtml::tchar_t* url, const litehtml::element::ptr& el);
18                 void set_cursor(const litehtml::tchar_t* cursor);
19                 void import_css(litehtml::tstring& text, const litehtml::tstring& url, litehtml::tstring& baseurl);
20                 void get_client_rect(litehtml::position& client) const;
21                 GdkPixbuf *get_image(const litehtml::tchar_t* url, bool redraw_on_ready);
22
23                 gint height() const { return m_height; };
24                 void setHeight(gint height) { m_height = height; };
25                 void draw(cairo_t *cr);
26                 void redraw();
27                 void open_html(const gchar *contents);
28                 void clear();
29                 void update_cursor();
30                 void print();
31
32                 litehtml::document::ptr m_html;
33                 litehtml::tstring m_clicked_url;
34
35         private:
36                 void paint_white();
37
38                 gint m_rendered_width;
39                 GtkWidget *m_drawing_area;
40                 GtkWidget *m_scrolled_window;
41                 GtkWidget *m_viewport;
42                 litehtml::context m_context;
43                 gint m_height;
44                 litehtml::tstring m_cursor;
45 };