Changeset 89bca606 in mainline


Ignore:
Timestamp:
2023-04-14T12:57:30Z (20 months ago)
Author:
GitHub <noreply@…>
Children:
4bfb5a0
Parents:
e1f5fb19
git-author:
SimonJRiddix <69309548+simonjriddix@…> (2023-04-14 12:57:30)
git-committer:
GitHub <noreply@…> (2023-04-14 12:57:30)
Message:

add relative bottom left/right taskbar coordinates

the absolute coordinates of the screen and relative to the taskbar have been added both in the lower left and in the lower right.
Absolute coordinates place the window above the taskbar, while non-absolute coordinates place the window above the taskbar.
The taskbar delta calculation is a fixed value that corresponds to the height of the taskbar. It is necessary to create a communication the size of the taskbar.

File:
1 edited

Legend:

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

    re1f5fb19 r89bca606  
    11/*
    22 * Copyright (c) 2023 Jiri Svoboda
     3 * Copyright (c) 2023 SimonJRiddix
    34 * All rights reserved.
    45 *
     
    5354        /** Place window to the top-right corner of the screen */
    5455        ui_wnd_place_top_right,
     56        /** Place window to the bottom-left corner of the screen on top of taskbar */
     57        ui_wnd_place_bottom_left,
     58        /** Place window to the bottom-right corner of the screen on top of taskbar */
     59        ui_wnd_place_bottom_right,
    5560        /** Place window to the bottom-left corner of the screen */
    56         ui_wnd_place_bottom_left,
     61        ui_wnd_place_bottom_left_absolute,
    5762        /** Place window to the bottom-right corner of the screen */
    58         ui_wnd_place_bottom_right,
     63        ui_wnd_place_bottom_right_absolute,
    5964        /** Place window accross the entire screen */
    6065        ui_wnd_place_full_screen,
Note: See TracChangeset for help on using the changeset viewer.