rwlogo
Rogue Wave Views 5.5.1

Rogue Wave Views
Prototypes Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvToggleAccessor Class Reference

Switch a Boolean attribute back and forth between IlTrue and IlFalse. More...

#include <ilviews/protos/useracc.h>

Inheritance diagram for IlvToggleAccessor:
IlvUserAccessor IlvAccessor

List of all members.

Public Member Functions

 IlvToggleAccessor (const char *name, const IlvValueTypeClass *type, const char *toggleValue)
 Creates a new toggle accessor of name name and type type.

Protected Member Functions

virtual IlBoolean changeValue (IlvAccessorHolder *object, const IlvValue &val)
 Called by the method IlvAccessible::changeValue for each IlvAccessor attached to the IlvAccessorHolder.

Detailed Description

Switch a Boolean attribute back and forth between IlTrue and IlFalse.

Library: ilvproto


Constructor & Destructor Documentation

IlvToggleAccessor::IlvToggleAccessor ( const char *  name,
const IlvValueTypeClass type,
const char *  toggleValue 
)

Creates a new toggle accessor of name name and type type.

When the attribute specified by name is changed, the toggleValue accessor is set to IlFalse if its value was IlTrue, or to IlTrue if it was IlFalse. The real value assigned to this attribute is ignored.


© 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.