rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Prototypes Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvCallbackAccessor Class Reference

Allows user actions that trigger a callback to, in turn, set an attribute. More...

#include <ilviews/protos/callbacc.h>

Inheritance diagram for IlvCallbackAccessor:
IlvUserAccessor IlvAccessor

List of all members.

Public Member Functions

 IlvCallbackAccessor (const char *name, const IlvValueTypeClass *type, const char *nodename, const char *callback, const char *queryacc, IlvDisplay *display=0)
 Creates a callback accessor.
virtual IlBoolean isOutputValue (const IlSymbol *name) const
 Queries if the accessor is an output accessor.

Protected Member Functions

virtual void initialize (const IlvAccessorHolder *object)
 Attachment method to an IlvAccessorHolder.

Detailed Description

Allows user actions that trigger a callback to, in turn, set an attribute.

Library: ilvproto

This class lets you define a notifying attribute (also called output value) for your group. This notifying value is triggered when the callback of one of the graphic objects of the prototype is executed.


Constructor & Destructor Documentation

IlvCallbackAccessor::IlvCallbackAccessor ( const char *  name,
const IlvValueTypeClass type,
const char *  nodename,
const char *  callback,
const char *  queryacc,
IlvDisplay display = 0 
)

Creates a callback accessor.

Parameters:
name Name of the attribute.
type Type of the attribute. Used only for initialization purposes.
nodename Name of the graphic node that defines the callback, or "[All Nodes]" if the accessor is to be called for all callbacks triggered by all nodes.
callback The name of the callback (usually "Generic").
queryacc Value that will be queried and copied to the output value. This can be an expression.

Member Function Documentation

virtual void IlvCallbackAccessor::initialize ( const IlvAccessorHolder object  )  [protected, virtual]

Attachment method to an IlvAccessorHolder.

This method is called when the accessor object is attached to a group. You can redefine it in subclasses of IlvUserAccessor to perform any kind of initialization.

Parameters:
object The object the accessor is attached to.

Reimplemented from IlvUserAccessor.

virtual IlBoolean IlvCallbackAccessor::isOutputValue ( const IlSymbol name  )  const [virtual]

Queries if the accessor is an output accessor.

Returns:
IlTrue if the accessor is an output accessor, and IlFalse otherwize.

Reimplemented from IlvUserAccessor.

 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.