Graphics::Location Struct Reference
Identifies position within bounding rectangle. More...
#include <Types.h>
Collaboration diagram for Graphics::Location:
Public Member Functions | |
Point | destPos () const |
Point | sourcePos () const |
String | toString () const |
Public Attributes | |
Rect | dest |
Where to write pixels on surface. More... | |
Rect | source |
Reference source area. More... | |
Point | pos |
Position relative to dest/source top-left corner. More... | |
Detailed Description
Identifies position within bounding rectangle.
Member Function Documentation
◆ destPos()
|
inline |
◆ sourcePos()
|
inline |
◆ toString()
String Graphics::Location::toString | ( | ) | const |
Member Data Documentation
◆ dest
Rect Graphics::Location::dest |
Where to write pixels on surface.
◆ pos
Point Graphics::Location::pos |
Position relative to dest/source top-left corner.
◆ source
Rect Graphics::Location::source |
Reference source area.
This is generally used by brushes to locate colour information. For example, with an ImageBrush objects can be filled to either re-use the same portion of the reference image, or to reveal a particular part of it.
The documentation for this struct was generated from the following file: