A base class for fragment containers that supports caching information about the children. More...
Public Member Functions | |
virtual size_t | calc_max_width (size_t first_indent, size_t rest_indent) const =0 |
Actually calculate the maximum width. | |
virtual size_t | calc_trailing_width (size_t first_indent, size_t rest_indent) const =0 |
Actually calculate the trailing width. | |
virtual bool | calc_final_newline () const =0 |
Actually calculate the final-nl status. | |
size_t | max_width (size_t first_indent, size_t rest_indent) const |
size_t | trailing_width (size_t first_indent, size_t rest_indent) const |
bool | final_newline () const |
A base class for fragment containers that supports caching information about the children.
(yum, premature optimization)
virtual bool cwidget::fragment_container::calc_final_newline | ( | ) | const [pure virtual] |
Actually calculate the final-nl status.
Implemented in cwidget::_sequence_fragment, cwidget::_flowbox, cwidget::_fillbox, cwidget::_hardwrapbox, cwidget::_clipbox, cwidget::_indentbox, and cwidget::_fragment_columns.
Referenced by final_newline().
virtual size_t cwidget::fragment_container::calc_max_width | ( | size_t | first_indent, | |
size_t | rest_indent | |||
) | const [pure virtual] |
Actually calculate the maximum width.
Implemented in cwidget::_sequence_fragment, cwidget::_flowbox, cwidget::_fillbox, cwidget::_hardwrapbox, cwidget::_clipbox, cwidget::_indentbox, and cwidget::_fragment_columns.
virtual size_t cwidget::fragment_container::calc_trailing_width | ( | size_t | first_indent, | |
size_t | rest_indent | |||
) | const [pure virtual] |
Actually calculate the trailing width.
Implemented in cwidget::_sequence_fragment, cwidget::_flowbox, cwidget::_fillbox, cwidget::_hardwrapbox, cwidget::_clipbox, cwidget::_indentbox, and cwidget::_fragment_columns.
bool cwidget::fragment_container::final_newline | ( | ) | const [inline, virtual] |
Implements cwidget::fragment.
References calc_final_newline().
size_t cwidget::fragment_container::max_width | ( | size_t | first_indent, | |
size_t | rest_indent | |||
) | const [inline, virtual] |
first_indent | the indentation of the first line, relative to a baseline (which may be outside this fragment). | |
rest_indent | the indentation of any other lines. |
Implements cwidget::fragment.
size_t cwidget::fragment_container::trailing_width | ( | size_t | first_indent, | |
size_t | rest_indent | |||
) | const [inline, virtual] |
first_indent | the indentation of the first line. | |
rest_indent | the indentation of any other lines. |
Implements cwidget::fragment.