Changeset 1af103e in mainline for uspace/lib/ui/include/types


Ignore:
Timestamp:
2023-09-13T17:29:07Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
61643c8
Parents:
46bd63c9
Message:

System menu (WIP)

The system menu provides browsable, keyboard-accessible access to window
management functions (such as closing, minimizing, maximizing, resizing,
moving).

Location:
uspace/lib/ui/include/types/ui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/include/types/ui/wdecor.h

    r46bd63c9 r1af103e  
    3838
    3939#include <gfx/coord.h>
     40#include <types/common.h>
    4041#include <types/ui/cursor.h>
    4142
     
    5152        /** Window has a title bar */
    5253        ui_wds_titlebar = 0x2,
     54        /** Window has a system menu */
     55        ui_wds_sysmenu = 0x4,
    5356        /** Window has a minimize button */
    54         ui_wds_minimize_btn = 0x4,
     57        ui_wds_minimize_btn = 0x8,
    5558        /** Window has a maximize button */
    56         ui_wds_maximize_btn = 0x8,
     59        ui_wds_maximize_btn = 0x10,
    5760        /** Window has a close button */
    58         ui_wds_close_btn = 0x10,
     61        ui_wds_close_btn = 0x20,
    5962        /** Window is resizable */
    60         ui_wds_resizable = 0x20,
     63        ui_wds_resizable = 0x40,
    6164        /** Window is decorated (default decoration) */
    62         ui_wds_decorated = ui_wds_frame | ui_wds_titlebar |
     65        ui_wds_decorated = ui_wds_frame | ui_wds_titlebar | ui_wds_sysmenu |
    6366            ui_wds_minimize_btn | ui_wds_close_btn
    6467} ui_wdecor_style_t;
     
    8184/** Window decoration callbacks */
    8285typedef struct ui_wdecor_cb {
     86        void (*sysmenu)(ui_wdecor_t *, void *, sysarg_t);
    8387        void (*minimize)(ui_wdecor_t *, void *);
    8488        void (*maximize)(ui_wdecor_t *, void *);
  • uspace/lib/ui/include/types/ui/window.h

    r46bd63c9 r1af103e  
    4040#include <io/kbd_event.h>
    4141#include <io/pos_event.h>
     42#include <types/common.h>
    4243#include <types/ui/wdecor.h>
    4344
     
    9596/** Window callbacks */
    9697typedef struct ui_window_cb {
     98        void (*sysmenu)(ui_window_t *, void *, sysarg_t);
    9799        void (*minimize)(ui_window_t *, void *);
    98100        void (*maximize)(ui_window_t *, void *);
Note: See TracChangeset for help on using the changeset viewer.