|
XenevaOS
|
#include "window.h"#include "deodxr.h"#include <sys\mman.h>#include <stdlib.h>#include <color.h>#include <string.h>#include "boxblur.h"#include "alpha.h"
Macros | |
| #define | SHADOW_SIZE_S 0 |
Functions | |
| uint32_t * | CreateSharedWinSpace (uint16_t *shkey, uint16_t ownerId) |
| CreateSharedWinSpace – Create a shared window space. | |
| void * | CreateNewBackBuffer (uint16_t ownerId, uint32_t sz, uint16_t *key) |
| CreateNewBackBuffer –Create a back buffer window. | |
| void | WindowShadowPutPixel (Window *win, int x, int y, int shadow_w, uint32_t color) |
| void | WindowShadowFillColor (Window *win, int shadow_w, int x, int y, int w, int h, uint32_t col) |
| void | _window_generate_shadow (Window *win, int winw, int winh) |
| Window * | CreateWindow (int x, int y, int w, int h, uint16_t flags, uint16_t ownerId, char *title) |
| CreateWindow – create a new window. | |
Variables | |
| uint16_t | shared_win_key_prefix = 1000 |
| uint16_t | back_buffer_key_prefix = 400 |
| #define SHADOW_SIZE_S 0 |
| void _window_generate_shadow | ( | Window * | win, |
| int | winw, | ||
| int | winh | ||
| ) |
CreateNewBackBuffer –Create a back buffer window.
| ownerId | – owner id |
| sz | – Size of the buffer |
| key | – location where to store the buffer key |
CreateSharedWinSpace – Create a shared window space.
| shkey | – location where to store the window key |
| ownerId | – owning process id |
| Window * CreateWindow | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h, | ||
| uint16_t | flags, | ||
| uint16_t | ownerId, | ||
| char * | title | ||
| ) |
CreateWindow – create a new window.
| x | – X position of the window |
| y | – Y position of the window |
| w | – Width of the window |
| h | – Height of the window |
| flags | – Flags for thr window |
| ownerId | – process owner id of the window |
| title | – title of the window |
| uint16_t back_buffer_key_prefix = 400 |
| uint16_t shared_win_key_prefix = 1000 |
BSD 2-Clause License
Copyright (c) 2022-2023, Manas Kamal Choudhury All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.