![]() |
MyScript Interactive Ink SDK
4.0.0
|
#include <ContentBlock.h>
Public Member Functions | |
| virtual | ~ContentBlock ()=default |
| virtual String | getType ()=0 |
| virtual String | getId ()=0 |
| virtual String | getRenderingId ()=0 |
| virtual std::vector< std::shared_ptr< ContentBlock > > | getChildren ()=0 |
| virtual String | getAttributes ()=0 |
| virtual std::shared_ptr< ContentBlock > | getParent ()=0 |
| virtual myscript::iink::graphics::Rectangle | getBox ()=0 |
| virtual std::underlying_type< ConversionState >::type | getConversionState ()=0 |
Public Member Functions inherited from myscript::iink::ContentSelection | |
| virtual | ~ContentSelection ()=default |
| virtual std::shared_ptr< ContentPart > | getPart ()=0 |
| virtual bool | isValid () noexcept=0 |
Represents a block of content. The tree of content blocks provides the hierarchical structure of a content part into semantic units.
|
virtualdefault |
|
pure virtual |
Returns the type of this block.
| std::runtime_error | when block is invalid. |
|
pure virtual |
Returns the identifier of this block.
| std::runtime_error | when block is invalid. |
|
pure virtual |
Returns an identifier that can be used to match corresponding calls to graphics::ICanvas#startGroup.
| std::runtime_error | when block is invalid. |
|
pure virtual |
Returns the children of this block. The returned array is a copy of the list of child blocks, which makes it safe against concurrent changes.
| std::runtime_error | when block is invalid. |
|
pure virtual |
Returns the block's attributes as a JSON string.
| std::runtime_error | when block is invalid. |
|
pure virtual |
Returns the parent of this block.
nullptr if this block is the root block. | std::runtime_error | when block is invalid. |
|
pure virtual |
Returns the bounding box of this block.
| std::runtime_error | when block is invalid. |
|
pure virtual |
Returns the current conversion state of this block as a bitwise or combination of ConversionState values.
| std::runtime_error | when block is invalid. |