XenevaOS
Loading...
Searching...
No Matches
Macros | Functions | Variables
main.cpp File Reference
#include <stdint.h>
#include <_xeneva.h>
#include <stdio.h>
#include <sys\_keproc.h>
#include <sys\_kefile.h>
#include <sys\iocodes.h>
#include <sys/_ketimer.h>
#include <chitralekha.h>
#include <widgets\base.h>
#include <widgets\button.h>
#include <widgets\window.h>
#include <widgets\slider.h>
#include <string.h>
#include <stdlib.h>
#include "systray.h"
#include "traygraphics.h"
#include "audioCtrl.h"
Include dependency graph for main.cpp:

Macros

#define SYSTRAY_GEOM_WIDTH   35
 
#define SYSTRAY_GEOM_HEIGHT(x)   x
 
#define SYSTRAY_GEOM_BUTTON_WIDTH(win)   (win->info->width - 10)
 
#define SYSTRAY_GEOM_BUTTON_HEIGHT   25
 
#define SYSTRAY_GEOM_BUTTON_XLOC   5
 

Functions

void TrayMouseHandle (ChWindow *win, int x, int y, int button, int scroll)
 
void TrayHideWindow (ChWindow *win)
 
void TrayShowWindow (ChWindow *win)
 
void WindowHandleMessage (PostEvent *e)
 
void SVGToFB (ChCanvas *canv, unsigned char *pixbuf, int iw, int ih, int dstx, int dsty)
 
void TrayPaint (ChWindow *win)
 
void VolumeSliderActionHandler (ChWidget *wid, ChWindow *win_)
 
void TrayCreateSoundWindow (ChWindow *mainWin, int x, int y)
 
void SoundButtonActionHandler (ChWidget *wid, ChWindow *win)
 
int main (int argc, char *argv[])
 

Variables

ChitralekhaAppapp
 
ChWindowmainWin
 
ChWindowsoundWindow
 
ChWindowbluetoothWin
 
DeodhaiAudioBoxaudioControl
 
list_twindowList
 
int frameCount
 
bool _hidden
 
int default_win_x
 
int threadID
 
int timerTick
 
int screenW
 
int screenH
 
int guessW
 
int winy
 
bool TrayHiddenLock
 
unsigned char * img = NULL
 

Macro Definition Documentation

◆ SYSTRAY_GEOM_BUTTON_HEIGHT

#define SYSTRAY_GEOM_BUTTON_HEIGHT   25

◆ SYSTRAY_GEOM_BUTTON_WIDTH

#define SYSTRAY_GEOM_BUTTON_WIDTH (   win)    (win->info->width - 10)

◆ SYSTRAY_GEOM_BUTTON_XLOC

#define SYSTRAY_GEOM_BUTTON_XLOC   5

◆ SYSTRAY_GEOM_HEIGHT

#define SYSTRAY_GEOM_HEIGHT (   x)    x

◆ SYSTRAY_GEOM_WIDTH

#define SYSTRAY_GEOM_WIDTH   35

Function Documentation

◆ main()

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

◆ SoundButtonActionHandler()

void SoundButtonActionHandler ( ChWidget wid,
ChWindow win 
)

◆ SVGToFB()

void SVGToFB ( ChCanvas canv,
unsigned char *  pixbuf,
int  iw,
int  ih,
int  dstx,
int  dsty 
)

◆ TrayCreateSoundWindow()

void TrayCreateSoundWindow ( ChWindow mainWin,
int  x,
int  y 
)

◆ TrayHideWindow()

void TrayHideWindow ( ChWindow win)

◆ TrayMouseHandle()

void TrayMouseHandle ( ChWindow win,
int  x,
int  y,
int  button,
int  scroll 
)

◆ TrayPaint()

void TrayPaint ( ChWindow win)

◆ TrayShowWindow()

void TrayShowWindow ( ChWindow win)

◆ VolumeSliderActionHandler()

void VolumeSliderActionHandler ( ChWidget wid,
ChWindow win_ 
)

◆ WindowHandleMessage()

void WindowHandleMessage ( PostEvent e)

Variable Documentation

◆ _hidden

bool _hidden

◆ app

BSD 2-Clause License

Copyright (c) 2022-2025, 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.

◆ audioControl

DeodhaiAudioBox* audioControl

◆ bluetoothWin

ChWindow* bluetoothWin

◆ default_win_x

int default_win_x

◆ frameCount

int frameCount

◆ guessW

int guessW

◆ img

unsigned char* img = NULL

◆ mainWin

ChWindow* mainWin

◆ screenH

int screenH

◆ screenW

int screenW

◆ soundWindow

ChWindow* soundWindow

◆ threadID

int threadID

◆ timerTick

int timerTick

◆ TrayHiddenLock

bool TrayHiddenLock

◆ windowList

list_t* windowList

◆ winy

int winy