1 #ifndef LITEHTML_RENDER_FLEX_H
2 #define LITEHTML_RENDER_FLEX_H
4 #include "render_block.h"
8 class render_item_flex
: public render_item_block
12 std::shared_ptr
<render_item
> el
;
19 explicit flex_item(std::shared_ptr
<render_item
> _el
) :
29 std::list
<std::unique_ptr
<flex_item
>> m_flex_items
;
31 int _render_content(int x
, int y
, bool second_pass
, const containing_block_context
&self_size
, formatting_context
* fmt_ctx
) override
;
34 explicit render_item_flex(std::shared_ptr
<element
> src_el
) : render_item_block(std::move(src_el
))
37 std::shared_ptr
<render_item
> clone() override
39 return std::make_shared
<render_item_flex
>(src_el());
41 void draw_children(uint_ptr hdc
, int x
, int y
, const position
* clip
, draw_flag flag
, int zindex
) override
;
42 std::shared_ptr
<render_item
> init() override
;
46 #endif //LITEHTML_RENDER_FLEX_H