Jump to content

checkbox.h FOR C++


Recommended Posts

if you use ugfx with c++, you need add this in checkbox.h( added code in red )

/* A Checkbox window */

typedef struct GCheckboxObject {

GWidgetObject w;

#if GINPUT_NEED_TOGGLE

uint16_t toggle;

#endif

} GCheckboxObject;

#ifdef __cplusplus

extern "C" {

#endif

....

#ifdef __cplusplus

}

#endif

#endif /* _GWIN_CHECKBOX_H */

/** @} */

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...