Esempio n. 1
0
	void Layer::SetWindowDimensions(int width, int height)
	{
		windowWidth = width;
		windowHeight = height;
		resizeBackground(width, height);
		resetFramebuffer();
	}
Esempio n. 2
0
void UpdatedWidget::update(double dx, double dy)
{
    setGeometry(transformRect(m_initRect, dx, dy));
    resizeBackground(dx, dy);
    QList<Button*> ls = this->findChildren<Button*>();
    foreach (Button* w, ls) {
        w->update(dx, dy);
    }
Esempio n. 3
0
void DockAppItem::resizeResources()
{
    if (m_appIcon != NULL)
        updateIcon();

    if (m_appBG != NULL) {
        resizeBackground();
        m_appBG->move(0, 0);
    }

    updateTitle();
}
Esempio n. 4
0
	void Layer::SetWindowHeight(int height)
	{
		windowHeight = height;
		resizeBackground(0, height);
		resetFramebuffer();
	}
Esempio n. 5
0
	void Layer::SetWindowWidth(int width)
	{
		windowWidth = width;
		resizeBackground(width, 0);
		resetFramebuffer();
	}