roo_display
API Documentation for roo_display
Loading...
Searching...
No Matches
roo_display::PauseOutput Class Reference

Temporarily pauses the output transport while a DrawingContext is active. More...

#include <roo_display.h>

Public Member Functions

 PauseOutput (DisplayOutput &out)
 Ends the output transaction on construction.
 
 ~PauseOutput ()
 Restarts the output transaction on destruction.
 

Detailed Description

Temporarily pauses the output transport while a DrawingContext is active.

This releases the bus (e.g. SPI) to allow custom drawables to perform operations on the same bus (e.g. reading data from an SD card). When an instance of this class is alive, and unless ResumeOutput is also used, DrawingContexts do not function and no drawing operations should be attempted.

See jpeg.cpp and png.cpp for an application example.

Definition at line 496 of file roo_display.h.

Constructor & Destructor Documentation

◆ PauseOutput()

roo_display::PauseOutput::PauseOutput ( DisplayOutput out)
inline

Ends the output transaction on construction.

Definition at line 499 of file roo_display.h.

References roo_display::DisplayOutput::end().

◆ ~PauseOutput()

roo_display::PauseOutput::~PauseOutput ( )
inline

Restarts the output transaction on destruction.

Definition at line 501 of file roo_display.h.

References roo_display::DisplayOutput::begin().


The documentation for this class was generated from the following file: