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

#include <render_inline.h>

Inheritance diagram for litehtml::render_item_inline:
litehtml::render_item

Public Member Functions

 render_item_inline (std::shared_ptr< element > src_el)
 
void get_inline_boxes (position::vector &boxes) const override
 
void set_inline_boxes (position::vector &boxes) override
 
void add_inline_box (const position &box) override
 
void clear_inline_boxes () override
 
int get_first_baseline () override
 
int get_last_baseline () override
 
std::shared_ptr< render_itemclone () override
 
- Public Member Functions inherited from litehtml::render_item
 render_item (std::shared_ptr< element > src_el)
 
virtual ~render_item ()=default
 
std::list< std::shared_ptr< render_item > > & children ()
 
positionpos ()
 
bool skip () const
 
void skip (bool val)
 
int right () const
 
int left () const
 
int top () const
 
int bottom () const
 
int height () const
 
int width () const
 
int padding_top () const
 
int padding_bottom () const
 
int padding_left () const
 
int padding_right () const
 
int border_top () const
 
int border_bottom () const
 
int border_left () const
 
int border_right () const
 
int margin_top () const
 
int margin_bottom () const
 
int margin_left () const
 
int margin_right () const
 
std::shared_ptr< render_itemparent () const
 
marginsget_margins ()
 
marginsget_paddings ()
 
void set_paddings (const margins &val)
 
marginsget_borders ()
 
int content_offset_top () const
 
int content_offset_bottom () const
 
int content_offset_left () const
 
int content_offset_right () const
 
int content_offset_width () const
 
int content_offset_height () const
 
int render_offset_left () const
 
int render_offset_right () const
 
int render_offset_width () const
 
int render_offset_top () const
 
int render_offset_bottom () const
 
int render_offset_height () const
 
int box_sizing_left () const
 
int box_sizing_right () const
 
int box_sizing_width () const
 
int box_sizing_top () const
 
int box_sizing_bottom () const
 
int box_sizing_height () const
 
void parent (const std::shared_ptr< render_item > &par)
 
const std::shared_ptr< element > & src_el () const
 
const css_propertiescss () const
 
void add_child (const std::shared_ptr< render_item > &ri)
 
bool is_root () const
 
bool collapse_top_margin () const
 
bool collapse_bottom_margin () const
 
bool is_visible () const
 
bool is_flex_item () const
 
int render (int x, int y, const containing_block_context &containing_block_size, formatting_context *fmt_ctx, bool second_pass=false)
 
void apply_relative_shift (const containing_block_context &containing_block_size)
 
void calc_outlines (int parent_width)
 
int calc_auto_margins (int parent_width)
 
virtual std::shared_ptr< render_iteminit ()
 
virtual void apply_vertical_align ()
 
std::tuple< std::shared_ptr< litehtml::render_item >, std::shared_ptr< litehtml::render_item >, std::shared_ptr< litehtml::render_item > > split_inlines ()
 
bool fetch_positioned ()
 
void render_positioned (render_type width=render_all)
 
std::tuple< int, int > element_static_offset (const std::shared_ptr< litehtml::render_item > &el)
 
void add_positioned (const std::shared_ptr< litehtml::render_item > &el)
 
void get_redraw_box (litehtml::position &pos, int x=0, int y=0)
 
void calc_document_size (litehtml::size &sz, litehtml::size &content_size, int x=0, int y=0)
 
void draw_stacking_context (uint_ptr hdc, int x, int y, const position *clip, bool with_positioned)
 
virtual void draw_children (uint_ptr hdc, int x, int y, const position *clip, draw_flag flag, int zindex)
 
virtual int get_draw_vertical_offset ()
 
virtual std::shared_ptr< elementget_child_by_point (int x, int y, int client_x, int client_y, draw_flag flag, int zindex)
 
std::shared_ptr< elementget_element_by_point (int x, int y, int client_x, int client_y)
 
bool is_point_inside (int x, int y)
 
void dump (litehtml::dumper &cout)
 
position get_placement () const
 
void get_rendering_boxes (position::vector &redraw_boxes)
 

Protected Attributes

position::vector m_boxes
 
- Protected Attributes inherited from litehtml::render_item
std::shared_ptr< elementm_element
 
std::weak_ptr< render_itemm_parent
 
std::list< std::shared_ptr< render_item > > m_children
 
margins m_margins
 
margins m_padding
 
margins m_borders
 
position m_pos
 
bool m_skip
 
std::vector< std::shared_ptr< render_item > > m_positioned
 

Additional Inherited Members

- Protected Member Functions inherited from litehtml::render_item
containing_block_context calculate_containing_block_context (const containing_block_context &cb_context)
 
void calc_cb_length (const css_length &len, int percent_base, containing_block_context::typed_int &out_value) const
 
virtual int _render (int, int, const containing_block_context &, formatting_context *, bool)
 

Constructor & Destructor Documentation

◆ render_item_inline()

litehtml::render_item_inline::render_item_inline ( std::shared_ptr< element src_el)
inlineexplicit

Member Function Documentation

◆ add_inline_box()

void litehtml::render_item_inline::add_inline_box ( const position box)
inlineoverridevirtual

Reimplemented from litehtml::render_item.

◆ clear_inline_boxes()

void litehtml::render_item_inline::clear_inline_boxes ( )
inlineoverridevirtual

Reimplemented from litehtml::render_item.

◆ clone()

std::shared_ptr< render_item > litehtml::render_item_inline::clone ( )
inlineoverridevirtual

Reimplemented from litehtml::render_item.

◆ get_first_baseline()

int litehtml::render_item_inline::get_first_baseline ( )
inlineoverridevirtual

Get first baseline position. Default position is element bottom without bottom margin.

Returns
offset of the first baseline from element top

Reimplemented from litehtml::render_item.

◆ get_inline_boxes()

void litehtml::render_item_inline::get_inline_boxes ( position::vector boxes) const
inlineoverridevirtual

Reimplemented from litehtml::render_item.

◆ get_last_baseline()

int litehtml::render_item_inline::get_last_baseline ( )
inlineoverridevirtual

Get last baseline position. Default position is element bottom without bottom margin.

Returns
offset of the last baseline from element top

Reimplemented from litehtml::render_item.

◆ set_inline_boxes()

void litehtml::render_item_inline::set_inline_boxes ( position::vector boxes)
inlineoverridevirtual

Reimplemented from litehtml::render_item.

Member Data Documentation

◆ m_boxes

position::vector litehtml::render_item_inline::m_boxes
protected

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