#ifndef LH_EL_TEXT_H #define LH_EL_TEXT_H #include "element.h" #include "document.h" namespace litehtml { class el_text : public element { protected: string m_text; string m_transformed_text; size m_size; bool m_use_transformed; bool m_draw_spaces; public: el_text(const char* text, const document::ptr& doc); void get_text(string& text) override; void compute_styles(bool recursive) override; bool is_text() const override { return true; } void draw(uint_ptr hdc, int x, int y, const position *clip, const std::shared_ptr &ri) override; string dump_get_name() override; std::vector> dump_get_attrs() override; protected: void get_content_size(size& sz, int max_width) override; }; } #endif // LH_EL_TEXT_H