Changeset b36ebb42 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:
61784ed
Parents:
6aa85c1
git-author:
Jiri Svoboda <jiri@…> (2021-10-04 20:39:24)
git-committer:
jxsvoboda <5887334+jxsvoboda@…> (2021-10-25 00:32:45)
Message:

Create, position panels and paint boxes around them

File:
1 edited

Legend:

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

    r6aa85c1 rb36ebb42  
    4040#include <gfx/color.h>
    4141#include <gfx/coord.h>
     42#include <io/pos_event.h>
    4243#include <ui/control.h>
     44#include <ui/window.h>
    4345#include "nav.h"
    4446#include "panel.h"
     
    4850 * This is a custom UI control.
    4951 */
    50 typedef struct {
     52typedef struct panel {
    5153        /** Base control object */
    5254        struct ui_control *control;
     55
     56        /** Containing window */
     57        ui_window_t *window;
    5358
    5459        /** Panel rectangle */
     
    5964} panel_t;
    6065
    61 extern errno_t panel_create(panel_t **);
     66extern errno_t panel_create(ui_window_t *, panel_t **);
    6267extern void panel_destroy(panel_t *);
     68extern errno_t panel_paint(panel_t *);
     69extern ui_evclaim_t panel_pos_event(panel_t *, pos_event_t *);
     70extern ui_control_t *panel_ctl(panel_t *);
     71extern void panel_set_rect(panel_t *, gfx_rect_t *);
    6372
    6473#endif
Note: See TracChangeset for help on using the changeset viewer.