realign: fix warnings

This commit is contained in:
Gabor Kiss-Vamosi
2018-11-23 11:35:13 +01:00
parent ce1a1f749a
commit f30f3ea8ed
2 changed files with 11 additions and 2 deletions

View File

@@ -761,7 +761,6 @@ void lv_obj_align(lv_obj_t * obj, const lv_obj_t * base, lv_align_t align, lv_co
#endif
}
/**
* Align an object to an other object.
* @param obj pointer to an object to align

View File

@@ -140,7 +140,7 @@ typedef uint8_t lv_align_t;
#if LV_OBJ_REALIGN
typedef struct {
struct _lv_obj_t * base;
const struct _lv_obj_t * base;
lv_coord_t xofs;
lv_coord_t yofs;
lv_align_t align;
@@ -348,6 +348,16 @@ void lv_obj_set_height(lv_obj_t * obj, lv_coord_t h);
*/
void lv_obj_align(lv_obj_t * obj,const lv_obj_t * base, lv_align_t align, lv_coord_t x_mod, lv_coord_t y_mod);
/**
* Align an object to an other object.
* @param obj pointer to an object to align
* @param base pointer to an object (if NULL the parent is used). 'obj' will be aligned to it.
* @param align type of alignment (see 'lv_align_t' enum)
* @param x_mod x coordinate shift after alignment
* @param y_mod y coordinate shift after alignment
*/
void lv_obj_align_origo(lv_obj_t * obj, const lv_obj_t * base, lv_align_t align, lv_coord_t x_mod, lv_coord_t y_mod);
/**
* Realign the object based on the last `lv_obj_align` parameters.
* @param obj pointer to an object