Photon 1.0.0
Loading...
Searching...
No Matches
litehtml::el_before Class Reference

#include <el_before_after.h>

Inheritance diagram for litehtml::el_before:
litehtml::el_before_after_base litehtml::html_tag litehtml::element

Public Member Functions

 el_before (const std::shared_ptr< document > &doc)
 
- Public Member Functions inherited from litehtml::el_before_after_base
 el_before_after_base (const std::shared_ptr< document > &doc, bool before)
 
void add_style (const style &style) override
 
- Public Member Functions inherited from litehtml::html_tag
 html_tag (const shared_ptr< document > &doc)
 
 html_tag (const element::ptr &parent, const string &style="display: block")
 
bool appendChild (const element::ptr &el) override
 
bool removeChild (const element::ptr &el) override
 
void clearRecursive () override
 
string_id tag () const override
 
string_id id () const override
 
const char * get_tagName () const override
 
void set_tagName (const char *tag) override
 
void set_data (const char *data) override
 
const vector< string_id > & classes () const
 
const string_vectorstr_classes () const
 
void set_attr (const char *name, const char *val) override
 
const char * get_attr (const char *name, const char *def=nullptr) const override
 
void apply_stylesheet (const litehtml::css &stylesheet) override
 
void refresh_styles () override
 
bool is_white_space () const override
 
bool is_body () const override
 
bool is_break () const override
 
bool on_mouse_over () override
 
bool on_mouse_leave () override
 
bool on_lbutton_down () override
 
bool on_lbutton_up () override
 
void on_click () override
 
bool set_pseudo_class (string_id cls, bool add) override
 
bool set_class (const char *pclass, bool add) override
 
bool is_replaced () const override
 
void compute_styles (bool recursive=true) override
 
void draw (uint_ptr hdc, int x, int y, const position *clip, const std::shared_ptr< render_item > &ri) override
 
void draw_background (uint_ptr hdc, int x, int y, const position *clip, const std::shared_ptr< render_item > &ri) override
 
template<class Type >
const Type & get_property (string_id name, bool inherited, const Type &default_value, uint_ptr css_properties_member_offset) const
 
bool get_custom_property (string_id name, css_token_vector &result) const
 
elements_listchildren ()
 
int select (const css_selector::vector &selector_list, bool apply_pseudo=true) override
 
int select (const string &selector) override
 
int select (const css_selector &selector, bool apply_pseudo=true) override
 
int select (const css_element_selector &selector, bool apply_pseudo=true) override
 
int select_pseudoclass (const css_attribute_selector &sel)
 
int select_attribute (const css_attribute_selector &sel)
 
elements_list select_all (const string &selector) override
 
elements_list select_all (const css_selector &selector) override
 
element::ptr select_one (const string &selector) override
 
element::ptr select_one (const css_selector &selector) override
 
element::ptr find_ancestor (const css_selector &selector, bool apply_pseudo=true, bool *is_pseudo=nullptr) override
 
element::ptr find_adjacent_sibling (const element::ptr &el, const css_selector &selector, bool apply_pseudo=true, bool *is_pseudo=nullptr) override
 
element::ptr find_sibling (const element::ptr &el, const css_selector &selector, bool apply_pseudo=true, bool *is_pseudo=nullptr) override
 
void get_text (string &text) override
 
void parse_attributes () override
 
void get_content_size (size &sz, int max_width) override
 
void add_style (const style &style) override
 
bool is_nth_child (const element::ptr &el, int num, int off, bool of_type, const css_selector::vector &selector_list) const override
 
bool is_nth_last_child (const element::ptr &el, int num, int off, bool of_type, const css_selector::vector &selector_list) const override
 
bool is_only_child (const element::ptr &el, bool of_type) const override
 
const backgroundget_background (bool own_only=false) override
 
string dump_get_name () override
 
- Public Member Functions inherited from litehtml::element
 element (const std::shared_ptr< document > &doc)
 
virtual ~element ()=default
 
const css_propertiescss () const
 
css_propertiescss_w ()
 
bool in_normal_flow () const
 
bool is_inline () const
 
bool is_inline_box () const
 
bool is_block_box () const
 
position get_placement () const
 
bool is_positioned () const
 
bool is_float () const
 
bool is_block_formatting_context () const
 
bool is_root () const
 
element::ptr parent () const
 
void parent (const element::ptr &par)
 
bool is_table_skip () const
 
std::shared_ptr< documentget_document () const
 
const std::list< std::shared_ptr< element > > & children () const
 
virtual bool is_space () const
 
virtual bool is_comment () const
 
virtual bool is_text () const
 
virtual bool is_ancestor (const ptr &el) const
 
virtual std::vector< std::tuple< string, string > > dump_get_attrs ()
 
void dump (litehtml::dumper &cout)
 
std::tuple< element::ptr, element::ptr, element::ptrsplit_inlines ()
 
virtual std::shared_ptr< render_itemcreate_render_item (const std::shared_ptr< render_item > &parent_ri)
 
bool requires_styles_update ()
 
void add_render (const std::shared_ptr< render_item > &ri)
 
bool find_styles_changes (position::vector &redraw_boxes)
 
element::ptr add_pseudo_before (const style &style)
 
element::ptr add_pseudo_after (const style &style)
 
string get_counter_value (const string &counter_name)
 
string get_counters_value (const string_vector &parameters)
 
void increment_counter (const string_id &counter_name_id, const int increment=1)
 
void reset_counter (const string_id &counter_name_id, const int value=0)
 

Additional Inherited Members

- Public Types inherited from litehtml::html_tag
typedef shared_ptr< html_tagptr
 
- Public Types inherited from litehtml::element
typedef std::shared_ptr< elementptr
 
typedef std::shared_ptr< const elementconst_ptr
 
typedef std::weak_ptr< elementweak_ptr
 
- Protected Member Functions inherited from litehtml::html_tag
void select_all (const css_selector &selector, elements_list &res) override
 
void draw_list_marker (uint_ptr hdc, const position &pos)
 
string get_list_marker_text (int index)
 
element::ptr get_element_before (const style &style, bool create)
 
element::ptr get_element_after (const style &style, bool create)
 
void map_to_pixel_length_property (string_id prop_name, string attr_value)
 
void map_to_pixel_length_property_with_default_value (string_id prop_name, string attr_value, int default_value)
 
void map_to_dimension_property (string_id prop_name, string attr_value)
 
void map_to_dimension_property_ignoring_zero (string_id prop_name, string attr_value)
 
- Protected Member Functions inherited from litehtml::element
element::ptr _add_before_after (int type, const style &style)
 
- Protected Attributes inherited from litehtml::html_tag
string_id m_tag
 
string_id m_id
 
string_vector m_str_classes
 
vector< string_id > m_classes
 
style m_style
 
string_map m_attrs
 
vector< string_id > m_pseudo_classes
 
- Protected Attributes inherited from litehtml::element
std::weak_ptr< elementm_parent
 
std::weak_ptr< documentm_doc
 
elements_list m_children
 
css_properties m_css
 
std::list< std::weak_ptr< render_item > > m_renders
 
used_selector::vector m_used_styles
 

Constructor & Destructor Documentation

◆ el_before()

litehtml::el_before::el_before ( const std::shared_ptr< document > &  doc)
inlineexplicit

The documentation for this class was generated from the following file: