5 #include "container_linux.h"
7 class lh_widget : public container_linux
13 GtkWidget *get_widget() const;
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);
23 void draw(cairo_t *cr);
25 void open_html(const gchar *contents);
30 const litehtml::tchar_t *get_href_at(const gint x, const gint y) const;
31 void popup_context_menu(const litehtml::tchar_t *url, GdkEventButton *event);
33 litehtml::document::ptr m_html;
34 litehtml::tstring m_clicked_url;
39 gint m_rendered_width;
40 GtkWidget *m_drawing_area;
41 GtkWidget *m_scrolled_window;
42 GtkWidget *m_viewport;
43 GtkWidget *m_context_menu;
44 litehtml::context m_context;
46 litehtml::tstring m_cursor;