-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainComponent.cpp
35 lines (27 loc) · 1004 Bytes
/
MainComponent.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include "MainComponent.h"
//==============================================================================
MainComponent::MainComponent()
{
addAndMakeVisible(controller);
setSize (600, 400);
//setFramesPerSecond (60); // This sets the frequency of the update calls.
}
MainComponent::~MainComponent()
{
}
//==============================================================================
//void MainComponent::update()
//{
// // This function is called at the frequency specified by the setFramesPerSecond() call
// // in the constructor. You can use it to update counters, animate values, etc.
//}
//==============================================================================
void MainComponent::paint (juce::Graphics& g) //chiamata dopo il resized
{
g.fillAll (Colours::greenyellow);
}
void MainComponent::resized()
{
controller.setBounds(getLocalBounds());
//Desktop::getInstance().setKioskModeComponent(&controller, false);
}