本文整理汇总了C++中GraphicsObject::pattNo方法的典型用法代码示例。如果您正苦于以下问题:C++ GraphicsObject::pattNo方法的具体用法?C++ GraphicsObject::pattNo怎么用?C++ GraphicsObject::pattNo使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GraphicsObject
的用法示例。
在下文中一共展示了GraphicsObject::pattNo方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: dstOrigin
Point GraphicsObjectData::dstOrigin(const GraphicsObject& go) {
boost::shared_ptr<const Surface> surface = currentSurface(go);
if (surface) {
return Point(surface->getPattern(go.pattNo()).originX,
surface->getPattern(go.pattNo()).originY);
}
return Point();
}
示例2: srcRect
Rect GraphicsObjectData::srcRect(const GraphicsObject& go) {
return currentSurface(go)->getPattern(go.pattNo()).rect;
}
示例3: pixelWidth
int GraphicsObjectOfFile::pixelWidth(const GraphicsObject& rp) {
const Surface::GrpRect& rect = surface_->getPattern(rp.pattNo());
int width = rect.rect.width();
return int((rp.width() / 100.0f) * width);
}
示例4: pixelHeight
int GraphicsObjectOfFile::pixelHeight(const GraphicsObject& rp) {
const Surface::GrpRect& rect = surface_->getPattern(rp.pattNo());
int height = rect.rect.height();
return int((rp.height() / 100.0f) * height);
}
示例5: pixelHeight
int AnmGraphicsObjectData::pixelHeight(const GraphicsObject& rp) {
const Surface::GrpRect& rect = image_->getPattern(rp.pattNo());
int height = rect.rect.height();
return int(rp.getHeightScaleFactor() * height);
}
示例6: pixelWidth
// I am not entirely sure these methods even make sense given the
// context...
int AnmGraphicsObjectData::pixelWidth(const GraphicsObject& rp) {
const Surface::GrpRect& rect = image_->getPattern(rp.pattNo());
int width = rect.rect.width();
return int(rp.getWidthScaleFactor() * width);
}