blob: befe761a6c0edba2a1f116abdca2b76e7e98a4e5 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#pragma once
#include "gui/element.hpp"
#include "graphics/image.hpp"
#include "std/unique_ptr.hpp"
namespace graphics
{
class OverlayRenderer;
class DisplayList;
}
namespace gui
{
class ImageView : public Element
{
graphics::Image::Info m_image;
m2::RectU m_margin;
unique_ptr<graphics::DisplayList> m_displayList;
public:
typedef Element BaseT;
struct Params : public BaseT::Params
{
graphics::Image::Info m_image;
Params();
};
ImageView(Params const & p);
void setImage(graphics::Image::Info const & info);
/// @name Override from graphics::OverlayElement and gui::Element.
//@{
virtual m2::RectD GetBoundRect() const;
void draw(graphics::OverlayRenderer * r, math::Matrix<double, 3, 3> const & m) const;
void cache();
void purge();
//@}
};
}
|