blob: 2b73940815d691a90ad02135126c7ed9288c2b2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#ifndef LH_EL_IMAGE_H
#define LH_EL_IMAGE_H
#include "html_tag.h"
namespace litehtml
{
class el_image : public html_tag
{
string m_src;
public:
el_image(const document::ptr& doc);
bool is_replaced() const override;
void parse_attributes() override;
void compute_styles(bool recursive = true) override;
void draw(uint_ptr hdc, int x, int y, const position *clip, const std::shared_ptr<render_item> &ri) override;
void get_content_size(size& sz, int max_width) override;
string dump_get_name() override;
std::shared_ptr<render_item> create_render_item(const std::shared_ptr<render_item>& parent_ri) override;
private:
// int calc_max_height(int image_height);
};
}
#endif // LH_EL_IMAGE_H
|