![]() |
MyScript Interactive Ink SDK 4.4.2
|
#include <ContentPart.h>
Public Member Functions | |
| virtual | ~ContentPart ()=default |
| virtual std::shared_ptr< ContentPackage > | getPackage () const noexcept=0 |
| virtual String | getId () const noexcept=0 |
| virtual String | getType () const =0 |
| virtual graphics::Rectangle | getViewBox () const noexcept=0 |
| virtual graphics::Point | getFixedSize () const noexcept=0 |
| virtual String | getLanguage ()=0 |
| virtual std::shared_ptr< ParameterSet > | getMetadata ()=0 |
| virtual void | setMetadata (std::shared_ptr< ParameterSet > parameters)=0 |
A part stores one content item. It is structured into several blocks that consist of semantically meaningful sub sections of content. A part can be interpreted as a hierarchy of blocks.
|
virtualdefault |
|
pure virtualnoexcept |
Returns the package that contains this part.
|
pure virtualnoexcept |
Returns the identifier of this part.
|
pure virtual |
Returns the type of this part.
|
pure virtualnoexcept |
Returns the view box, the rectangle that represents the viewable area of this part's content.
|
pure virtualnoexcept |
Returns the part's fixed-size, if defined.
{width, height} if fixed-size, otherwise {0.f, 0.f} (document coordinates in mm).
|
pure virtual |
Returns the language of this part.
Editor#setPart). | std::runtime_error | when part does not support text recognition (i.e. for types Math and Drawing). |
|
pure virtual |
Returns the part's metadata as a parameter set.
|
pure virtual |
Set the part's metadata with the given parameter set.
| parameters | the parameters to set. |