Graphics::AddressWindow Struct Reference
Manages a rectangular area of display memory with position information. More...
#include <AddressWindow.h>
Collaboration diagram for Graphics::AddressWindow:
Public Types | |
enum class | Mode { none , write , read } |
Public Member Functions | |
AddressWindow () | |
AddressWindow (const Rect &rect) | |
void | reset () |
bool | setMode (Mode mode) |
AddressWindow & | operator= (const Rect &rect) |
size_t | getPixelCount () const |
Get remaining pixels in window from current position. More... | |
uint16_t | seek (uint16_t count) |
Point | pos () const |
uint16_t | left () const |
uint16_t | top () const |
uint16_t | right () const |
uint16_t | bottom () const |
Public Attributes | |
Rect | bounds {} |
y and h are updated by seek() More... | |
uint16_t | column {0} |
Relative x position within window. More... | |
Rect | initial {} |
Mode | mode {} |
Detailed Description
Manages a rectangular area of display memory with position information.
Accesses to display memory is controlled by first setting an active Address Window. This is a rectangular area into which following writes (or reads) will store data.
Although the display hardware usually manages this some operations require tracking the position within the driver.
Member Enumeration Documentation
◆ Mode
|
strong |
Constructor & Destructor Documentation
◆ AddressWindow() [1/2]
|
inline |
◆ AddressWindow() [2/2]
|
inline |
Member Function Documentation
◆ bottom()
|
inline |
◆ getPixelCount()
|
inline |
Get remaining pixels in window from current position.
◆ left()
|
inline |
◆ operator=()
|
inline |
◆ pos()
|
inline |
◆ reset()
|
inline |
◆ right()
|
inline |
◆ seek()
|
inline |
◆ setMode()
|
inline |
◆ top()
|
inline |
Member Data Documentation
◆ bounds
◆ column
uint16_t Graphics::AddressWindow::column {0} |
Relative x position within window.
◆ initial
Rect Graphics::AddressWindow::initial {} |
◆ mode
Mode Graphics::AddressWindow::mode {} |
The documentation for this struct was generated from the following file: