Changeset 0e5ed803 in mainline for uspace/app/nav/panel.h


Ignore:
Timestamp:
2021-10-04T20:39:24Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Children:
3b67e95
Parents:
68b9e540
Message:

Create, position panels and paint boxes around them

File:
1 edited

Legend:

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

    r68b9e540 r0e5ed803  
    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.