Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::view::MenuItemMetricsQuery Struct Reference

What a menu row is, when the delegate is asked how big it should be. More...

#include <widget_metrics.hpp>

Public Attributes

std::string text
bool separator = false
bool header = false
bool ticked = false
bool has_submenu = false
float standard_height = 0.0f
 The height the widget would use if the delegate declines — passed so a delegate can honor a caller-requested row height instead of forcing its own.

Detailed Description

What a menu row is, when the delegate is asked how big it should be.

Member Data Documentation

◆ has_submenu

bool pulp::view::MenuItemMetricsQuery::has_submenu = false

◆ header

bool pulp::view::MenuItemMetricsQuery::header = false

◆ separator

bool pulp::view::MenuItemMetricsQuery::separator = false

◆ standard_height

float pulp::view::MenuItemMetricsQuery::standard_height = 0.0f

The height the widget would use if the delegate declines — passed so a delegate can honor a caller-requested row height instead of forcing its own.

◆ text

std::string pulp::view::MenuItemMetricsQuery::text

◆ ticked

bool pulp::view::MenuItemMetricsQuery::ticked = false

The documentation for this struct was generated from the following file: