本文整理汇总了C++中MATRIX::getScaleY方法的典型用法代码示例。如果您正苦于以下问题:C++ MATRIX::getScaleY方法的具体用法?C++ MATRIX::getScaleY怎么用?C++ MATRIX::getScaleY使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MATRIX
的用法示例。
在下文中一共展示了MATRIX::getScaleY方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: invalidate
IDrawable* TextField::invalidate(DisplayObject* target, const MATRIX& initialMatrix)
{
int32_t x,y;
uint32_t width,height;
number_t bxmin,bxmax,bymin,bymax;
if(boundsRect(bxmin,bxmax,bymin,bymax)==false)
{
//No contents, nothing to do
return NULL;
}
MATRIX totalMatrix;
std::vector<IDrawable::MaskData> masks;
computeMasksAndMatrix(target, masks, totalMatrix);
totalMatrix=initialMatrix.multiplyMatrix(totalMatrix);
computeBoundsForTransformedRect(bxmin,bxmax,bymin,bymax,x,y,width,height,totalMatrix);
if(width==0 || height==0)
return NULL;
if(totalMatrix.getScaleX() != 1 || totalMatrix.getScaleY() != 1)
LOG(LOG_NOT_IMPLEMENTED, "TextField when scaled is not correctly implemented");
/** TODO: The scaling is done differently for textfields : height changes are applied directly
on the font size. In some cases, it can change the width (if autosize is on and wordwrap off).
Width changes do not change the font size, and do nothing when autosize is on and wordwrap off.
Currently, the TextField is stretched in case of scaling.
*/
return new CairoPangoRenderer(*this,
totalMatrix, x, y, width, height, 1.0f,
getConcatenatedAlpha(), masks);
}