mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-24 03:07:20 +00:00
30 lines
634 B
C
30 lines
634 B
C
|
/*
|
||
|
This file is part of Telegram Desktop,
|
||
|
the official desktop application for the Telegram messaging service.
|
||
|
|
||
|
For license and copyright information please follow this link:
|
||
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||
|
*/
|
||
|
#pragma once
|
||
|
|
||
|
namespace Data {
|
||
|
struct StatisticalChart;
|
||
|
} // namespace Data
|
||
|
|
||
|
namespace Statistic {
|
||
|
|
||
|
struct Limits;
|
||
|
|
||
|
struct LeftStartAndStep final {
|
||
|
float64 start = 0.;
|
||
|
float64 step = 0.;
|
||
|
};
|
||
|
|
||
|
[[nodiscard]] LeftStartAndStep ComputeLeftStartAndStep(
|
||
|
const Data::StatisticalChart &chartData,
|
||
|
const Limits &xPercentageLimits,
|
||
|
const QRect &rect,
|
||
|
float64 xIndexStart);
|
||
|
|
||
|
} // namespace Statistic
|