OpenShot Library | libopenshot
0.3.3
|
Go to the documentation of this file.
15 #ifndef OPENSHOT_QT_HTML_READER_H
16 #define OPENSHOT_QT_HTML_READER_H
78 std::string background_color;
79 std::shared_ptr<QImage> image;
96 QtHtmlReader(
int width,
int height,
int x_offset,
int y_offset,
GravityType gravity, std::string html, std::string css, std::string background_color);
99 void Close()
override;
109 std::shared_ptr<openshot::Frame>
GetFrame(int64_t requested_frame)
override;
112 bool IsOpen()
override {
return is_open; };
115 std::string
Name()
override {
return "QtHtmlReader"; };
118 std::string
Json()
const override;
119 void SetJson(
const std::string value)
override;
124 void Open()
override;
void Open() override
Open Reader - which is called by the constructor automatically.
This namespace is the default namespace for all code in the openshot library.
GravityType
This enumeration determines how clips are aligned to their parent container.
All cache managers in libopenshot are based on this CacheBase class.
This class uses Qt libraries, to create frames with rendered HTML, and return openshot::Frame objects...
void SetJsonValue(const Json::Value root) override
Load Json::Value into this object.
void Close() override
Close Reader.
Header file for CacheMemory class.
Json::Value JsonValue() const override
Generate Json::Value for this object.
std::shared_ptr< openshot::Frame > GetFrame(int64_t requested_frame) override
QtHtmlReader()
Default constructor (blank text)
Header file for ReaderBase class.
Header file for TextReader class.
void SetJson(const std::string value) override
Load JSON string into this object.
This abstract class is the base class, used by all readers in libopenshot.
std::string Json() const override
Generate JSON string of this object.
CacheBase * GetCache() override
Get the cache object used by this reader (always returns NULL for this object)
std::string Name() override
Return the type name of the class.
bool IsOpen() override
Determine if reader is open or closed.