Files
rdkit/Code/GraphMol/MolDraw2D/DrawTextNotFT.h
Ric 6418918710 fix MSVC DLL build after moldraw2d refactor (#5046)
* fix build

* recheck

* install DrawTextQt.h

* Some additional cleanup and merge to the current state of master (#8)

* silence warnings in MSVC compliatons (#5044)

* enable the multithreaded LeaderPicker on linux (#5043)

* enable the multithreaded leaderpicker on linux

* response to review

* AtomSymbol needs to have a virtual destructor (#5045)

* AtomSymbol needs to have a virtual destructor

* additional cleanup of virtual functions

* typo fix

Co-authored-by: greg landrum <greg.landrum@gmail.com>

* Expose MolzipParams::atomSymbols to python (#5054)

* [WIP] Clean up the warning landscape (#5048)

* suppress a bunch of warnings from third-party code
get rid of one warning in RDKit code

* corrections

* fix the maeparser flags

* remove some more inchi warnings with clang

* Further cleanup of the public interface.
Get all the DrawText bits out of the header files used by client code.

Co-authored-by: Brian Kelley <fustigator@gmail.com>

Co-authored-by: Greg Landrum <greg.landrum@gmail.com>
Co-authored-by: Brian Kelley <fustigator@gmail.com>
2022-03-02 17:13:32 +01:00

39 lines
1.0 KiB
C++

//
// Copyright (C) 2022 David Cosgrove and other RDKit contributors
//
// @@ All Rights Reserved @@
// This file is part of the RDKit.
// The contents are covered by the terms of the BSD license
// which is included in the file license.txt, found at the root
// of the RDKit source tree.
//
//
// Original author: David Cosgrove (CozChemIx).
//
// This base class redefines alignString for the non-FreeType
// DrawText classes.
#ifndef RDKIT_DRAWTEXTNOTFT_H
#define RDKIT_DRAWTEXTNOTFT_H
#include <RDGeneral/export.h>
#include <GraphMol/MolDraw2D/DrawText.h>
namespace RDKit {
namespace MolDraw2D_detail {
class RDKIT_MOLDRAW2D_EXPORT DrawTextNotFT : public DrawText {
public:
DrawTextNotFT(double max_fnt_sz, double min_fnt_sz);
virtual ~DrawTextNotFT();
void alignString(
TextAlignType align, const std::vector<TextDrawType> &draw_modes,
std::vector<std::shared_ptr<StringRect>> &rects) const override;
};
} // namespace MolDraw2D_detail
} // namespace RDKit
#endif // RDKIT_DRAWTEXTNOTFT_H