All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
BatchedTextRangeBuilder.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "Text.h"
6 #include "BatchedTextAppearance.h"
7 #include "BatchedTextRange.h"
8 
9 
10 namespace Eegeo
11 {
12  namespace Text
13  {
15  {
16  public:
18 
19  bool NeedsNewRange(const BatchedTextAppearance& textAppearance) const;
20  void Begin(const BatchedTextAppearance& textAppearance, int quadOffset);
21  BatchedTextRange End(int quadOffset);
22  bool IsOpen() const { return m_isOpen; }
23 
24  private:
25 
26  BatchedTextAppearance m_textAppearance;
27  int m_initialQuadOffset;
28  bool m_isOpen;
29  };
30  }
31 }