Graphics::Brush Class Reference
The source of colour for drawing. More...
#include <Asset.h>
Inheritance diagram for Graphics::Brush:
Collaboration diagram for Graphics::Brush:
Public Types | |
| enum class | Kind : uint8_t { XX } |
Public Member Functions | |
| Brush () | |
| Brush (Color color) | |
| Brush (const Brush &other) | |
| Brush (const Brush &other, PixelFormat format) | |
| Brush (PackedColor color) | |
| Brush (const TextureBrush *brush) | |
| void | setColor (Color color) |
| void | setPixelFormat (PixelFormat format) |
| Kind | getKind () const |
| operator bool () const | |
| bool | isSolid () const |
| bool | isTransparent () const |
| bool | operator== (Color color) const |
| bool | operator!= (Color color) const |
| bool | operator== (const Brush &other) const |
| bool | operator!= (const Brush &other) const |
| Color | getColor () const |
| PackedColor | getPackedColor () const |
| PackedColor | getPackedColor (PixelFormat format) const |
| PackedColor | getPackedColor (Point pt) const |
| const TextureBrush & | getObject () const |
| bool | setPixel (Surface &surface, const Location &loc) const |
| uint16_t | setPixels (Surface &surface, const Location &loc, uint16_t pixelCount) const |
| uint16_t | writePixel (const Location &loc, void *buffer) const |
| uint16_t | writePixels (const Location &loc, void *buffer, uint16_t pixelCount) const |
| String | getTypeStr () const |
| void | write (MetaWriter &meta) const |
Detailed Description
The source of colour for drawing.
Member Enumeration Documentation
◆ Kind
|
strong |
Constructor & Destructor Documentation
◆ Brush() [1/6]
|
inline |
◆ Brush() [2/6]
|
inline |
◆ Brush() [3/6]
|
inline |
◆ Brush() [4/6]
|
inline |
◆ Brush() [5/6]
|
inline |
◆ Brush() [6/6]
|
inline |
Member Function Documentation
◆ getColor()
|
inline |
◆ getKind()
|
inline |
◆ getObject()
|
inline |
◆ getPackedColor() [1/3]
|
inline |
◆ getPackedColor() [2/3]
| PackedColor Graphics::Brush::getPackedColor | ( | PixelFormat | format | ) | const |
◆ getPackedColor() [3/3]
| PackedColor Graphics::Brush::getPackedColor | ( | Point | pt | ) | const |
◆ getTypeStr()
| String Graphics::Brush::getTypeStr | ( | ) | const |
◆ isSolid()
|
inline |
◆ isTransparent()
|
inline |
◆ operator bool()
|
inlineexplicit |
◆ operator!=() [1/2]
|
inline |
◆ operator!=() [2/2]
|
inline |
◆ operator==() [1/2]
|
inline |
◆ operator==() [2/2]
|
inline |
◆ setColor()
|
inline |
◆ setPixel()
◆ setPixelFormat()
|
inline |
◆ setPixels()
| uint16_t Graphics::Brush::setPixels | ( | Surface & | surface, |
| const Location & | loc, | ||
| uint16_t | pixelCount | ||
| ) | const |
◆ write()
| void Graphics::Brush::write | ( | MetaWriter & | meta | ) | const |
◆ writePixel()
| uint16_t Graphics::Brush::writePixel | ( | const Location & | loc, |
| void * | buffer | ||
| ) | const |
◆ writePixels()
| uint16_t Graphics::Brush::writePixels | ( | const Location & | loc, |
| void * | buffer, | ||
| uint16_t | pixelCount | ||
| ) | const |
Member Data Documentation
◆ brush
| const TextureBrush* Graphics::Brush::brush |
◆ color
| Color Graphics::Brush::color |
◆ packedColor
| PackedColor Graphics::Brush::packedColor |
The documentation for this class was generated from the following file:
1.9.1