Пример #1
0
ArtisticTextShape::ArtisticTextShape()
    : m_path(0), m_startOffset(0.0)
    , m_textAnchor( AnchorStart ), m_textUpdateCounter(0)
    , m_defaultFont("ComicSans", 20)
{
    setShapeId( ArtisticTextShapeID );
    cacheGlyphOutlines();
    updateSizeAndPosition();
}
Пример #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();
}
Пример #3
0
void Widget::updateSizeAndPosition()
{
    Widget* widgetParent = getWidgetParent();
    Size pSize;
    if (widgetParent)
    {
        pSize = widgetParent->getLayoutSize();
    }
    else
    {
        pSize = _parent->getContentSize();
    }
    updateSizeAndPosition(pSize);
}
Пример #4
0
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;
}
Пример #5
0
void Widget::updateSizeAndPosition()
{
    Size pSize = _parent->getContentSize();

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