XenevaOS
Loading...
Searching...
No Matches
Macros | Functions | Variables
deomain.cpp File Reference
#include <_xeneva.h>
#include <sys\_keproc.h>
#include <sys\_kefile.h>
#include <sys\mman.h>
#include <stdlib.h>
#include <sys\iocodes.h>
#include <sys\_keipcpostbox.h>
#include <time.h>
#include <string.h>
#include <chitralekha.h>
#include <sys\_kesignal.h>
#include "deodhai.h"
#include "cursor.h"
#include "nanojpg.h"
#include "dirty.h"
#include "color.h"
#include <font.h>
#include "window.h"
#include "_fastcpy.h"
#include "clip.h"
#include "backdirty.h"
#include "draw.h"
#include "animation.h"
#include "popup.h"
#include <sys\socket.h>
#include <boxblur.h>
#include <sys/types.h>
#include <stb_image_resize.h>
Include dependency graph for deomain.cpp:

Macros

#define STB_IMAGE_RESIZE_IMPLEMENTATION
 

Functions

void CursorStoreBack (ChCanvas *canv, Cursor *cur, unsigned x, unsigned y)
 
void CursorDrawBack (ChCanvas *canv, Cursor *cur, unsigned x, unsigned y)
 
void ChangeCursor (Cursor *newCursor)
 
void DeodhaiInitialiseData ()
 
uint32_t DeodhaiAllocateNewHandle ()
 
void DeodhaiAddWindow (Window *win)
 
void DeodhaiRemoveWindow (Window *win)
 
void DeodhaiAddWindowAlwaysOnTop (Window *win)
 
void DeodhaiRemoveWindowAlwaysOnTop (Window *win)
 
void DeodhaiBackSurfaceUpdate (ChCanvas *canv, int x, int y, int w, int h)
 
WindowDeodhaiCreateWindow (int x, int y, int w, int h, uint16_t flags, uint16_t ownerId, char *title)
 
void DeodhaiBroadcastMessage (PostEvent *e, Window *skippablewin)
 
void DeodhaiSendFocusMessage (PostEvent *e)
 
void DeodhaiWindowMakeTop (Window *win)
 
void DeodhaiWindowSetFocused (Window *win, bool notify)
 
void DeodhaiDrawShadow (ChCanvas *canv, Window *win)
 
void DeodhaiRemoveShadow (ChCanvas *canv, Window *win)
 
void DeodhaiWindowMove (Window *win, int x, int y)
 
void DeodhaiWindowHide (Window *win)
 
bool DeodhaiCheckWindowPointOcclusion (Window *win, int x, int y)
 
void DeodhaiWindowCheckDraggable (int x, int y, int button)
 
void ComposeFrame (ChCanvas *canvas)
 
void DeodhaiSendMouseEvent (int handle, int ownerId, uint8_t handleType, uint8_t eventType, int x, int y, int button)
 
void DeodhaiResizeCursorUpdate (int mouse_x, int mouse_y, WinSharedInfo *info)
 
void DeodhaiBroadcastMouse (int mouse_x, int mouse_y, int button)
 
void DeodhaiBroadcastTouch (int t_x, int t_y)
 
void DeodhaiBroadcastKey (int code)
 
void DeodhaiCloseWindow (Window *win)
 
void DrawWallpaper (ChCanvas *canv, char *filename)
 
ChCanvasDeodhaiGetMainCanvas ()
 
uint64_t DeodhaiCurrentTime ()
 
uint64_t DeodhaiTimeSince (uint64_t startTime)
 
uint64_t DeodhaiClickCurrentTime ()
 
uint64_t DeodhaiClickTimeSince (uint64_t start_time)
 
void DeodhaiUpdateBits (bool window_update, bool skip_disable)
 
void _AuConOut (const char *text,...)
 
int main (int argc, char *arv[])
 

Variables

CursorcurrentCursor
 
int mouse_fd
 
int kybrd_fd
 
int postbox_fd
 
int lastMouseButton
 
uint32_t winHandles
 
uint32_tCursorBack
 
bool _window_update_all_
 
bool _window_broadcast_mouse_
 
bool _skip_disable_
 
bool _always_on_top_update
 
bool _window_moving_
 
WindowfocusedWin
 
WindowfocusedLast
 
WindowtopWin
 
WindowdragWin
 
WindowreszWin
 
WindowrootWin
 
WindowlastWin
 
WindowalwaysOnTop
 
WindowalwaysOnTopLast
 
WindowmouseLastHovered
 
ChCanvascanvas
 
Cursorarrow
 
Cursormove
 
CursorresizeUpDown
 
CursorresizeLeftRight
 
uint32_tsurfaceBuffer
 
bool _shadow_update
 
bool _clients_advice
 
uint64_t startTime
 
uint64_t startSubTime
 

Macro Definition Documentation

◆ STB_IMAGE_RESIZE_IMPLEMENTATION

#define STB_IMAGE_RESIZE_IMPLEMENTATION

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.

Function Documentation

◆ _AuConOut()

void _AuConOut ( const char *  text,
  ... 
)

◆ ChangeCursor()

void ChangeCursor ( Cursor newCursor)

◆ ComposeFrame()

void ComposeFrame ( ChCanvas canvas)
  • check for always on top windows *‍/

◆ CursorDrawBack()

void CursorDrawBack ( ChCanvas canv,
Cursor cur,
unsigned  x,
unsigned  y 
)

◆ CursorStoreBack()

void CursorStoreBack ( ChCanvas canv,
Cursor cur,
unsigned  x,
unsigned  y 
)

◆ DeodhaiAddWindow()

void DeodhaiAddWindow ( Window win)

◆ DeodhaiAddWindowAlwaysOnTop()

void DeodhaiAddWindowAlwaysOnTop ( Window win)

◆ DeodhaiAllocateNewHandle()

uint32_t DeodhaiAllocateNewHandle ( )

◆ DeodhaiBackSurfaceUpdate()

void DeodhaiBackSurfaceUpdate ( ChCanvas canv,
int  x,
int  y,
int  w,
int  h 
)

◆ DeodhaiBroadcastKey()

void DeodhaiBroadcastKey ( int  code)

◆ DeodhaiBroadcastMessage()

void DeodhaiBroadcastMessage ( PostEvent e,
Window skippablewin 
)

◆ DeodhaiBroadcastMouse()

void DeodhaiBroadcastMouse ( int  mouse_x,
int  mouse_y,
int  button 
)

◆ DeodhaiBroadcastTouch()

void DeodhaiBroadcastTouch ( int  t_x,
int  t_y 
)

◆ DeodhaiCheckWindowPointOcclusion()

bool DeodhaiCheckWindowPointOcclusion ( Window win,
int  x,
int  y 
)

◆ DeodhaiClickCurrentTime()

uint64_t DeodhaiClickCurrentTime ( )

◆ DeodhaiClickTimeSince()

uint64_t DeodhaiClickTimeSince ( uint64_t  start_time)

◆ DeodhaiCloseWindow()

void DeodhaiCloseWindow ( Window win)

◆ DeodhaiCreateWindow()

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

◆ DeodhaiCurrentTime()

uint64_t DeodhaiCurrentTime ( )

◆ DeodhaiDrawShadow()

void DeodhaiDrawShadow ( ChCanvas canv,
Window win 
)

◆ DeodhaiGetMainCanvas()

ChCanvas * DeodhaiGetMainCanvas ( )

◆ DeodhaiInitialiseData()

void DeodhaiInitialiseData ( )

◆ DeodhaiRemoveShadow()

void DeodhaiRemoveShadow ( ChCanvas canv,
Window win 
)

◆ DeodhaiRemoveWindow()

void DeodhaiRemoveWindow ( Window win)

◆ DeodhaiRemoveWindowAlwaysOnTop()

void DeodhaiRemoveWindowAlwaysOnTop ( Window win)

◆ DeodhaiResizeCursorUpdate()

void DeodhaiResizeCursorUpdate ( int  mouse_x,
int  mouse_y,
WinSharedInfo info 
)

◆ DeodhaiSendFocusMessage()

void DeodhaiSendFocusMessage ( PostEvent e)

◆ DeodhaiSendMouseEvent()

void DeodhaiSendMouseEvent ( int  handle,
int  ownerId,
uint8_t  handleType,
uint8_t  eventType,
int  x,
int  y,
int  button 
)

◆ DeodhaiTimeSince()

uint64_t DeodhaiTimeSince ( uint64_t  startTime)

◆ DeodhaiUpdateBits()

void DeodhaiUpdateBits ( bool  window_update,
bool  skip_disable 
)

◆ DeodhaiWindowCheckDraggable()

void DeodhaiWindowCheckDraggable ( int  x,
int  y,
int  button 
)

◆ DeodhaiWindowHide()

void DeodhaiWindowHide ( Window win)

◆ DeodhaiWindowMakeTop()

void DeodhaiWindowMakeTop ( Window win)

◆ DeodhaiWindowMove()

void DeodhaiWindowMove ( Window win,
int  x,
int  y 
)

◆ DeodhaiWindowSetFocused()

void DeodhaiWindowSetFocused ( Window win,
bool  notify 
)

◆ DrawWallpaper()

void DrawWallpaper ( ChCanvas canv,
char *  filename 
)

◆ main()

int main ( int  argc,
char *  arv[] 
)

Variable Documentation

◆ _always_on_top_update

bool _always_on_top_update

◆ _clients_advice

bool _clients_advice

◆ _shadow_update

bool _shadow_update

◆ _skip_disable_

bool _skip_disable_

◆ _window_broadcast_mouse_

bool _window_broadcast_mouse_

◆ _window_moving_

bool _window_moving_

◆ _window_update_all_

bool _window_update_all_

◆ alwaysOnTop

Window* alwaysOnTop

◆ alwaysOnTopLast

Window* alwaysOnTopLast

◆ arrow

Cursor* arrow

◆ canvas

ChCanvas* canvas

◆ currentCursor

Cursor* currentCursor

◆ CursorBack

uint32_t* CursorBack

◆ dragWin

Window* dragWin

◆ focusedLast

Window* focusedLast

◆ focusedWin

Window* focusedWin

◆ kybrd_fd

int kybrd_fd

◆ lastMouseButton

int lastMouseButton

◆ lastWin

Window* lastWin

◆ mouse_fd

int mouse_fd

◆ mouseLastHovered

Window* mouseLastHovered

◆ move

Cursor* move

◆ postbox_fd

int postbox_fd

◆ resizeLeftRight

Cursor* resizeLeftRight

◆ resizeUpDown

Cursor* resizeUpDown

◆ reszWin

Window* reszWin

◆ rootWin

Window* rootWin

◆ startSubTime

uint64_t startSubTime

◆ startTime

uint64_t startTime

◆ surfaceBuffer

uint32_t* surfaceBuffer

◆ topWin

Window* topWin

◆ winHandles

uint32_t winHandles