static void action_paste_files_draw_top(ui_view* view, void* data, float x1, float y1, float x2, float y2) { paste_files_data* pasteData = (paste_files_data*) data; u32 curr = pasteData->pasteInfo.processed; if(curr < pasteData->pasteInfo.total) { ui_draw_file_info(view, ((list_item*) linked_list_get(&pasteData->contents, curr))->data, x1, y1, x2, y2); } else if(pasteData->target != NULL) { ui_draw_file_info(view, pasteData->target, x1, y1, x2, y2); } }
static void action_install_tickets_draw_top(ui_view* view, void* data, float x1, float y1, float x2, float y2) { ui_draw_file_info(view, ((install_tickets_data*) data)->base, x1, y1, x2, y2); }
static void files_action_draw_top(ui_view* view, void* data, float x1, float y1, float x2, float y2, list_item* selected) { ui_draw_file_info(view, ((files_action_data*) data)->selected->data, x1, y1, x2, y2); }
static void files_draw_top(ui_view* view, void* data, float x1, float y1, float x2, float y2, list_item* selected) { if(selected != NULL && selected->data != NULL) { ui_draw_file_info(view, selected->data, x1, y1, x2, y2); } }