rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Gadgets Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvTreePathGadgetItem Class Reference

Tree gadget item class with a pathname. More...

#include <ilviews/gadgets/filechoo.h>

Inheritance diagram for IlvTreePathGadgetItem:
IlvTreeGadgetItem IlvGadgetItem

List of all members.

Public Member Functions

 IlvTreePathGadgetItem (const char *label, IlvGraphic *graphic, IlvPosition position=IlvRight, IlUShort spacing=IlvDefaultGadgetItemSpacing, IlBoolean copy=IlTrue)
 Constructor.
 IlvTreePathGadgetItem (const char *label, IlvBitmap *bitmap=0, IlvPosition position=IlvRight, IlUShort spacing=IlvDefaultGadgetItemSpacing, IlBoolean copy=IlTrue)
 Constructor.
const IlPathNamegetPathName () const
 Returns the path.
void setPathName (const IlPathName &path)
 Sets the path.

Detailed Description

Tree gadget item class with a pathname.

Library: ilvadvgdt

This tree gadget item class is used by the IlvFileChooserTree objects to store a path for each item of the tree gadget.

See also:
IlvFileChooserTree, IlvTreeGadgetItem

Constructor & Destructor Documentation

IlvTreePathGadgetItem::IlvTreePathGadgetItem ( const char *  label,
IlvBitmap bitmap = 0,
IlvPosition  position = IlvRight,
IlUShort  spacing = IlvDefaultGadgetItemSpacing,
IlBoolean  copy = IlTrue 
)

Constructor.

Initializes a new instance of the IlvTreePathGadgetItem class. This constructor allows you to specify both a label and a bitmap, as well as their relative alignment and spacing. The bitmap is locked.

Parameters:
label The item label.
bitmap The item sensitive bitmap.
position The label position relative to the picture.
spacing The spacing between the label and the picture.
copy A Boolean value specifying whether a label should be copied. If the value is IlFalse, then memory must be allocated for the label because the label characters are deleted from memory by the IlvTreePathGadgetItem.
IlvTreePathGadgetItem::IlvTreePathGadgetItem ( const char *  label,
IlvGraphic graphic,
IlvPosition  position = IlvRight,
IlUShort  spacing = IlvDefaultGadgetItemSpacing,
IlBoolean  copy = IlTrue 
)

Constructor.

Initializes a new instance of the IlvTreePathGadgetItem class. This constructor allows you to specify both a label and a graphic, as well as their relative alignment and spacing.

Parameters:
label The item label.
graphic The item picture.
position The label position relative to the picture.
spacing The spacing between the label and the picture.
copy A Boolean value specifying whether a label should be copied. If the value is IlFalse, then memory must be allocated for the label because the label characters are deleted from memory by the IlvTreePathGadgetItem.

Member Function Documentation

const IlPathName& IlvTreePathGadgetItem::getPathName (  )  const

Returns the path.

Returns:
The full path corresponding to the label of the tree gadget item.
void IlvTreePathGadgetItem::setPathName ( const IlPathName path  ) 

Sets the path.

Sets the full path corresponding to the label of the tree gadget item.

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