MeshLib C++ Docs
Loading...
Searching...
No Matches
MRRibbonLayoutConfig.h
Go to the documentation of this file.
1#pragma once
2
3#include "exports.h"
5#include "MRMesh/MRColor.h"
6#include "MRPch/MRJson.h"
7#include <optional>
8
9namespace MR
10{
13
14
16{
17 std::optional<RibbonMenuUIConfig> menuUIConfig;
18 std::optional<Color> monochromeRibbonIcons;
19 std::optional<Json::Value> colorTheme;
20 std::optional<Json::Value> ribbonStructure;
21 std::optional<Json::Value> ribbonItemsOverrides;
22};
23
25MRVIEWER_API RibbonConfig createRibbonConfigFromJson( const Json::Value& root );
26
28MRVIEWER_API void applyRibbonConfig( const RibbonConfig& config );
29
30}
std::optional< RibbonMenuUIConfig > menuUIConfig
Definition MRRibbonLayoutConfig.h:17
MRVIEWER_API void applyRibbonConfig(const RibbonConfig &config)
apply given config to the application
std::optional< Json::Value > colorTheme
if present all ribbon items will be drawn with this monochrome color (if available)
Definition MRRibbonLayoutConfig.h:19
std::optional< Color > monochromeRibbonIcons
Definition MRRibbonLayoutConfig.h:18
std::optional< Json::Value > ribbonItemsOverrides
analogue for ui.json file, if present will replace current layout
Definition MRRibbonLayoutConfig.h:21
MRVIEWER_API RibbonConfig createRibbonConfigFromJson(const Json::Value &root)
parse given json and setup RibbonConfig from it
std::optional< Json::Value > ribbonStructure
if present will be applied
Definition MRRibbonLayoutConfig.h:20
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRRibbonLayoutConfig.h:16