MeshLib Documentation
Loading...
Searching...
No Matches
MR::RibbonSchemaHolder Class Reference

#include <MRRibbonSchema.h>

Classes

struct  SearchResult
 struct to hold information for search result presentation More...
 
struct  SearchResultWeight
 ancillary struct to hold information for search result order More...
 

Static Public Member Functions

static MRVIEWER_API RibbonSchemaschema ()
 
static MRVIEWER_API bool addItem (const std::shared_ptr< RibbonMenuItem > &item)
 
static MRVIEWER_API bool delItem (const std::shared_ptr< RibbonMenuItem > &item)
 
static MRVIEWER_API std::vector< SearchResultsearch (const std::string &searchStr, int *captionCount=nullptr, std::vector< SearchResultWeight > *weights=nullptr)
 

Member Function Documentation

◆ addItem()

static MRVIEWER_API bool MR::RibbonSchemaHolder::addItem ( const std::shared_ptr< RibbonMenuItem > & item)
static

adds item to static holder (needed to be independent of construction time) returns false if item with such name is already present

◆ delItem()

static MRVIEWER_API bool MR::RibbonSchemaHolder::delItem ( const std::shared_ptr< RibbonMenuItem > & item)
static

removes item from the static holder returns false if item was not present

◆ schema()

static MRVIEWER_API RibbonSchema & MR::RibbonSchemaHolder::schema ( )
static

◆ search()

static MRVIEWER_API std::vector< SearchResult > MR::RibbonSchemaHolder::search ( const std::string & searchStr,
int * captionCount = nullptr,
std::vector< SearchResultWeight > * weights = nullptr )
static

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