ReactOS 0.4.16-dev-91-g764881a
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 {
509 lastStatus = DllExports::GdipCreateTexture2(
510 getNat(image), wrapMode, dstRect.X, dstRect.Y, dstRect.Width, dstRect.Height, &texture);
512 }
friend GpBrush *& getNat(const Brush *brush)
Definition: gdiplusbrush.h:97
Status lastStatus
Definition: gdiplusbrush.h:65
void SetNativeBrush(GpBrush *brush)
Definition: gdiplusbrush.h:84
#define NULL
Definition: types.h:112
GLenum GLuint texture
Definition: glext.h:6295
REAL Height
Definition: gdiplustypes.h:664
REAL X
Definition: gdiplustypes.h:661
REAL Width
Definition: gdiplustypes.h:663
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;
518 lastStatus = DllExports::GdipCreateTextureIA(
519 getNat(image), attrs, dstRect.X, dstRect.Y, dstRect.Width, dstRect.Height, &texture);
521 }
INT Width
Definition: gdiplustypes.h:671
INT Height
Definition: gdiplustypes.h:672
INT X
Definition: gdiplustypes.h:669
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 }
GLenum GLint GLint GLint GLint GLuint GLenum GLint GLint GLint dstY
Definition: glext.h:11259
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 }

◆ 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;
542 lastStatus = DllExports::GdipCreateTextureIA(
543 getNat(image), attrs, dstRect.X, dstRect.Y, dstRect.Width, dstRect.Height, &texture);
545 }

◆ TextureBrush() [6/8]

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

Definition at line 547 of file gdiplusbrush.h.

548 {
550 lastStatus = DllExports::GdipCreateTexture(getNat(image), wrapMode, &texture);
552 }

◆ TextureBrush() [7/8]

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

Definition at line 554 of file gdiplusbrush.h.

555 {
557 lastStatus = DllExports::GdipCreateTexture2I(
558 getNat(image), wrapMode, dstRect.X, dstRect.Y, dstRect.Width, dstRect.Height, &texture);
560 }

◆ 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;
1486 SetStatus(DllExports::GdipGetTextureImage(texture, &image));
1487 if (lastStatus != Ok)
1488 return NULL;
1489
1490 Image *newImage = new Image(image, lastStatus);
1491 if (!newImage)
1492 DllExports::GdipDisposeImage(image);
1493 return newImage;
1494}
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76
GpTexture * GetNativeTexture() const
Definition: gdiplusbrush.h:633
@ Ok
Definition: gdiplustypes.h:26

◆ GetNativeTexture()

GpTexture * TextureBrush::GetNativeTexture ( ) const
inlineprotected

◆ GetTransform()

Status TextureBrush::GetTransform ( Matrix matrix) const
inline

Definition at line 567 of file gdiplusbrush.h.

568 {
570 return SetStatus(DllExports::GdipGetTextureTransform(texture, getNat(matrix)));
571 }
GLuint GLenum matrix
Definition: glext.h:9407

◆ GetWrapMode()

WrapMode TextureBrush::GetWrapMode ( ) const
inline

Definition at line 574 of file gdiplusbrush.h.

575 {
576 WrapMode wrapMode;
578 SetStatus(DllExports::GdipGetTextureWrapMode(texture, &wrapMode));
579 return wrapMode;
580 }
WrapMode
Definition: gdiplusenums.h:206

◆ MultiplyTransform()

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

Definition at line 583 of file gdiplusbrush.h.

584 {
586 return SetStatus(DllExports::GdipMultiplyTextureTransform(texture, getNat(matrix), order));
587 }
GLuint GLdouble GLdouble GLint GLint order
Definition: glext.h:11194

◆ ResetTransform()

Status TextureBrush::ResetTransform ( )
inline

Definition at line 590 of file gdiplusbrush.h.

591 {
593 return SetStatus(DllExports::GdipResetTextureTransform(texture));
594 }

◆ RotateTransform()

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

Definition at line 597 of file gdiplusbrush.h.

598 {
600 return SetStatus(DllExports::GdipRotateTextureTransform(texture, angle, order));
601 }
GLfloat angle
Definition: glext.h:10853

◆ ScaleTransform()

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

Definition at line 604 of file gdiplusbrush.h.

605 {
607 return SetStatus(DllExports::GdipScaleTextureTransform(texture, sx, sy, order));
608 }

◆ SetTransform()

Status TextureBrush::SetTransform ( const Matrix matrix)
inline

Definition at line 611 of file gdiplusbrush.h.

612 {
614 return SetStatus(DllExports::GdipSetTextureTransform(texture, getNat(matrix)));
615 }

◆ SetWrapMode()

Status TextureBrush::SetWrapMode ( WrapMode  wrapMode)
inline

Definition at line 618 of file gdiplusbrush.h.

619 {
621 return SetStatus(DllExports::GdipSetTextureWrapMode(texture, wrapMode));
622 }

◆ TranslateTransform()

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

Definition at line 625 of file gdiplusbrush.h.

626 {
628 return SetStatus(DllExports::GdipTranslateTextureTransform(texture, dx, dy, order));
629 }
GLint dy
Definition: linetemp.h:97
GLint dx
Definition: linetemp.h:97

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