XenevaOS
Loading...
Searching...
No Matches
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 <chitralekha.h>
#include <widgets\base.h>
#include <widgets\button.h>
#include <widgets\window.h>
#include <widgets\menubar.h>
#include <widgets\msgbox.h>
#include <widgets\menu.h>
#include <widgets\scrollpane.h>
#include <widgets\icon.h>
#include <widgets\view.h>
#include <sys\mman.h>
#include <nanojpg.h>
#include <string.h>
#include <stdlib.h>
#include "minimp3.h"
#include "minimp4.h"
Include dependency graph for main.cpp:

Functions

void RegisterSound ()
 
void PlayerThread ()
 
void WindowHandleMessage (PostEvent *e)
 
void AboutClicked (ChWidget *wid, ChWindow *win)
 
void ExitItemClicked (ChWidget *wid, ChWindow *win)
 
void DrawWallpaper (ChCanvas *canv, char *filename, int x, int y)
 
void UpdateHomeUI ()
 
void UpdateBrowserUI ()
 
void BrowseMenuActionHandler (ChWidget *wid, ChWindow *win)
 
void SelectButtonActionHandler (ChWidget *wid, ChWindow *win)
 
void MusicPrepareLibrary (ChListView *lv)
 
void PlayPauseButtonAction (ChWidget *wid, ChWindow *mainWin)
 
void PrepareBrowserUI ()
 
void AudioPlayerClose (ChWindow *win)
 
int main (int argc, char *argv[])
 

Variables

ChitralekhaAppapp
 
ChWindowmainWin
 
ChCanvasmainCanvas
 
ChCanvasbrowserCanvas
 
list_tmainWidgetList
 
list_tbrowserWidgetList
 
ChListViewbrowseList
 
ChIconmusicIcon
 
ChMenubarmainMenubar
 
bool _music_library_drawn
 
char * selectedFile
 
int snd
 
int _file
 
bool _start_player
 
void * soundbuff
 
void * filebuff
 
bool _auto_start
 

Function Documentation

◆ AboutClicked()

void AboutClicked ( ChWidget wid,
ChWindow win 
)

◆ AudioPlayerClose()

void AudioPlayerClose ( ChWindow win)

◆ BrowseMenuActionHandler()

void BrowseMenuActionHandler ( ChWidget wid,
ChWindow win 
)

◆ DrawWallpaper()

void DrawWallpaper ( ChCanvas canv,
char *  filename,
int  x,
int  y 
)

◆ ExitItemClicked()

void ExitItemClicked ( ChWidget wid,
ChWindow win 
)

◆ main()

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

◆ MusicPrepareLibrary()

void MusicPrepareLibrary ( ChListView lv)

◆ PlayerThread()

void PlayerThread ( )

◆ PlayPauseButtonAction()

void PlayPauseButtonAction ( ChWidget wid,
ChWindow mainWin 
)

◆ PrepareBrowserUI()

void PrepareBrowserUI ( )

◆ RegisterSound()

void RegisterSound ( )

◆ SelectButtonActionHandler()

void SelectButtonActionHandler ( ChWidget wid,
ChWindow win 
)

◆ UpdateBrowserUI()

void UpdateBrowserUI ( )

◆ UpdateHomeUI()

void UpdateHomeUI ( )

◆ WindowHandleMessage()

void WindowHandleMessage ( PostEvent e)

Variable Documentation

◆ _auto_start

bool _auto_start

◆ _file

int _file

◆ _music_library_drawn

bool _music_library_drawn

◆ _start_player

bool _start_player

◆ app

BSD 2-Clause License

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

◆ browseList

ChListView* browseList

◆ browserCanvas

ChCanvas* browserCanvas

◆ browserWidgetList

list_t* browserWidgetList

◆ filebuff

void* filebuff

◆ mainCanvas

ChCanvas* mainCanvas

◆ mainMenubar

ChMenubar* mainMenubar

◆ mainWidgetList

list_t* mainWidgetList

◆ mainWin

ChWindow* mainWin

◆ musicIcon

ChIcon* musicIcon

◆ selectedFile

char* selectedFile

◆ snd

int snd

◆ soundbuff

void* soundbuff