LessTif Manual Page - Miscellaneous


LessTif

LessTif Enumerated Constants


Alignment Types

The Alignment Types are enumerated values that are used with the resources like XmNalignment and XmNentryAlignment. They specify the alignment of label strings or pixmaps within a widget, typically a Label or one of its subclasses. The valid Alignment Types are:

XmALIGNMENT_BEGINNING
If XmNstringDirection is XmSTRING_DIRECTION_L_TO_R, the string or pixmap is aligned with the left edge of the widget window. If XmNstringDirection is XmSTRING_DIRECTION_R_TO_L, the text or pixmap is aligned with the right edge of the widget window.

XmALIGNMENT_CENTER
The string or pixmap is centered between the left and right edges of the widget window.

XmALIGNMENT_END
If XmNstringDirection is XmSTRING_DIRECTION_L_TO_R, the string or pixmap is aligned with the right edge of the widget window. If XmNstringDirection is XmSTRING_DIRECTION_R_TO_L, the text or pixmap is aligned with the left edge of the widget window.


Label Types

The Label Types are enumerated values that are normally used with the XmNlabelType resource. The valid Label Types are

XmSTRING
The Label Type is a Compound String(XmString).

XmPIXMAP
The Label Type is a Pixmap.


Multi-Click Types

The Multi-Click Types are enumerated values that are normally used with the button XmNmultiClick resource. The valid Multi-Click Types are:

XmMULTI_CLICK_DISCARD
Ignore successive button clicks. This is the default if the widget is not in a menu.

XmMULTI_CLICK_KEEP
Count successive button clicks. This is the default if the widget is in a menu.


Orientation

XmHORIZONTAL

XmVERTICAL


Processing Direction

XmMAX_ON_TOP

XmMAX_ON_BOTTOM

XmMAX_ON_LEFT

XmMAX_ON_RIGHT


Shadow Types

The Shadow Types are enumerated values that are normally used with the XmNshadowType resource, and are affected by the XmNshadowThickness resource. The valid Shadow Types are:

XmSHADOW_IN
Shadow is drawn so that the enclosed area appears inset, or lower than the surrounding window area.

XmSHADOW_OUT
Shadow is drawn so that the enclosed area appears outset, or higher than the surrounding window area.

XmSHADOW_ETCHED_IN
Pair of shadows are drawn close together to give the appearance of a line etched in to the window. For a shadow that encloses an area, the effect is similar to drawing two shadow borders; an outer XmSHADOW_IN border with an inner XmSHADOW_OUT border.

XmSHADOW_ETCHED_OUT
Pair of shadows are drawn close together to give the appearance of a line raised above the window. For a shadow that encloses an area, the effect is similar to drawing two shadow borders; an outer XmSHADOW_OUT border with an inner XmSHADOW_IN border.


String Direction

The data type XmStringDirection is normally used with the XmNstringDirection resource. It defines the direction the the characters in a string are to drawn. There is currently no support for strings drawn vertically. The valid String Directions are:

XmSTRING_DIRECTION_L_TO_R
Characters in the string are drawn from Left to Right.

XmSTRING_DIRECTION_R_TO_L
Characters in the string are drawn from Right to Left.

XmSTRING_DIRECTION_DEFAULT
Although this value is defined, it does not appear to be used.


Go Back to Index
Go Back to Main Index
Last Update:Mon 06 Nov 15:08:24 1995 [JKF]