68 MRVIEWER_API
static bool CustomCollapsingHeader(
const char* label, ImGuiTreeNodeFlags flags = 0,
int issueCount = 0 );
72 float baseWidth{ 0.0f };
73 float additionalWidth{ 0.0f };
91 void setOnPressAction( std::function<
void( std::shared_ptr<RibbonMenuItem>,
bool )> action ) { onPressAction_ = action; };
93 void setGetterRequirements( std::function<std::string( std::shared_ptr<RibbonMenuItem> )> getterRequirements ) { getRequirements_ = getterRequirements; };
97 void setScaling(
float scaling ) { scaling_ = scaling; };
101 void drawDropList_(
const std::shared_ptr<RibbonMenuItem>& baseDropItem )
const;
102 void drawTooltip_(
const MenuItemInfo& item,
const std::string& requirements )
const;
107 std::function<void( std::shared_ptr<RibbonMenuItem>,
bool )> onPressAction_ = []( std::shared_ptr<RibbonMenuItem>, bool ) {};
108 std::function<std::string( std::shared_ptr<RibbonMenuItem> )> getRequirements_ = []( std::shared_ptr<RibbonMenuItem> ) {
return std::string(); };
109 RibbonMenu* menu_ =
nullptr;
110 const ShortcutManager* shortcutManager_ =
nullptr;
112 float scaling_ = 1.f;
113 static std::vector<std::unique_ptr<MR::ImGuiImage>> textures_;
IconType
Definition MRRibbonIcons.h:21
Definition MRShortcutManager.h:44
Definition MRCameraOrientationPlugin.h:7