MCPcopy Create free account
hub / github.com/DISTRHO/DPF / NanoRectanglesContainer

Method NanoRectanglesContainer

tests/NanoSubWidgets.cpp:59–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57{
58public:
59 explicit NanoRectanglesContainer(Window& parent)
60 : NanoTopLevelWidget(parent),
61 rect1(this),
62 rect2(this),
63 rect3(this),
64 rectToHide(1)
65 {
66 rect1.setAbsolutePos(100, 100);
67 rect1.setSize(25, 25);
68 rect1.setColor(Color(255, 0, 0));
69
70 rect2.setAbsolutePos(200, 200);
71 rect2.setSize(25, 25);
72 rect2.setColor(Color(0, 255, 0));
73
74 rect3.setAbsolutePos(300, 300);
75 rect3.setSize(25, 25);
76 rect3.setColor(Color(0, 0, 255));
77
78 idleCallback();
79 addIdleCallback(this, 500);
80 }
81
82protected:
83 void onNanoDisplay() override

Callers

nothing calls this directly

Calls 4

addIdleCallbackFunction · 0.85
idleCallbackFunction · 0.70
setAbsolutePosMethod · 0.45
setSizeMethod · 0.45

Tested by

no test coverage detected