RDKit
Open-source cheminformatics and machine learning.
DrawTextNotFT.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2022 David Cosgrove and other RDKit contributors
3 //
4 // @@ All Rights Reserved @@
5 // This file is part of the RDKit.
6 // The contents are covered by the terms of the BSD license
7 // which is included in the file license.txt, found at the root
8 // of the RDKit source tree.
9 //
10 //
11 // Original author: David Cosgrove (CozChemIx).
12 //
13 // This base class redefines alignString for the non-FreeType
14 // DrawText classes.
15 
16 #ifndef RDKIT_DRAWTEXTNOTFT_H
17 #define RDKIT_DRAWTEXTNOTFT_H
18 
19 #include <RDGeneral/export.h>
21 
22 namespace RDKit {
23 namespace MolDraw2D_detail {
24 
26  public:
27  DrawTextNotFT(double max_fnt_sz, double min_fnt_sz);
28  virtual ~DrawTextNotFT();
29 
31  TextAlignType align, const std::vector<TextDrawType> &draw_modes,
32  std::vector<std::shared_ptr<StringRect>> &rects) const override;
33 };
34 
35 } // namespace MolDraw2D_detail
36 } // namespace RDKit
37 
38 #endif // RDKIT_DRAWTEXTNOTFT_H
DrawTextNotFT(double max_fnt_sz, double min_fnt_sz)
void alignString(TextAlignType align, const std::vector< TextDrawType > &draw_modes, std::vector< std::shared_ptr< StringRect >> &rects) const override
#define RDKIT_MOLDRAW2D_EXPORT
Definition: export.h:273
Std stuff.
Definition: Abbreviations.h:18