Adding missing default definitions of several macros

ugfx_release_2.6
Joel Bodenmann 2016-02-21 13:32:32 +01:00
parent 3a840480ed
commit 3d78787b07
2 changed files with 35 additions and 0 deletions

View File

@ -195,6 +195,18 @@
#ifndef GFX_OS_HEAP_SIZE #ifndef GFX_OS_HEAP_SIZE
#define GFX_OS_HEAP_SIZE 0 #define GFX_OS_HEAP_SIZE 0
#endif #endif
/**
* @brief Enable wrappers for malloc() and free()
* @details Defaults to FALSE
* @note If enabled, malloc() and free() will be implemented as wrappers that call gfxAlloc() and
* gfxFree() in order to provide portability to libraries using these function.
* @note Enabling this can solve 'unresolved _sbrk' issues
* @note It is strongly recommended to always use gfxAlloc() and gfxFree() directy to ensure
* portability of uGFX applications across all platforms.
*/
#ifndef GFX_EMULATE_MALLOC
#define GFX_EMULATE_MALLOC FALSE
#endif
/** @} */ /** @} */
#endif /* _GOS_OPTIONS_H */ #endif /* _GOS_OPTIONS_H */

View File

@ -135,6 +135,13 @@
#ifndef GWIN_NEED_RADIO #ifndef GWIN_NEED_RADIO
#define GWIN_NEED_RADIO FALSE #define GWIN_NEED_RADIO FALSE
#endif #endif
/**
* @brief Should list widget functions be included.
* @details Defaults to FALSE
*/
#ifndef GWIN_NEED_LIST
#define GWIN_NEED_LIST FALSE
#endif
/** /**
* @brief Should tabset functions be included. * @brief Should tabset functions be included.
* @details Defaults to FALSE * @details Defaults to FALSE
@ -307,6 +314,22 @@
#ifndef GWIN_NEED_IMAGE_ANIMATION #ifndef GWIN_NEED_IMAGE_ANIMATION
#define GWIN_NEED_IMAGE_ANIMATION FALSE #define GWIN_NEED_IMAGE_ANIMATION FALSE
#endif #endif
/**
* @brief Enable the API to use attributes in the label widget
* @details Defaults to FALSE
* @note Using this feature is discouraged. The proper (and faster as well
* as more efficient) way is to use two separate labels.
*/
#ifndef GWIN_LABEL_ATTRIBUTE
#define GWIN_LABEL_ATTRIBUTE FALSE
#endif
/**
* @brief Enable the API to use images in items in the list widget
* @details Defaults to FALSE
*/
#ifndef GWIN_NEED_LIST_IMAGES
#define GWIN_NEED_LIST_IMAGES FALSE
#endif
/** /**
* @brief Enable the API to automatically increment the progressbar over time * @brief Enable the API to automatically increment the progressbar over time
* @details Defaults to FALSE * @details Defaults to FALSE