VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtTextLayoutInterface.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2014 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
13 #include <vrvGraphics/DtFont.h>
15 
16 #include <vrvUtil/DtUnicode.h>
17 
18 namespace makVrv
19 {
20  class DtTextProxy;
21  class DtTexturedGlyphRenderer;
22 
25  {
26  public:
29 
31  virtual ~DtTextLayoutInterface() {};
32 
34  virtual void renderText(DtTexturedGlyphRenderer*, DtTextProxy*) = 0;
35 
37  virtual Dt2dPoint calculateGlyphSize(DtFontSP font, const DtPen& pen,
38  const DtUnicode& string, unsigned int pos, int len) = 0;
39 
41  virtual DtBoundingBox calculateBoundingBox(DtFontSP font, const DtPen& pen,
42  const DtUnicode& string, unsigned int pos = 0, int len = -1) = 0;
43  };
44 }

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)