1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Added a new example project: ComponentTutorialExample, which includes a PDF tutorial describing the basics of what a Component is.

This commit is contained in:
jules 2015-02-23 10:25:59 +00:00
parent 74f8c9b9ef
commit 946e4dc50d
27 changed files with 9146 additions and 0 deletions

View file

@ -0,0 +1,35 @@
/*
==============================================================================
This file was auto-generated!
==============================================================================
*/
#include "MainComponent.h"
//==============================================================================
MainContentComponent::MainContentComponent()
: lightGrid ("lightGrid") //initialise the ToggleLightGridComponent object
{
setSize (600, 600);
// add the light grid to out main component.
addAndMakeVisible (lightGrid);
}
MainContentComponent::~MainContentComponent()
{
}
void MainContentComponent::paint (Graphics& g)
{
g.fillAll (Colour (0xff001F36));
}
void MainContentComponent::resized()
{
// set the size of the grid to fill the whole window.
lightGrid.setBounds (getLocalBounds());
}