XenevaOS
Loading...
Searching...
No Matches
progress.h
Go to the documentation of this file.
1
30#ifndef __PROGRESS_H__
31#define __PROGRESS_H__
32
33#include "../chitralekha.h"
34#include "base.h"
35#include "window.h"
36#include "../widgets/list.h"
37
46
47
48/*
49* ChCreateProgressBar -- creates a progress bar
50* @param x -- x location
51* @param y -- y location
52* @param w -- width of the progress bar
53* @param h -- height of the progress bar
54*/
55XE_EXTERN XE_LIB ChProgressBar *ChCreateProgressBar(int x, int y, int w, int h, double progress);
56
57/*
58* ChProgressBarSetMax -- set maximum limit of the progress
59* @param pb -- Pointer to progress bar instance
60* @param max -- Maximum limit of the progress in step
61*/
63
64/*
65* ChProgressBarSetMin -- set minimum limit of the progress
66* @param pb -- Pointer to progress bar instance
67* @param min -- Minimum limit of the progress in step
68*/
70
71/*
72* ChProgressBarGetMax -- get maximum limit of the progress bar
73* @param pb -- Pointer to progress bar instance
74*/
76
77/*
78* ChProgressBarGetMin -- get minimum limit of the progress bar
79* @param pb -- Pointer to progress bar
80*/
82
83/*
84* ChProgressBarSetValue -- set current progress value step
85* @param pb -- Pointer to progress bar instance
86* @param win -- Pointer to main window object
87* @param value -- current step value
88*/
90
91#endif
#define XE_LIB
Definition _xeneva.h:55
#define XE_EXTERN
Definition _xeneva.h:50
ChWindow * win
Definition namdapha.cpp:45
XE_EXTERN XE_LIB void ChProgressBarSetMax(ChProgressBar *pb, int max)
Definition progress.cpp:73
struct _progressbar_ ChProgressBar
XE_EXTERN XE_LIB int ChProgressBarGetMax(ChProgressBar *pb)
Definition progress.cpp:90
XE_EXTERN XE_LIB int ChProgressBarGetMin(ChProgressBar *pb)
Definition progress.cpp:98
XE_EXTERN XE_LIB void ChProgressBarSetMin(ChProgressBar *pb, int min)
Definition progress.cpp:82
XE_EXTERN XE_LIB void ChProgressBarSetValue(ChProgressBar *pb, ChWindow *win, double value)
Definition progress.cpp:108
XE_EXTERN XE_LIB ChProgressBar * ChCreateProgressBar(int x, int y, int w, int h, double progress)
Definition progress.cpp:50
#define min(a, b)
Definition stdlib.h:45
#define max(a, b)
Definition stdlib.h:44
Definition window.h:114
Definition window.h:90
Definition progress.h:38
double minimumProgress
Definition progress.h:41
double maximumProgress
Definition progress.h:40
double currentProgress
Definition progress.h:42
int progressPixelWidth
Definition progress.h:44
ChWidget base
Definition progress.h:39
double progressPercent
Definition progress.h:43