RDKit: DrawTextFTCairo.h Source File

| RDKit Open-source cheminformatics and machine learning.

Loading...
Searching...
No Matches
DrawTextFTCairo.h
Go to the documentation of this file.
1//
2// Copyright (C) 2020-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// Original author: David Cosgrove (CozChemIx).
11//
12
13#ifndef RDKIT_DRAWTEXTFTCAIRO_H
14#define RDKIT_DRAWTEXTFTCAIRO_H
15
16#include <cairo.h>
17
18#include <GraphMol/MolDraw2D/DrawTextFT.h>
19
20namespace RDKit {
21namespace MolDraw2D_detail {
22
23// ****************************************************************************
24
25 class DrawTextFTCairo : public DrawTextFT {
26 public:
27 ~DrawTextFTCairo() override = default;
28 DrawTextFTCairo(double max_fnt_sz, double min_fnt_sz,
29 const std::string &font_file, cairo_t *dp_cr);
30 DrawTextFTCairo(const DrawTextFTCairo &) = delete;
31 DrawTextFTCairo(DrawTextFTCairo &&) = delete;
32 DrawTextFTCairo &operator=(const DrawTextFTCairo &) = delete;
33 DrawTextFTCairo &operator=(DrawTextFTCairo &&) = delete;
34
35 int MoveToFunctionImpl(const FT_Vector *to) override;
36 int LineToFunctionImpl(const FT_Vector *to) override;
37 int ConicToFunctionImpl(const FT_Vector *control,
38 const FT_Vector *to) override;
39 int CubicToFunctionImpl(const FT_Vector *controlOne,
40 const FT_Vector *controlTwo,
41 const FT_Vector *to) override;
42 void setCairoContext(cairo_t *cr);
43
44 // adds x_trans_ and y_trans_ to coords returns x advance distance
45 double extractOutline() override;
46
47 cairo_t *dp_cr_;
48};
49
50} // namespace MolDraw2D_detail
51} // namespace RDKit
52
53#endif // RDKIT_DRAWTEXTFTCAIRO_H
DrawTextFT.h
RDKit::MolDraw2D_detail::DrawTextFTCairo::operator=
DrawTextFTCairo & operator=(DrawTextFTCairo &&)=delete
RDKit::MolDraw2D_detail::DrawTextFTCairo::~DrawTextFTCairo
~DrawTextFTCairo() override=default
RDKit::MolDraw2D_detail::DrawTextFTCairo::extractOutline
double extractOutline() override
RDKit::MolDraw2D_detail::DrawTextFTCairo::CubicToFunctionImpl
int CubicToFunctionImpl(const FT_Vector *controlOne, const FT_Vector *controlTwo, const FT_Vector *to) override
RDKit::MolDraw2D_detail::DrawTextFTCairo::setCairoContext
void setCairoContext(cairo_t *cr)
RDKit::MolDraw2D_detail::DrawTextFTCairo::DrawTextFTCairo
DrawTextFTCairo(double max_fnt_sz, double min_fnt_sz, const std::string &font_file, cairo_t *dp_cr)
RDKit::MolDraw2D_detail::DrawTextFTCairo::DrawTextFTCairo
DrawTextFTCairo(DrawTextFTCairo &&)=delete
RDKit::MolDraw2D_detail::DrawTextFTCairo::dp_cr_
cairo_t * dp_cr_
Definition DrawTextFTCairo.h:47
RDKit::MolDraw2D_detail::DrawTextFTCairo::DrawTextFTCairo
DrawTextFTCairo(const DrawTextFTCairo &)=delete
RDKit::MolDraw2D_detail::DrawTextFTCairo::LineToFunctionImpl
int LineToFunctionImpl(const FT_Vector *to) override
RDKit::MolDraw2D_detail::DrawTextFTCairo::ConicToFunctionImpl
int ConicToFunctionImpl(const FT_Vector *control, const FT_Vector *to) override
RDKit::MolDraw2D_detail::DrawTextFTCairo::MoveToFunctionImpl
int MoveToFunctionImpl(const FT_Vector *to) override
RDKit::MolDraw2D_detail::DrawTextFTCairo::operator=
DrawTextFTCairo & operator=(const DrawTextFTCairo &)=delete
RDKit::MolDraw2D_detail::DrawTextFT::DrawTextFT
DrawTextFT(double max_fnt_sz, double min_fnt_sz, const std::string &font_file)
RDKit::MolDraw2D_detail
Definition AtomSymbol.h:30
RDKit
Std stuff.
Definition Abbreviations.h:19