Limit exposure of skin engine internals

Drop wps_internals.h from skin_engine.h. The WPS and to a lesser
extent the radio screen are too tightly integrated to drop their
dependency on wps_internals.h, unfortunately. Skinned lists, for
obvious reasons, also need access to the internals.

Change-Id: I00a55aa423900f9ad22edccbe2fc1910af380e38
This commit is contained in:
Aidan MacDonald 2022-10-02 18:02:27 +01:00
parent 4bd97c6535
commit c6ee9dc883
15 changed files with 157 additions and 142 deletions

View file

@ -229,16 +229,7 @@ extern bool gui_synclist_keyclick_callback(int action, void* data);
*/
extern bool gui_synclist_do_button(struct gui_synclist * lists, int *action);
#if !defined(PLUGIN)
struct listitem_viewport_cfg {
struct wps_data *data;
OFFSETTYPE(char *) label;
int width;
int height;
int xmargin;
int ymargin;
bool tile;
struct skin_viewport selected_item_vp;
};
struct listitem_viewport_cfg;
bool skinlist_get_item(struct screen *display, struct gui_synclist *list, int x, int y, int *item);
bool skinlist_draw(struct screen *display, struct gui_synclist *list);