gtkIOStream  1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
ProgressBar Class Reference

Class to show progress This class shows a progress bar which may be initialised at construction or later. The progress bar ranges between 0.0 and 1.0, negative values cause it to 'pulse'. More...

#include <ProgressBar.H>

Inheritance diagram for ProgressBar:
[legend]
Collaboration diagram for ProgressBar:
[legend]

Public Member Functions

 ProgressBar (void)
 Constructor. More...
 
 ~ProgressBar (void)
 Destructor. More...
 
ProgressBaroperator= (float what)
 
- Public Member Functions inherited from Widget
 Widget ()
 Construcotr. More...
 
 Widget (GtkWidget *w)
 
virtual ~Widget ()
 Destructor. More...
 
GtkWidget * ref (void)
 
void unref (void)
 
GtkWidget * show (void)
 
GtkWidget * hide (void)
 
bool getVisible (void)
 
GtkWidget * getWidget (void)
 
bool getSensitive (void)
 
void setSensitive (bool sens)
 
void getSize (int &width, int &height)
 
virtual void setSize (int width, int height)
 
void getLocationSize (int &x, int &y, int &width, int &height)
 
void queueDraw ()
 
GdkWindow * getWindow ()
 
void connect (const char *event, GCallback callback, gpointer data)
 
void connectAfter (const char *event, GCallback callback, gpointer data)
 
void connectExposeEventCallback (GCallback callback, void *data)
 
void connectExposeEventCallback (GtkWidget *w, GCallback callback, void *data)
 
void connectConfigureEventCallback (GCallback callback, void *data)
 
void connectConfigureEventCallback (GtkWidget *w, GCallback callback, void *data)
 
Widgetoperator<< (DragNDrop &dnd)
 
Widgetoperator>> (DragNDrop &dnd)
 

Private Attributes

GtkWidget * widget
 The progress bar. More...
 
float last
 

Additional Inherited Members

- Protected Member Functions inherited from Widget
virtual bool checkDropValidity (GtkWidget *w, GtkWidget *sourceWidget, int info, const unsigned char *selectionStoredData)
 
virtual bool dragDataReceived (GtkWidget *w, GtkWidget *sourceWidget, int info, const unsigned char *selectionStoredData, int length)
 
virtual void dragLeave (GtkWidget *w, GtkWidget *sourceWidget)
 
virtual bool dragMotion (GtkWidget *w, GtkWidget *sourceWidget, int x, int y)
 
virtual int chooseTheTargetToUse (GtkWidget *w, GtkWidget *sourceWidget, DragNDrop &dnd)
 
virtual void dragDataGet (GtkWidget *w, GtkSelectionData *selectionData, guint info)
 
virtual void dragDataDelete (GtkWidget *w)
 
virtual void dragBegin (GtkWidget *w)
 
virtual void dragEnd (GtkWidget *w)
 
- Protected Attributes inherited from Widget
GtkWidget * widget
 The container based widget. More...
 

Detailed Description

Class to show progress This class shows a progress bar which may be initialised at construction or later. The progress bar ranges between 0.0 and 1.0, negative values cause it to 'pulse'.

Examples:
ProgressBarTest.C.

Definition at line 33 of file ProgressBar.H.

Constructor & Destructor Documentation

◆ ProgressBar()

ProgressBar::ProgressBar ( void  )
inline

Constructor.

Definition at line 39 of file ProgressBar.H.

Here is the call graph for this function:

◆ ~ProgressBar()

ProgressBar::~ProgressBar ( void  )
inline

Destructor.

Definition at line 51 of file ProgressBar.H.

Member Function Documentation

◆ operator=()

ProgressBar& ProgressBar::operator= ( float  what)
inline

Update the progress bar. numbers < 0.0 cause a 'pulsing' progress bar numbers >= 0.0 and <= 1.0 set the fractional fill of the progress bar.

Parameters
whatthe fractional fill or pulse indicator

Definition at line 65 of file ProgressBar.H.

Member Data Documentation

◆ last

float ProgressBar::last
private

Definition at line 35 of file ProgressBar.H.

◆ widget

GtkWidget* ProgressBar::widget
private

The progress bar.

Definition at line 34 of file ProgressBar.H.


The documentation for this class was generated from the following file:
gtkIOStream: ProgressBar Class Reference
GTK+ IOStream  Beta