33 #ifndef OPENSHOT_QT_TEXT_READER_H 34 #define OPENSHOT_QT_TEXT_READER_H 99 std::string text_color;
100 std::string background_color;
101 std::string text_background_color;
102 std::shared_ptr<QImage> image;
121 QtTextReader(
int width,
int height,
int x_offset,
int y_offset,
GravityType gravity, std::string text, QFont font, std::string text_color, std::string background_color);
128 void Close()
override;
138 std::shared_ptr<openshot::Frame>
GetFrame(int64_t requested_frame)
override;
141 bool IsOpen()
override {
return is_open; };
144 std::string
Name()
override {
return "QtTextReader"; };
147 std::string
Json()
const override;
148 void SetJson(
const std::string value)
override;
153 void Open()
override;
bool IsOpen() override
Determine if reader is open or closed.
Header file for ReaderBase class.
CacheBase * GetCache() override
Get the cache object used by this reader (always returns NULL for this object)
void SetTextBackgroundColor(std::string color)
std::shared_ptr< openshot::Frame > GetFrame(int64_t requested_frame) override
This abstract class is the base class, used by all readers in libopenshot.
Json::Value JsonValue() const override
Generate Json::Value for this object.
std::string Json() const override
Generate JSON string of this object.
Header file for CacheMemory class.
All cache managers in libopenshot are based on this CacheBase class.
void SetJsonValue(const Json::Value root) override
Load Json::Value into this object.
This class uses Qt libraries, to create frames with "Text", and return openshot::Frame objects...
Header file for TextReader class.
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.
void Close() override
Close Reader.
QtTextReader()
Default constructor (blank text)
void SetJson(const std::string value) override
Load JSON string into this object.
std::string Name() override
Return the type name of the class.
GravityType
This enumeration determines how clips are aligned to their parent container.