rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvLineStyle Class Reference

Resource class. More...

#include <ilviews/base/resource.h>

Inheritance diagram for IlvLineStyle:
IlvResource

List of all members.

Public Member Functions

IlUShort getCount () const
 Returns the length of the dash array.
unsigned char * getDashes () const
 Returns the dash array.
IlUShort getOffset () const
 Returns the dash offset.

Friends

class IlvDisplay

Detailed Description

Resource class.

Library: display

The class IlvLineStyle represents the line style resources. A line style is an array of unsigned characters returned by the member function getDashes. The length of the array is returned by the getCount member function. Other line styles are predefined and may be accessed through the naming mechanism:

linesty.gif


- IlvLineStyle -

Although this class does not have any public constructor, you may define your own line styles by means of calls to the member function IlvDisplay::getLineStyle. You can name these new line styles to access them by name.

See also:
IlvDisplay::defaultLineStyle, IlvDisplay::getLineStyle.

Member Function Documentation

IlUShort IlvLineStyle::getCount (  )  const

Returns the length of the dash array.

Returns:
The length of the dash array.
unsigned char* IlvLineStyle::getDashes (  )  const

Returns the dash array.

When a line is drawn using this line style, the number of foreground-colored pixels is indicated by the elements of the returned array. This array must not be modified or deleted.

IlUShort IlvLineStyle::getOffset (  )  const

Returns the dash offset.

Returns:
The number of pixels to be skipped when the drawing loop starts.
 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.