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
22
namespace
RDKit
{
23
namespace
MolDraw2D_detail {
24
25
class
RDKIT_MOLDRAW2D_EXPORT
DrawTextNotFT
:
public
DrawText
{
26
public
:
27
DrawTextNotFT
(
double
max_fnt_sz,
double
min_fnt_sz);
28
virtual
~DrawTextNotFT
();
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
Definition
DrawTextNotFT.h:25
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
virtual ~DrawTextNotFT()
RDKit::MolDraw2D_detail::DrawTextNotFT::DrawTextNotFT
DrawTextNotFT(double max_fnt_sz, double min_fnt_sz)
RDKit::MolDraw2D_detail::DrawText
Definition
DrawText.h:46
export.h
RDKIT_MOLDRAW2D_EXPORT
#define RDKIT_MOLDRAW2D_EXPORT
Definition
export.h:297
RDKit::MolDraw2D_detail::TextAlignType
TextAlignType
Definition
MolDraw2DHelpers.h:26
RDKit
Std stuff.
Definition
Abbreviations.h:19
GraphMol
MolDraw2D
DrawTextNotFT.h
Generated on Mon Sep 30 2024 05:19:34 for RDKit by
1.9.8