33 #ifndef OPENSHOT_QT_HTML_READER_H
34 #define OPENSHOT_QT_HTML_READER_H
94 std::string background_color;
95 std::shared_ptr<QImage> image;
112 QtHtmlReader(
int width,
int height,
int x_offset,
int y_offset,
GravityType gravity, std::string html, std::string css, std::string background_color);
125 std::shared_ptr<openshot::Frame>
GetFrame(int64_t requested_frame);
131 std::string
Name() {
return "QtHtmlReader"; };
134 std::string
Json()
const override;
135 void SetJson(
const std::string value);
Header file for CacheMemory class.
Header file for TextReader class.
Header file for all Exception classes.
Header file for ReaderBase class.
This class is a memory-based cache manager for Frame objects.
This class uses Qt libraries, to create frames with rendered HTML, and return openshot::Frame objects...
void Open()
Open Reader - which is called by the constructor automatically.
Json::Value JsonValue() const override
Generate Json::Value for this object.
std::string Json() const override
Get and Set JSON methods.
std::string Name()
Return the type name of the class.
openshot::CacheMemory * GetCache()
Get the cache object used by this reader (always returns NULL for this object)
void SetJson(const std::string value)
Load JSON string into this object.
QtHtmlReader()
Default constructor (blank text)
void SetJsonValue(const Json::Value root)
Load Json::Value into this object.
std::shared_ptr< openshot::Frame > GetFrame(int64_t requested_frame)
void Close()
Close Reader.
bool IsOpen()
Determine if reader is open or closed.
This abstract class is the base class, used by all readers in libopenshot.
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.