ReactOS  0.4.15-dev-309-g7c8d563
TextureBrush Class Reference

#include <gdiplusbrush.h>

Inheritance diagram for TextureBrush:
Collaboration diagram for TextureBrush:

Public Member Functions

 TextureBrush (Image *image, WrapMode wrapMode, const RectF &dstRect)
 
 TextureBrush (Image *image, Rect &dstRect, ImageAttributes *imageAttributes)
 
 TextureBrush (Image *image, WrapMode wrapMode, INT dstX, INT dstY, INT dstWidth, INT dstHeight)
 
 TextureBrush (Image *image, WrapMode wrapMode, REAL dstX, REAL dstY, REAL dstWidth, REAL dstHeight)
 
 TextureBrush (Image *image, RectF &dstRect, ImageAttributes *imageAttributes)
 
 TextureBrush (Image *image, WrapMode wrapMode)
 
 TextureBrush (Image *image, WrapMode wrapMode, const Rect &dstRect)
 
ImageGetImage () const
 
Status GetTransform (Matrix *matrix) const
 
WrapMode GetWrapMode () const
 
Status MultiplyTransform (Matrix *matrix, MatrixOrder order=MatrixOrderPrepend)
 
Status ResetTransform ()
 
Status RotateTransform (REAL angle, MatrixOrder order)
 
Status ScaleTransform (REAL sx, REAL sy, MatrixOrder order)
 
Status SetTransform (const Matrix *matrix)
 
Status SetWrapMode (WrapMode wrapMode)
 
Status TranslateTransform (REAL dx, REAL dy, MatrixOrder order)
 

Protected Member Functions

GpTextureGetNativeTexture () const
 
 TextureBrush ()
 

Additional Inherited Members

- Private Member Functions inherited from Brush
virtual ~Brush ()
 
BrushClone () const
 
Status GetLastStatus () const
 
BrushType GetType () const
 
 Brush ()
 
 Brush (GpBrush *brush, Status status)
 
Status SetStatus (Status status) const
 
void SetNativeBrush (GpBrush *brush)
 
- Private Member Functions inherited from GdiplusBase
void operator delete (void *in_pVoid)
 
void operator delete[] (void *in_pVoid)
 
voidoperator new (size_t in_size)
 
voidoperator new[] (size_t in_size)
 
- Private Attributes inherited from Brush
GpBrushnativeBrush
 
Status lastStatus
 

Detailed Description

Definition at line 503 of file gdiplusbrush.h.

Constructor & Destructor Documentation

◆ TextureBrush() [1/8]

TextureBrush::TextureBrush ( Image image,
WrapMode  wrapMode,
const RectF dstRect 
)
inline

Definition at line 506 of file gdiplusbrush.h.

507  {
510  getNat(image), wrapMode, dstRect.X, dstRect.Y, dstRect.Width, dstRect.Height, &texture);
512  }
void SetNativeBrush(GpBrush *brush)
Definition: gdiplusbrush.h:84
Status lastStatus
Definition: gdiplusbrush.h:65
friend GpBrush *& getNat(const Brush *brush)
Definition: gdiplusbrush.h:97
smooth NULL
Definition: ftsmooth.c:416
REAL Height
Definition: gdiplustypes.h:664
GLenum GLuint texture
Definition: glext.h:6295
REAL X
Definition: gdiplustypes.h:661
REAL Width
Definition: gdiplustypes.h:663
GpStatus WINGDIPAPI GdipCreateTexture2(GpImage *image, GpWrapMode wrapmode, REAL x, REAL y, REAL width, REAL height, GpTexture **texture)
Definition: brush.c:821
REAL Y
Definition: gdiplustypes.h:662

◆ TextureBrush() [2/8]

TextureBrush::TextureBrush ( Image image,
Rect dstRect,
ImageAttributes imageAttributes 
)
inline

Definition at line 514 of file gdiplusbrush.h.

515  {
517  GpImageAttributes *attrs = imageAttributes ? getNat(imageAttributes) : NULL;
519  getNat(image), attrs, dstRect.X, dstRect.Y, dstRect.Width, dstRect.Height, &texture);
521  }
void SetNativeBrush(GpBrush *brush)
Definition: gdiplusbrush.h:84
INT Width
Definition: gdiplustypes.h:671
Status lastStatus
Definition: gdiplusbrush.h:65
friend GpBrush *& getNat(const Brush *brush)
Definition: gdiplusbrush.h:97
INT X
Definition: gdiplustypes.h:669
smooth NULL
Definition: ftsmooth.c:416
GLenum GLuint texture
Definition: glext.h:6295
GpStatus WINGDIPAPI GdipCreateTextureIA(GpImage *image, GDIPCONST GpImageAttributes *imageattr, REAL x, REAL y, REAL width, REAL height, GpTexture **texture)
Definition: brush.c:848
INT Height
Definition: gdiplustypes.h:672
INT Y
Definition: gdiplustypes.h:670

◆ TextureBrush() [3/8]

TextureBrush::TextureBrush ( Image image,
WrapMode  wrapMode,
INT  dstX,
INT  dstY,
INT  dstWidth,
INT  dstHeight 
)
inline

Definition at line 523 of file gdiplusbrush.h.

524  {
526  lastStatus =
527  DllExports::GdipCreateTexture2I(getNat(image), wrapMode, dstX, dstY, dstWidth, dstHeight, &texture);
529  }
void SetNativeBrush(GpBrush *brush)
Definition: gdiplusbrush.h:84
GLenum GLint GLint GLint GLint GLuint GLenum GLint GLint GLint dstY
Definition: glext.h:11259
Status lastStatus
Definition: gdiplusbrush.h:65
friend GpBrush *& getNat(const Brush *brush)
Definition: gdiplusbrush.h:97
smooth NULL
Definition: ftsmooth.c:416
GLenum GLuint texture
Definition: glext.h:6295
GpStatus WINGDIPAPI GdipCreateTexture2I(GpImage *image, GpWrapMode wrapmode, INT x, INT y, INT width, INT height, GpTexture **texture)
Definition: brush.c:928
GLenum GLint GLint GLint GLint GLuint GLenum GLint GLint dstX
Definition: glext.h:11259

◆ TextureBrush() [4/8]

TextureBrush::TextureBrush ( Image image,
WrapMode  wrapMode,
REAL  dstX,
REAL  dstY,
REAL  dstWidth,
REAL  dstHeight 
)
inline

Definition at line 531 of file gdiplusbrush.h.

532  {
534  lastStatus = DllExports::GdipCreateTexture2(getNat(image), wrapMode, dstX, dstY, dstWidth, dstHeight, &texture);
536  }
void SetNativeBrush(GpBrush *brush)
Definition: gdiplusbrush.h:84
GLenum GLint GLint GLint GLint GLuint GLenum GLint GLint GLint dstY
Definition: glext.h:11259
Status lastStatus
Definition: gdiplusbrush.h:65
friend GpBrush *& getNat(const Brush *brush)
Definition: gdiplusbrush.h:97
smooth NULL
Definition: ftsmooth.c:416
GLenum GLuint texture
Definition: glext.h:6295
GLenum GLint GLint GLint GLint GLuint GLenum GLint GLint dstX
Definition: glext.h:11259
GpStatus WINGDIPAPI GdipCreateTexture2(GpImage *image, GpWrapMode wrapmode, REAL x, REAL y, REAL width, REAL height, GpTexture **texture)
Definition: brush.c:821

◆ TextureBrush() [5/8]

TextureBrush::TextureBrush ( Image image,
RectF dstRect,
ImageAttributes imageAttributes 
)
inline

Definition at line 538 of file gdiplusbrush.h.

539  {
541  GpImageAttributes *attrs = imageAttributes ? getNat(imageAttributes) : NULL;
543  getNat(image), attrs, dstRect.X, dstRect.Y, dstRect.Width, dstRect.Height, &texture);
545  }
void SetNativeBrush(GpBrush *brush)
Definition: gdiplusbrush.h:84
Status lastStatus
Definition: gdiplusbrush.h:65
friend GpBrush *& getNat(const Brush *brush)
Definition: gdiplusbrush.h:97
smooth NULL
Definition: ftsmooth.c:416
REAL Height
Definition: gdiplustypes.h:664
GLenum GLuint texture
Definition: glext.h:6295
REAL X
Definition: gdiplustypes.h:661
REAL Width
Definition: gdiplustypes.h:663
GpStatus WINGDIPAPI GdipCreateTextureIA(GpImage *image, GDIPCONST GpImageAttributes *imageattr, REAL x, REAL y, REAL width, REAL height, GpTexture **texture)
Definition: brush.c:848
REAL Y
Definition: gdiplustypes.h:662

◆ TextureBrush() [6/8]

TextureBrush::TextureBrush ( Image image,
WrapMode  wrapMode 
)
inline

Definition at line 547 of file gdiplusbrush.h.

548  {
552  }
void SetNativeBrush(GpBrush *brush)
Definition: gdiplusbrush.h:84
GpStatus WINGDIPAPI GdipCreateTexture(GpImage *image, GpWrapMode wrapmode, GpTexture **texture)
Definition: brush.c:786
Status lastStatus
Definition: gdiplusbrush.h:65
friend GpBrush *& getNat(const Brush *brush)
Definition: gdiplusbrush.h:97
smooth NULL
Definition: ftsmooth.c:416
GLenum GLuint texture
Definition: glext.h:6295

◆ TextureBrush() [7/8]

TextureBrush::TextureBrush ( Image image,
WrapMode  wrapMode,
const Rect dstRect 
)
inline

Definition at line 554 of file gdiplusbrush.h.

555  {
558  getNat(image), wrapMode, dstRect.X, dstRect.Y, dstRect.Width, dstRect.Height, &texture);
560  }
void SetNativeBrush(GpBrush *brush)
Definition: gdiplusbrush.h:84
INT Width
Definition: gdiplustypes.h:671
Status lastStatus
Definition: gdiplusbrush.h:65
friend GpBrush *& getNat(const Brush *brush)
Definition: gdiplusbrush.h:97
INT X
Definition: gdiplustypes.h:669
smooth NULL
Definition: ftsmooth.c:416
GLenum GLuint texture
Definition: glext.h:6295
GpStatus WINGDIPAPI GdipCreateTexture2I(GpImage *image, GpWrapMode wrapmode, INT x, INT y, INT width, INT height, GpTexture **texture)
Definition: brush.c:928
INT Height
Definition: gdiplustypes.h:672
INT Y
Definition: gdiplustypes.h:670

◆ TextureBrush() [8/8]

TextureBrush::TextureBrush ( )
inlineprotected

Definition at line 638 of file gdiplusbrush.h.

639  {
640  }

Member Function Documentation

◆ GetImage()

Image * TextureBrush::GetImage ( ) const
inline

Definition at line 1482 of file gdiplusheaders.h.

1483 {
1484  GpImage *image = NULL;
1487  if (lastStatus != Ok)
1488  return NULL;
1489 
1490  Image *newImage = new Image(image, lastStatus);
1491  if (!newImage)
1493  return newImage;
1494 }
GpStatus WINGDIPAPI GdipGetTextureImage(GpTexture *brush, GpImage **image)
Definition: brush.c:1288
static PWSTR Image
Definition: pageheap.c:13
Status lastStatus
Definition: gdiplusbrush.h:65
smooth NULL
Definition: ftsmooth.c:416
GpTexture * GetNativeTexture() const
Definition: gdiplusbrush.h:633
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76
GLenum GLuint texture
Definition: glext.h:6295
GpStatus WINGDIPAPI GdipDisposeImage(GpImage *image)
Definition: image.c:2107

◆ GetNativeTexture()

GpTexture* TextureBrush::GetNativeTexture ( ) const
inlineprotected

Definition at line 633 of file gdiplusbrush.h.

634  {
635  return static_cast<GpTexture *>(nativeBrush);
636  }
GpBrush * nativeBrush
Definition: gdiplusbrush.h:64

Referenced by GetImage(), GetTransform(), GetWrapMode(), MultiplyTransform(), ResetTransform(), RotateTransform(), ScaleTransform(), SetTransform(), SetWrapMode(), and TranslateTransform().

◆ GetTransform()

Status TextureBrush::GetTransform ( Matrix matrix) const
inline

Definition at line 567 of file gdiplusbrush.h.

568  {
571  }
GLuint GLenum matrix
Definition: glext.h:9407
friend GpBrush *& getNat(const Brush *brush)
Definition: gdiplusbrush.h:97
GpTexture * GetNativeTexture() const
Definition: gdiplusbrush.h:633
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76
GLenum GLuint texture
Definition: glext.h:6295
GpStatus WINGDIPAPI GdipGetTextureTransform(GpTexture *brush, GpMatrix *matrix)
Definition: brush.c:1301

◆ GetWrapMode()

WrapMode TextureBrush::GetWrapMode ( ) const
inline

Definition at line 574 of file gdiplusbrush.h.

575  {
576  WrapMode wrapMode;
579  return wrapMode;
580  }
WrapMode
Definition: gdiplusenums.h:205
GpTexture * GetNativeTexture() const
Definition: gdiplusbrush.h:633
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76
GLenum GLuint texture
Definition: glext.h:6295
GpStatus WINGDIPAPI GdipGetTextureWrapMode(GpTexture *brush, GpWrapMode *wrapmode)
Definition: brush.c:1316

◆ MultiplyTransform()

Status TextureBrush::MultiplyTransform ( Matrix matrix,
MatrixOrder  order = MatrixOrderPrepend 
)
inline

Definition at line 583 of file gdiplusbrush.h.

584  {
587  }
GLuint GLdouble GLdouble GLint GLint order
Definition: glext.h:11194
GLuint GLenum matrix
Definition: glext.h:9407
friend GpBrush *& getNat(const Brush *brush)
Definition: gdiplusbrush.h:97
GpTexture * GetNativeTexture() const
Definition: gdiplusbrush.h:633
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76
GLenum GLuint texture
Definition: glext.h:6295
GpStatus WINGDIPAPI GdipMultiplyTextureTransform(GpTexture *brush, GDIPCONST GpMatrix *matrix, GpMatrixOrder order)
Definition: brush.c:1331

◆ ResetTransform()

Status TextureBrush::ResetTransform ( )
inline

Definition at line 590 of file gdiplusbrush.h.

591  {
594  }
GpTexture * GetNativeTexture() const
Definition: gdiplusbrush.h:633
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76
GLenum GLuint texture
Definition: glext.h:6295
GpStatus WINGDIPAPI GdipResetTextureTransform(GpTexture *brush)
Definition: brush.c:1345

◆ RotateTransform()

Status TextureBrush::RotateTransform ( REAL  angle,
MatrixOrder  order 
)
inline

Definition at line 597 of file gdiplusbrush.h.

598  {
601  }
GLuint GLdouble GLdouble GLint GLint order
Definition: glext.h:11194
GLfloat angle
Definition: glext.h:10853
GpTexture * GetNativeTexture() const
Definition: gdiplusbrush.h:633
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76
GLenum GLuint texture
Definition: glext.h:6295
GpStatus WINGDIPAPI GdipRotateTextureTransform(GpTexture *brush, REAL angle, GpMatrixOrder order)
Definition: brush.c:1999

◆ ScaleTransform()

Status TextureBrush::ScaleTransform ( REAL  sx,
REAL  sy,
MatrixOrder  order 
)
inline

Definition at line 604 of file gdiplusbrush.h.

605  {
608  }
GLuint GLdouble GLdouble GLint GLint order
Definition: glext.h:11194
GpTexture * GetNativeTexture() const
Definition: gdiplusbrush.h:633
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76
GLenum GLuint texture
Definition: glext.h:6295
GpStatus WINGDIPAPI GdipScaleTextureTransform(GpTexture *brush, REAL sx, REAL sy, GpMatrixOrder order)
Definition: brush.c:1358

◆ SetTransform()

Status TextureBrush::SetTransform ( const Matrix matrix)
inline

Definition at line 611 of file gdiplusbrush.h.

612  {
615  }
GpStatus WINGDIPAPI GdipSetTextureTransform(GpTexture *texture, GDIPCONST GpMatrix *matrix)
Definition: brush.c:1939
GLuint GLenum matrix
Definition: glext.h:9407
friend GpBrush *& getNat(const Brush *brush)
Definition: gdiplusbrush.h:97
GpTexture * GetNativeTexture() const
Definition: gdiplusbrush.h:633
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76
GLenum GLuint texture
Definition: glext.h:6295

◆ SetWrapMode()

Status TextureBrush::SetWrapMode ( WrapMode  wrapMode)
inline

Definition at line 618 of file gdiplusbrush.h.

619  {
622  }
GpStatus WINGDIPAPI GdipSetTextureWrapMode(GpTexture *brush, GpWrapMode wrapmode)
Definition: brush.c:1957
GpTexture * GetNativeTexture() const
Definition: gdiplusbrush.h:633
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76
GLenum GLuint texture
Definition: glext.h:6295

◆ TranslateTransform()

Status TextureBrush::TranslateTransform ( REAL  dx,
REAL  dy,
MatrixOrder  order 
)
inline

Definition at line 625 of file gdiplusbrush.h.

626  {
629  }
GLuint GLdouble GLdouble GLint GLint order
Definition: glext.h:11194
GLint dy
Definition: linetemp.h:97
GpTexture * GetNativeTexture() const
Definition: gdiplusbrush.h:633
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76
GLenum GLuint texture
Definition: glext.h:6295
GpStatus WINGDIPAPI GdipTranslateTextureTransform(GpTexture *brush, REAL dx, REAL dy, GpMatrixOrder order)
Definition: brush.c:2180
GLint dx
Definition: linetemp.h:97

The documentation for this class was generated from the following files: