rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Maps Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvMapDefaultNeedle Class Reference

A default needle used by the IlvMapCompass class. More...

#include <ilviews/maps/gui/compass.h>

Inheritance diagram for IlvMapDefaultNeedle:
IlvSimpleGraphic IlvGraphic

List of all members.

Public Member Functions

 IlvMapDefaultNeedle (IlvDisplay *display, IlvRect &rect, IlvMapDefaultNeedleStyle style, IlvPalette *palette=0)
 Constructor.
IlvMapDefaultNeedleStyle getStyle ()
 Retrieves the style of the needle.
void setBackground (IlvColor *col)
 Sets the background color.
void setForeground (IlvColor *col)
 Sets the foreground color.
void setStyle (IlvMapDefaultNeedleStyle style, IlBoolean redraw=IlTrue)
 Sets the style of the needle.

Detailed Description

A default needle used by the IlvMapCompass class.

Library: ilvmaps

This class implements a default needle which is used by the IlvMapCompass if the user does not provide any. Four styles of needles are predefined:

Two colors can be specified to draw the needle: a foreground color which is used to draw lined part of the needle, and a background color used to fill filled parts of the needle.


Constructor & Destructor Documentation

IlvMapDefaultNeedle::IlvMapDefaultNeedle ( IlvDisplay display,
IlvRect rect,
IlvMapDefaultNeedleStyle  style,
IlvPalette palette = 0 
)

Constructor.

Construct a IlvMapDefaultNeedle object.

Parameters:
display The IlvDisplay.
rect The initial size and position of the object.
style The style of the needle.
palette The palette used to draw the needle.

Member Function Documentation

IlvMapDefaultNeedleStyle IlvMapDefaultNeedle::getStyle (  ) 

Retrieves the style of the needle.

Returns:
The style of the needle.
void IlvMapDefaultNeedle::setBackground ( IlvColor col  )  [virtual]

Sets the background color.

Sets the color is used to draw lined part of the needle. The color is locked by the object. The previous background color (if any) is unlocked.

Parameters:
col The new background IlvColor.

Reimplemented from IlvSimpleGraphic.

void IlvMapDefaultNeedle::setForeground ( IlvColor col  )  [virtual]

Sets the foreground color.

Sets the color used to draw lined part of the needle. The color is locked by the object. The previous foreground color (if any) is unlocked.

Parameters:
col The new foreground IlvColor.

Reimplemented from IlvSimpleGraphic.

void IlvMapDefaultNeedle::setStyle ( IlvMapDefaultNeedleStyle  style,
IlBoolean  redraw = IlTrue 
)

Sets the style of the needle.

Parameters:
style The new style.
redraw Specifies if a redraw is to be immediately performed.
 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.