rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Gadgets Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvFontSelector Class Reference

Dialog class. More...

#include <ilviews/gadgets/fontsel.h>

Inheritance diagram for IlvFontSelector:
IlvDialog IlvGadgetContainer IlvContainer IlvDrawingView IlvView IlvAbstractView IlvSystemPort IlvPort

List of all members.

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.
IlvFontget (IlBoolean grab=IlFalse, IlvCursor *cursor=0)
 Displays the font selector as a modal dialog.
IlvFontgetResult () 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.

Detailed Description

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.

IlvFontSelectora.gif

A Font Selector

See also:
IlvFont

Constructor & Destructor Documentation

IlvFontSelector::IlvFontSelector ( IlvDisplay display,
IlvSystemView  transientFor = 0 
)

Constructor.

Initializes a new instance of the IlvFontSelector class.

Parameters:
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.

Member Function Documentation

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.

Parameters:
family The font family
style The font style.
See also:
IlvFontStyle
IlvFont* IlvFontSelector::get ( IlBoolean  grab = IlFalse,
IlvCursor cursor = 0 
)

Displays the font selector as a modal dialog.

Parameters:
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.
Returns:
The selected font.
See also:
getResult
IlvFont* IlvFontSelector::getResult (  )  const

Returns the current selected font.

Returns:
The current selected font.
IlvFontStyle IlvFontSelector::getStyle (  )  const

Returns the style of the selected font.

Returns:
The style of the selected font.
virtual void IlvFontSelector::set ( IlvFont font  )  [virtual]

Selects a font in the font selector.

Parameters:
font The font to be selected. If the specified font cannot be found, the member function does nothing.
See also:
getResult, get
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

© 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.