1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4// W A R N I N G
5// -------------
6//
7// This file is not part of the Qt Chart API. It exists purely as an
8// implementation detail. This header file may change from version to
9// version without notice, or even be removed.
10//
11// We mean it.
12
13#ifndef CARTESIANCHARTLAYOUT_H
14#define CARTESIANCHARTLAYOUT_H
15
16#include <private/abstractchartlayout_p.h>
17#include <QtCharts/private/qchartglobal_p.h>
18
19QT_BEGIN_NAMESPACE
20
21class Q_CHARTS_PRIVATE_EXPORT CartesianChartLayout : public AbstractChartLayout
22{
23public:
24 CartesianChartLayout(ChartPresenter *presenter);
25 virtual ~CartesianChartLayout();
26
27 // from AbstractChartLayout
28 QRectF calculateAxisMinimum(const QRectF &minimum, const QList<ChartAxisElement *> &axes) const override;
29 QRectF calculateAxisGeometry(const QRectF &geometry, const QList<ChartAxisElement *> &axes,
30 bool update = true) const override;
31};
32
33QT_END_NAMESPACE
34
35#endif // CARTESIANCHARTLAYOUT_H
36

source code of qtcharts/src/charts/layout/cartesianchartlayout_p.h