5 #include "container_linux.h"
7 class lh_widget : public container_linux
13 GtkWidget *get_widget() const;
15 /* Methods that litehtml calls */
16 void set_caption(const litehtml::tchar_t* caption);
17 void set_base_url(const litehtml::tchar_t* base_url);
18 void on_anchor_click(const litehtml::tchar_t* url, const litehtml::element::ptr& el);
19 void set_cursor(const litehtml::tchar_t* cursor);
20 void import_css(litehtml::tstring& text, const litehtml::tstring& url, litehtml::tstring& baseurl);
21 void get_client_rect(litehtml::position& client) const;
22 inline const litehtml::tchar_t *get_default_font_name() const { return m_font_name; };
23 inline int get_default_font_size() const { return m_font_size; };
24 GdkPixbuf *get_image(const litehtml::tchar_t* url, bool redraw_on_ready);
26 void draw(cairo_t *cr);
28 void open_html(const gchar *contents);
34 const litehtml::tchar_t *get_href_at(const gint x, const gint y) const;
35 void popup_context_menu(const litehtml::tchar_t *url, GdkEventButton *event);
36 const litehtml::tstring fullurl(const litehtml::tchar_t *url) const;
38 litehtml::document::ptr m_html;
39 litehtml::tstring m_clicked_url;
40 litehtml::tstring m_base_url;
45 gint m_rendered_width;
46 GtkWidget *m_drawing_area;
47 GtkWidget *m_scrolled_window;
48 GtkWidget *m_viewport;
49 GtkWidget *m_context_menu;
50 litehtml::context m_context;
52 litehtml::tstring m_cursor;
54 litehtml::tchar_t *m_font_name;