You may return to the Cvo Object Documenation Index from this document. This document contains the following sections describing the Cvo_ChamferedLabel object:
Cvo_ChamferedLabel
Cvo_Window
#include
<Cvo/Label.h>
new
Cvo_ChamferedLabel ( char *resource_name,
{ Cvo_Object *parent | Display *display },
{ wchar_t | char } *default_label )
The Cvo_ChamferedLabel object is used to display a textual label. It takes a default_label string as the text to display if no text was specified in the X Resource Database.
This object defines the following member functions in addition to those defined by its parent and ancestor objects.
SetText (
{ wchar_t | char } *string )
Set the text of the label to be string. This should almost always come from a resource so that during internationalization it may be translated to a foreign language without requiring source code changes.
SetDefaultText (
{ wchar_t | char } *string )
Set the text of the label if it has not been set from a value in the X Resource Database.
wchar_t *Text (
)
Return the text contained in the label as a wide character string.
LeftJustify (
)
RightJustify (
)
Center (
)
These functions determine whether the text will appear to the left side, the right side or the center of the label. The default is centered.
This object uses the following X resources in addition to those used by its parent and ancestor objects.
*CvoChamferedLabel*label
(class:
Label
)This object modifies the following X resources which are used by its parent or other ancestors.
*CvoChamferedLabel*FontFamily
(new value:
Helvetica
)
*CvoChamferedLabel*TabStop
(new value:
8
)
*CvoChamferedLabel*FontWeight
(new value:
Bold
)
See the example source code for an example of how to use this object.
See the legend for information about the conventions used in this documentation.