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* ChCreateProgressBar -- creates a progress bar
49* @param x -- x location
50* @param y -- y location
51* @param w -- width of the progress bar
52* @param h -- height of the progress bar
53*/
54XE_EXTERN XE_LIB ChProgressBar* ChCreateProgressBar(int x, int y, int w, int h, double progress);
55
56/*
57* ChProgressBarSetMax -- set maximum limit of the progress
58* @param pb -- Pointer to progress bar instance
59* @param max -- Maximum limit of the progress in step
60*/
62
63/*
64* ChProgressBarSetMin -- set minimum limit of the progress
65* @param pb -- Pointer to progress bar instance
66* @param min -- Minimum limit of the progress in step
67*/
69
70/*
71* ChProgressBarGetMax -- get maximum limit of the progress bar
72* @param pb -- Pointer to progress bar instance
73*/
75
76/*
77* ChProgressBarGetMin -- get minimum limit of the progress bar
78* @param pb -- Pointer to progress bar
79*/
81
82/*
83* ChProgressBarSetValue -- set current progress value step
84* @param pb -- Pointer to progress bar instance
85* @param win -- Pointer to main window object
86* @param value -- current step value
87*/
89
90#endif
#define min(a, b)
Definition _print.c:40
#define max(a, b)
Definition _print.c:39
#define XE_LIB
Definition _xeneva.h:55
#define XE_EXTERN
Definition _xeneva.h:50
ChWindow * win
Definition namdapha.cpp:54
XE_EXTERN XE_LIB void ChProgressBarSetMax(ChProgressBar *pb, int max)
Definition progress.cpp:72
struct _progressbar_ ChProgressBar
XE_EXTERN XE_LIB int ChProgressBarGetMax(ChProgressBar *pb)
Definition progress.cpp:89
XE_EXTERN XE_LIB int ChProgressBarGetMin(ChProgressBar *pb)
Definition progress.cpp:97
XE_EXTERN XE_LIB void ChProgressBarSetMin(ChProgressBar *pb, int min)
Definition progress.cpp:81
XE_EXTERN XE_LIB void ChProgressBarSetValue(ChProgressBar *pb, ChWindow *win, double value)
Definition progress.cpp:107
XE_EXTERN XE_LIB ChProgressBar * ChCreateProgressBar(int x, int y, int w, int h, double progress)
Definition progress.cpp:49
Definition window.h:123
Definition window.h:99
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