Welcome to mirror list, hosted at ThFree Co, Russian Federation.

MapViewController.h « Classes « Maps « iphone - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 03fea4f54aaf1782d5ac5273e5dc36cfda230fa1 (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
48
49
#import  <UIKit/UIKit.h>

#include "../../geometry/point2d.hpp"
#include "../../yg/texture.hpp"
#include "../../map/framework.hpp"
#include "../../map/drawer_yg.hpp"
#include "../../map/render_queue.hpp"
#include "../../map/navigator.hpp"
#include "../../map/feature_vec_model.hpp"
#include "../../std/shared_ptr.hpp"

@interface MapViewController : UIViewController
{
  enum Action
	{
		NOTHING,
		DRAGGING,
		SCALING
	} m_CurrentAction;

	bool m_isSticking;
	size_t m_StickyThreshold;
  int m_iconSequenceNumber;

	m2::PointD m_Pt1, m_Pt2;
  
  UIButton * m_myPositionButton;
  NSTimer * m_iconTimer;

  bool m_mapIsVisible;
}

- (void) ZoomToRect: (m2::RectD const &) rect;

- (void) onResize: (GLint)width withHeight: (GLint)height;
- (void) onPaint;

// called when app is terminated by system
- (void) OnTerminate;
- (void) OnEnterForeground;
- (void) OnEnterBackground;

- (IBAction)OnMyPositionClicked:(id)sender;
- (IBAction)OnSettingsClicked:(id)sender;
- (IBAction)OnSearchClicked:(id)sender;

@property (nonatomic, retain) IBOutlet UIButton * m_myPositionButton;

@end