Jump to content
Sign in to follow this  
zhw7238

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 */

/** @} */

Share this post


Link to post
Share on other sites
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...