A superclass for numeric widgets
PtWidget → PtBasic → PtContainer → PtCompound → PtNumeric
Immediate subclasses:
For more information, see the diagram of the widget hierarchy.
None — not normally instantiated.
<photon/PtNumeric.h>
PtNumeric is a parent class for all numeric widgets. It creates a PtText widget and arrows to let you interact with the widget. It also creates some of the base functionality of numeric widgets.
Resource | C type | Pt type | Default |
---|---|---|---|
Pt_ARG_NUMERIC_FLAGS | unsigned short | Flag | See below |
Pt_ARG_NUMERIC_PREFIX | char * | String | NULL |
Pt_ARG_NUMERIC_SPACING | unsigned short | Scalar | 1 |
Pt_ARG_NUMERIC_SUFFIX | char * | String | NULL |
Pt_ARG_NUMERIC_UPDOWN_WIDTH | unsigned short | Scalar | 17 |
C type | Pt type | Default |
---|---|---|
unsigned short | Flag | Pt_NUMERIC_ENABLE_UPDOWN | Pt_NUMERIC_WRAP | Pt_NUMERIC_AUTO_HIGHLIGHT |
Flags that control the widget's appearance and behavior; any combination of:
C type | Pt type | Default |
---|---|---|
char * | String | NULL |
A prefix string to be added to all entered values.
C type | Pt type | Default |
---|---|---|
unsigned short | Scalar | 1 |
The spacing, in pixels, between the text field and the up/down buttons.
C type | Pt type | Default |
---|---|---|
char * | String | NULL |
A suffix string to be added to all entered values.
C type | Pt type | Default |
---|---|---|
unsigned short | Scalar | 17 |
The width, in pixels, of the PtScrollbar widget.
Unless the resources are already defined in PtNumeric, the PtNumeric class uses the resources of its exported subordinate child, PtScrollbar.
The PtNumeric class “inherits” all the resources of its exported subordinate child. Where PtNumeric and its exported subordinate child both define resources having the same name, the resource defined in PtNumeric takes precedence.
If the widget modifies an inherited resource, the “Default override” column indicates the new value. This modification affects any subclasses of the widget.