Subversion Repositories freemyipod

Rev

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

Rev 504 Rev 820
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_LIST_PARAMS_VERSION 1
32
#define CHOOSER_RENDERER_LIST_PARAMS_VERSION 2
33
 
33
 
34
struct chooser_renderer_list_params
34
struct chooser_renderer_list_params
35
{
35
{
36
    int version;
36
    int version;
37
    struct libui_location copy_dest;
37
    struct libui_location copy_dest;
Line 57... Line 57...
57
    struct libui_point icon_pos;
57
    struct libui_point icon_pos;
58
    struct libui_surface icon;
58
    struct libui_surface icon;
59
    int icon_opacity;
59
    int icon_opacity;
60
    struct libui_surface icon_selected;
60
    struct libui_surface icon_selected;
61
    int icon_selected_opacity;
61
    int icon_selected_opacity;
62
    char* text;
62
    const char* text;
63
    struct libui_point text_pos;
63
    struct libui_point text_pos;
64
    uint32_t text_color;
64
    uint32_t text_color;
65
    uint32_t text_color_selected;
65
    uint32_t text_color_selected;
-
 
66
    void (*render)(struct chooser_data* data, const struct chooser_item* item,
-
 
67
                   bool selected, int x, int y);
66
};
68
};
67
 
69
 
68
struct chooser_renderer_list_data
70
struct chooser_renderer_list_data
69
{
71
{
70
    const struct chooser_item* top_item;
72
    const struct chooser_item* top_item;
Line 72... Line 74...
72
};
74
};
73
 
75
 
74
 
76
 
75
extern const struct chooser_renderer chooser_renderer_list;
77
extern const struct chooser_renderer chooser_renderer_list;
76
 
78
 
-
 
79
extern void chooser_renderer_list_render_attached_text(struct chooser_data* data,
-
 
80
                                                       const struct chooser_item* item,
-
 
81
                                                       bool selected, int x, int y,
-
 
82
                                                       const char* text);
-
 
83
extern void chooser_renderer_list_show_arrow_right(struct chooser_data* data,
-
 
84
                                                   const struct chooser_item* item,
-
 
85
                                                   bool selected, int x, int y);
-
 
86
extern void chooser_renderer_list_show_arrow_left(struct chooser_data* data,
-
 
87
                                                  const struct chooser_item* item,
-
 
88
                                                  bool selected, int x, int y);
-
 
89
 
77
 
90
 
78
#endif
91
#endif