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:
parent
74f8c9b9ef
commit
946e4dc50d
27 changed files with 9146 additions and 0 deletions
35
examples/ComponentTutorialExample/Source/MainComponent.cpp
Normal file
35
examples/ComponentTutorialExample/Source/MainComponent.cpp
Normal 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());
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue