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

#include <el_style.h>

Inheritance diagram for litehtml::el_style:
litehtml::element

Public Member Functions

 el_style (const std::shared_ptr< document > &doc)
 
void parse_attributes () override
 
bool appendChild (const ptr &el) override
 
string_id tag () const override
 
const char * get_tagName () const 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 elements_list select_all (const string &selector)
 
virtual elements_list select_all (const css_selector &selector)
 
virtual element::ptr select_one (const string &selector)
 
virtual element::ptr select_one (const css_selector &selector)
 
virtual bool removeChild (const ptr &el)
 
virtual void clearRecursive ()
 
virtual string_id id () const
 
virtual void set_tagName (const char *tag)
 
virtual void set_data (const char *data)
 
virtual void set_attr (const char *name, const char *val)
 
virtual const char * get_attr (const char *name, const char *def=nullptr) const
 
virtual void apply_stylesheet (const litehtml::css &stylesheet)
 
virtual void refresh_styles ()
 
virtual bool is_white_space () const
 
virtual bool is_space () const
 
virtual bool is_comment () const
 
virtual bool is_body () const
 
virtual bool is_break () const
 
virtual bool is_text () const
 
virtual bool on_mouse_over ()
 
virtual bool on_mouse_leave ()
 
virtual bool on_lbutton_down ()
 
virtual bool on_lbutton_up ()
 
virtual void on_click ()
 
virtual bool set_pseudo_class (string_id cls, bool add)
 
virtual bool set_class (const char *pclass, bool add)
 
virtual bool is_replaced () const
 
virtual void compute_styles (bool recursive=true)
 
virtual void draw (uint_ptr hdc, int x, int y, const position *clip, const std::shared_ptr< render_item > &ri)
 
virtual void draw_background (uint_ptr hdc, int x, int y, const position *clip, const std::shared_ptr< render_item > &ri)
 
virtual void get_text (string &text)
 
virtual int select (const css_selector::vector &selector_list, bool apply_pseudo=true)
 
virtual int select (const string &selector)
 
virtual int select (const css_selector &selector, bool apply_pseudo=true)
 
virtual int select (const css_element_selector &selector, bool apply_pseudo=true)
 
virtual element::ptr find_ancestor (const css_selector &selector, bool apply_pseudo=true, bool *is_pseudo=nullptr)
 
virtual bool is_ancestor (const ptr &el) const
 
virtual element::ptr find_adjacent_sibling (const element::ptr &el, const css_selector &selector, bool apply_pseudo=true, bool *is_pseudo=nullptr)
 
virtual element::ptr find_sibling (const element::ptr &el, const css_selector &selector, bool apply_pseudo=true, bool *is_pseudo=nullptr)
 
virtual void get_content_size (size &sz, int max_width)
 
virtual bool is_nth_child (const element::ptr &el, int num, int off, bool of_type, const css_selector::vector &selector_list={}) const
 
virtual bool is_nth_last_child (const element::ptr &el, int num, int off, bool of_type, const css_selector::vector &selector_list={}) const
 
virtual bool is_only_child (const element::ptr &el, bool of_type) const
 
virtual void add_style (const style &style)
 
virtual const backgroundget_background (bool own_only=false)
 
virtual string dump_get_name ()
 
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)
 

Private Attributes

elements_list m_children
 

Additional Inherited Members

- 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::element
virtual void select_all (const css_selector &selector, elements_list &res)
 
element::ptr _add_before_after (int type, const style &style)
 
- 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_style()

litehtml::el_style::el_style ( const std::shared_ptr< document > &  doc)
explicit

Member Function Documentation

◆ appendChild()

bool litehtml::el_style::appendChild ( const ptr el)
overridevirtual

Reimplemented from litehtml::element.

◆ get_tagName()

const char * litehtml::el_style::get_tagName ( ) const
overridevirtual

Reimplemented from litehtml::element.

◆ parse_attributes()

void litehtml::el_style::parse_attributes ( )
overridevirtual

Reimplemented from litehtml::element.

◆ tag()

litehtml::string_id litehtml::el_style::tag ( ) const
overridevirtual

Reimplemented from litehtml::element.

Member Data Documentation

◆ m_children

elements_list litehtml::el_style::m_children
private

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