diff options
author | Yordan Karadzhov (VMware) <y.karadz@gmail.com> | 2021-02-11 12:31:51 +0200 |
---|---|---|
committer | Yordan Karadzhov (VMware) <y.karadz@gmail.com> | 2021-02-16 10:25:14 +0200 |
commit | dcd728b073c2434c3fbc3c7eb3d1855011302b01 (patch) | |
tree | 491eb04cb00d7f83d4a7dea740159ff8fce677b5 | |
parent | fc14e40e045d1ce01aaf2c3801783737ff04c771 (diff) | |
download | kernel-shark-dcd728b073c2434c3fbc3c7eb3d1855011302b01.tar.gz |
kernel-shark: Add new methods to KsPlot::Mark
The new "get" methods are needed by the logic of the GUI.
Link: https://lore.kernel.org/linux-trace-devel/20210211103205.418588-14-y.karadz@gmail.com
Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com>
-rw-r--r-- | src/KsPlotTools.hpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/KsPlotTools.hpp b/src/KsPlotTools.hpp index a9a5ba8e..1725926f 100644 --- a/src/KsPlotTools.hpp +++ b/src/KsPlotTools.hpp @@ -395,12 +395,24 @@ public: void setY(int yA, int yB); + /** Get the Y coordinate of the Mark's CPU point. */ + int cpuY() const {return _cpu.y();} + void setCPUY(int yCPU); + /** Is the CPU point visible. */ + bool cpuIsVisible() const {return _cpu._visible;} + void setCPUVisible(bool v); + /** Get the Y coordinate of the Mark's Task point. */ + int taskY() const {return _task.y();} + void setTaskY(int yTask); + /** Is the Task point visible. */ + bool taskIsVisible() const {return _task._visible;} + void setTaskVisible(bool v); /** If True, the Mark will be plotted as a dashed line. */ |