- make Visible and set bounds

git-svn-id: http://moon:8086/svn/software/trunk/projects/Rbm@622 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2019-11-07 14:53:40 +00:00
parent 80d5c0fcde
commit a5dd0acc58
3 changed files with 4 additions and 4 deletions
-3
View File
@@ -48,9 +48,6 @@ DrawComponent::DrawComponent (int width, int height, float offset, float scale)
//[Constructor] You can add your own custom stuff here..
// m_pG = new Graphics(m_image);
m_data.resize(width*height);
m_pG->setImageResamplingQuality(Graphics::lowResamplingQuality);
clear();
//[/Constructor]
+3 -1
View File
@@ -73,7 +73,9 @@ public:
Layer* onConstruct(const std::string &name, size_t id, size_t numVisibleX, size_t numVisibleY, size_t numHidden)
{
return new RbmComponent(name, id, numVisibleX, numVisibleY, numHidden);
RbmComponent *pComp = new RbmComponent(name, id, numVisibleX, numVisibleY, numHidden);
addAndMakeVisible(pComp);
return pComp;
}
private:
+1
View File
@@ -47,6 +47,7 @@ RbmComponent::RbmComponent (const std::string &name, size_t id, size_t numVisibl
setSize (430, 130);
resized();
setBounds (16, 140*id+16, 430, 130);
}
RbmComponent::~RbmComponent()