XfwfCircularPercentage(3X)

NAME
XfwfCircularPercentage - The CircularPercentage widget class.

SYNOPSIS
#include <Xfwf/CircPerc.h>

DESCRIPTION
CircularPercentage is a widget that draws a filled circle, with two pie slices in different color to indicate the amount of work already completed in some part of an application.

  Classes
CircularPercentage inherits behavior and resources >from the Core class.

The class pointer is xfwfCircularPercentageWidgetClass.

The class name is XfwfCircularPercentage.

  New Resources
The following table defines a set of widget resources used by the programmer to specify data. The programmer can also set the resource values for the inherited classes to set attributes for this widget. To reference a resource by name or by class in a .Xdefaults file, remove the XtN or XtC prefix and use the remaining letters. To specify one of the defined values for a resource in a .Xdefaults file, remove the Xt prefix and use the remaining letters (in either lowercase or uppercase, but include any underscores between words). The codes in the access column indicate if the given resource can be set at creation time (C), set by using XtSetValues (S), retrieved by using XtGetValues (G), or is not applicable (N/A).

XfwfCircularPercentage Resource Set
Name | Class | Type | Default | Access
XtNborderColor | XtCBorderColor | Pixel | black | CSG
XtNcompletedColor | XtNCompletedColor | Pixel | yellow | CSG
XtNinteriorColor | XtCInteriorColor | Pixel | red | CSG
XtNpercentageCompleted | XtCPercentageCompleted | int | 0 | CSG

XtNborderColor
    Specifies the color of the circle enclosing the filled area.

XtNcompletedColor
    Specifies the color of the part of the circle that indicates the percentage of work completed.

XtNinteriorColor
    Specifies the color of the part of the circle that indicates the percentage of work not yet completed.

XtNpercentageCompleted
    The part of the circle that is drawn in the different colors, is calculated >from this resource. You should specify a number in the range [0,10000], or in other words, you specify the percentage with a two decimal precision (0.25% will be 25, 12.50% will be 1250 and so on).

  New function

void
    Sets the percentageCompleted resource of the Widget.

  Inherited Resources
CircularPercentage inherits behavior and resources from the following superclasses. For a complete description of each resource, refer to the man page for that superclass.

Core Resource Set
Name | Class | Type | Default | Access
XmNaccelerators | XmCAccelerators | XtAccelerators | NULL | CSG
XmNancestorSensitive | XmCSensitive | Boolean | dynamic | G
XmNbackground | XmCBackground | Pixel | dynamic | CSG
XmNbackgroundPixmap | XmCPixmap | Pixmap | XmUNSPECIFIED_PIXMAP | CSG
XmNborderColor | XmCBorderColor | Pixel | XtDefaultForeground | CSG
XmNborderPixmap | XmCPixmap | Pixmap | XmUNSPECIFIED_PIXMAP | CSG
XmNborderWidth | XmCBorderWidth | Dimension | 0 | CSG
XmNcolormap | XmCColormap | Colormap | dynamic | CG
XmNdepth | XmCDepth | int | dynamic | CG
XmNdestroyCallback | XmCCallback | XtCallbackList | NULL | C
XmNheight | XmCHeight | Dimension | dynamic | CSG
XmNinitialResourcesPersistent | XmCInitialResourcesPersistent | Boolean | True | CG
XmNmappedWhenManaged | XmCMappedWhenManaged | Boolean | True | CSG
XmNscreen | XmCScreen | Screen * | dynamic | CG
XmNsensitive | XmCSensitive | Boolean | True | CSG
XmNtranslations | XmCTranslations | XtTranslations | NULL | CSG
XmNwidth | XmCWidth | Dimension | dynamic | CSG
XmNx | XmCPosition | Position | 0 | CSG
XmNy | XmCPosition | Position | 0 | CSG

RELATED INFORMATION
Core(3X).

AUTHOR
Copyright (C) 1992 by Ronald van Loon. (rvloon@cv.ruu.nl)