rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

ilv.h File Reference

#include <ilviews/base/list.h>
#include <ilviews/base/array.h>
#include <ilviews/base/resource.h>
#include <ilviews/base/event.h>
#include <ilviews/base/iostream.h>
#include <ilviews/base/port.h>

Classes

class  IlvDisplay
 Display class. More...
class  IlvTransformer
 Geometric transformation class. More...

Defines

#define IlvDefaultMarkerSize
#define IlvMarkerCircle
#define IlvMarkerCross
#define IlvMarkerDiamond
#define IlvMarkerFilledCircle
#define IlvMarkerFilledDiamond
#define IlvMarkerFilledSquare
#define IlvMarkerFilledTriangle
#define IlvMarkerPlus
#define IlvMarkerSquare
#define IlvMarkerTriangle

Typedefs

typedef IlvPosition IlvAlignment
typedef IlvPosition IlvDirection
typedef void(* IlvDisplayCallback )(IlAny userArg)
typedef void(* IlvDisplayConfigCallback )(IlvDisplayConfig *config)
typedef IlUShort IlvMarkerType
typedef IlvPosition IlvOrientation
typedef SystemWindowType IlvSystemView
 A system-dependent type that holds a window.
typedef IlDouble IlvTransfoParam
 The type of the internal values of all IlvTransformers.

Enumerations

enum  IlvLookStyle {
  IlvOtherLook, IlvMotifLook, IlvWindowsLook, IlvWindows95Look,
  IlvWindowsXPLook, IlvVXLook
}
 

Predefined positioning and direction values.

More...
enum  IlvPosition {
  IlvBadPosition, IlvLeft, IlvRight, IlvTop,
  IlvBottom, IlvTopLeft, IlvBottomLeft, IlvTopRight,
  IlvBottomRight, IlvCenter, IlvHorizontalCenter, IlvVerticalCenter,
  IlvHorizontal, IlvVertical
}
 

Predefined positioning and direction values.

More...

Functions

void IlvFatalError (const char *format,...)
 Outputs an error message.
const char * IlvGetDefaultHome ()
 Retrieves the default Rogue Wave Views Home directory.
const char * IlvGetMessage (IlvDisplay *display, const char *label)
 Alias for IlvDisplay::getMessage().
void IlvPrint (const char *format,...)
 Outputs a message.
void IlvSetDefaultHome (const char *defaultHome)
 Sets the default Rogue Wave Views Home directory.
IlvLocaleExtension * IlvSetLocale (const char *locale=0)
 Sets the language of the application according to the locale environment.
void IlvWarning (const char *format,...)
 Outputs a warning message.

Detailed Description

[library display ilviews/ilv.h]


Define Documentation

#define IlvDefaultMarkerSize

The default size of an IlvMarker.

#define IlvMarkerCircle

A cross sign.

See also:
IlvMarkerType.
#define IlvMarkerCross

A plus sign.

See also:
IlvMarkerType.
#define IlvMarkerDiamond

A stroked diamond.

See also:
IlvMarkerType.
#define IlvMarkerFilledCircle

A filled circle.

See also:
IlvMarkerType.
#define IlvMarkerFilledDiamond

A filled diamond.

See also:
IlvMarkerType.
#define IlvMarkerFilledSquare

A filled square.

See also:
IlvMarkerType.
#define IlvMarkerFilledTriangle

A filled triangle.

See also:
IlvMarkerType.
#define IlvMarkerPlus

A plus sign.

See also:
IlvMarkerType.
#define IlvMarkerSquare

A stroked square.

See also:
IlvMarkerType.
#define IlvMarkerTriangle

A stroked triangle.

See also:
IlvMarkerType.

Typedef Documentation

A synonym for IlvPosition.

A synonym for IlvPosition.

This type defines the prototype of the functions used as callbacks when the look or the language are dynamically changed.

Parameters:
userArg The user argument that was provided when the callback was set.
See also:
IlvDisplay::addChangeLookCallback, IlvDisplay::addChangeLanguageCallback.

This type defines the prototype of the function that can be used as a display configuration callback, which is used in the IlvDisplay constructors.

Parameters:
config The display configuration created by the constructor of IlvDisplay.

A synonym for IlvPosition.

A system-dependent type that holds a window.

  • On Windows, you can safely cast an IlvSystemView to a HWND to get the real Windows handle of that view.
  • On Unix, you can safely cast an IlvSystemView to a Window to get the real X11 Window identifier.

The type of the internal values of all IlvTransformers.

The IlvTransformer API is based on the IlvTransfoParam type, which stores floating point data. The manner in which data is stored depends on the machine.


Enumeration Type Documentation

Predefined positioning and direction values.

This enum type defines the look and feel used by graphic objects in an IlvDisplay instance. By default, only one style is available in a Rogue Wave Views program, and that is the standard style of the current computer system.
To use more than one style in your program, use the corresponding compiler flag, or add the corresponding style header file directive to your implementation file (before any other include directive). The header files are ilviews/motif.h, ilviews/windows.h, ilviews/win95.h, ilviews/winxp.h and ilviews/vx.h.

See also:
IlvDisplay::setCurrentLook, IlvDisplay::setLookFeelHandler, IlvDisplay::getLookFeelHandler, IlvDisplay::getCurrentLook.
Enumerator:
IlvOtherLook 

This value is used to describe a user defined look and feel.

IlvMotifLook 

The Motif look and feel.

IlvWindowsLook 

The Windows 3.1 look and feel.

IlvWindows95Look 

The Windows 95 look and feel. This also covers Windows 98, Windows NT 4.0, and Windows 2000.

IlvWindowsXPLook 

The Windows XP look and feel. This look is available only on machines running Windows XP.

IlvVXLook 

The ViewsX look and feel.

Predefined positioning and direction values.

A set of useful terms that are associated with the IlvPosition enum type is defined. IlvDirection is a synonym for this same enum type, as these values can be used in a positioning context as well as in a direction context.

See also:
IlvDirection.
Enumerator:
IlvBadPosition 

An invalid position or direction.

IlvLeft 

The left position or direction.

IlvRight 

The right position or direction.

IlvTop 

The top position or the upwards direction.

IlvBottom 

The bottom position or the downwards direction.

IlvTopLeft 

The top-left position or direction.

IlvBottomLeft 

The bottom-left position or direction.

IlvTopRight 

The top-right position or direction.

IlvBottomRight 

The bottom-right position or direction.

IlvCenter 

The center position or direction.

IlvHorizontalCenter 

The horizontal direction, used in alignment.

IlvVerticalCenter 

The vertical direction, used in alignment.

IlvHorizontal 

The horizontal direction, used in alignment.

IlvVertical 

The vertical direction, used in alignment.


Function Documentation

void IlvFatalError ( const char *  format,
  ... 
)

Outputs an error message.

This function calls the fatal member function of the error handler that is installed, if there is one.
The default behavior outputs the message on the standard output stream (or the output TTY on Windows).

Parameters:
format A formatting string that is interpreted as the regular C function printf. This function expects its parameters in the same way as printf does (function with a variable number of arguments).
See also:
IlvError, IlvWarning, IlvPrint, IlvGetErrorHandler, IlvSetErrorHandler.
const char* IlvGetDefaultHome (  ) 

Retrieves the default Rogue Wave Views Home directory.

This function allows you to check the setting of ILVHOME, which is used as the base directory of many default resource files.

Returns:
The current setting of the default ILVHOME value. For Rogue Wave Views <X.Y>, the default value is "C:\Program Files\Rogue Wave\Views X.Y" on Windows systems, and "/usr/local/roguewave/viewsXY" on Unix systems.
See also:
IlvSetDefaultHome().
const char* IlvGetMessage ( IlvDisplay display,
const char *  label 
)

Alias for IlvDisplay::getMessage().

Parameters:
display The display.
label The message identifier.
See also:
IlvDisplay::getMessage().
void IlvPrint ( const char *  format,
  ... 
)

Outputs a message.

This function outputs the message on the standard output stream (or the output TTY on Windows).

Parameters:
format A formatting string that is interpreted as the regular C function printf. This function expects its parameters in the same way as printf does (function with a variable number of arguments).
See also:
IlvFatalError, IlvWarning.
void IlvSetDefaultHome ( const char *  defaultHome  ) 

Sets the default Rogue Wave Views Home directory.

This global function sets the setting of the default ILVHOME value to a copy of the string defaultHome.
You may want to force this setting if you want to provide a reasonable default value for a specific application without requesting the user to set the environment variable ILVHOME or the display resource Home.

Parameters:
defaultHome The new default Home setting.
See also:
IlvGetDefaultHome.
IlvLocaleExtension* IlvSetLocale ( const char *  locale = 0  ) 

Sets the language of the application according to the locale environment.

IlvSetLocale must be called before creating an instance of IlvDisplay. The implementation of this function is platform dependent but is usually carried out by calling setlocale(LC_ALL, "");

Please check the User's Manual for a list of supported locales.

Parameters:
locale A platform dependent string specifying the locale. If 0, the default user locale is used.
Returns:
A pointer to an internal class. If success, the returned value is not 0.
void IlvWarning ( const char *  format,
  ... 
)

Outputs a warning message.

This function calls the warning member function of the error handler that is installed, if there is one.
The default behavior outputs the message on the standard output stream (or the output TTY on Windows).

Parameters:
format A formatting string that is interpreted as the regular C function printf. This function expects its parameters in the same way as printf does (function with a variable number of arguments).
See also:
IlvError, IlvFatalError, IlvPrint, IlvGetErrorHandler, IlvSetErrorHandler.
 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.