ArtisticTextShape::ArtisticTextShape() : m_path(0), m_startOffset(0.0) , m_textAnchor( AnchorStart ), m_textUpdateCounter(0) , m_defaultFont("ComicSans", 20) { setShapeId( ArtisticTextShapeID ); cacheGlyphOutlines(); updateSizeAndPosition(); }
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(); }
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; }
void Widget::updateSizeAndPosition() { Size pSize = _parent->getContentSize(); updateSizeAndPosition(pSize); }
void Widget::onEnter() { if (!_usingLayoutComponent) updateSizeAndPosition(); ProtectedNode::onEnter(); }
void Widget::onEnter() { updateSizeAndPosition(); Node::onEnter(); }
void Widget::onEnter() { updateSizeAndPosition(); ProtectedNode::onEnter(); }
void UIWidget::onEnter() { arrayMakeObjectsPerformSelector(m_children, onEnter, UIWidget*); m_bIsRunning = true; updateSizeAndPosition(); }
void SliderWindow::animate(int frame) { updateSizeAndPosition(frame); }
void Widget::onEnter() { updateSizeAndPosition(); CCNodeRGBA::onEnter(); }