Rogue Wave Views 5.5.1 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Dialog class. More...
#include <ilviews/gadgets/fontsel.h>
Public Member Functions | |
IlvFontSelector (IlvDisplay *display, IlvSystemView transientFor=0) | |
Constructor. | |
virtual void | computeSizes (const char *family, IlvFontStyle style) |
Computes and displays the available sizes for the specified font family and style. | |
IlvFont * | get (IlBoolean grab=IlFalse, IlvCursor *cursor=0) |
Displays the font selector as a modal dialog. | |
IlvFont * | getResult () const |
Returns the current selected font. | |
IlvFontStyle | getStyle () const |
Returns the style of the selected font. | |
virtual void | set (IlvFont *font) |
Selects a font in the font selector. |
Dialog class.
Library: ilvadvgdt
The IlvFontSelector
class lets you select a font. On Windows, the font selector has an additional toggle button that lets you display the font sizes in points. The names of the graphic objects are displayed to let you change the default look of the dialog.
A Font Selector
IlvFontSelector::IlvFontSelector | ( | IlvDisplay * | display, | |
IlvSystemView | transientFor = 0 | |||
) |
Constructor.
Initializes a new instance of the IlvFontSelector
class.
display | Connection to the display. | |
transientFor | The view for which the font selector is transient. For more information about transient windows, see the IlvView constructors. |
virtual void IlvFontSelector::computeSizes | ( | const char * | family, | |
IlvFontStyle | style | |||
) | [virtual] |
Computes and displays the available sizes for the specified font family and style.
Computes and displays the available sizes for the font specified by family and style.
family | The font family | |
style | The font style. |
Displays the font selector as a modal dialog.
grab | A Boolean value specifying whether the dialog should be system modal. A system modal dialog grabs input events occurring on the entire system so that other applications cannot get any keyboard or mouse events until the member function returns. In this case, you can specify the cursor to be used in the parameter cursor. If grab is set to IlFalse (the default), the dialog is application modal, which means that the application does not receive input events in other windows. | |
cursor | The cursor used to make the selection. |
IlvFont* IlvFontSelector::getResult | ( | ) | const |
Returns the current selected font.
IlvFontStyle IlvFontSelector::getStyle | ( | ) | const |
Returns the style of the selected font.
© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.