XmIconGadget(3) | Library Functions Manual | XmIconGadget(3) |
XmIconGadget — The IconGadget widget class "XmIconGadget" "iconGadget" "IconGadget"
#include <Xm/IconG.h>
IconGadget is an instantiable widget used to display both text and a pixmap in various combinations. Other widgets that hold the XmQTcontainer trait, such as Container, can use IconGadget to represent objects.
IconGadget text is a compound string. If no text is supplied, then the compound string is generated from the gadget name. IconGadget text is placed relative to the type of associated pixmap.
Depending upon the XmNviewType resource, IconGadget can display two views:
A bitmap mask can be supplied for each pixmap to clip the pixmap into some shape other than a rectangle. The XmNlargeIconMask and XmNsmallIconMask resources specify the large and small bitmap masks respectively. Visual emphasis for the IconGadget is provided with the XmNvisualEmphasis resource. IconGadget's XmNdetail and XmNdetailCount resources provide a detail view for IconGadgets, enabling the display of Strings alongside the IconGadget. The exact layout ordering of the strings depends on the associated containing widget.
IconGadget uses the XmQTcontainer and XmQTspecifyRenderTable traits, and holds the XmQTcareParentVisual and XmQTcontainerItem traits.
IconGadget inherits behaviour, resources, and traits from Object, RectObject, and XmGadget classes.
The class pointer is xmIconGadgetClass.
The class name is XmIconGadget.
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 XmN or XmC prefix and use the remaining letters. To specify one of the defined values for a resource in a .Xdefaults file, remove the Xm prefix and use the remaining letters (in either lowercase or uppercase, but include any underscores between words). The codes in the access column indicate whether 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).
XmIconGadget Resource Set | ||||
Name | Class | Type | Default | Access |
Xmalignment | XmCAlignment | unsigned char | XmALIGNMENT_CENTER | CSG |
XmNdetail | XmCDetail | XmStringTable | NULL | CSG |
XmNdetailCount | XmCDetailCount | Cardinal | 0 | CSG |
XmNfontList | XmCFontList | XmFontList | NULL | CSG |
XmNlabelString | XmCXmString | XmString | dynamic | CSG |
XmNlargeIconMask | XmCIconMask | Pixmap | dynamic | CSG |
XmNlargeIconPixmap | XmCIconPixmap | Pixmap | XmUNSPECIFIED_PIXMAP | CSG |
XmNmarginHeight | XmCMarginHeight | Dimension | 2 | CSG |
XmNmarginWidth | XmCMarginWidth | Dimension | 2 | CSG |
XmNrenderTable | XmCRenderTable | XmRenderTable | dynamic | CSG |
XmNsmallIconMask | XmCIconMask | Pixmap | dynamic | CSG |
XmNsmallIconPixmap | XmCIconPixmap | Pixmap | XmUNSPECIFIED_PIXMAP | CSG |
XmNviewType | XmCViewType | unsigned char | XmLARGE_ICON | CSG |
XmNvisualEmphasis | XmCVisualEmphasis | unsigned char | XmNOT_SELECTED | CSG |
XmNspacing | XmCSpacing | Dimension | 4 | CSG |
IconGadget inherits behavior and resources from the superclasses described in the following tables. For a complete description of each resource, refer to the reference page for that superclass.
XmGadget Resource Set | ||||
Name | Class | Type | Default | Access |
XmNbackground | XmCBackground | Pixel | dynamic | CSG |
XmNbackgroundPixmap | XmCPixmap | Pixmap | XmUNSPECIFIED_PIXMAP | CSG |
XmNbottomShadowColor | XmCBottomShadowColor | Pixel | dynamic | CSG |
XmNbottomShadowPixmap | XmCBottomShadowPixmap | Pixmap | dynamic | CSG |
XmNhelpCallback | XmCCallback | XtCallbackList | NULL | C |
XmNforeground | XmCForeground | Pixel | dynamic | CSG |
XmNhighlightColor | XmCHighlightColor | Pixel | dynamic | CSG |
XmNhighlightOnEnter | XmCHighlightOnEnter | Boolean | False | CSG |
XmNhighlightPixmap | XmCHighlightPixmap | Pixmap | dynamic | CSG |
XmNhighlightThickness | XmCHighlightThickness | Dimension | 0 | CSG |
XmNlayoutDirection | XmNCLayoutDirection | XmDirection | dynamic | CG |
XmNnavigationType | XmCNavigationType | XmNavigationType | XmNONE | CSG |
XmNshadowThickness | XmCShadowThickness | Dimension | 0 | CSG |
XmNtopShadowColor | XmCTopShadowColor | Pixel | dynamic | CSG |
XmNtopShadowPixmap | XmCTopShadowPixmap | Pixmap | dynamic | CSG |
XmNtraversalOn | XmCTraversalOn | Boolean | False | CSG |
XmNunitType | XmCUnitType | unsigned char | dynamic | CSG |
XmNuserData | XmCUserData | XtPointer | NULL | CSG |
RectObj Resource Set | ||||
Name | Class | Type | Default | Access |
XmNancestorSensitive | XmCSensitive | Boolean | dynamic | G |
XmNborderWidth | XmCBorderWidth | Dimension | 0 | N/A |
XmNheight | XmCHeight | Dimension | dynamic | CSG |
XmNsensitive | XmCSensitive | Boolean | True | CSG |
XmNwidth | XmCWidth | Dimension | dynamic | CSG |
XmNx | XmCPosition | Position | 0 | CSG |
XmNy | XmCPosition | Position | 0 | CSG |
Object Resource Set | ||||
Name | Class | Type | Default | Access |
XmNdestroyCallback | XmCCallback | XtCallbackList | NULL | C |
IconGadget has no behavior.
The bindings for virtual keys are vendor specific. For information about bindings for virtual buttons and keys, see VirtualBindings(3).
The toolkit will display a warning if an incorrect value is given for an enumeration resource.
Core(3), XmContainer(3), XmCreateIconGadget(3), XmGadget(3), XmVaCreateIconGadget(3), and XmVaCreateManagedIconGadget(3).