Subversion Repositories freemyipod

Rev

Rev 820 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 820 Rev 832
Line 27... Line 27...
27
#include "emcorelib.h"
27
#include "emcorelib.h"
28
#include "libui.h"
28
#include "libui.h"
29
#include "chooser.h"
29
#include "chooser.h"
30
 
30
 
31
 
31
 
32
#define CHOOSER_RENDERER_ICONFLOW_PARAMS_VERSION 2
32
#define CHOOSER_RENDERER_ICONFLOW_PARAMS_VERSION 3
33
 
33
 
34
struct chooser_renderer_iconflow_params
34
struct chooser_renderer_iconflow_params
35
{
35
{
36
    int version;
36
    int version;
37
    struct libui_location copy_dest;
37
    struct libui_location copy_dest;
Line 56... Line 56...
56
{
56
{
57
    struct libui_surface icon;
57
    struct libui_surface icon;
58
    struct libui_surface icon_selected;
58
    struct libui_surface icon_selected;
59
    const char* text;
59
    const char* text;
60
    uint32_t text_color;
60
    uint32_t text_color;
-
 
61
    uint32_t text_bgcolor;
61
    void (*render)(struct chooser_data* data, const struct chooser_item* item,
62
    void (*render)(struct chooser_data* data, const struct chooser_item* item,
62
                   bool selected, int x, int y, int opacity, int textx, int texty);
63
                   bool selected, int x, int y, int opacity, int textx, int texty);
63
};
64
};
64
 
65
 
65
struct chooser_renderer_iconflow_data
66
struct chooser_renderer_iconflow_data