TachyonUI 1.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::PlotView Struct Reference

A plot shown in one place: what it shows and the one view of it together. More...

#include <gui_controls/gui_plot_types.h>

Inheritance diagram for tachyon::PlotView:

Additional Inherited Members

Public Attributes inherited from tachyon::PlotData
std::vector< PlotSeries > series
float xMin = 0.0f
float xMax = 1.0f
float yMin = 0.0f
 The y range; with fitY, it runs from yMin out to the values shown (below it too).
float yMax = 1.0f
bool fitY = true
PlotScale yScale = PlotScale::Linear
bool labels = true
 the grid's numbers
std::vector< PlotHandle > handles
 Kept in order, each between its neighbours and inside the x range.
std::function< void(const PlotEdit &)> onEdit
 A handle moved (already applied): put it in the undo history.
Public Attributes inherited from tachyon::PlotViewState
int shownSeries = -1
 The series shown on its own (its chip picked), or -1 for all of them overlaid.
Gesture< std::vector< float > > handleDrag
 a handle dragged; the handles as they were, for Escape and the edit
Gesture< float > panDrag
 the view dragged (middle, or Alt + left); its left end as it was
float shownXMin = 0.0f
 a handle dragged; the handles as they were, for Escape and the edit
float shownXMax = 1.0f
 the part of the x range in view, once zoomed
bool shownSet = false
 false: all of the x range
int activeHandle = 0
 the one dragged last; the arrow keys move it
IntRect plotRect {}
 the plot last frame, in screen pixels
float hoverX = 0.0f
 where the pointer is, along x
bool hovered = false
 a handle dragged; the handles as they were, for Escape and the edit
uint32_t edits = 0
 counts the edits committed through this view, for Plot's return
uint32_t editsSeen = 0
 a handle dragged; the handles as they were, for Escape and the edit

Detailed Description

A plot shown in one place: what it shows and the one view of it together.


The documentation for this struct was generated from the following file: