Photon microGUI widgets library 0.6.0
PtWidget_t Struct Reference

#include <PhWidgetsNativeTypes.h>

Detailed Description

Native widget handle of Photon microGUI library.

Note
Do not use directly. You can gain access to all widget functionality with corresponding PhWidgets class.

Examples

// You have somewhere:
PtWidget_t *ptwidget; // pointer to PtButton widget
int ptwidget_realized_callback( PtWidget_t *, void *, PtCallbackInfo_t *); // callback
// constructing Widget
PhWidgets::Button button1(ptwidget);
// set of widget width
button1.Width = 10;
// add callback
button1.Realized += ptwidget_realized_callback;
// bring button to front (set as most top widget)
button1.BringToFront();
A button for initiating an action.
Definition: Button.h:24
See also

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