MeshLib C++ Docs
Loading...
Searching...
No Matches
MRViewerTitle.h
Go to the documentation of this file.
1#pragma once
2#include "MRViewerFwd.h"
3#include <string>
4
5namespace MR
6{
7
10class MRVIEWER_CLASS ViewerTitle
11{
12public:
13 ViewerTitle() = default;
14 virtual ~ViewerTitle() = default;
15
17 MRVIEWER_API void setAppName( std::string appName );
18
20 MRVIEWER_API void setVersion( std::string version );
21
23 MRVIEWER_API void setSceneName( std::string sceneName );
24
25 // this function is called from `update_` compose resulting name
26 MRVIEWER_API virtual std::string compose() const;
27protected:
28 // called when something changes, composes new title and apply it to window
29 MRVIEWER_API void update_();
30
31 std::string appName_;
32 std::string version_;
33 std::string sceneName_;
34
35private:
36 std::string composed_;
37};
38
39}
Definition MRViewerTitle.h:11
std::string version_
Definition MRViewerTitle.h:32
MRVIEWER_API void update_()
MRVIEWER_API void setSceneName(std::string sceneName)
Name of current scene.
MRVIEWER_API void setVersion(std::string version)
Version of application.
std::string sceneName_
Definition MRViewerTitle.h:33
virtual ~ViewerTitle()=default
MRVIEWER_API void setAppName(std::string appName)
Name of the application.
ViewerTitle()=default
std::string appName_
Definition MRViewerTitle.h:31
virtual MRVIEWER_API std::string compose() const