#include <fragment_cache.h>
Inheritance diagram for cwidget::fragment_cache:
Public Member Functions | |
fragment_cache (fragment *_contents) | |
void | invalidate () |
fragment_contents | layout (size_t firstw, size_t restw, const style &st) |
Return all the lines of this fragment, given the "shape" of the fragment. | |
void | set_attr (int attr) |
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 |
Obviously this should only be done if you know that the contents are static.
|
Implements cwidget::fragment. |
|
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.
Implements cwidget::fragment. |
|
Implements cwidget::fragment. |
|
Implements cwidget::fragment. |