Changeset 692c7f40 in mainline for uspace/app/nav/types


Ignore:
Timestamp:
2021-10-25T00:32:45Z (4 years ago)
Author:
jxsvoboda <5887334+jxsvoboda@…>
Branches:
master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1eb0fafe
Parents:
2fb49522
git-author:
Jiri Svoboda <jiri@…> (2021-10-13 18:40:48)
git-committer:
jxsvoboda <5887334+jxsvoboda@…> (2021-10-25 00:32:45)
Message:

Panel activation

Active panel can be switched using the Tab key. Mouse activation is
not implemented.

Location:
uspace/app/nav/types
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/nav/types/nav.h

    r2fb49522 r692c7f40  
    4141#include <ui/window.h>
    4242
     43enum {
     44        navigator_panels = 2
     45};
     46
    4347/** Navigator */
    4448typedef struct navigator {
     
    5256        struct nav_menu *menu;
    5357        /** Panels */
    54         struct panel *panel[2];
     58        struct panel *panel[navigator_panels];
    5559} navigator_t;
    5660
  • uspace/app/nav/types/panel.h

    r2fb49522 r692c7f40  
    7575        gfx_color_t *curs_color;
    7676
     77        /** Active border color */
     78        gfx_color_t *act_border_color;
     79
    7780        /** Panel entries (list of panel_entry_t) */
    7881        list_t entries;
     
    9295        /** Index of entry under cursor */
    9396        size_t cursor_idx;
     97
     98        /** @c true iff the panel is active */
     99        bool active;
    94100} panel_t;
    95101
Note: See TracChangeset for help on using the changeset viewer.