MyScript Interactive Ink SDK  4.1.2
ContentPart.h
1 // Copyright @ MyScript. All rights reserved.
2 
3 #pragma once
4 
5 #include <iink/Engine.h>
6 #include <iink/graphics/Point.h>
7 #include <iink/graphics/Rectangle.h>
8 
9 #include <memory>
10 
11 namespace myscript {
12 namespace iink {
13 
14 class ContentPackage;
15 class ParameterSet;
16 
25 {
26 public:
27  virtual ~ContentPart() = default;
28 
34  virtual std::shared_ptr<ContentPackage> getPackage() const noexcept = 0;
35 
41  virtual String getId() const noexcept = 0;
42 
48  virtual String getType() const = 0;
49 
56  virtual graphics::Rectangle getViewBox() const noexcept = 0;
57 
67  virtual graphics::Point getFixedSize() const noexcept = 0;
68 
77  virtual String getLanguage() = 0;
78 
84  virtual std::shared_ptr<ParameterSet> getMetadata() = 0;
85 
91  virtual void setMetadata(std::shared_ptr<ParameterSet> parameters) = 0;
92 };
93 
94 }
95 }
Definition: ContentPart.h:25
virtual graphics::Rectangle getViewBox() const noexcept=0
virtual ~ContentPart()=default
virtual graphics::Point getFixedSize() const noexcept=0
virtual String getId() const noexcept=0
virtual String getLanguage()=0
virtual std::shared_ptr< ContentPackage > getPackage() const noexcept=0
virtual void setMetadata(std::shared_ptr< ParameterSet > parameters)=0
virtual String getType() const =0
virtual std::shared_ptr< ParameterSet > getMetadata()=0
Definition: ParameterSet.h:16
Definition: String.h:27
Definition: Configuration.h:10