#include <fragment.h>
Inheritance diagram for cwidget::fragment:
Public Member Functions | |
virtual fragment_contents | layout (size_t firstw, size_t w, const style &st)=0 |
Return all the lines of this fragment, given the "shape" of the fragment. | |
virtual size_t | max_width (size_t first_indent, size_t rest_indent) const =0 |
virtual size_t | trailing_width (size_t first_indent, size_t rest_indent) const =0 |
virtual bool | final_newline () const =0 |
virtual | ~fragment () |
Nothing to do in the base class. |
|
Implemented in cwidget::_text_fragment, cwidget::_newline_fragment, cwidget::fragment_container, and cwidget::fragment_cache. |
|
Return all the lines of this fragment, given the "shape" of the fragment. Note that some fragments ignore the given widths, so the caller is expected to either put everything in a formatting box (one that forces its contents to stay "in bounds") or manually clip the return value.
Implemented in cwidget::_text_fragment, cwidget::_newline_fragment, cwidget::_sequence_fragment, and cwidget::fragment_cache. |
|
Implemented in cwidget::_text_fragment, cwidget::_newline_fragment, cwidget::fragment_container, and cwidget::fragment_cache. |
|
Implemented in cwidget::_text_fragment, cwidget::_newline_fragment, cwidget::fragment_container, and cwidget::fragment_cache. |