以 PDF 格式下载本书 (1911 KB)
labelclipping(3TSOL)Name | Synopsis | Description | Return Values | Files | Examples | Attributes | See Also | Notes Name
Synopsiscc [flag...] file... -ltsol -lDtTsol [library...] #include <Dt/label_clipping.h>
XmString Xbsltos(Display *display, const m_label_t *senslabel,
Dimension width, const XmFontList fontlist, const int flags);
XmString Xbcleartos(Display *display, const m_label_t *clearance,
Dimension width, const XmFontList fontlist, const int flags);
Description
The calling process must have PRIV_SYS_TRANS_LABEL in its set of effective privileges to translate labels or clearances that dominate the current process' sensitivity label. Return ValuesThese functions return a compound string that represents the character-coded form of the sensitivity label or clearance that is translated. The compound string uses the language and fonts specified in fontlist and is clipped to width. These functions return NULL if the label or clearance is not a valid, required type as defined in the label_encodings(4) file, or not dominated by the process' sensitivity label and the PRIV_SYS_TRANS_LABEL privilege is not asserted. Files
ExamplesExample 1 Translate and Clip a Clearance.This example translates a clearance to text using the long words specified in the label_encodings(4) file, a font list, and clips the translated clearance to a width of 72 pixels. xmstr = Xbcleartos(XtDisplay(topLevel), &clearance, 72, fontlist, LONG_WORDS AttributesSee attributes(5) for descriptions of the following attributes:
The labelclipping functions, Xbsltos() and Xbcleartos(), are obsolete. Use the label_to_str(3TSOL) function instead. See Alsobltos(3TSOL), label_to_str(3TSOL), libtsol(3LIB), label_encodings(4), attributes(5) See XmStringDraw(3) and FontList(3) for information on the creation and structure of a font list. NotesThe functionality described on this manual page is available only if the system is configured with Trusted Extensions. Name | Synopsis | Description | Return Values | Files | Examples | Attributes | See Also | Notes |
|||||||