22 #ifndef FRAGMENT_CACHE_H 23 #define FRAGMENT_CACHE_H 42 mutable style cached_lines_style;
47 mutable size_t cached_lines_first_width, cached_lines_rest_width;
50 mutable size_t cached_max_width;
53 mutable size_t cached_max_width_first_indent, cached_max_width_rest_indent;
56 mutable size_t cached_trailing_width;
59 mutable size_t cached_trailing_width_first_indent, cached_trailing_width_rest_indent;
62 mutable bool cached_final_nl:1;
65 mutable bool cached_lines_valid:1, cached_max_width_valid:1;
67 mutable bool cached_trailing_width_valid:1, cached_final_nl_valid:1;
77 void set_attr(
int attr);
79 size_t max_width(
size_t first_indent,
size_t rest_indent)
const;
80 size_t trailing_width(
size_t first_indent,
size_t rest_indent)
const;
This class represents the formatted contents of a fragment.
Definition: fragment_contents.h:30