|
HikoGUI
A low latency retained GUI
|
#include <TTauri/Foundation/PixelMap.hpp>
Public Member Functions | |
| PixelMap () noexcept | |
| Construct an empty pixel-map. | |
| PixelMap (T *pixels, ssize_t width, ssize_t height, ssize_t stride) noexcept | |
| Construct an pixel-map from memory received from an API. | |
| gsl_suppress (r.11) PixelMap(ssize_t width | |
| Construct an pixel-map. | |
| ssize_t height | width (width) |
| ssize_t height | height (height) |
| ssize_t height | stride (width) |
| ssize_t height | selfAllocated (true) |
| PixelMap (ivec extent) noexcept | |
| Construct an pixel-map. | |
| PixelMap (T *pixels, ssize_t width, ssize_t height) noexcept | |
| Construct an pixel-map from memory received from an API. | |
| PixelMap (T *pixels, ivec extent) noexcept | |
| Construct an pixel-map from memory received from an API. | |
| PixelMap (T *pixels, ivec extent, ssize_t stride) noexcept | |
| Construct an pixel-map from memory received from an API. | |
| gsl_suppress2 (r.11, i.11) ~PixelMap() | |
| PixelMap (PixelMap const &other)=delete | |
| Disallowing copying so that life-time of selfAllocated pixels is easy to understand. | |
| PixelMap | copy () const noexcept |
| PixelMap (PixelMap &&other) noexcept | |
| operator bool () const noexcept | |
| PixelMap & | operator= (PixelMap const &other)=delete |
| Disallowing copying so that life-time of selfAllocated pixels is easy to understand. | |
Data Fields | |
| T * | pixels |
| Pointer to a 2D canvas of pixels. | |
| ssize_t | width |
| Number of horizontal pixels. | |
| ssize_t | height |
| Number of vertical pixels. | |
| ssize_t | stride |
| Number of pixel element until the next row. | |
| bool | selfAllocated = false |
| True if the memory was allocated by this class, false if the canvas was received from another API. | |
| ssize_t height | noexcept: pixels(new T[width * height]) |
A 2D canvas of pixels.
This class may either allocate its own memory, or gives access to memory allocated by another API, such as a Vulkan texture.
|
inlinenoexcept |
Construct an empty pixel-map.
|
inlinenoexcept |
Construct an pixel-map from memory received from an API.
| pixel | A pointer to pixels received from the API. |
| width | The width of the image. |
| height | The height of the image. |
| stride | Number of pixel elements until the next row. |
|
inlinenoexcept |
Construct an pixel-map.
This constructor will allocate its own memory.
| extent | The width and height of the image. |
|
inlinenoexcept |
Construct an pixel-map from memory received from an API.
| pixel | A pointer to pixels received from the API. |
| width | The width of the image. |
| height | The height of the image. |
|
inlinenoexcept |
Construct an pixel-map from memory received from an API.
| pixel | A pointer to pixels received from the API. |
| extent | The width and height of the image. |
|
inlinenoexcept |
Construct an pixel-map from memory received from an API.
| pixel | A pointer to pixels received from the API. |
| extent | The width and height of the image. |
| stride | Number of pixel elements until the next row. |
|
delete |
Disallowing copying so that life-time of selfAllocated pixels is easy to understand.
| tt::PixelMap< T >::gsl_suppress | ( | r. | 11 | ) |
Construct an pixel-map.
This constructor will allocate its own memory.
| width | The width of the image. |
| height | The height of the image. |
|
delete |
Disallowing copying so that life-time of selfAllocated pixels is easy to understand.
| ssize_t tt::PixelMap< T >::height |
Number of vertical pixels.
| T* tt::PixelMap< T >::pixels |
Pointer to a 2D canvas of pixels.
| bool tt::PixelMap< T >::selfAllocated = false |
True if the memory was allocated by this class, false if the canvas was received from another API.
| ssize_t tt::PixelMap< T >::stride |
Number of pixel element until the next row.
This is used when the alignment of each row is different from the width of the canvas.
| ssize_t tt::PixelMap< T >::width |
Number of horizontal pixels.