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 };
94 void setOnPressAction( std::function<
void( std::shared_ptr<RibbonMenuItem>,
const std::string& )> action ) { onPressAction_ = action; };
96 void setGetterRequirements( std::function<std::string( std::shared_ptr<RibbonMenuItem> )> getterRequirements ) { getRequirements_ = getterRequirements; };
104 void drawDropList_(
const std::shared_ptr<RibbonMenuItem>& baseDropItem )
const;
105 void drawTooltip_(
const MenuItemInfo& item,
const std::string& requirements )
const;
110 std::function<void( std::shared_ptr<RibbonMenuItem>,
const std::string& )> onPressAction_ = []( std::shared_ptr<RibbonMenuItem>,
const std::string& ) {};
111 std::function<std::string( std::shared_ptr<RibbonMenuItem> )> getRequirements_ = []( std::shared_ptr<RibbonMenuItem> ) {
return std::string(); };
112 RibbonMenu* menu_ =
nullptr;
113 const ShortcutManager* shortcutManager_ =
nullptr;
115 std::optional<Color> monochrome_;
117 float scaling_ = 1.f;
118 static std::vector<std::unique_ptr<MR::ImGuiImage>> textures_;
IconType
Definition MRRibbonIcons.h:21
Definition MRShortcutManager.h:44
Definition MRCameraOrientationPlugin.h:8