![]() |
BSB Developer Docs
|
Displays a QR code generated from textual data. More...
#include <gui/widget.h>Go to the source code of this file.
Typedefs | |
| typedef struct QRCode | QRCode |
| QRCode opaque structure. | |
Functions | |
| QRCode * | qr_code_alloc (Widget *parent) |
| Create a new QRCode instance. | |
| void | qr_code_free (QRCode *instance) |
| Delete an QRCode instance. | |
| Widget * | qr_code_get_base (QRCode *instance) |
| Get a pointer to the base class instance. | |
| void | qr_code_set_size (QRCode *instance, int32_t size) |
| Sets the size of the QR code. | |
| void | qr_code_set_data (QRCode *instance, const char *data) |
| Generate and show a QR code. | |
Displays a QR code generated from textual data.
Create a new QRCode instance.
| [in,out] | parent | pointer to the parent Widget instance |
| void qr_code_free | ( | QRCode * | instance | ) |
Delete an QRCode instance.
| [in,out] | instance | pointer to the QRCode 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 QRCode instance to be queried |
| void qr_code_set_data | ( | QRCode * | instance, |
| const char * | data ) |
Generate and show a QR code.
| [in,out] | instance | pointer to the QRCode instance to be modified |
| [in] | data | zero-terminated string containing the text to be shown |
qr_code_set_size must have been called beforehand. | void qr_code_set_size | ( | QRCode * | instance, |
| int32_t | size ) |
Sets the size of the QR code.
| [in,out] | instance | pointer to the QRCode instance to be modified |
| [in] | size | Size of one side of the code (width and height) |
qr_code_set_data.