MCPcopy Create free account
hub / github.com/cjcliffe/CubicSDR / ScopePanel

Method ScopePanel

src/panel/ScopePanel.cpp:7–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include "ColorTheme.h"
6
7ScopePanel::ScopePanel() : GLPanel(), scopeMode(SCOPE_MODE_Y) {
8 setFill(GLPanelFillType::GLPANEL_FILL_NONE);
9 bgPanel.setFill(GLPanelFillType::GLPANEL_FILL_GRAD_BAR_Y);
10 bgPanelStereo[0].setFill(GLPanelFillType::GLPANEL_FILL_GRAD_BAR_Y);
11 bgPanelStereo[0].setPosition(0, 0.5);
12 bgPanelStereo[0].setSize(1, 0.5);
13 bgPanelStereo[1].setFill(GLPanelFillType::GLPANEL_FILL_GRAD_BAR_Y);
14 bgPanelStereo[1].setPosition(0, -0.5);
15 bgPanelStereo[1].setSize(1, 0.5);
16}
17
18void ScopePanel::setMode(ScopeMode scopeMode_in) {
19 scopeMode = scopeMode_in;

Callers

nothing calls this directly

Calls 3

setFillMethod · 0.80
setPositionMethod · 0.80
setSizeMethod · 0.80

Tested by

no test coverage detected