#include <document.h>
|
| document (document_container *objContainer) |
|
virtual | ~document () |
|
document_container * | container () |
|
document_mode | mode () const |
|
uint_ptr | get_font (const char *name, int size, const char *weight, const char *style, const char *decoration, font_metrics *fm) |
|
int | render (int max_width, render_type rt=render_all) |
|
void | draw (uint_ptr hdc, int x, int y, const position *clip) |
|
web_color | get_def_color () |
|
void | cvt_units (css_length &val, const font_metrics &metrics, int size) const |
|
int | to_pixels (const css_length &val, const font_metrics &metrics, int size) const |
|
int | width () const |
|
int | height () const |
|
int | content_width () const |
|
int | content_height () const |
|
void | add_stylesheet (const char *str, const char *baseurl, const char *media) |
|
bool | on_mouse_over (int x, int y, int client_x, int client_y, position::vector &redraw_boxes) |
|
bool | on_lbutton_down (int x, int y, int client_x, int client_y, position::vector &redraw_boxes) |
|
bool | on_lbutton_up (int x, int y, int client_x, int client_y, position::vector &redraw_boxes) |
|
bool | on_mouse_leave (position::vector &redraw_boxes) |
|
element::ptr | create_element (const char *tag_name, const string_map &attributes) |
|
element::ptr | root () |
|
std::shared_ptr< render_item > | root_render () |
|
void | get_fixed_boxes (position::vector &fixed_boxes) |
|
void | add_fixed_box (const position &pos) |
|
void | add_media_list (media_query_list_list::ptr list) |
|
bool | media_changed () |
|
bool | lang_changed () |
|
bool | match_lang (const string &lang) |
|
void | add_tabular (const std::shared_ptr< render_item > &el) |
|
element::const_ptr | get_over_element () const |
|
void | append_children_from_string (element &parent, const char *str) |
|
void | dump (dumper &cout) |
|
|
uint_ptr | add_font (const char *name, int size, const char *weight, const char *style, const char *decoration, font_metrics *fm) |
|
GumboOutput * | parse_html (estring str) |
|
void | create_node (void *gnode, elements_list &elements, bool parseTextNode) |
|
bool | update_media_lists (const media_features &features) |
|
void | fix_tables_layout () |
|
void | fix_table_children (const std::shared_ptr< render_item > &el_ptr, style_display disp, const char *disp_str) |
|
void | fix_table_parent (const std::shared_ptr< render_item > &el_ptr, style_display disp, const char *disp_str) |
|
◆ ptr
◆ weak_ptr
◆ document()
◆ ~document()
litehtml::document::~document |
( |
| ) |
|
|
virtual |
◆ add_fixed_box()
void litehtml::document::add_fixed_box |
( |
const position & |
pos | ) |
|
◆ add_font()
uint_ptr litehtml::document::add_font |
( |
const char * |
name, |
|
|
int |
size, |
|
|
const char * |
weight, |
|
|
const char * |
style, |
|
|
const char * |
decoration, |
|
|
font_metrics * |
fm |
|
) |
| |
|
private |
◆ add_media_list()
◆ add_stylesheet()
void litehtml::document::add_stylesheet |
( |
const char * |
str, |
|
|
const char * |
baseurl, |
|
|
const char * |
media |
|
) |
| |
◆ add_tabular()
void litehtml::document::add_tabular |
( |
const std::shared_ptr< render_item > & |
el | ) |
|
|
inline |
◆ append_children_from_string()
void litehtml::document::append_children_from_string |
( |
element & |
parent, |
|
|
const char * |
str |
|
) |
| |
◆ container()
◆ content_height()
int litehtml::document::content_height |
( |
| ) |
const |
◆ content_width()
int litehtml::document::content_width |
( |
| ) |
const |
◆ create_element()
◆ create_node()
void litehtml::document::create_node |
( |
void * |
gnode, |
|
|
elements_list & |
elements, |
|
|
bool |
parseTextNode |
|
) |
| |
|
private |
◆ createFromString()
◆ cvt_units()
◆ draw()
void litehtml::document::draw |
( |
uint_ptr |
hdc, |
|
|
int |
x, |
|
|
int |
y, |
|
|
const position * |
clip |
|
) |
| |
◆ dump()
void litehtml::document::dump |
( |
dumper & |
cout | ) |
|
◆ fix_table_children()
void litehtml::document::fix_table_children |
( |
const std::shared_ptr< render_item > & |
el_ptr, |
|
|
style_display |
disp, |
|
|
const char * |
disp_str |
|
) |
| |
|
private |
◆ fix_table_parent()
void litehtml::document::fix_table_parent |
( |
const std::shared_ptr< render_item > & |
el_ptr, |
|
|
style_display |
disp, |
|
|
const char * |
disp_str |
|
) |
| |
|
private |
◆ fix_tables_layout()
void litehtml::document::fix_tables_layout |
( |
| ) |
|
|
private |
◆ get_def_color()
web_color litehtml::document::get_def_color |
( |
| ) |
|
|
inline |
◆ get_fixed_boxes()
◆ get_font()
uint_ptr litehtml::document::get_font |
( |
const char * |
name, |
|
|
int |
size, |
|
|
const char * |
weight, |
|
|
const char * |
style, |
|
|
const char * |
decoration, |
|
|
font_metrics * |
fm |
|
) |
| |
◆ get_over_element()
◆ height()
int litehtml::document::height |
( |
| ) |
const |
◆ lang_changed()
bool litehtml::document::lang_changed |
( |
| ) |
|
◆ match_lang()
bool litehtml::document::match_lang |
( |
const string & |
lang | ) |
|
|
inline |
◆ media_changed()
bool litehtml::document::media_changed |
( |
| ) |
|
◆ mode()
◆ on_lbutton_down()
bool litehtml::document::on_lbutton_down |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
client_x, |
|
|
int |
client_y, |
|
|
position::vector & |
redraw_boxes |
|
) |
| |
◆ on_lbutton_up()
bool litehtml::document::on_lbutton_up |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
client_x, |
|
|
int |
client_y, |
|
|
position::vector & |
redraw_boxes |
|
) |
| |
◆ on_mouse_leave()
◆ on_mouse_over()
bool litehtml::document::on_mouse_over |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
client_x, |
|
|
int |
client_y, |
|
|
position::vector & |
redraw_boxes |
|
) |
| |
◆ parse_html()
◆ render()
◆ root()
◆ root_render()
std::shared_ptr< render_item > litehtml::document::root_render |
( |
| ) |
|
|
inline |
◆ to_pixels()
◆ update_media_lists()
bool litehtml::document::update_media_lists |
( |
const media_features & |
features | ) |
|
|
private |
◆ width()
int litehtml::document::width |
( |
| ) |
const |
◆ m_container
◆ m_content_size
◆ m_css
◆ m_culture
string litehtml::document::m_culture |
|
private |
◆ m_def_color
◆ m_fixed_boxes
◆ m_fonts
◆ m_lang
string litehtml::document::m_lang |
|
private |
◆ m_master_css
◆ m_media
◆ m_media_lists
◆ m_mode
◆ m_over_element
◆ m_root
std::shared_ptr<element> litehtml::document::m_root |
|
private |
◆ m_root_render
std::shared_ptr<render_item> litehtml::document::m_root_render |
|
private |
◆ m_size
◆ m_styles
◆ m_tabular_elements
std::list<shared_ptr<render_item> > litehtml::document::m_tabular_elements |
|
private |
◆ m_text
string litehtml::document::m_text |
|
private |
◆ m_user_css
The documentation for this class was generated from the following files: