Cogs.Core
Public Member Functions | Private Attributes | List of all members
litehtml::block_box Class Reference
Inheritance diagram for litehtml::block_box:
litehtml::box

Public Member Functions

 block_box (int top, int left, int right)
 
virtual litehtml::box_type get_type ()
 
virtual int height ()
 
virtual int width ()
 
virtual void add_element (const element::ptr &el)
 
virtual bool can_hold (const element::ptr &el, white_space ws)
 
virtual void finish (bool last_box=false)
 
virtual bool is_empty ()
 
virtual int baseline ()
 
virtual void get_elements (elements_vector &els)
 
virtual int top_margin ()
 
virtual int bottom_margin ()
 
virtual void y_shift (int shift)
 
virtual void new_width (int left, int right, elements_vector &els)
 
- Public Member Functions inherited from litehtml::box
 box (int top, int left, int right)
 
int bottom ()
 
int top ()
 
int right ()
 
int left ()
 
virtual litehtml::box_type get_type ()=0
 
virtual int height ()=0
 
virtual int width ()=0
 
virtual void add_element (const element::ptr &el)=0
 
virtual bool can_hold (const element::ptr &el, white_space ws)=0
 
virtual void finish (bool last_box=false)=0
 
virtual bool is_empty ()=0
 
virtual int baseline ()=0
 
virtual void get_elements (elements_vector &els)=0
 
virtual int top_margin ()=0
 
virtual int bottom_margin ()=0
 
virtual void y_shift (int shift)=0
 
virtual void new_width (int left, int right, elements_vector &els)=0
 

Private Attributes

element::ptr m_element
 

Additional Inherited Members

- Public Types inherited from litehtml::box
typedef std::unique_ptr< litehtml::boxptr
 
typedef std::vector< box::ptr > vector
 
- Protected Attributes inherited from litehtml::box
int m_box_top
 
int m_box_left
 
int m_box_right
 

Detailed Description

Definition at line 54 of file box.h.

Constructor & Destructor Documentation

◆ block_box()

litehtml::block_box::block_box ( int  top,
int  left,
int  right 
)
inline

Definition at line 58 of file box.h.

Member Function Documentation

◆ add_element()

void litehtml::block_box::add_element ( const element::ptr &  el)
virtual

Implements litehtml::box.

Definition at line 28 of file box.cpp.

◆ baseline()

int litehtml::block_box::baseline ( )
virtual

Implements litehtml::box.

Definition at line 58 of file box.cpp.

◆ bottom_margin()

int litehtml::block_box::bottom_margin ( )
virtual

Implements litehtml::box.

Definition at line 81 of file box.cpp.

◆ can_hold()

bool litehtml::block_box::can_hold ( const element::ptr &  el,
white_space  ws 
)
virtual

Implements litehtml::box.

Definition at line 40 of file box.cpp.

◆ finish()

void litehtml::block_box::finish ( bool  last_box = false)
virtual

Implements litehtml::box.

Definition at line 34 of file box.cpp.

◆ get_elements()

void litehtml::block_box::get_elements ( elements_vector &  els)
virtual

Implements litehtml::box.

Definition at line 67 of file box.cpp.

◆ get_type()

litehtml::box_type litehtml::block_box::get_type ( )
virtual

Implements litehtml::box.

Definition at line 13 of file box.cpp.

◆ height()

int litehtml::block_box::height ( )
virtual

Implements litehtml::box.

Definition at line 18 of file box.cpp.

◆ is_empty()

bool litehtml::block_box::is_empty ( )
virtual

Implements litehtml::box.

Definition at line 49 of file box.cpp.

◆ new_width()

void litehtml::block_box::new_width ( int  left,
int  right,
elements_vector &  els 
)
virtual

Implements litehtml::box.

Definition at line 99 of file box.cpp.

◆ top_margin()

int litehtml::block_box::top_margin ( )
virtual

Implements litehtml::box.

Definition at line 72 of file box.cpp.

◆ width()

int litehtml::block_box::width ( )
virtual

Implements litehtml::box.

Definition at line 23 of file box.cpp.

◆ y_shift()

void litehtml::block_box::y_shift ( int  shift)
virtual

Implements litehtml::box.

Definition at line 90 of file box.cpp.

Member Data Documentation

◆ m_element

element::ptr litehtml::block_box::m_element
private

Definition at line 56 of file box.h.


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