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);
openshot::CacheMemory * GetCache()
Get the cache object used by this reader (always returns NULL for this object)
Json::Value JsonValue() const override
Generate Json::Value for this object.
Header file for ReaderBase class.
This abstract class is the base class, used by all readers in libopenshot.
std::string Name()
Return the type name of the class.
std::string Json() const override
Get and Set JSON methods.
Header file for CacheMemory class.
Header file for all Exception classes.
bool IsOpen()
Determine if reader is open or closed.
void SetJsonValue(const Json::Value root)
Load Json::Value into this object.
QtHtmlReader()
Default constructor (blank text)
Header file for TextReader class.
void Close()
Close Reader.
This namespace is the default namespace for all code in the openshot library.
void SetJson(const std::string value)
Load JSON string into this object.
void Open()
Open Reader - which is called by the constructor automatically.
This class is a memory-based cache manager for Frame objects.
GravityType
This enumeration determines how clips are aligned to their parent container.
This class uses Qt libraries, to create frames with rendered HTML, and return openshot::Frame objects...
std::shared_ptr< openshot::Frame > GetFrame(int64_t requested_frame)