Graphics::ImageBrush Class Reference
Brush using pixels from image. More...
#include <Asset.h>
Inheritance diagram for Graphics::ImageBrush:
Collaboration diagram for Graphics::ImageBrush:
Public Member Functions | |
| ImageBrush (BrushStyle style, ImageObject &image) | |
| ImageBrush (AssetID id, BrushStyle style, ImageObject &image) | |
| PixelFormat | getPixelFormat () const override |
| size_t | readPixels (const Location &loc, PixelFormat format, void *buffer, uint16_t width) const override |
| String | getTypeStr () const override |
| void | write (MetaWriter &meta) const override |
Public Member Functions inherited from Graphics::TextureBrush | |
| TextureBrush (BrushStyle style) | |
| TextureBrush (AssetID id, BrushStyle style) | |
Public Member Functions inherited from Graphics::AssetTemplate< AssetType::TextureBrush > | |
| virtual Type | type () const override |
| Asset () | |
| Asset (ID id) | |
Public Member Functions inherited from Graphics::Asset | |
| Asset () | |
| Asset (ID id) | |
| bool | operator== (ID id) const |
| ID | id () const |
Public Member Functions inherited from LinkedObjectTemplate< Asset > | |
| Asset * | getNext () const |
| bool | insertAfter (Asset *object) |
| Iterator | begin () const |
| Iterator | end () const |
| Iterator | cbegin () const |
| Iterator | cend () const |
Public Member Functions inherited from LinkedObject | |
| virtual | ~LinkedObject ()=default |
| virtual LinkedObject * | next () const |
| bool | insertAfter (LinkedObject *object) |
| bool | operator== (const LinkedObject &other) const |
| bool | operator!= (const LinkedObject &other) const |
Additional Inherited Members | |
Public Types inherited from Graphics::Asset | |
| enum class | Type { XX } |
| using | List = LinkedObjectListTemplate< Asset > |
| using | OwnedList = OwnedLinkedObjectListTemplate< Asset > |
| using | ID = AssetID |
Public Types inherited from LinkedObjectTemplate< Asset > | |
| using | Iterator = IteratorTemplate< Asset, Asset *, Asset & > |
| using | ConstIterator = IteratorTemplate< const Asset, const Asset *, const Asset & > |
Static Public Attributes inherited from Graphics::AssetTemplate< AssetType::TextureBrush > | |
| static constexpr Asset::Type | assetType |
Protected Attributes inherited from Graphics::TextureBrush | |
| BrushStyle | style |
Detailed Description
Brush using pixels from image.
Constructor & Destructor Documentation
◆ ImageBrush() [1/2]
|
inline |
◆ ImageBrush() [2/2]
|
inline |
Member Function Documentation
◆ getPixelFormat()
|
overridevirtual |
Reimplemented from Graphics::TextureBrush.
◆ getTypeStr()
|
inlineoverridevirtual |
Reimplemented from Graphics::Asset.
◆ readPixels()
|
overridevirtual |
Implements Graphics::TextureBrush.
◆ write()
|
overridevirtual |
Reimplemented from Graphics::TextureBrush.
The documentation for this class was generated from the following file:
Public Member Functions inherited from
1.9.1