#include <Annot.h>
Public Types | |
enum | Style { e_solid, e_dashed, e_beveled, e_inset, e_underline } |
Public Member Functions | |
BorderStyle (Style s, double b_width, double b_hr=0, double b_vr=0) | |
BorderStyle (Style s, double b_width, double b_hr, double b_vr, const std::vector< double > &b_dash) | |
BorderStyle (const BorderStyle &) | |
~BorderStyle () | |
void | Destroy () |
BorderStyle & | operator= (const BorderStyle &) |
Style | GetStyle () const |
void | SetStyle (Style style) |
double | GetHR () const |
void | SetHR (double horizontal_radius) |
double | GetVR () const |
void | SetVR (double vertical_radius) |
double | GetWidth () const |
void | SetWidth (double width) |
std::vector< double > | GetDash () const |
void | SetDash (const std::vector< double > &dash) |
BorderStyle (TRN_AnnotBorderStyle impl) | |
BorderStyle () | |
Friends | |
class | PDF::Annot |
bool | operator== (const BorderStyle &a, const BorderStyle &b) |
bool | operator!= (const BorderStyle &a, const BorderStyle &b) |
BorderStyle structure specifies the characteristics of the annotation's border. The border is specified as a rounded rectangle.
The border style
pdftron::PDF::BorderStyle::BorderStyle | ( | Style | s, |
double | b_width, | ||
double | b_hr = 0 , |
||
double | b_vr = 0 |
||
) |
Creates a new border style with given parameters.
s | The border style. |
b_width | The border width expressed in the default user space. |
b_hr | The horizontal corner radius expressed in the default user space. |
b_vr | The vertical corner radius expressed in the default user space. |
b_dash | An array of numbers defining a pattern of dashes and gaps to be used in drawing the border. The dash array is specified in the same format as in the line dash pattern parameter of the graphics state except that the phase is assumed to be 0. |
pdftron::PDF::BorderStyle::BorderStyle | ( | Style | s, |
double | b_width, | ||
double | b_hr, | ||
double | b_vr, | ||
const std::vector< double > & | b_dash | ||
) |
pdftron::PDF::BorderStyle::BorderStyle | ( | const BorderStyle & | ) |
pdftron::PDF::BorderStyle::~BorderStyle | ( | ) |
pdftron::PDF::BorderStyle::BorderStyle | ( | TRN_AnnotBorderStyle | impl | ) |
void pdftron::PDF::BorderStyle::Destroy | ( | ) |
Frees the native memory of the object.
std::vector<double> pdftron::PDF::BorderStyle::GetDash | ( | ) | const |
double pdftron::PDF::BorderStyle::GetHR | ( | ) | const |
Style pdftron::PDF::BorderStyle::GetStyle | ( | ) | const |
double pdftron::PDF::BorderStyle::GetVR | ( | ) | const |
double pdftron::PDF::BorderStyle::GetWidth | ( | ) | const |
BorderStyle& pdftron::PDF::BorderStyle::operator= | ( | const BorderStyle & | ) |
void pdftron::PDF::BorderStyle::SetDash | ( | const std::vector< double > & | dash | ) |
Sets the border dash pattern.
void pdftron::PDF::BorderStyle::SetHR | ( | double | horizontal_radius | ) |
Sets horizontal corner radius.
horizontal_radius | A number representing the value of the horizontal radius to set the annotation to. |
void pdftron::PDF::BorderStyle::SetStyle | ( | Style | style | ) |
Sets the border style.
void pdftron::PDF::BorderStyle::SetVR | ( | double | vertical_radius | ) |
Sets vertical corner radius.
vertical_radius | A number representing the value of the vertical radius to set the annotation to. |
void pdftron::PDF::BorderStyle::SetWidth | ( | double | width | ) |
Sets the border width
width | A number representing the width value to set the annotation to. |
|
friend |
|
friend |
|
friend |