ArtisticTextShape::ArtisticTextShape()
    : m_path(0), m_startOffset(0.0)
    , m_textAnchor( AnchorStart ), m_textUpdateCounter(0)
    , m_defaultFont("ComicSans", 20)
{
    setShapeId( ArtisticTextShapeID );
    cacheGlyphOutlines();
    updateSizeAndPosition();
}
Esempio n. 2
0
ArtisticTextShape::ArtisticTextShape()
    : m_text( i18n( "Artistic Text" ) )
    , m_font(QFont("ComicSans", 20), &m_paintDevice)
    , m_path(0), m_startOffset(0.0), m_baselineOffset(0.0)
    , m_textAnchor( AnchorStart )
{

    setShapeId( ArtisticTextShapeID );
    cacheGlyphOutlines();
    updateSizeAndPosition();
}
Esempio n. 3
0
void Widget::updateSizeAndPosition()
{
    Widget* widgetParent = getWidgetParent();
    Size pSize;
    if (widgetParent)
    {
        pSize = widgetParent->getLayoutSize();
    }
    else
    {
        pSize = _parent->getContentSize();
    }
    updateSizeAndPosition(pSize);
}
void SliderWindow::startAnimation() {
	
#ifdef Q_WS_WIN
	if (isFullScreenAppRunning()) {
		return;
	}
#endif
	
	initializePosition();
	updateSizeAndPosition(0);
	show();
#ifdef Q_WS_X11
	raise();
#endif
	m_d->timeLine.setFrameRange(0, sliderHeight);
	m_d->timeLine.setDirection(QTimeLine::Forward);
	m_d->timeLine.start();
	
	m_d->isAnimating = true;
	m_d->isHovered = false;
}
Esempio n. 5
0
void Widget::updateSizeAndPosition()
{
    Size pSize = _parent->getContentSize();

    updateSizeAndPosition(pSize);
}
Esempio n. 6
0
void Widget::onEnter()
{
    if (!_usingLayoutComponent)
        updateSizeAndPosition();
    ProtectedNode::onEnter();
}
Esempio n. 7
0
void Widget::onEnter()
{
    updateSizeAndPosition();
    Node::onEnter();
}
Esempio n. 8
0
void Widget::onEnter()
{
    updateSizeAndPosition();
    ProtectedNode::onEnter();
}
Esempio n. 9
0
void UIWidget::onEnter()
{
    arrayMakeObjectsPerformSelector(m_children, onEnter, UIWidget*);
    m_bIsRunning = true;
    updateSizeAndPosition();
}
Esempio n. 10
0
void SliderWindow::animate(int frame) {
	
	updateSizeAndPosition(frame);
}
Esempio n. 11
0
void Widget::onEnter()
{
    updateSizeAndPosition();
    CCNodeRGBA::onEnter();
}