Ignore:
Timestamp:
2021-05-27T17:00:30Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Children:
b4b4dafe
Parents:
f2416ec3
Message:

Set menu popup position based on parent window position

Added a method for getting the position of a display window.
This is then combined with the menu bar entry rectangle (which is
relative to the parent window) to compute a screen-relative
rectangle close to which the popup should be placed.

File:
1 edited

Legend:

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

    rf2416ec3 r6baab83  
    5858        ui_wnd_place_bottom_right,
    5959        /** Place window accross the entire screen */
    60         ui_wnd_place_full_screen
     60        ui_wnd_place_full_screen,
     61        /** Place window as a popup window adjacent to rectangle */
     62        ui_wnd_place_popup
    6163} ui_wnd_placement_t;
    6264
     
    7173        /** Window placement */
    7274        ui_wnd_placement_t placement;
     75        /** Parent rectangle for popup windows */
     76        gfx_rect_t prect;
    7377} ui_wnd_params_t;
    7478
Note: See TracChangeset for help on using the changeset viewer.