64 , shuttingDown(
nullptr)
69 std::shared_ptr<SCPIInstrument> inst;
70 std::atomic<bool>* shuttingDown;
74 std::shared_ptr<OscilloscopeState> oscilloscopestate;
75 std::shared_ptr<LoadState> loadstate;
76 std::shared_ptr<MultimeterState> meterstate;
77 std::shared_ptr<BERTState> bertstate;
78 std::shared_ptr<PowerSupplyState> psustate;
79 std::shared_ptr<FunctionGeneratorState> awgstate;
bool RectContains(ImVec2 posA, ImVec2 sizeA, ImVec2 posB, ImVec2 sizeB)
Check if a rectangle is completely within the other one.
Definition main.cpp:401
bool IsColorDark(ImU32 bgColor)
Checks if a color is broadly "light" or "dark" using NTSC weighted luminance.
Definition main.cpp:438
void RightJustifiedText(const string &str)
Helper function for right justified text in a table.
Definition main.cpp:346
bool RectIntersect(ImVec2 posA, ImVec2 sizeA, ImVec2 posB, ImVec2 sizeB)
Check if two rectangles intersect.
Definition main.cpp:363
ImU32 GetTextColor(ImU32 bgColor)
Given a background color, choose white or black text to get better contrast.
Definition main.cpp:424