diff options
| -rw-r--r-- | vulkaninfo/outputprinter.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/vulkaninfo/outputprinter.h b/vulkaninfo/outputprinter.h index 862e965d..730b1b69 100644 --- a/vulkaninfo/outputprinter.h +++ b/vulkaninfo/outputprinter.h @@ -257,6 +257,11 @@ class Printer { return *this; } + Printer &SetAlwaysOpenDetails(bool value = true) { + should_always_open = value; + return *this; + } + Printer &SetTitleAsType() { set_object_name_as_type = true; return *this; @@ -298,7 +303,7 @@ class Printer { } case (OutputType::html): out << std::string(static_cast<size_t>(indents), '\t'); - if (set_details_open) { + if (set_details_open || should_always_open) { out << "<details open>"; set_details_open = false; } else { @@ -398,7 +403,7 @@ class Printer { } case (OutputType::html): out << std::string(static_cast<size_t>(indents), '\t'); - if (set_details_open) { + if (set_details_open || should_always_open) { out << "<details open>"; set_details_open = false; } else { @@ -663,6 +668,9 @@ class Printer { // open <details> bool set_details_open = false; + // always open <details> + bool should_always_open = false; + // make object titles the color of types bool set_object_name_as_type = false; |
