Foxit PDF SDK
foxit::pdf::graphics::ColorState类 参考
类 foxit::pdf::graphics::ColorState 继承关系图:
foxit::Base

Public 成员函数

 ColorState (const ColorState &other)
 构造函数,使用另一个颜色状态对象。 更多...
 
 ~ColorState ()
 析构函数。
 
common::Color GetFillColor ()
 获取填充颜色。 更多...
 
common::Color GetStrokeColor ()
 获取描边颜色。 更多...
 
bool IsEmpty () const
 检查当前对象是否为空。 更多...
 
bool operator!= (const ColorState &other) const
 不等操作符。 更多...
 
ColorStateoperator= (const ColorState &other)
 赋值操作符。 更多...
 
bool operator== (const ColorState &other) const
 相等操作符。 更多...
 
void SetFillColor (const common::Color &color)
 设置填充颜色。 更多...
 
void SetStrokeColor (const common::Color &color)
 设置描边颜色。 更多...
 
- Public 成员函数 继承自 foxit::Base
FS_HANDLE Handle () const
 获取当前对象的句柄。 更多...
 

详细描述

此类表示PDF颜色状态。

构造及析构函数说明

◆ ColorState()

foxit::pdf::graphics::ColorState::ColorState ( const ColorState other)

构造函数,使用另一个颜色状态对象。

参数
[in]other另一个颜色状态对象。

成员函数说明

◆ GetFillColor()

common::Color foxit::pdf::graphics::ColorState::GetFillColor ( )

获取填充颜色。

返回
填充颜色。

◆ GetStrokeColor()

common::Color foxit::pdf::graphics::ColorState::GetStrokeColor ( )

获取描边颜色。

返回
描边颜色。

◆ IsEmpty()

bool foxit::pdf::graphics::ColorState::IsEmpty ( ) const

检查当前对象是否为空。

当当前对象为空时,意味着当前对象无用。

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

◆ operator!=()

bool foxit::pdf::graphics::ColorState::operator!= ( const ColorState other) const

不等操作符。

参数
[in]other另一个颜色状态对象。此函数将检查当前对象是否不等于此对象。
返回
true 表示不相等,false 表示相等。

◆ operator=()

ColorState& foxit::pdf::graphics::ColorState::operator= ( const ColorState other)

赋值操作符。

参数
[in]other另一个颜色状态对象,其值将被赋给当前对象。
返回
对当前对象本身的引用。

◆ operator==()

bool foxit::pdf::graphics::ColorState::operator== ( const ColorState other) const

相等操作符。

参数
[in]other另一个颜色状态对象。此函数将检查当前对象是否等于此对象。
返回
true 表示相等,false 表示不相等。

◆ SetFillColor()

void foxit::pdf::graphics::ColorState::SetFillColor ( const common::Color color)

设置填充颜色。

参数
[in]color要设置为填充颜色的颜色。
返回
无。

◆ SetStrokeColor()

void foxit::pdf::graphics::ColorState::SetStrokeColor ( const common::Color color)

设置描边颜色。

参数
[in]color要设置为描边颜色的颜色。
返回
无。