#include <ContentTree.h>
Inheritance diagram for pdftron::Layout::Shape:Public Types | |
| enum | ShapeType { e_line = 1, e_line_arrow = 2, e_line_double_arrow = 3, e_rectangle = 4, e_rectangle_rounded_corners = 5, e_oval = 6, e_arrow = 7 } |
Friends | |
| class | Paragraph |
| class | ElementRef< Shape > |
Additional Inherited Members | |
Public Attributes inherited from pdftron::Layout::ContentElement | |
| TRN_ContentElement | m_impl |
Protected Member Functions inherited from pdftron::Layout::ContentNode | |
| ContentNode (TRN_ContentNode impl) | |
Protected Member Functions inherited from pdftron::Layout::ContentElement | |
| ContentElement (TRN_ContentElement impl) | |
A shape content element that can be inserted into a paragraph.
Shapes support geometry, rotation, fill/outline styling, optional background image, and an internal text box content container.
Definition at line 845 of file ContentTree.h.
Defines the supported shape types.
| Enumerator | |
|---|---|
| e_line | |
| e_line_arrow | |
| e_line_double_arrow | |
| e_rectangle | |
| e_rectangle_rounded_corners | |
| e_oval | |
| e_arrow | |
Definition at line 856 of file ContentTree.h.
| pdftron::Layout::Shape::~Shape | ( | ) |
| void pdftron::Layout::Shape::Destroy | ( | ) |
| double pdftron::Layout::Shape::GetArrowHeadSize | ( | ) |
Get arrow head size in points.
| double pdftron::Layout::Shape::GetCornerRadius | ( | ) |
Get rounded rectangle corner radius in points.
| bool pdftron::Layout::Shape::GetFlipHorizontal | ( | ) |
Get the shape horizontal flip state.
| bool pdftron::Layout::Shape::GetFlipVertical | ( | ) |
Get the shape vertical flip state.
| double pdftron::Layout::Shape::GetHeight | ( | ) |
Get the shape height in points.
| double pdftron::Layout::Shape::GetOutlineThickness | ( | ) |
Get the shape outline thickness in points.
| double pdftron::Layout::Shape::GetRotation | ( | ) |
Get the shape rotation angle in degrees.
| ContentContainer pdftron::Layout::Shape::GetTextBox | ( | ) |
Get the shape text box content container.
| ShapeType pdftron::Layout::Shape::GetType | ( | ) |
Gets the shape type.
| double pdftron::Layout::Shape::GetWidth | ( | ) |
Get the shape width in points.
| void pdftron::Layout::Shape::SetArrowHeadSize | ( | double | size | ) |
Set arrow head size in points.
Applies to arrow shapes.
| size | The arrow head size in points. |
| void pdftron::Layout::Shape::SetBackgroundColor | ( | int | r, |
| int | g, | ||
| int | b | ||
| ) |
Set the shape background color.
| r | The red component [0..255]. |
| g | The green component [0..255]. |
| b | The blue component [0..255]. |
| void pdftron::Layout::Shape::SetBackgroundImage | ( | const UString & | file_path | ) |
Set the shape background image from a file path.
| file_path | The image file path. |
| void pdftron::Layout::Shape::SetBackgroundImage | ( | const Filters::Filter & | filter | ) |
Set the shape background image from a filter.
| filter | The image filter. |
| void pdftron::Layout::Shape::SetCornerRadius | ( | double | radius | ) |
Set rounded rectangle corner radius in points.
| radius | The corner radius in points. |
| void pdftron::Layout::Shape::SetFlipHorizontal | ( | bool | value | ) |
Set the shape horizontal flip.
| value | True to flip the shape horizontally. |
| void pdftron::Layout::Shape::SetFlipVertical | ( | bool | value | ) |
Set the shape vertical flip.
| value | True to flip the shape vertically. |
| void pdftron::Layout::Shape::SetHeight | ( | double | height | ) |
Set the shape height in points.
| height | The shape height in points. |
| void pdftron::Layout::Shape::SetOutlineColor | ( | int | r, |
| int | g, | ||
| int | b | ||
| ) |
Set the shape outline color.
| r | The red component [0..255]. |
| g | The green component [0..255]. |
| b | The blue component [0..255]. |
| void pdftron::Layout::Shape::SetOutlineThickness | ( | double | thickness | ) |
Set the shape outline thickness in points.
| thickness | The outline thickness in points. |
| void pdftron::Layout::Shape::SetRotation | ( | double | angle | ) |
Set the shape rotation angle in degrees.
| angle | The rotation angle in degrees. |
| void pdftron::Layout::Shape::SetType | ( | ShapeType | type | ) |
Sets the shape type.
| type | The shape type. |
| void pdftron::Layout::Shape::SetWidth | ( | double | width | ) |
Set the shape width in points.
| width | The shape width in points. |
|
friend |
Definition at line 848 of file ContentTree.h.
|
friend |
Definition at line 847 of file ContentTree.h.