XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions
window.h File Reference
#include <stdint.h>
#include <widgets\list.h>
#include "deodhai.h"
Include dependency graph for window.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _win_info_
 
struct  _win_
 

Macros

#define WINDOW_FLAG_MOVABLE   (1<<0)
 
#define WINDOW_FLAG_STATIC   (1<<1)
 
#define WINDOW_FLAG_ALWAYS_ON_TOP   (1<<2)
 
#define WINDOW_FLAG_NON_RESIZABLE   (1<<3)
 
#define WINDOW_FLAG_BROADCAST_LISTENER   (1<<4)
 
#define WINDOW_FLAG_ANIMATED   (1<<5)
 
#define WINDOW_FLAG_BLOCKED   (1<<6)
 
#define WINDOW_FLAG_MESSAGEBOX   (1<<7)
 
#define WINDOW_FLAG_DIALOGBOX   (1<<8)
 
#define WINDOW_FLAG_ANIMATION_FADE_IN   (1<<9)
 
#define WINDOW_FLAG_ANIMATION_FADE_OUT   (1<<10)
 
#define WINDOW_FLAG_POPUP   (1<<11)
 
#define SHADOW_SIZE   0
 
#define SHADOW_COLOR   0
 

Typedefs

typedef struct _win_info_ WinSharedInfo
 
typedef struct _win_ Window
 

Functions

uint32_tCreateSharedWinSpace (uint16_t *shkey, uint16_t ownerId)
 
void * CreateNewBackBuffer (uint16_t ownerId, uint32_t sz, uint16_t *key)
 
WindowCreateWindow (int x, int y, int w, int h, uint16_t flags, uint16_t ownerId, char *title)
 

Macro Definition Documentation

◆ SHADOW_COLOR

#define SHADOW_COLOR   0

◆ SHADOW_SIZE

#define SHADOW_SIZE   0

◆ WINDOW_FLAG_ALWAYS_ON_TOP

#define WINDOW_FLAG_ALWAYS_ON_TOP   (1<<2)

◆ WINDOW_FLAG_ANIMATED

#define WINDOW_FLAG_ANIMATED   (1<<5)

◆ WINDOW_FLAG_ANIMATION_FADE_IN

#define WINDOW_FLAG_ANIMATION_FADE_IN   (1<<9)

◆ WINDOW_FLAG_ANIMATION_FADE_OUT

#define WINDOW_FLAG_ANIMATION_FADE_OUT   (1<<10)

◆ WINDOW_FLAG_BLOCKED

#define WINDOW_FLAG_BLOCKED   (1<<6)

◆ WINDOW_FLAG_BROADCAST_LISTENER

#define WINDOW_FLAG_BROADCAST_LISTENER   (1<<4)

◆ WINDOW_FLAG_DIALOGBOX

#define WINDOW_FLAG_DIALOGBOX   (1<<8)

◆ WINDOW_FLAG_MESSAGEBOX

#define WINDOW_FLAG_MESSAGEBOX   (1<<7)

◆ WINDOW_FLAG_MOVABLE

#define WINDOW_FLAG_MOVABLE   (1<<0)

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:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

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.

◆ WINDOW_FLAG_NON_RESIZABLE

#define WINDOW_FLAG_NON_RESIZABLE   (1<<3)

◆ WINDOW_FLAG_POPUP

#define WINDOW_FLAG_POPUP   (1<<11)

◆ WINDOW_FLAG_STATIC

#define WINDOW_FLAG_STATIC   (1<<1)

Typedef Documentation

◆ Window

typedef struct _win_ Window

◆ WinSharedInfo

typedef struct _win_info_ WinSharedInfo

Function Documentation

◆ CreateNewBackBuffer()

void * CreateNewBackBuffer ( uint16_t  ownerId,
uint32_t  sz,
uint16_t key 
)
extern

◆ CreateSharedWinSpace()

uint32_t * CreateSharedWinSpace ( uint16_t shkey,
uint16_t  ownerId 
)
extern

◆ CreateWindow()

Window * CreateWindow ( int  x,
int  y,
int  w,
int  h,
uint16_t  flags,
uint16_t  ownerId,
char *  title 
)
extern