elm_bg: Move enums to elm_bg.eo

Move enums from elm_bg_common.h to elm_bg.eo in order to make them
more accessible for bindings. Delete elm_bg_common.h.
This commit is contained in:
Yakov Goldberg 2015-07-06 18:50:26 +03:00
parent 3011c99caa
commit 768cfe41cb
4 changed files with 18 additions and 29 deletions

View File

@ -155,7 +155,6 @@ elm_authors.h \
elm_bg.h \
elm_bg_eo.h \
elm_bg_legacy.h \
elm_bg_common.h \
elm_box.h \
elm_box_eo.h \
elm_box_legacy.h \

View File

@ -1,3 +1,20 @@
enum Elm.Bg.Option
{
[[
@addtogroup Bg
Identifiers on how a background widget is to display its image --
if it was set to use an image file.
@see elm_bg_option_set()
@see elm_bg_option_get()
]]
center, [[Center the background image.]]
scale, [[Scale the background image, retaining aspect ratio (default).]]
stretch, [[Stretch the background image to fill the widget's area.]]
tile, [[Tile background image at its original size.]]
last [[Sentinel value, also used to indicate errors.]]
}
class Elm.Bg (Elm.Layout, Efl.File)
{
eo_prefix: elm_obj_bg;
@ -28,7 +45,7 @@ class Elm.Bg (Elm.Layout, Efl.File)
@ingroup Bg */
}
values {
option: Elm_Bg_Option; /*@ The desired background option (see #Elm_Bg_Option) */
option: Elm.Bg.Option; /*@ The desired background option (see #Elm_Bg_Option) */
}
}
@property color {

View File

@ -29,7 +29,6 @@
* @li @ref bg_03_example_page
*/
#include "elm_bg_common.h"
#ifdef EFL_EO_API_SUPPORT
#include "elm_bg_eo.h"
#endif

View File

@ -1,26 +0,0 @@
/**
* @addtogroup Bg
*
* @{
*/
/**
* Identifiers on how a background widget is to display its image --
* if it was set to use an image file.
*
* @see elm_bg_option_set()
* @see elm_bg_option_get()
*/
typedef enum
{
ELM_BG_OPTION_CENTER, /**< center the background image */
ELM_BG_OPTION_SCALE, /**< scale the background image, retaining aspect ratio (default)*/
ELM_BG_OPTION_STRETCH, /**< stretch the background image to fill the widget's area */
ELM_BG_OPTION_TILE, /**< tile background image at its original size */
ELM_BG_OPTION_LAST /**< sentinel value, also used to indicate errors */
} Elm_Bg_Option;
/**
* @}
*/