Rogue Wave Views
Foundation Package API Reference Guide
Product Documentation:

Rogue Wave Views
Documentation Home
List of all members | Public Member Functions | Friends
IlvDisplayConfig Class Reference

Display configuration base class. More...

#include <ilviews/base/config.h>

Inheritance diagram for IlvDisplayConfig:
IlvWindowsDisplayConfig IlvXDisplayConfig

Public Member Functions

IlvDisplaygetDisplay () const
 Gets the display instance. More...
 
IlAny getUserArg () const
 Gets the user argument. More...
 
void setDefaultBackground (const char *bgName, IlBoolean isMutable=IlFalse)
 Sets the default background color. More...
 
void setDefaultBackground (IlvIntensity r, IlvIntensity g, IlvIntensity b, IlBoolean isMutable)
 Sets the default background color. More...
 
void setDefaultForeground (const char *fgName, IlBoolean isMutable=IlFalse)
 Sets the default foreground color. More...
 
void setDefaultForeground (IlvIntensity r, IlvIntensity g, IlvIntensity b, IlBoolean isMutable)
 Sets the default foreground color. More...
 

Friends

class IlvDisplay
 

Detailed Description

Display configuration base class.

Library: xviews or winviews or mviews (mutually exclusive)

The class IlvDisplayConfig handles the display system-independent aspects of the configuration of a Rogue Wave Views application. It is the class type that is used in the display configuration callbacks (see IlvDisplay constructors for details).
The current version of this library does not yet implement any general functions. However it will be extended in future versions.

See also
IlvDisplay.

Member Function Documentation

§ getDisplay()

IlvDisplay* IlvDisplayConfig::getDisplay ( ) const

Gets the display instance.

Returns
A pointer to the IlvDisplay instance that created this object.

§ getUserArg()

IlAny IlvDisplayConfig::getUserArg ( ) const

Gets the user argument.

Returns
The user parameter provided in the IlvDisplay constructor.

§ setDefaultBackground() [1/2]

void IlvDisplayConfig::setDefaultBackground ( const char *  bgName,
IlBoolean  isMutable = IlFalse 
)

Sets the default background color.

This member function enables you to force the default background color of the display to the color named bgName. If isMutable is set to IlTrue, and if the display system allows it, the allocated color will be mutable.

Parameters
bgNameThe name of color to set to background.
isMutableSets whether the color is a mutable color or not.

§ setDefaultBackground() [2/2]

void IlvDisplayConfig::setDefaultBackground ( IlvIntensity  r,
IlvIntensity  g,
IlvIntensity  b,
IlBoolean  isMutable 
)

Sets the default background color.

This member function enables you to force the default background color of the display to the color defined by the r, g, and b parameters. If isMutable is set to IlTrue, and if the display system allows it, the allocated color will be mutable.

Parameters
rThe red component of the color.
gThe green component of the color.
bThe blue component of the color.
isMutableSets whether the color is a mutable color or not.

§ setDefaultForeground() [1/2]

void IlvDisplayConfig::setDefaultForeground ( const char *  fgName,
IlBoolean  isMutable = IlFalse 
)

Sets the default foreground color.

This member function enables you to force the default foreground color of the display to the color named fgName. If isMutable is set to IlTrue, and if the display system allows it, the allocated color will be mutable.

Parameters
fgNameThe name of color to set to foreground.
isMutableSets whether the color is a mutable color or not.

§ setDefaultForeground() [2/2]

void IlvDisplayConfig::setDefaultForeground ( IlvIntensity  r,
IlvIntensity  g,
IlvIntensity  b,
IlBoolean  isMutable 
)

Sets the default foreground color.

This member function enables you to force the default foreground color of the display to the color defined by the r, g, and b parameters. If isMutable is set to IlTrue, and if the display system allows it, the allocated color will be mutable.

Parameters
rThe red component of the color.
gThe green component of the color.
bThe blue component of the color.
isMutableSets whether the color is a mutable color or not.

© Copyright 2018, 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.