Changeset f9c4c433 in mainline for uspace/lib/ui/include


Ignore:
Timestamp:
2025-09-16T13:02:37Z (4 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
283bb9f, ff4d31c
Parents:
113fb4f
Message:

Create new file in Navigator (WIP)

Location:
uspace/lib/ui/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/include/types/ui/list.h

    r113fb4f rf9c4c433  
    11/*
    2  * Copyright (c) 2023 Jiri Svoboda
     2 * Copyright (c) 2025 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    3838
    3939#include <gfx/color.h>
     40#include <stddef.h>
    4041
    4142struct ui_list;
     
    6768} ui_list_cb_t;
    6869
     70/** Saved list position. */
     71typedef struct {
     72        /** Page index */
     73        size_t page_idx;
     74        /** Cursor index */
     75        size_t cursor_idx;
     76} ui_list_pos_t;
     77
    6978#endif
    7079
  • uspace/lib/ui/include/ui/filelist.h

    r113fb4f rf9c4c433  
    5151extern errno_t ui_file_list_read_dir(ui_file_list_t *, const char *);
    5252extern errno_t ui_file_list_activate(ui_file_list_t *);
     53extern errno_t ui_file_list_refresh(ui_file_list_t *);
    5354extern void ui_file_list_deactivate(ui_file_list_t *);
    5455extern errno_t ui_file_list_open(ui_file_list_t *, ui_file_list_entry_t *);
  • uspace/lib/ui/include/ui/list.h

    r113fb4f rf9c4c433  
    11/*
    2  * Copyright (c) 2024 Jiri Svoboda
     2 * Copyright (c) 2025 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    7171extern ui_list_entry_t *ui_list_prev(ui_list_entry_t *);
    7272extern bool ui_list_is_active(ui_list_t *);
     73extern void ui_list_save_pos(ui_list_t *, ui_list_pos_t *);
     74extern void ui_list_restore_pos(ui_list_t *, ui_list_pos_t *);
    7375
    7476#endif
Note: See TracChangeset for help on using the changeset viewer.