CrystalSpace

Public API Reference

CS::Utility::iModifiableConstraint Struct Reference

A constraint allows to limit the range of values that a parameter of a CS::Utility::iMovable can take. More...

#include <iutil/modifiable.h>

Inheritance diagram for CS::Utility::iModifiableConstraint:

List of all members.

Public Member Functions

virtual iModifiableConstraintType GetType () const =0
 Get the type of this constraint.
virtual bool Validate (const csVariant *variant) const =0
 Return whether or not the value of this variant is valid according to this constraint.

Detailed Description

A constraint allows to limit the range of values that a parameter of a CS::Utility::iMovable can take.

Main ways to get pointers to this interface:

See also:
iModifiable

Definition at line 328 of file modifiable.h.


Member Function Documentation

virtual iModifiableConstraintType CS::Utility::iModifiableConstraint::GetType (  )  const [pure virtual]

Get the type of this constraint.

virtual bool CS::Utility::iModifiableConstraint::Validate ( const csVariant variant  )  const [pure virtual]

Return whether or not the value of this variant is valid according to this constraint.

The variant is supposed to be of a csVariantType compatible with this constraint.


The documentation for this struct was generated from the following file:

Generated for Crystal Space 2.1 by doxygen 1.6.1