![]() |
BSB Developer Docs
|
A widget that shows a snapshot of a display. More...
#include <gui/widget.h>Go to the source code of this file.
Typedefs | |
| typedef struct SnapImage | SnapImage |
| SnapImage opaque structure. | |
Enumerations | |
| enum | SnapImageEffect { SnapImageEffectBlur , SnapImageEffectDim , SnapImageEffectMax } |
Functions | |
| SnapImage * | snap_image_alloc (Widget *parent) |
| Create a new SnapImage instance. | |
| void | snap_image_free (SnapImage *instance) |
| Delete an SnapImage instance. | |
| Widget * | snap_image_get_base (SnapImage *instance) |
| Get a pointer to the base class instance. | |
| void | snap_image_set_effect (SnapImage *instance, SnapImageEffect effect, uint8_t strength) |
| Set effect strength for a SnapImage instance. | |
| void | snap_image_capture_display (SnapImage *instance) |
| Capture the display contents to a SnapImage instance. | |
A widget that shows a snapshot of a display.
Create a new SnapImage instance.
| [in,out] | parent | pointer to the parent Widget instance |
| void snap_image_capture_display | ( | SnapImage * | instance | ) |
Capture the display contents to a SnapImage instance.
| [in,out] | instance | pointer to the SnapImage instance to be operated on |
| void snap_image_free | ( | SnapImage * | instance | ) |
Delete an SnapImage instance.
| [in,out] | instance | pointer to the SnapImage instance to be deleted |
Get a pointer to the base class instance.
The return value can be used in all Widget methods.
| [in,out] | instance | pointer to the SnapImage instance to be queried |
| void snap_image_set_effect | ( | SnapImage * | instance, |
| SnapImageEffect | effect, | ||
| uint8_t | strength ) |
Set effect strength for a SnapImage instance.
| [in,out] | instance | pointer to the SnapImage instance to be operated on |
| [in] | effect | value from SnapImageEffect enumeration |
| [in] | strength | 0 - disable effect, 255 - enable fully |