Changeset 2fb49522 in mainline for uspace/app/nav/panel.h


Ignore:
Timestamp:
2021-10-25T00:32:45Z (2 years ago)
Author:
jxsvoboda <5887334+jxsvoboda@…>
Branches:
master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
692c7f40
Parents:
8c72f533
git-author:
Jiri Svoboda <jiri@…> (2021-10-12 19:14:02)
git-committer:
jxsvoboda <5887334+jxsvoboda@…> (2021-10-25 00:32:45)
Message:

Move type definitions to separate directory

File:
1 edited

Legend:

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

    r8c72f533 r2fb49522  
    3737#define PANEL_H
    3838
    39 #include <adt/list.h>
    4039#include <errno.h>
    41 #include <gfx/color.h>
    4240#include <gfx/coord.h>
    4341#include <io/kbd_event.h>
     
    4543#include <ui/control.h>
    4644#include <ui/window.h>
    47 #include <stdint.h>
    48 #include "nav.h"
    49 #include "panel.h"
    50 
    51 /** Panel entry */
    52 typedef struct {
    53         /** Containing panel */
    54         struct panel *panel;
    55         /** Link to @c panel->entries */
    56         link_t lentries;
    57         /** File name */
    58         char *name;
    59         /** File size */
    60         uint64_t size;
    61 } panel_entry_t;
    62 
    63 /** Navigator panel
    64  *
    65  * This is a custom UI control.
    66  */
    67 typedef struct panel {
    68         /** Base control object */
    69         struct ui_control *control;
    70 
    71         /** Containing window */
    72         ui_window_t *window;
    73 
    74         /** Panel rectangle */
    75         gfx_rect_t rect;
    76 
    77         /** Panel color */
    78         gfx_color_t *color;
    79 
    80         /** Panel cursor color */
    81         gfx_color_t *curs_color;
    82 
    83         /** Panel entries (list of panel_entry_t) */
    84         list_t entries;
    85 
    86         /** Number of entries */
    87         size_t entries_cnt;
    88 
    89         /** First entry of current page */
    90         panel_entry_t *page;
    91 
    92         /** Index of first entry of current page */
    93         size_t page_idx;
    94 
    95         /** Cursor position */
    96         panel_entry_t *cursor;
    97 
    98         /** Index of entry under cursor */
    99         size_t cursor_idx;
    100 } panel_t;
     45#include "types/panel.h"
    10146
    10247extern errno_t panel_create(ui_window_t *, panel_t **);
Note: See TracChangeset for help on using the changeset viewer.