Changeset 06d0c81 in mainline for uspace/lib/ui/include


Ignore:
Timestamp:
2020-11-19T22:38:17Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
20667af
Parents:
2e0a2e7
Message:

Window placement

Needed to recreate the current 'desktop' and keep CI tests working

File:
1 edited

Legend:

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

    r2e0a2e7 r06d0c81  
    4444typedef struct ui_window ui_window_t;
    4545
     46/** Window placement hint */
     47typedef enum {
     48        /** Use default (automatic) placement */
     49        ui_wnd_place_default = 0,
     50        /** Place window to the top-left corner of the screen */
     51        ui_wnd_place_top_left,
     52        /** Place window to the top-right corner of the screen */
     53        ui_wnd_place_top_right,
     54        /** Place window to the bottom-left corner of the screen */
     55        ui_wnd_place_bottom_left,
     56        /** Place window to the bottom-right corner of the screen */
     57        ui_wnd_place_bottom_right
     58} ui_wnd_placement_t;
     59
    4660/** Window parameters */
    4761typedef struct {
     
    5064        /** Window caption */
    5165        const char *caption;
     66        /** Window placement */
     67        ui_wnd_placement_t placement;
    5268} ui_wnd_params_t;
    5369
Note: See TracChangeset for help on using the changeset viewer.