Cogs.Core
Public Types | Public Member Functions | Protected Attributes | List of all members
litehtml::box Class Referenceabstract
Inheritance diagram for litehtml::box:
litehtml::block_box litehtml::line_box

Public Types

typedef std::unique_ptr< litehtml::boxptr
 
typedef std::vector< box::ptr > vector
 

Public Member Functions

 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
 

Protected Attributes

int m_box_top
 
int m_box_left
 
int m_box_right
 

Detailed Description

Definition at line 14 of file box.h.

Member Typedef Documentation

◆ ptr

typedef std::unique_ptr<litehtml::box> litehtml::box::ptr

Definition at line 17 of file box.h.

◆ vector

typedef std::vector< box::ptr > litehtml::box::vector

Definition at line 18 of file box.h.

Constructor & Destructor Documentation

◆ box()

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

Definition at line 24 of file box.h.

◆ ~box()

virtual litehtml::box::~box ( )
inlinevirtual

Definition at line 30 of file box.h.

Member Function Documentation

◆ bottom()

int litehtml::box::bottom ( )
inline

Definition at line 32 of file box.h.

◆ left()

int litehtml::box::left ( )
inline

Definition at line 35 of file box.h.

◆ right()

int litehtml::box::right ( )
inline

Definition at line 34 of file box.h.

◆ top()

int litehtml::box::top ( )
inline

Definition at line 33 of file box.h.

Member Data Documentation

◆ m_box_left

int litehtml::box::m_box_left
protected

Definition at line 21 of file box.h.

◆ m_box_right

int litehtml::box::m_box_right
protected

Definition at line 22 of file box.h.

◆ m_box_top

int litehtml::box::m_box_top
protected

Definition at line 20 of file box.h.


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