2021-01-02 10:25:04 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
// Defines the z-values of features in the chart view.
|
|
|
|
// Objects with higher z-values are painted on top of objects
|
|
|
|
// with smaller z-values. For the same z-value objects are
|
2021-01-18 12:51:07 +01:00
|
|
|
// drawn in order of addition to the scene.
|
2021-01-02 10:25:04 +01:00
|
|
|
#ifndef ZVALUES_H
|
2023-04-20 20:50:43 +02:00
|
|
|
#define ZVALUES_H
|
2021-01-02 10:25:04 +01:00
|
|
|
|
2023-04-16 12:59:19 +02:00
|
|
|
// Encapsulating an enum in a struct is stupid, but allows us
|
|
|
|
// to not poison the namespace and yet autoconvert to int
|
|
|
|
// (in constrast to enum class). enum is so broken!
|
|
|
|
struct ChartZValue {
|
|
|
|
enum ZValues {
|
|
|
|
Grid = 0,
|
|
|
|
Series,
|
|
|
|
Axes,
|
|
|
|
SeriesLabels,
|
|
|
|
ChartFeatures, // quartile markers and regression lines
|
|
|
|
Selection,
|
|
|
|
InformationBox,
|
|
|
|
Legend,
|
|
|
|
Count
|
|
|
|
};
|
2021-01-13 16:19:27 +01:00
|
|
|
};
|
|
|
|
|
2021-01-02 10:25:04 +01:00
|
|
|
#endif
|