patterns: Added support for the new [[sealed]] attribute
This commit is contained in:
parent
4d3538781b
commit
de2458f72d
2
lib/external/pattern_language
vendored
2
lib/external/pattern_language
vendored
@ -1 +1 @@
|
||||
Subproject commit 1b0de5e85bd919c2b59f2eabce3ac91f629cebab
|
||||
Subproject commit bdba32552bbfbd7b06b00d1f788385d66c822e9f
|
@ -361,7 +361,12 @@ namespace hex {
|
||||
}
|
||||
|
||||
bool PatternDrawer::createTreeNode(const pl::Pattern& pattern) const {
|
||||
return ImGui::TreeNodeEx(pattern.getDisplayName().c_str(), ImGuiTreeNodeFlags_SpanFullWidth);
|
||||
if (pattern.isSealed()) {
|
||||
ImGui::Selectable(pattern.getDisplayName().c_str(), false, ImGuiSelectableFlags_SpanAllColumns | ImGuiSelectableFlags_AllowItemOverlap);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
return ImGui::TreeNodeEx(pattern.getDisplayName().c_str(), ImGuiTreeNodeFlags_SpanFullWidth);
|
||||
}
|
||||
|
||||
void PatternDrawer::drawTypenameColumn(const pl::Pattern& pattern, const std::string& pattern_name) const {
|
||||
|
Loading…
x
Reference in New Issue
Block a user