Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of RA8875 by
Diff: GraphicsDisplay.h
- Revision:
- 79:544eb4964795
- Parent:
- 76:c981284eb513
- Child:
- 95:ef538bd687c0
diff -r faf49c381591 -r 544eb4964795 GraphicsDisplay.h --- a/GraphicsDisplay.h Sun Dec 28 03:14:35 2014 +0000 +++ b/GraphicsDisplay.h Sun Dec 28 19:55:16 2014 +0000 @@ -169,7 +169,9 @@ /// This restores the 'window' to the full screen, so that /// other operations (@see cls) would clear the whole screen. /// - virtual void WindowMax(void); + /// @returns success/failure code. @see RetCode_t. + /// + virtual RetCode_t WindowMax(void); /// method to put a single color pixel to the screen. /// @@ -178,13 +180,24 @@ /// by _EndGraphicsStream. /// /// @param[in] pixel is a color value to be put on the screen. - /// @returns error code. + /// @returns success/failure code. @see RetCode_t. /// virtual RetCode_t _putp(color_t pixel); + /// method to fill a region. + /// + /// This method fills a region with the specified color. + /// + /// @param[in] x is the left-edge of the region. + /// @param[in] y is the top-edge of the region. + /// @param[in] w specifies the width of the region. + /// @param[in] h specifies the height of the region. + /// @returns success/failure code. @see RetCode_t. + /// + virtual RetCode_t fill(int x, int y, int w, int h, color_t color); - virtual void fill(int x, int y, int w, int h, color_t color); - virtual void blit(int x, int y, int w, int h, const int * color); + + virtual RetCode_t blit(int x, int y, int w, int h, const int * color); /// This method transfers one character from the external font data /// to the screen.