本文整理汇总了C++中primaryLayer函数的典型用法代码示例。如果您正苦于以下问题:C++ primaryLayer函数的具体用法?C++ primaryLayer怎么用?C++ primaryLayer使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了primaryLayer函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CGPointMake
void GraphicsLayerCACF::updateLayerPosition()
{
// Position is offset on the layer by the layer anchor point.
CGPoint posPoint = CGPointMake(m_position.x() + m_anchorPoint.x() * m_size.width(),
m_position.y() + m_anchorPoint.y() * m_size.height());
primaryLayer()->setPosition(posPoint);
}
示例2: max
void GraphicsLayerChromium::setOpacity(float opacity)
{
float clampedOpacity = max(min(opacity, 1.0f), 0.0f);
if (m_opacity == clampedOpacity)
return;
GraphicsLayer::setOpacity(clampedOpacity);
primaryLayer()->setOpacity(opacity);
}
示例3: copyTransform
void GraphicsLayerCACF::updateChildrenTransform()
{
CATransform3D transform;
copyTransform(transform, m_childrenTransform);
primaryLayer()->setSublayerTransform(transform);
}
示例4: primaryLayer
// This function simply mimics the operation of GraphicsLayerCA
void GraphicsLayerChromium::updateOpacityOnLayer()
{
primaryLayer()->setOpacity(m_opacity);
}