|
| IlvValue (const char *name, const char *s) |
| Constructor. More...
|
|
| IlvValue (const char *name, IlBoolean b) |
| Constructor. More...
|
|
| IlvValue (const char *name, IlDouble d) |
| Constructor. More...
|
|
| IlvValue (const char *name, IlFloat f) |
| Constructor. More...
|
|
| IlvValue (const char *name, IlInt i) |
| Constructor. More...
|
|
| IlvValue (const char *name, IlUInt u) |
| Constructor. More...
|
|
| IlvValue (const char *name, IlvAntialiasingMode f) |
| Constructor. More...
|
|
| IlvValue (const char *name, IlvArcMode f) |
| Constructor. More...
|
|
| IlvValue (const char *name, IlvBitmap *b) |
| Constructor. More...
|
|
| IlvValue (const char *name, IlvColor *c) |
| Verbose: More...
|
|
| IlvValue (const char *name, IlvColorPattern *p) |
| Constructor. More...
|
|
| IlvValue (const char *name, IlvDirection d) |
| Constructor. More...
|
|
| IlvValue (const char *name, IlvFillRule f) |
| Constructor. More...
|
|
| IlvValue (const char *name, IlvFillStyle f) |
| Constructor. More...
|
|
| IlvValue (const char *name, IlvFont *f) |
| Constructor. More...
|
|
| IlvValue (const char *name, IlvGradientPattern *p) |
| Constructor. More...
|
|
| IlvValue (const char *name, IlvLineStyle *l) |
| Constructor. More...
|
|
| IlvValue (const char *name, IlvPattern *p) |
| Constructor. More...
|
|
| IlvValue (const char *name=0) |
| Constructor. More...
|
|
IlSymbol * | getName () const |
| Gets the name of the accessor of the IlvValue . More...
|
|
const IlvValueTypeClass * | getType () const |
| Gets the type of the IlvValue . More...
|
|
| operator const char * () const |
| Returns a copy of a string representation of this object in a. More...
|
|
| operator IlBoolean () const |
| Operator to transform the content of the IlvValue to the IlBoolean type. More...
|
|
| operator IlDouble () const |
| Operator to transform the content of the IlvValue to the IlDouble type. More...
|
|
| operator IlFloat () const |
| Operator to transform the content of the IlvValue to the IlFloat type. More...
|
|
| operator IlInt () const |
| Operator to transform the content of the IlvValue to the IlInt type. More...
|
|
| operator IlUInt () const |
| Operator to transform the content of the IlvValue to the IlUInt type. More...
|
|
| operator IlvAntialiasingMode () const |
| Operator to transform the content of the IlvValue to the IlvAntialiasingMode type. More...
|
|
| operator IlvArcMode () const |
| Operator to transform the content of the IlvValue to the IlvArcMode type. More...
|
|
| operator IlvDirection () const |
| Operator to transform the content of the IlvValue to the IlvDirection type. More...
|
|
| operator IlvFillRule () const |
| Operator to transform the content of the IlvValue to the IlvFillRule type. More...
|
|
| operator IlvFillStyle () const |
| Operator to transform the content of the IlvValue to the IlvIlvFillStyle type. More...
|
|
IlvBitmap * | toIlvBitmap (IlvDisplay *display) const |
| Returns the content of the IlvValue as an IlvBitmap . More...
|
|
IlvColor * | toIlvColor (IlvDisplay *display) const |
| Returns the content of the IlvValue as an IlvColor . More...
|
|
IlvColorPattern * | toIlvColorPattern (IlvDisplay *display) const |
| Returns the content of the IlvValue as an IlvColorPattern . More...
|
|
IlvFont * | toIlvFont (IlvDisplay *display) const |
| Returns the content of the IlvValue as an IlvFont . More...
|
|
IlvGradientPattern * | toIlvGradientPattern (IlvDisplay *display) const |
| Returns the content of the IlvValue as an IlvGradientPattern . More...
|
|
IlvLineStyle * | toIlvLineStyle (IlvDisplay *display) const |
| Returns the content of the IlvValue as an IlvLineStyle . More...
|
|
IlvPattern * | toIlvPattern (IlvDisplay *display) const |
| Returns the content of the IlvValue as an IlvPattern . More...
|
|
Graphic related class.
Library: xviews or winviews or mviews (mutually exclusive)
The IlvValue
class allows you to query and change the attributes of an object. Instances of this class are used in the methods IlvValueInterface::queryValue()
, IlvValueInterface::changeValue()
, and in IlvValueInterface
subclasses, such as IlvGraphic
, IlvView
and more.
An IlvValue
instance is defined by three things:
-
the accessor name, for example "label" to access the label of a button,
-
a value,
-
a type that corresponds to the type of the value.
To query a value from a graphic object, you create an instance of IlvValue
with the name of the accessor and call the IlvGraphic::queryValue()
method. This method fills the value of IlvValue
with a copy of the value inside the graphic object.
To change the value of a graphic object, create an instance of IlvValue
with the name of the accessor and a new value, and pass this IlvValue
to the IlvGraphic::changeValue()
method.
- Note
- When initializing an
IlvValue
with a numeric constant, ensure that the type of the constant is explicitly mentioned, or the numeric constant will default to IlBoolean
with the value IlFalse
or IlTrue
.
For example, if you use the expression IlvValue v("x", 10);
the value's type defaults to IlBoolean
, thus 10
becomes IlTrue
. To keep the value 10
, this expression should be replaced with the following: or better: const IlInt position = 10;
The possible types for an IlvValue
are:
Type identifier | Corresponding type |
IlvValueNoType | empty IlvValue |
IlvValueBooleanType | IlBoolean |
IlvValueIntType | IlInt |
IlvValueUIntType | IlUInt |
IlvValueFloatType | IlFloat |
IlvValueDoubleType | IlDouble |
IlvValueStringType | char* |
IlvValueDirectionType | IlvDirection |
IlvValueColorType | IlvColor |
IlvValueFontType | IlvFont |
IlvValuePatternType | IlvPattern |
IlvValueColorPatternType | IlvColorPattern |
IlvValueGradientPatternType | IlvGradientPattern |
IlvValueLineStyleType | IlvLineStyle |
IlvValueFillStyleType | IlvFillStyle |
IlvValueFillRuleType | IlvFillRule |
IlvValueArcModeType | IlvArcMode |
IlvValueAntialiasingModeType | IlvAntialiasingMode |
IlvValueBitmapType | IlvBitmap |
IlvValueStringArrayType | array of char* |
IlvValueUIntArrayType | array of IlUInt |
IlvValueMenuItemArrayType | array of IlvMenuItem |
IlvValueMatrixItemArrayType | array of IlvMatrixItem |
IlvValueNotebookPageArrayType | array of IlvNotebookPage |
The possible values for the accessors are described in each class where accessors are defined.