JUCE Designer
 All Classes Functions Variables
juced_Viewport.cpp
1 /*
2  ==============================================================================
3 
4  juced_Viewport.cpp
5  Created: 23 May 2013 1:31:16am
6  Author: admin
7 
8  ==============================================================================
9 */
10 
11 #include "juced_Viewport.h"
12 
13 int juced_Viewport::_numObjects = 0;
14 
15 juced_Viewport::juced_Viewport() : Viewport ()
16 {
17  setName("Viewport");
18  setProperty(Attributes::objectType, Modules::Viewport.toString());
19  setProperty(Attributes::height, getHeight());
20  setProperty(Attributes::width, getWidth());
21  setProperty(Attributes::name, getName());
22  ++_numObjects;
23  setProperty(Attributes::varName, getName() + String(_numObjects));
24  setProperty(Attributes::className, "Viewport");
25  setProperty(Attributes::toolName, "juced_Viewport");
26  setProperty(Attributes::declareExtended, false);
27  setComponentID(Uuid().toString());
28  setProperty(Attributes::ID, getComponentID());
29 
30  setProperty(Attributes::contentViewed, true);
31  setProperty(Attributes::scrollBarThickness, getScrollBarThickness());
32  setScrollBarsShown(true, false);
33 }
34 
35 void juced_Viewport::paint (Graphics& g)
36 {
37  //g.fillAll (Colour((uint8) 245, (uint8) 245, (uint8) 245));
38  g.fillAll (Colour((uint8) 40, (uint8) 121, (uint8) 208));
39 }
40 
41 void juced_Viewport::mouseUp (const MouseEvent& event) {}
42 void juced_Viewport::mouseDrag (const MouseEvent& event) {}
43 void juced_Viewport::mouseDoubleClick (const MouseEvent& event) {}
44 void juced_Viewport::mouseMove (const MouseEvent& event) {}
45 void juced_Viewport::mouseDown (const MouseEvent& event) {}
46 void juced_Viewport::mouseEnter (const MouseEvent& event) {}
47 void juced_Viewport::mouseExit (const MouseEvent& event) {}
48 void juced_Viewport::mouseWheelMove (const MouseEvent &event, const MouseWheelDetails &wheel) {}
49