Foxit PDF SDK
foxit::ofd::graphics::OFDCompositeUnit类 参考
类 foxit::ofd::graphics::OFDCompositeUnit 继承关系图:
foxit::Base

Public 成员函数

 OFDCompositeUnit (const OFDCompositeUnit &other)
 构造函数,通过另一个OFD复合对象单元对象。 更多...
 
 ~OFDCompositeUnit ()
 析构函数。
 
bool IsEmpty () const
 检查当前对象是否为空。 更多...
 
bool operator != (const OFDCompositeUnit &other) const
 不相等操作符。 更多...
 
OFDCompositeUnitoperator= (const OFDCompositeUnit &other)
 赋值操作符。 更多...
 
bool operator== (const OFDCompositeUnit &other) const
 相等操作符。 更多...
 
void SetHeight (float height)
 设置复合单元高度。 更多...
 
void SetSubstitution (foxit::uint32 resource_id)
 设置复合单元替换缩略图。 更多...
 
void SetThumbnail (foxit::uint32 resource_id)
 设置复合单元缩略图。 更多...
 
void SetWidth (float width)
 设置复合单元宽度。 更多...
 
- Public 成员函数 继承自 foxit::Base
FS_HANDLE Handle () const
 获取当前对象的句柄。 更多...
 

详细描述

此类表示和OFD复合对象单元相关的方法。

构造及析构函数说明

◆ OFDCompositeUnit()

foxit::ofd::graphics::OFDCompositeUnit::OFDCompositeUnit ( const OFDCompositeUnit other)

构造函数,通过另一个OFD复合对象单元对象。

参数
[in]other另一个OFD复合对象单元对象。

成员函数说明

◆ IsEmpty()

bool foxit::ofd::graphics::OFDCompositeUnit::IsEmpty ( ) const

检查当前对象是否为空。

当前对象为空时,表示当前对象是无用的。

返回
true 表示当前对象为空,false 表示不为空。

◆ operator !=()

bool foxit::ofd::graphics::OFDCompositeUnit::operator != ( const OFDCompositeUnit other) const

不相等操作符。

参数
[in]other另一个OFD复合对象单元对象。此函数将检查当前对象是否不等于这个对象。
返回
true 表示不相等,false 表示相等。

◆ operator=()

OFDCompositeUnit& foxit::ofd::graphics::OFDCompositeUnit::operator= ( const OFDCompositeUnit other)

赋值操作符。

参数
[in]other另一个OFD复合对象单元对象,其值将被赋给当前对象。
返回
当前对象自身的引用。

◆ operator==()

bool foxit::ofd::graphics::OFDCompositeUnit::operator== ( const OFDCompositeUnit other) const

相等操作符。

参数
[in]other另一个OFD复合对象单元对象。此函数将检查当前对象是否等于这个对象。
返回
true 表示相等,false 表示不相等。

◆ SetHeight()

void foxit::ofd::graphics::OFDCompositeUnit::SetHeight ( float  height)

设置复合单元高度。

参数
[in]height复合单元高度。
返回
无。

◆ SetSubstitution()

void foxit::ofd::graphics::OFDCompositeUnit::SetSubstitution ( foxit::uint32  resource_id)

设置复合单元替换缩略图。

参数
[in]resource_id替换缩略图资源ID。可通过函数 OFDDoc::AddImageResourceFromFile 等添加资源函数来获取资源ID。
返回
无。

◆ SetThumbnail()

void foxit::ofd::graphics::OFDCompositeUnit::SetThumbnail ( foxit::uint32  resource_id)

设置复合单元缩略图。

参数
[in]resource_id缩略图资源ID。可通过函数 OFDDoc::AddImageResourceFromFile 等添加资源函数来获取资源ID。
返回
无。

◆ SetWidth()

void foxit::ofd::graphics::OFDCompositeUnit::SetWidth ( float  width)

设置复合单元宽度。

参数
[in]width复合单元宽度。
返回
无。