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

#include <render_table.h>

Inheritance diagram for litehtml::render_item_table:
litehtml::render_item

Public Member Functions

 render_item_table (std::shared_ptr< element > src_el)
 
std::shared_ptr< render_itemclone () override
 
void draw_children (uint_ptr hdc, int x, int y, const position *clip, draw_flag flag, int zindex) override
 
int get_draw_vertical_offset () override
 
std::shared_ptr< render_iteminit () 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 void apply_vertical_align ()
 
virtual int get_first_baseline ()
 
virtual int get_last_baseline ()
 
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)
 
virtual void get_inline_boxes (position::vector &) const
 
virtual void set_inline_boxes (position::vector &)
 
virtual void add_inline_box (const position &)
 
virtual void clear_inline_boxes ()
 
void draw_stacking_context (uint_ptr hdc, int x, int y, const position *clip, bool with_positioned)
 
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 Member Functions

int _render (int x, int y, const containing_block_context &containing_block_size, formatting_context *fmt_ctx, bool second_pass) override
 
- 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
 

Protected Attributes

std::unique_ptr< table_gridm_grid
 
int m_border_spacing_x
 
int m_border_spacing_y
 
- 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
 

Constructor & Destructor Documentation

◆ render_item_table()

litehtml::render_item_table::render_item_table ( std::shared_ptr< element src_el)
explicit

Member Function Documentation

◆ _render()

int litehtml::render_item_table::_render ( int  x,
int  y,
const containing_block_context containing_block_size,
formatting_context fmt_ctx,
bool  second_pass 
)
overrideprotectedvirtual

Reimplemented from litehtml::render_item.

◆ clone()

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

Reimplemented from litehtml::render_item.

◆ draw_children()

void litehtml::render_item_table::draw_children ( uint_ptr  hdc,
int  x,
int  y,
const position clip,
draw_flag  flag,
int  zindex 
)
overridevirtual

Reimplemented from litehtml::render_item.

◆ get_draw_vertical_offset()

int litehtml::render_item_table::get_draw_vertical_offset ( )
overridevirtual

Reimplemented from litehtml::render_item.

◆ init()

std::shared_ptr< litehtml::render_item > litehtml::render_item_table::init ( )
overridevirtual

Reimplemented from litehtml::render_item.

Member Data Documentation

◆ m_border_spacing_x

int litehtml::render_item_table::m_border_spacing_x
protected

◆ m_border_spacing_y

int litehtml::render_item_table::m_border_spacing_y
protected

◆ m_grid

std::unique_ptr<table_grid> litehtml::render_item_table::m_grid
protected

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