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

#include <el_comment.h>

Inheritance diagram for litehtml::el_comment:
litehtml::element

Public Member Functions

 el_comment (const std::shared_ptr< document > &doc)
 
bool is_comment () const override
 
void get_text (string &text) override
 
void set_data (const char *data) override
 
std::shared_ptr< render_itemcreate_render_item (const std::shared_ptr< render_item > &) 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 appendChild (const ptr &el)
 
virtual bool removeChild (const ptr &el)
 
virtual void clearRecursive ()
 
virtual string_id id () const
 
virtual string_id tag () const
 
virtual const char * get_tagName () const
 
virtual void set_tagName (const char *tag)
 
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_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 parse_attributes ()
 
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 ()
 
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

string m_text
 

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_comment()

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

Member Function Documentation

◆ create_render_item()

std::shared_ptr< render_item > litehtml::el_comment::create_render_item ( const std::shared_ptr< render_item > &  )
inlineoverridevirtual

Reimplemented from litehtml::element.

◆ get_text()

void litehtml::el_comment::get_text ( string &  text)
overridevirtual

Reimplemented from litehtml::element.

◆ is_comment()

bool litehtml::el_comment::is_comment ( ) const
overridevirtual

Reimplemented from litehtml::element.

◆ set_data()

void litehtml::el_comment::set_data ( const char *  data)
overridevirtual

Reimplemented from litehtml::element.

Member Data Documentation

◆ m_text

string litehtml::el_comment::m_text
private

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