blob: 6387091a5c923faa9c35774535d585638c0967b7 (
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
|
#import "MWMMapWidgets.h"
#include "drape/pointers.hpp"
#include "drape/drape_global.hpp"
#include "indexer/map_style.hpp"
#include "std/shared_ptr.hpp"
namespace dp
{
class ThreadSafeFactory;
}
// This class wraps the CAEAGLLayer from CoreAnimation into a convenient UIView subclass.
// The view content is basically an EAGL surface you render your OpenGL scene into.
// Note that setting the view non-opaque will only work if the EAGL surface has an alpha channel.
@interface EAGLView : UIView
{
dp::ApiVersion m_apiVersion;
drape_ptr<dp::ThreadSafeFactory> m_factory;
// Do not call onSize from layoutSubViews when real size wasn't changed.
// It's possible when we add/remove subviews (bookmark balloons) and it hangs the map without this check
CGRect lastViewSize;
}
@property(nonatomic) MWMMapWidgets * widgetsManager;
@property(nonatomic, readonly) BOOL drapeEngineCreated;
@property(nonatomic) BOOL isLaunchByDeepLink;
@property(nonatomic, readonly) m2::PointU pixelSize;
- (void)deallocateNative;
- (CGPoint)viewPoint2GlobalPoint:(CGPoint)pt;
- (CGPoint)globalPoint2ViewPoint:(CGPoint)pt;
- (void)initialize;
- (void)setPresentAvailable:(BOOL)available;
@end
|