}
EOLIAN static Eina_Bool
-_elm_bg_file_set(Eo *obj, Elm_Bg_Data *sd, const char *file, const char *group)
+_elm_bg_efl_file_file_set(Eo *obj, Elm_Bg_Data *sd, const char *file, const char *group)
{
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EINA_FALSE);
}
EOLIAN static void
-_elm_bg_file_get(Eo *obj EINA_UNUSED, Elm_Bg_Data *sd, const char **file, const char **group)
+_elm_bg_efl_file_file_get(Eo *obj EINA_UNUSED, Elm_Bg_Data *sd, const char **file, const char **group)
{
if (file) *file = sd->file;
if (group) *group = sd->group;
evas_smart_legacy_type_register(MY_CLASS_NAME_LEGACY, klass);
}
+EAPI Eina_Bool
+elm_bg_file_set(Eo *obj, const char *file, const char *group)
+{
+ return eo_do((Eo *) obj, efl_file_set(file, group));
+}
+
+EAPI void
+elm_bg_file_get(const Eo *obj, const char **file, const char **group)
+{
+ eo_do((Eo *) obj, efl_file_get(file, group));
+}
+
#include "elm_bg.eo.c"
-class Elm_Bg (Elm_Layout)
+class Elm_Bg (Elm_Layout, Efl.File)
{
eo_prefix: elm_obj_bg;
properties {
int a; /*@ The blue color component's value */
}
}
- file {
- set {
- /*@
- Set the file (image or edje collection) to give life for the
- background
-
- @return @c EINA_TRUE on success, @c EINA_FALSE otherwise
-
- This sets the image file used in the background object. If the
- image comes from an Edje group, it will be stretched to completely
- fill the background object. If it comes from a traditional image file, it
- will by default be centered in this widget's are (thus retaining
- its aspect), what could lead to some parts being not visible. You
- may change the mode of exhibition for a real image file with
- elm_bg_option_set().
-
- @note Once the image of @p obj is set, a previously set one will be
- deleted, even if @p file is @c NULL.
-
- @note This will only affect the contents of one of the background's
- swallow spots, namely @c "elm.swallow.background". If you want to
- achieve the @c Layout's file setting behavior, you'll have to call
- that method on this object.
-
- @ingroup Bg */
- return: bool;
- }
- get {
- /*@
- Get the file (image or edje collection) set on a given background
- widget
-
- @note Use @c NULL pointers on the file components you're not
- interested in: they'll be ignored by the function.
-
- @ingroup Bg */
- }
- values {
- const(char)* file; /*@ The file path */
- const(char)* group; /*@ Optional key (group in Edje) within the file */
- }
- }
load_size {
set {
/*@
Evas.Object_Smart.add;
Elm_Layout.content_aliases.get;
Elm_Layout.sizing_eval;
+ Efl.File.file.set;
+ Efl.File.file.get;
}
}
*/
EAPI void elm_bg_color_get(const Evas_Object *obj, int *r, int *g, int *b);
-#include "elm_bg.eo.legacy.h"
\ No newline at end of file
+/**
+ *
+ * Set the file (image or edje collection) to give life for the
+ * background
+ *
+ * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise
+ *
+ * This sets the image file used in the background object. If the
+ * image comes from an Edje group, it will be stretched to completely
+ * fill the background object. If it comes from a traditional image file, it
+ * will by default be centered in this widget's are (thus retaining
+ * its aspect), what could lead to some parts being not visible. You
+ * may change the mode of exhibition for a real image file with
+ * elm_bg_option_set().
+ *
+ * @note Once the image of @p obj is set, a previously set one will be
+ * deleted, even if @p file is @c NULL.
+ *
+ * @note This will only affect the contents of one of the background's
+ * swallow spots, namely @c "elm.swallow.background". If you want to
+ * achieve the @c Layout's file setting behavior, you'll have to call
+ * that method on this object.
+ *
+ * @ingroup Bg
+ *
+ * @param[in] file The file path
+ * @param[in] group Optional key (group in Edje) within the file
+ */
+EAPI Eina_Bool elm_bg_file_set(Eo *obj, const char *file, const char *group);
+
+/**
+ *
+ * Get the file (image or edje collection) set on a given background
+ * widget
+ *
+ * @note Use @c NULL pointers on the file components you're not
+ * interested in: they'll be ignored by the function.
+ *
+ * @ingroup Bg
+ *
+ * @param[out] file The file path
+ * @param[out] group Optional key (group in Edje) within the file
+ */
+EAPI void elm_bg_file_get(const Eo *obj, const char **file, const char **group);
+
+#include "elm_bg.eo.legacy.h"