#include <IStaticTextAttributes.h>
|
| enum | { kDefaultIID = IID_ISTATICTEXTATTRIBUTES } |
| |
Interface responsible for getting and setting various attributes of static text widgets
- See Also
- WidgetDefs.h
| virtual int16 IStaticTextAttributes::GetAlignment | ( | | ) | const |
| pure virtual |
Get the alignment of the text within its bounding box.
- Returns
- current alignment value. Should be one of {kAlignLeft,kAlignCenter,kAlignRight}, defined in WidgetDefs.h
| virtual bool16 IStaticTextAttributes::GetConvertAmpersandsToUnderline | ( | | ) | const |
| pure virtual |
Get whether or not to convert ampersands to underline.
- Returns
- current setting for convert ampersands to underline.
| virtual bool16 IStaticTextAttributes::GetDrawUnderline | ( | | ) | const |
| pure virtual |
Get whether or not to convert to underline the text.
- Returns
- current setting for underline.
| virtual EllipsizeStyle IStaticTextAttributes::GetEllipsizeStyle | ( | | ) | const |
| pure virtual |
Get the current ellipsize style of the text in case it does not fit within its bounding box.
- Returns
- current ellipsize Style. Should be one of {kDontEllipsize, kTrue,kEllipsizeEnd, kTruekEllipsizeBeginning,kEllipsizeMiddle}.
| virtual void IStaticTextAttributes::SetAlignment | ( | const int16 | alignment | ) | |
| pure virtual |
Set the alignment of the text within its bounding box.
- Parameters
| alignment | one of {kAlignLeft,kAlignCenter,kAlignRight}, defined in WidgetDefs.h |
| virtual void IStaticTextAttributes::SetConvertAmpersandsToUnderline | ( | const bool16 | convertAmpersands | ) | |
| pure virtual |
Set whether or not to convert ampersands to underline.
- Parameters
| convertAmpersands | kTrue to convert ampersands to underline; otherwise, kFalse. |
| virtual void IStaticTextAttributes::SetDrawUnderline | ( | const bool16 | drawUnderline | ) | |
| pure virtual |
Set whether or not to draw an underline for the text
- Parameters
| drawUnderline | kTrue to draw underline; otherwise, kFalse. |
| virtual void IStaticTextAttributes::SetEllipsizeStyle | ( | const EllipsizeStyle | ellipsizeStyle | ) | |
| pure virtual |
Set the ellipsize style of the text in case it does not fit within its bounding box.
- Parameters
| ellipsizeStyle | one of {kDontEllipsize, kTrue,kEllipsizeEnd, kTruekEllipsizeBeginning,kEllipsizeMiddle} |