00001 //& **************************************************************************** 00002 //& 00003 //& Copyright (C) 2004 HP-GCC Team 00004 //& 00005 //& **************************************************************************** 00006 //& 00007 //& This file is part of HP-GCC. 00008 //& 00009 //& HP-GCC is free software; you can redistribute it and/or modify 00010 //& it under the terms of the GNU General Public License as published by 00011 //& the Free Software Foundation; either version 2, or (at your option) 00012 //& any later version. 00013 //& 00014 //& HP-GCC is distributed in the hope that it will be useful, 00015 //& but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 //& MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 //& GNU General Public License for more details. 00018 //& 00019 //& You should have received a copy of the GNU General Public License 00020 //& along with HP-GCC; see the file COPYING. 00021 //& 00022 //& As a special exception, you may use this file as part of a free software 00023 //& library without restriction. Specifically, if other files instantiate 00024 //& templates or use macros or inline functions from this file, or you compile 00025 //& this file and link it with other files to produce an executable, this 00026 //& file does not by itself cause the resulting executable to be covered by 00027 //& the GNU General Public License. This exception does not however 00028 //& invalidate any other reasons why the executable file might be covered by 00029 //& the GNU General Public License. 00030 //& 00031 //& **************************************************************************** 00032 00033 #ifndef _WINPROGRESSBAR_H_ 00034 #define _WINPROGRESSBAR_H_ 00035 00036 #include <winwidget.h> 00037 00054 #define WIN_PROGRESS_HORIZ 0 00055 00062 #define WIN_PROGRESS_VERT 1 00063 00070 #define WIN_PROGRESS_HORIZ_RIGHT 2 00071 00078 #define WIN_PROGRESS_VERT_TOP 3 00079 00090 win_widget_t *win_progress_new (int slider); 00091 00101 void win_progress_set_value(win_widget_t *bar, double value); 00102 00112 double win_progress_get_value(win_widget_t *bar); 00113 00123 void win_progress_set_inc(win_widget_t *bar, double inc); 00124 00135 void win_progress_set_orient(win_widget_t *bar, int orient); 00136 00149 void win_progress_set_range(win_widget_t *bar, double min, double max); 00150 00162 void win_progress_set_delay(win_widget_t *widget, int first, int next); 00163 00173 void win_progress_set_event(win_widget_t *widget, int event); 00174 00175 #endif /* _WINPROGRESSBAR_H_ */