Foxit PDF SDK
fs_ofdvideoobject.h
1 #ifndef FS_OFD_VIDEOOBJECT_H_
2 #define FS_OFD_VIDEOOBJECT_H_
3 
4 #include "common/fs_common.h"
5 #include "fs_ofdgraphicsobject.h"
6 
12 namespace foxit {
16 namespace ofd {
20 namespace graphics {
22 class OFDVideoObject FS_FINAL : public OFDGraphicsObject {
23  public:
29  explicit OFDVideoObject(OFDGraphicsObject object);
30 
33 
39  OFDVideoObject(const OFDVideoObject& other);
40 
49 
57  bool operator == (const OFDVideoObject& other) const;
58 
66  bool operator != (const OFDVideoObject& other) const;
67 
75  bool IsEmpty() const;
76 
83 
90 
97 
103  String GetFormat();
104 
110  String GetTitle();
111 
117  bool HasBorder();
118 
124  float GetBorderLineWidth();
125 
131  float GetBorderDashOffset();
132 
139 
145  float GetBorderHCornerRadius();
146 
152  float GetBorderVCornerRadius();
153 
160 
168  void SetVideoFromFile(const String& file_name);
169 
177  void SetType(const String& type);
178 
186  void SetFormat(const String& format);
187 
195  void SetTitle(const String& title);
196 
202  void CreateBorder();
203 
211  void SetBorderLineWidth(float line_width);
212 
221  void SetBorderCornerRadius(float h_radius, float v_radius);
222 
230  void SetBorderStrokeColor(foxit::RGB color);
231 
232  explicit OFDVideoObject(FS_HANDLE handle);
233 };
234 
235 } // namespace graphics
236 } // namespace ofd
237 } // namespace foxit
238 
239 #endif // FS_OFD_VIDEOOBJECT_H_
float GetBorderLineWidth()
获取Video边框线宽。
String GetTitle()
获取Video对象标题。
void SetBorderCornerRadius(float h_radius, float v_radius)
设置Video边框横、纵向圆角半径。
foxit::FloatArray GetBorderDashPattern()
获取Video对象边框虚线重复样式。数组中共含两个值,第一个值代表虚线线段的长度,第二个值代表虚线间隔的长度。
Definition: fs_ofdgraphicsobject.h:177
uint32 RGB
RGB 颜色类型,24 位,((b) | ((g) << 8) | ((r) << 16)))
Definition: fs_basictypes.h:211
void SetFormat(const String &format)
设置Video对象格式。
float GetBorderHCornerRadius()
获取Video边框横向圆角半径。
void SetTitle(const String &title)
设置Video对象标题。
String GetVideoType()
获取Video对象类型。
bool operator==(const OFDVideoObject &other) const
相等操作符。
void SetBorderLineWidth(float line_width)
设置Video边框线宽。
void SetVideoFromFile(const String &file_name)
通过文件设置Video对象中多媒体对像。
bool operator !=(const OFDVideoObject &other) const
不相等操作符。
bool HasBorder()
判断Video对象是否有边框。
void SetType(const String &type)
设置Video对象类型。
bool IsEmpty() const
检查当前对象是否为空。
OFDVideoObject(OFDGraphicsObject object)
构造函数,从现有foxit::ofd::graphics::OFDGraphicsObject对象。
float GetBorderDashOffset()
获取Video对象边框线条虚线样式开始的位置。
FX_UINT32 uint32
无符号 32 位整数。
Definition: fs_basictypes.h:195
void * FS_HANDLE
句柄类型。
Definition: fs_basictypes.h:213
String GetFormat()
获取Video对象格式。
通用定义和类的头文件。
foxit::uint32 GetResourceID()
获取Video资源ID。
void CreateBorder()
创建Video对象边框。
void SetBorderStrokeColor(foxit::RGB color)
设置Video边框颜色。
foxit::RGB GetBorderStrokeColor()
获取Video边框颜色。
Foxit命名空间。
Definition: fs_pdf3d.h:26
字节字符串类
Definition: fx_string.h:317
float GetBorderVCornerRadius()
获取Video边框纵向圆角半径。
String GetVideoData()
获取Video对象中数据。
OFDVideoObject & operator=(const OFDVideoObject &other)
赋值操作符。
Definition: fs_ofdvideoobject.h:22