Foxit PDF SDK
foxit::ofd::ActionDestinationInfo类 参考

继承自 Object .

Public 类型

enum  GotoDestType {
  e_GotoDestTypeUnknown = 0, e_GotoDestTypeXYZ = 1, e_GotoDestTypeFit = 2, e_GotoDestTypeFitH = 3,
  e_GotoDestTypeFitV = 4, e_GotoDestTypeFitR = 5
}
 OFD跳转动作的目标类型枚举类型。 更多...
 

Public 成员函数

 ActionDestinationInfo (foxit::uint32 page_id, GotoDestType type, float left, float right, float top, float bottom, float zoom)
 带参数的构造函数。 更多...
 
 ActionDestinationInfo (const ActionDestinationInfo &other)
 构造函数,通过另一个动作跳转目标信息对象。 更多...
 
ActionDestinationInfooperator= (const ActionDestinationInfo &other)
 赋值操作符。 更多...
 
void Set (foxit::uint32 page_id, GotoDestType type, float left, float right, float top, float bottom, float zoom)
 设置值。 更多...
 

Public 属性

float bottom
 下边距,单位为毫米。 更多...
 
float left
 左边距,单位为毫米。 更多...
 
foxit::uint32 page_id
 页面ID。 更多...
 
float right
 右边距,单位为毫米。 更多...
 
float top
 上边距,单位为毫米。 更多...
 
GotoDestType type
 目标类型。请参考从 GotoDestType::e_GotoDestTypeXYZ 开始的值, 这应该是这些值中的一个。
 
float zoom
 缩放比例,取值范围为0.1-64。 更多...
 

详细描述

此类表示类型为e_ActionTypeGoto的动作跳转的目标信息。

成员枚举类型说明

◆ GotoDestType

OFD跳转动作的目标类型枚举类型。

该枚举值应单独使用。

枚举值
e_GotoDestTypeUnknown 

目标类型:未知。

e_GotoDestTypeXYZ 

目标类型:XYZ。

e_GotoDestTypeFit 

目标类型:适合页面。

e_GotoDestTypeFitH 

目标类型:适合宽度。

e_GotoDestTypeFitV 

目标类型:适合高度。

e_GotoDestTypeFitR 

目标类型:适合区域。

构造及析构函数说明

◆ ActionDestinationInfo() [1/2]

foxit::ofd::ActionDestinationInfo::ActionDestinationInfo ( foxit::uint32  page_id,
GotoDestType  type,
float  left,
float  right,
float  top,
float  bottom,
float  zoom 
)
inlineexplicit

带参数的构造函数。

参数
[in]page_id页面ID。
[in]type目标类型。请参考从 GotoDestType::e_GotoDestTypeXYZ 开始的值, 这应该是这些值中的一个。
[in]left左边距,单位为毫米。
[in]right右边距,单位为毫米。
[in]top上边距,单位为毫米。
[in]bottom下边距,单位为毫米。
[in]zoom缩放比例,取值范围为0.1-64。

◆ ActionDestinationInfo() [2/2]

foxit::ofd::ActionDestinationInfo::ActionDestinationInfo ( const ActionDestinationInfo other)
inline

构造函数,通过另一个动作跳转目标信息对象。

参数
[in]other另一个动作跳转目标信息对象。

成员函数说明

◆ operator=()

ActionDestinationInfo& foxit::ofd::ActionDestinationInfo::operator= ( const ActionDestinationInfo other)
inline

赋值操作符。

参数
[in]other另一个动作跳转目标信息对象,其值将被赋给当前对象。
返回
当前对象自身的引用。

◆ Set()

void foxit::ofd::ActionDestinationInfo::Set ( foxit::uint32  page_id,
GotoDestType  type,
float  left,
float  right,
float  top,
float  bottom,
float  zoom 
)
inline

设置值。

参数
[in]page_id页面ID。
[in]type目标类型。请参考从 GotoDestType::e_GotoDestTypeXYZ 开始的值, 这应该是这些值中的一个。
[in]left左边距,单位为毫米。
[in]right右边距,单位为毫米。
[in]top上边距,单位为毫米。
[in]bottom下边距,单位为毫米。
[in]zoom缩放比例,取值范围为0.1-64。
返回
无。

类成员变量说明

◆ bottom

float foxit::ofd::ActionDestinationInfo::bottom

下边距,单位为毫米。

◆ left

float foxit::ofd::ActionDestinationInfo::left

左边距,单位为毫米。

◆ page_id

foxit::uint32 foxit::ofd::ActionDestinationInfo::page_id

页面ID。

◆ right

float foxit::ofd::ActionDestinationInfo::right

右边距,单位为毫米。

◆ top

float foxit::ofd::ActionDestinationInfo::top

上边距,单位为毫米。

◆ zoom

float foxit::ofd::ActionDestinationInfo::zoom

缩放比例,取值范围为0.1-64。