RDKit: DrawTextNotFT.h Source File

| RDKit Open-source cheminformatics and machine learning.

Loading...
Searching...
No Matches
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>
20#include <GraphMol/MolDraw2D/DrawText.h>
21
22namespace RDKit {
23namespace MolDraw2D_detail {
24
25 class RDKIT_MOLDRAW2D_EXPORT DrawTextNotFT : public DrawText {
26 public:
27 DrawTextNotFT(double max_fnt_sz, double min_fnt_sz);
28 ~DrawTextNotFT() override;
29
30 void alignString(
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
DrawText.h
RDKit::MolDraw2D_detail::DrawTextNotFT::~DrawTextNotFT
~DrawTextNotFT() override
RDKit::MolDraw2D_detail::DrawTextNotFT::alignString
void alignString(TextAlignType align, const std::vector< TextDrawType > &draw_modes, std::vector< std::shared_ptr< StringRect > > &rects) const override
RDKit::MolDraw2D_detail::DrawTextNotFT::DrawTextNotFT
DrawTextNotFT(double max_fnt_sz, double min_fnt_sz)
RDKit::MolDraw2D_detail::DrawText::DrawText
DrawText(double max_fnt_sz, double min_fnt_sz)
export.h
RDKIT_MOLDRAW2D_EXPORT
#define RDKIT_MOLDRAW2D_EXPORT
Definition export.h:313
RDKit::MolDraw2D_detail
Definition AtomSymbol.h:30
RDKit::MolDraw2D_detail::TextAlignType
TextAlignType
Definition MolDraw2DHelpers.h:33
RDKit
Std stuff.
Definition Abbreviations.h:19