Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/private/window.h

    rcde067e r25f26600  
    11/*
    2  * Copyright (c) 2024 Jiri Svoboda
     2 * Copyright (c) 2020 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    3838#define _UI_PRIVATE_WINDOW_H
    3939
    40 #include <adt/list.h>
    4140#include <errno.h>
    42 #include <congfx/console.h>
    4341#include <display.h>
    4442#include <gfx/context.h>
     
    4644#include <io/pos_event.h>
    4745#include <memgfx/memgc.h>
    48 #include <memgfx/xlategc.h>
    49 #include <types/common.h>
    50 #include <types/ui/cursor.h>
    51 #include <types/ui/window.h>
    5246
    5347/** Actual structure of window.
     
    5852        /** Containing user interface */
    5953        struct ui *ui;
    60         /** Link to @c ui->windows */
    61         link_t lwindows;
    6254        /** Callbacks */
    6355        struct ui_window_cb *cb;
     
    6860        /** Window GC */
    6961        gfx_context_t *gc;
    70         /** Window bitmap (if client-side rendering) */
    71         gfx_bitmap_t *bmp;
    72         /** Window memory GC (if client-side rendering) */
    73         mem_gc_t *mgc;
    74         /** Translating GC (if full screen & server-side rendering) */
    75         xlate_gc_t *xgc;
    76         /** Real window GC (if client-side rendering) */
    77         gfx_context_t *realgc;
    7862        /** Window rectangle */
    7963        gfx_rect_t rect;
    80         /** Normal window rectangle (when not maximized) */
    81         gfx_rect_t normal_rect;
    82         /** Display position (if fullscreen mode) */
    83         gfx_coord2_t dpos;
    8464        /** Application area bitmap */
    8565        gfx_bitmap_t *app_bmp;
     
    8868        /** Application area GC */
    8969        gfx_context_t *app_gc;
    90         /** Dirty rectangle */
    91         gfx_rect_t dirty_rect;
    9270        /** UI resource. Ideally this would be in ui_t. */
    9371        struct ui_resource *res;
    9472        /** Window decoration */
    9573        struct ui_wdecor *wdecor;
    96         /** System menu */
    97         struct ui_menu *sysmenu;
    98         /** System menu restore entry */
    99         struct ui_menu_entry *sysmenu_restore;
    100         /** System menu minimize entry */
    101         struct ui_menu_entry *sysmenu_minimize;
    102         /** System menu maximize entry */
    103         struct ui_menu_entry *sysmenu_maximize;
    104         /** Menu bar */
    105         struct ui_menu_bar *mbar;
    10674        /** Top-level control in the application area */
    10775        struct ui_control *control;
    10876        /** Current cursor */
    10977        ui_stock_cursor_t cursor;
    110         /** Window placement */
    111         ui_wnd_placement_t placement;
    11278};
    11379
    114 /** Size change operation */
    115 typedef enum {
    116         /** Resize window */
    117         ui_wsc_resize,
    118         /** Maximize window */
    119         ui_wsc_maximize,
    120         /** Unmaximize window */
    121         ui_wsc_unmaximize
    122 } ui_wnd_sc_op_t;
    123 
    124 extern display_stock_cursor_t wnd_dcursor_from_cursor(ui_stock_cursor_t);
    125 extern void ui_window_send_sysmenu(ui_window_t *, sysarg_t);
    126 extern void ui_window_send_minimize(ui_window_t *);
    127 extern void ui_window_send_maximize(ui_window_t *);
    128 extern void ui_window_send_unmaximize(ui_window_t *);
    12980extern void ui_window_send_close(ui_window_t *);
    130 extern void ui_window_send_focus(ui_window_t *, unsigned);
     81extern void ui_window_send_focus(ui_window_t *);
    13182extern void ui_window_send_kbd(ui_window_t *, kbd_event_t *);
    13283extern errno_t ui_window_send_paint(ui_window_t *);
    13384extern void ui_window_send_pos(ui_window_t *, pos_event_t *);
    134 extern void ui_window_send_unfocus(ui_window_t *, unsigned);
    135 extern void ui_window_send_resize(ui_window_t *);
    136 extern errno_t ui_window_size_change(ui_window_t *, gfx_rect_t *,
    137     ui_wnd_sc_op_t);
     85extern void ui_window_send_unfocus(ui_window_t *);
    13886
    13987#endif
Note: See TracChangeset for help on using the changeset viewer.