예제 #1
0
void GpxBlock::addOutport()
{
  GpxConnectionOutport *p = new GpxConnectionOutport(this,_myDirection);
  p->setDirection(direction());
	_outPorts.append(p);
	updatePortsPositions();
	updateTextPosition();
}
예제 #2
0
void GpxBlock::setName(QString name)
{
	_name_item.setPlainText(name);
	_name_item.adjustSize();
  GpxEditionScene *ges = dynamic_cast<GpxEditionScene*>(scene());
  if (ges)
    ges->on_modified();
	updateTextPosition();
}
예제 #3
0
void			GVOInputBox::updateRender(void)
{
	mMutex.lock();
	if (mContent == "")
	{
		mText.setString(mTitle);
		mText.setColor(sf::Color(0, 0, 0, 125));
	}
	else
	{
		mText.setString(mContent);
		mText.setColor(mTextColor);
	}
	updateTextPosition();
	mMutex.unlock();
	mRendered.clear(sf::Color::Transparent);
	mRendered.draw(mBackground);
	mRendered.draw(mText);
	mRendered.display();
	mSprite.setTexture(mRendered.getTexture());
}
예제 #4
0
파일: groupbox.cpp 프로젝트: Syntaf/Cells
void GroupBox::setText(const std::string& str)
{
    text.setString(str);
    updateTextPosition();
}
예제 #5
0
파일: groupbox.cpp 프로젝트: Syntaf/Cells
void GroupBox::setSize(const sf::Vector2u& size)
{
    box.setSize(sf::Vector2f(size.x, size.y));
    updateTextPosition();
    updateLine();
}
예제 #6
0
파일: groupbox.cpp 프로젝트: Syntaf/Cells
void GroupBox::setPosition(const sf::Vector2f& pos)
{
    box.setPosition(pos);
    updateTextPosition();
    updateLine();
}