VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtDefaultTextLayout.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2021 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
14 #include <vrvUtil/DtUnicode.h>
15 
16 namespace makVrv
17 {
18  class DtFreeTypeFace;
19 
21  {
22  public:
25 
27  virtual ~DtDefaultTextLayout();
28 
31  const DtDefaultTextLayout &other) = delete;
32 
34  DtDefaultTextLayout &operator=(
35  const DtDefaultTextLayout &other) = delete;
36 
37  public:
38 
40  virtual void renderText(DtTexturedGlyphRenderer*, const DtTextProxy*, DtFontSP, const DtBoundingBox&);
41 
43  virtual Dt2dPoint calculateGlyphSize(const DtFontSP& font, const DtPen& pen,
44  const DtUnicode& string, unsigned int pos = 0, int len = -1) const;
45 
46  virtual DtBoundingBox calculateBoundingBox(const DtFontSP& font, const DtPen& pen,
47  const DtUnicode& string, unsigned int pos = 0, int len = -1) const;
48 
49  virtual bool isShaped(void) const{ return false; }
50 
51  private:
53 
54  };
55 }
56 
Generic base class for text layout renderers.
Definition: DtTextLayoutInterface.h:24
A unicode string. DtUnicode stores a UTF-16 encoded unicode string. Code Point, a Unicode character...
Definition: DtUnicode.h:33
A 2D point.
Definition: DtBoundingBox.h:19
Contains the makVrv::DtTextLayoutInterface class declaration.
A glyph renderer which renders the texture associated with a glyph.
Definition: DtTexturedGlyphRenderer.h:25
A class for controlling text owned by the TextRenderer.
Definition: DtTextRenderer.h:197
Definition: DtDefaultTextLayout.h:20
#define DT_DLL_VRVGRAPHICS
Contains DLL export macros.
Definition: vrvGraphics.h:19
DtUnicode myLastStringRendered
Definition: DtDefaultTextLayout.h:52
boost::shared_ptr< DtFont > DtFontSP
Definition: DtFontManager.h:20
A pen object with parameters on how to draw text.
Definition: DtBoundingBox.h:80
virtual bool isShaped(void) const
Definition: DtDefaultTextLayout.h:49
A simple bounding box.
Definition: DtBoundingBox.h:101

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)