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

Go to the source code of this file.

Classes

struct  _buttoninfo_
 
struct  _NamdaphaButton_
 

Macros

#define NAMDAPHA_TIME_BUTTON_COLOR   0xFF7B7878
 
#define NAMDAPHA_WIDTH   75
 
#define NAMDAPHA_COLOR   0x00404040
 
#define NAMDAPHA_COLOR_DARK   0x33322D2D
 
#define NAMDAPHA_COLOR_LIGHT   0x33646262
 
#define GO_BUTTON_WIDTH   (NAMDAPHA_WIDTH-20)
 
#define GO_BUTTON_XCOORD   10
 
#define GO_BUTTON_COLOR   0xFF7B7878
 
#define GO_BUTTON_HOVER   0xFFCDE8F0
 
#define GO_BUTTON_PRESSED   0xFF345862
 
#define NAMDAPHA_FOCUSED_BUTTON_DARK   0xFF658096
 
#define NAMDAPHA_FOCUSED_BUTTON_LIGHT   0xFF8CA2B4
 
#define NAMDAPHA_BUTTON_YPAD   10
 
#define NAMDAPHA_BUTTON_WIDTH   55
 
#define NAMDAPHA_BUTTON_HEIGHT   50
 
#define NAMDAPHA_TASKLET_AUDIO   1
 
#define NAMDAPHA_TASKLET_WEATHER   2
 
#define NAMDAPHA_TASKLET_GEOLOCATION   3
 

Typedefs

typedef struct _buttoninfo_ ButtonInfo
 
typedef struct _NamdaphaButton_ NamdaphaButton
 

Functions

NamdaphaButtonNmCreateButton (int x, int y, int w, int h, char *text)
 
ButtonInfoNmCreateButtonInfo (char *filename)
 
void NmButtonInfoRead (ButtonInfo *btninfo)
 
void NmButtonInfoDrawIcon (ButtonInfo *info, ChCanvas *canv, int x, int y)
 
NamdaphaButtonNamdaphaInitialiseGoButton (ChWindow *win)
 
void NamdaphaChangeFocus (NamdaphaButton *button)
 
void NamdaphaHideWindow (NamdaphaButton *button)
 
int NamdaphaGetScreenWidth ()
 
int NamdaphaGetScreenHeight ()
 

Macro Definition Documentation

◆ GO_BUTTON_COLOR

#define GO_BUTTON_COLOR   0xFF7B7878

◆ GO_BUTTON_HOVER

#define GO_BUTTON_HOVER   0xFFCDE8F0

◆ GO_BUTTON_PRESSED

#define GO_BUTTON_PRESSED   0xFF345862

◆ GO_BUTTON_WIDTH

#define GO_BUTTON_WIDTH   (NAMDAPHA_WIDTH-20)

◆ GO_BUTTON_XCOORD

#define GO_BUTTON_XCOORD   10

◆ NAMDAPHA_BUTTON_HEIGHT

#define NAMDAPHA_BUTTON_HEIGHT   50

◆ NAMDAPHA_BUTTON_WIDTH

#define NAMDAPHA_BUTTON_WIDTH   55

◆ NAMDAPHA_BUTTON_YPAD

#define NAMDAPHA_BUTTON_YPAD   10

◆ NAMDAPHA_COLOR

#define NAMDAPHA_COLOR   0x00404040

◆ NAMDAPHA_COLOR_DARK

#define NAMDAPHA_COLOR_DARK   0x33322D2D

◆ NAMDAPHA_COLOR_LIGHT

#define NAMDAPHA_COLOR_LIGHT   0x33646262

◆ NAMDAPHA_FOCUSED_BUTTON_DARK

#define NAMDAPHA_FOCUSED_BUTTON_DARK   0xFF658096

◆ NAMDAPHA_FOCUSED_BUTTON_LIGHT

#define NAMDAPHA_FOCUSED_BUTTON_LIGHT   0xFF8CA2B4

◆ NAMDAPHA_TASKLET_AUDIO

#define NAMDAPHA_TASKLET_AUDIO   1

◆ NAMDAPHA_TASKLET_GEOLOCATION

#define NAMDAPHA_TASKLET_GEOLOCATION   3

◆ NAMDAPHA_TASKLET_WEATHER

#define NAMDAPHA_TASKLET_WEATHER   2

◆ NAMDAPHA_TIME_BUTTON_COLOR

#define NAMDAPHA_TIME_BUTTON_COLOR   0xFF7B7878

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.

◆ NAMDAPHA_WIDTH

#define NAMDAPHA_WIDTH   75

Typedef Documentation

◆ ButtonInfo

typedef struct _buttoninfo_ ButtonInfo

◆ NamdaphaButton

Function Documentation

◆ NamdaphaChangeFocus()

void NamdaphaChangeFocus ( NamdaphaButton button)
extern

◆ NamdaphaGetScreenHeight()

int NamdaphaGetScreenHeight ( )
extern

◆ NamdaphaGetScreenWidth()

int NamdaphaGetScreenWidth ( )
extern

◆ NamdaphaHideWindow()

void NamdaphaHideWindow ( NamdaphaButton button)
extern

◆ NamdaphaInitialiseGoButton()

NamdaphaButton * NamdaphaInitialiseGoButton ( ChWindow win)
extern

◆ NmButtonInfoDrawIcon()

void NmButtonInfoDrawIcon ( ButtonInfo info,
ChCanvas canv,
int  x,
int  y 
)
extern

◆ NmButtonInfoRead()

void NmButtonInfoRead ( ButtonInfo btninfo)
extern

◆ NmCreateButton()

NamdaphaButton * NmCreateButton ( int  x,
int  y,
int  w,
int  h,
char *  text 
)
extern

◆ NmCreateButtonInfo()

ButtonInfo * NmCreateButtonInfo ( char *  filename)
extern