Change-Id: I4e433a8f09342051a9ec062f45184709e578fd98
{
}
-VBrush::VBrush(const VGradient *gradient) : mType(VBrush::Type::NoBrush)
+VBrush::VBrush(const VGradient *gradient)
{
if (!gradient) return;
}
}
+VBrush::VBrush(const VBitmap &texture)
+{
+ if (!texture.valid()) return;
+
+ mType = VBrush::Type::Texture;
+ mTexture = texture;
+}
+
+void VBrush::setMatrix(const VMatrix &m)
+{
+ mMatrix = m;
+}
+
V_END_NAMESPACE
#include "vglobal.h"
#include "vmatrix.h"
#include "vpoint.h"
+#include "vbitmap.h"
V_BEGIN_NAMESPACE
VBrush(const VColor &color);
VBrush(const VGradient *gradient);
VBrush(int r, int g, int b, int a);
+ VBrush(const VBitmap &texture);
inline VBrush::Type type() const { return mType; }
-
+ void setMatrix(const VMatrix &m);
public:
VBrush::Type mType{Type::NoBrush};
VColor mColor;
const VGradient *mGradient{nullptr};
+ VBitmap mTexture;
+ VMatrix mMatrix;
};
V_END_NAMESPACE