GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
AG_PROGRESS_BAR(3) FreeBSD Library Functions Manual AG_PROGRESS_BAR(3)

AG_ProgressBaragar progress bar widget

#include <agar/core.h>
#include <agar/gui.h>

The AG_ProgressBar widget binds to minimum, maximum and value integers and displays a progress bar representing the value.

AG_Object(3) -> AG_Widget(3) -> AG_ProgressBar.

AG_ProgressBar *
(AG_Widget *parent, enum ag_progress_bar_type type, Uint flags);


AG_ProgressBar *
(AG_Widget *parent, enum ag_progress_bar_type type, Uint flags, int *value, int *min, int *max);


AG_ProgressBar *
(AG_Widget *parent, Uint flags);


AG_ProgressBar *
(AG_Widget *parent, Uint flags);


void
(AG_ProgressBar *pb, int width);


void
(AG_ProgressBar *pb, int length);


int
(AG_ProgressBar *pb);

The () function allocates, initializes, and attaches a new AG_ProgressBar widget. type defines the style:

enum ag_progress_bar_type {
	AG_PROGRESS_BAR_HORIZ,
	AG_PROGRESS_BAR_VERT
};

Acceptable flags include:

AG_PROGRESS_BAR_SHOW_PCT
Display text showing the percentage.
AG_PROGRESS_BAR_EXCL
Advise that no external changes to the value, min and max bindings are expected. By default, the binding values are periodically checked and the progress bar is redrawn if a change is detected.
AG_PROGRESS_BAR_HFILL
Expand horizontally in parent container.
AG_PROGRESS_BAR_VFILL
Expand vertically in parent container.
AG_PROGRESS_BAR_EXPAND
Shorthand for AG_PROGRESS_BAR_HFILL | .

The () variant binds the ‘value’, ‘min’ and ‘max’ bindings on initialization.

The () and AG_ProgressBarNewVert() variants specify the layout on initialization.

The () function sets the width of the bar in pixels.

() requests a preferred length in pixels. Alternatively, AG_PROGRESS_BAR_HFILL or AG_PROGRESS_BAR_VFILL may be used.

The () returns the percentage for the currently bound value and range.

The AG_ProgressBar widget provides the following bindings:

int *value
Current value
int *min
Minimum value
int *max
Maximum value

The AG_ProgressBar widget does not generate any event.

AG_Intro(3), AG_Numerical(3), AG_Scrollbar(3), AG_Widget(3), AG_Window(3)

The AG_ProgressBar widget first appeared in Agar 1.3.4.

December 21, 2022 Agar 1.7

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.