Cogs.Core
Extensions
Gui
Libraries
litehtml
src
el_image.h
1
#ifndef LH_EL_IMAGE_H
2
#define LH_EL_IMAGE_H
3
4
#include "html_tag.h"
5
6
namespace
litehtml
7
{
8
9
class
el_image
:
public
html_tag
10
{
11
tstring m_src;
12
public
:
13
el_image
(
const
std::shared_ptr<litehtml::document>& doc);
14
virtual
~el_image
(
void
);
15
16
virtual
int
line_height()
const override
;
17
virtual
bool
is_replaced()
const override
;
18
virtual
int
render(
int
x,
int
y,
int
max_width,
bool
second_pass =
false
)
override
;
19
virtual
void
parse_attributes()
override
;
20
virtual
void
parse_styles(
bool
is_reparse =
false
)
override
;
21
virtual
void
draw(uint_ptr hdc,
int
x,
int
y,
const
position
* clip)
override
;
22
virtual
void
get_content_size(
size
& sz,
int
max_width)
override
;
23
private
:
24
int
calc_max_height(
int
image_height);
25
};
26
}
27
28
#endif
// LH_EL_IMAGE_H
litehtml::el_image
Definition:
el_image.h:10
litehtml::html_tag
Definition:
html_tag.h:34
litehtml::position
Definition:
types.h:58
litehtml::size
Definition:
types.h:46
Generated by
1.9.6