MCPcopy Create free account
hub / github.com/analogdevicesinc/scopy / setCursorPos

Method setCursorPos

gui/src/buffer_previewer.cpp:108–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106
107double BufferPreviewer::cursorPos() const { return m_cursorPos; }
108void BufferPreviewer::setCursorPos(double pos)
109{
110 if(pos < 0.0 || pos > 1.0 || pos == m_cursorPos)
111 return;
112
113 m_cursorPos = pos;
114 update();
115}
116
117int BufferPreviewer::verticalSpacing() const { return m_verticalSpacing; }
118

Callers 5

OscilloscopeMethod · 0.80
updateBufferPreviewerMethod · 0.80
setupUiMethod · 0.80
updateBufferPreviewerMethod · 0.80
setupBufferPreviewerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected