![]() |
microui
14.5.5
microui
|
Provides some implementations of the LLUI_DISPLAY_impl.h functions relating to the display buffer strategy (BRS). More...
#include <LLUI_DISPLAY_impl.h>#include "ui_util.h"#include "ui_configuration.h"#include "ui_trace.h"Go to the source code of this file.
Functions | |
| DRAWING_Status | UI_DISPLAY_BRS_restore (MICROUI_GraphicsContext *gc, MICROUI_Image *old_back_buffer, ui_rect_t *rect) |
| Restores (copies) the given rectangular region from old back buffer to the graphics context's current buffer (the destination buffer can be retrieved thanks LLUI_DISPLAY_getBufferAddress(&gc->image)). More... | |
Provides some implementations of the LLUI_DISPLAY_impl.h functions relating to the display buffer strategy (BRS).
A BRS
Several BRS are available in ui_configuration.h (the implementation has to select one of them).
Definition in file ui_display_brs.h.
| DRAWING_Status UI_DISPLAY_BRS_restore | ( | MICROUI_GraphicsContext * | gc, |
| MICROUI_Image * | old_back_buffer, | ||
| ui_rect_t * | rect | ||
| ) |
Restores (copies) the given rectangular region from old back buffer to the graphics context's current buffer (the destination buffer can be retrieved thanks LLUI_DISPLAY_getBufferAddress(&gc->image)).
When the copy is synchronous (immediate), the implementation has to return DRAWING_DONE. When the copy is asynchronous (performed by a DMA for instance), the the implementation has to return DRAWING_RUNNING. As the end of the asynchronous copy, the implementation has to call LLUI_DISPLAY_notifyAsynchronousDrawingEnd() to unlock the caller of this function.
The implementation of this function is optional; a weak function provides a simple implementation using memcpy().
| [in] | gc | the MicroUI GraphicsContext that targets the current back buffer |
| [in] | old_back_buffer | a MicroUI Image that symbolizes (targets) the old back buffer. |
| [in] | rect | the rectangular region to copy from old back buffer to new back buffer. |
Definition at line 33 of file ui_display_brs.c.
1.9.1