11 #include "juced_Viewport.h"
13 int juced_Viewport::_numObjects = 0;
15 juced_Viewport::juced_Viewport() : Viewport ()
18 setProperty(Attributes::objectType, Modules::Viewport.toString());
19 setProperty(Attributes::height, getHeight());
20 setProperty(Attributes::width, getWidth());
21 setProperty(Attributes::name, getName());
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());
30 setProperty(Attributes::contentViewed,
true);
31 setProperty(Attributes::scrollBarThickness, getScrollBarThickness());
32 setScrollBarsShown(
true,
false);
35 void juced_Viewport::paint (Graphics& g)
38 g.fillAll (Colour((uint8) 40, (uint8) 121, (uint8) 208));
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) {}