FLTK 1.4.4
Toggle main menu visibility
Loading...
Searching...
No Matches
Fl_Progress.H
1
//
2
// Progress bar widget definitions.
3
//
4
// Copyright 2000-2010 by Michael Sweet.
5
//
6
// This library is free software. Distribution and use rights are outlined in
7
// the file "COPYING" which should have been included with this file. If this
8
// file is missing or damaged, see the license at:
9
//
10
// https://www.fltk.org/COPYING.php
11
//
12
// Please see the following page on how to report bugs and issues:
13
//
14
// https://www.fltk.org/bugs.php
15
//
16
17
/* \file
18
Fl_Progress widget . */
19
20
#ifndef _Fl_Progress_H_
21
# define _Fl_Progress_H_
22
23
//
24
// Include necessary headers.
25
//
26
27
#include "
Fl_Widget.H
"
28
29
30
//
31
// Progress class...
32
//
36
class
FL_EXPORT
Fl_Progress
:
public
Fl_Widget {
37
38
float
value_,
39
minimum_,
40
maximum_;
41
42
protected
:
43
44
void
draw
()
FL_OVERRIDE
;
45
46
public
:
47
48
Fl_Progress
(
int
x
,
int
y
,
int
w
,
int
h
,
const
char
*l = 0);
49
51
void
maximum
(
float
v) { maximum_ = v;
redraw
(); }
53
float
maximum
()
const
{
return
(maximum_); }
54
56
void
minimum
(
float
v) { minimum_ = v;
redraw
(); }
58
float
minimum
()
const
{
return
(minimum_); }
59
61
void
value
(
float
v) { value_ = v;
redraw
(); }
63
float
value
()
const
{
return
(value_); }
64
};
65
66
#endif
// !_Fl_Progress_H_
Fl_Widget.H
Fl_Widget and Fl_Label classes.
Fl_Progress::maximum
float maximum() const
Gets the maximum value in the progress widget.
Definition
Fl_Progress.H:53
Fl_Progress::Fl_Progress
Fl_Progress(int x, int y, int w, int h, const char *l=0)
The constructor creates the progress bar using the position, size, and label.
Definition
Fl_Progress.cxx:99
Fl_Progress::value
float value() const
Gets the current value in the progress widget.
Definition
Fl_Progress.H:63
Fl_Progress::minimum
void minimum(float v)
Sets the minimum value in the progress widget.
Definition
Fl_Progress.H:56
Fl_Progress::minimum
float minimum() const
Gets the minimum value in the progress widget.
Definition
Fl_Progress.H:58
Fl_Progress::value
void value(float v)
Sets the current value in the progress widget.
Definition
Fl_Progress.H:61
Fl_Progress::maximum
void maximum(float v)
Sets the maximum value in the progress widget.
Definition
Fl_Progress.H:51
Fl_Widget::draw
virtual void draw()=0
Draws the widget.
Fl_Widget::redraw
void redraw()
Schedules the drawing of the widget.
Definition
Fl.cxx:1668
Fl_Widget::x
void x(int v)
Internal use only.
Definition
Fl_Widget.H:150
Fl_Widget::w
void w(int v)
Internal use only.
Definition
Fl_Widget.H:154
Fl_Widget::y
void y(int v)
Internal use only.
Definition
Fl_Widget.H:152
Fl_Widget::h
void h(int v)
Internal use only.
Definition
Fl_Widget.H:156
FL_OVERRIDE
#define FL_OVERRIDE
This macro makes it safe to use the C++11 keyword override with older compilers.
Definition
fl_attr.h:46
FL
Fl_Progress.H
Generated by
1.17.0