Rogue Wave Views 5.6 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Graphic related class. More...
#include <ilviews/base/value.h>
Public Member Functions | |
IlvValue (const char *name, IlvBitmap *b) | |
Constructor. | |
IlvValue (const char *name, IlvDirection d) | |
Constructor. | |
IlvValue (const char *name, IlvAntialiasingMode f) | |
Constructor. | |
IlvValue (const char *name, IlvArcMode f) | |
Constructor. | |
IlvValue (const char *name, IlvFillRule f) | |
Constructor. | |
IlvValue (const char *name, IlvFillStyle f) | |
Constructor. | |
IlvValue (const char *name, IlvLineStyle *l) | |
Constructor. | |
IlvValue (const char *name, IlvGradientPattern *p) | |
Constructor. | |
IlvValue (const char *name, IlvColorPattern *p) | |
Constructor. | |
IlvValue (const char *name, IlvPattern *p) | |
Constructor. | |
IlvValue (const char *name, IlvFont *f) | |
Constructor. | |
IlvValue (const char *name, IlvColor *c) | |
Verbose:. | |
IlvValue (const char *name, IlBoolean b) | |
Constructor. | |
IlvValue (const char *name, const char *s) | |
Constructor. | |
IlvValue (const char *name, IlDouble d) | |
Constructor. | |
IlvValue (const char *name, IlFloat f) | |
Constructor. | |
IlvValue (const char *name, IlUInt u) | |
Constructor. | |
IlvValue (const char *name, IlInt i) | |
Constructor. | |
IlvValue (const char *name=0) | |
Constructor. | |
IlSymbol * | getName () const |
Gets the name of the accessor of the IlvValue . | |
const IlvValueTypeClass * | getType () const |
Gets the type of the IlvValue . | |
operator const char * () const | |
Returns a copy of a string representation of this object in a. | |
operator IlBoolean () const | |
Operator to transform the content of the IlvValue to the IlBoolean type. | |
operator IlDouble () const | |
Operator to transform the content of the IlvValue to the IlDouble type. | |
operator IlFloat () const | |
Operator to transform the content of the IlvValue to the IlFloat type. | |
operator IlInt () const | |
Operator to transform the content of the IlvValue to the IlInt type. | |
operator IlUInt () const | |
Operator to transform the content of the IlvValue to the IlUInt type. | |
operator IlvAntialiasingMode () const | |
Operator to transform the content of the IlvValue to the IlvAntialiasingMode type. | |
operator IlvArcMode () const | |
Operator to transform the content of the IlvValue to the IlvArcMode type. | |
operator IlvDirection () const | |
Operator to transform the content of the IlvValue to the IlvDirection type. | |
operator IlvFillRule () const | |
Operator to transform the content of the IlvValue to the IlvFillRule type. | |
operator IlvFillStyle () const | |
Operator to transform the content of the IlvValue to the IlvIlvFillStyle type. | |
IlvBitmap * | toIlvBitmap (IlvDisplay *display) const |
Returns the content of the IlvValue as an IlvBitmap . | |
IlvColor * | toIlvColor (IlvDisplay *display) const |
Returns the content of the IlvValue as an IlvColor . | |
IlvColorPattern * | toIlvColorPattern (IlvDisplay *display) const |
Returns the content of the IlvValue as an IlvColorPattern . | |
IlvFont * | toIlvFont (IlvDisplay *display) const |
Returns the content of the IlvValue as an IlvFont . | |
IlvGradientPattern * | toIlvGradientPattern (IlvDisplay *display) const |
Returns the content of the IlvValue as an IlvGradientPattern . | |
IlvLineStyle * | toIlvLineStyle (IlvDisplay *display) const |
Returns the content of the IlvValue as an IlvLineStyle . | |
IlvPattern * | toIlvPattern (IlvDisplay *display) const |
Returns the content of the IlvValue as an IlvPattern . |
Graphic related class.
Library: views
The IlvValue
class allows you to query and change the values of a graphic object. Instances of this class are used in the IlvGraphic::queryValue
and IlvGraphic::changeValue
methods.
An IlvValue
instance is defined by three things:
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.
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
.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: The possible types for an IlvValue
are:
IlvValueNoType
for empty IlvValue
IlvValueIntType
for IlInt
value IlvValueUIntType
for IlUInt
value IlvValueStringType
for char*
value IlvValueBooleanType
for IlBoolean
value IlvValueColorType
for IlvColor
value IlvValueFontType
for IlvFont
value IlvValuePatternType
for IlvPattern
value IlvValueColorPatternType
for IlvColorPattern
value IlvValueGradientPatternType
for IlvGradientPattern
value IlvValueLineStyleType
for IlvLineStyle
value IlvValueFillStyleType
for IlvFillStyle
value IlvValueFillRuleType
for IlvFillRule
value IlvValueArcModeType
for IlvArcMode
value IlvValueAntialiasingModeType
for IlvAntialiasingMode
value IlvValueDirectionType
for IlvDirection
value IlvValueBitmapType
for IlvBitmap
value IlvValueFloatType
for IlFloat
value IlvValueDoubleType
for IlDouble
value IlvValueStringArrayType
for arrays of char*
IlvValueUIntArrayType
for arrays of IlUInt
IlvValueMenuItemArrayType
for arrays of IlvMenuItem
IlvValueMatrixItemArrayType
for arrays of IlvMatrixItems
IlvValueNotebookPageArrayType
for arrays of IlvNotebookPage
The possible values for the accessors are described in each class where accessors are defined.
IlvValue::IlvValue | ( | const char * | name = 0 |
) |
IlvValue::IlvValue | ( | const char * | name, | |
IlInt | i | |||
) |
IlvValue::IlvValue | ( | const char * | name, | |
IlUInt | u | |||
) |
IlvValue::IlvValue | ( | const char * | name, | |
IlFloat | f | |||
) |
IlvValue::IlvValue | ( | const char * | name, | |
IlDouble | d | |||
) |
IlvValue::IlvValue | ( | const char * | name, | |
const char * | s | |||
) |
IlvValue::IlvValue | ( | const char * | name, | |
IlBoolean | b | |||
) |
IlvValue::IlvValue | ( | const char * | name, | |
IlvColor * | c | |||
) |
IlvValue::IlvValue | ( | const char * | name, | |
IlvFont * | f | |||
) |
IlvValue::IlvValue | ( | const char * | name, | |
IlvPattern * | p | |||
) |
IlvValue::IlvValue | ( | const char * | name, | |
IlvColorPattern * | p | |||
) |
IlvValue::IlvValue | ( | const char * | name, | |
IlvGradientPattern * | p | |||
) |
IlvValue::IlvValue | ( | const char * | name, | |
IlvLineStyle * | l | |||
) |
IlvValue::IlvValue | ( | const char * | name, | |
IlvFillStyle | f | |||
) |
Constructor.
This constructor creates an IlvValue
instance for the accessor name. It can be used in the following way:
IlvValue arg("style", IlvFillMaskPattern); button->changeValue(arg);
value | The new value that you want to set to the object |
IlvValue::IlvValue | ( | const char * | name, | |
IlvFillRule | f | |||
) |
Constructor.
This constructor creates an IlvValue
instance for the accessor name. It can be used in the following way:
IlvValue arg("rule", IlvWindingRule); button->changeValue(arg);
value | The new value that you want to set to the object |
IlvValue::IlvValue | ( | const char * | name, | |
IlvArcMode | f | |||
) |
Constructor.
This constructor creates an IlvValue
instance for the accessor name. It can be used in the following way:
IlvValue arg("arcMode", IlvArcChord); button->changeValue(arg);
value | The new value that you want to set to the object |
IlvValue::IlvValue | ( | const char * | name, | |
IlvAntialiasingMode | f | |||
) |
IlvValue::IlvValue | ( | const char * | name, | |
IlvDirection | d | |||
) |
IlvValue::IlvValue | ( | const char * | name, | |
IlvBitmap * | b | |||
) |
IlSymbol* IlvValue::getName | ( | ) | const |
const IlvValueTypeClass* IlvValue::getType | ( | ) | const |
IlvValue::operator const char * | ( | ) | const |
Returns a copy of a string representation of this object in a.
static buffer. This operator returns a copy of a string representation of this object in a static buffer. The user must not modify or delete this buffer. The returned string may be overwritten by any subsequent call to the library.
IlvValue::operator IlBoolean | ( | ) | const |
IlvValue::operator IlDouble | ( | ) | const |
IlvValue::operator IlFloat | ( | ) | const |
IlvValue::operator IlInt | ( | ) | const |
IlvValue::operator IlUInt | ( | ) | const |
IlvValue::operator IlvAntialiasingMode | ( | ) | const |
IlvValue::operator IlvArcMode | ( | ) | const |
IlvValue::operator IlvDirection | ( | ) | const |
IlvValue::operator IlvFillRule | ( | ) | const |
IlvValue::operator IlvFillStyle | ( | ) | const |
IlvBitmap* IlvValue::toIlvBitmap | ( | IlvDisplay * | display | ) | const |
IlvColor* IlvValue::toIlvColor | ( | IlvDisplay * | display | ) | const |
IlvColorPattern* IlvValue::toIlvColorPattern | ( | IlvDisplay * | display | ) | const |
Returns the content of the IlvValue
as an IlvColorPattern
.
A | display that creates the color-pattern. |
IlvValue
as an IlvColorPattern
IlvFont* IlvValue::toIlvFont | ( | IlvDisplay * | display | ) | const |
IlvGradientPattern* IlvValue::toIlvGradientPattern | ( | IlvDisplay * | display | ) | const |
Returns the content of the IlvValue
as an IlvGradientPattern
.
A | display that creates the gradient-pattern. |
IlvValue
as an IlvGradientPattern
IlvLineStyle* IlvValue::toIlvLineStyle | ( | IlvDisplay * | display | ) | const |
Returns the content of the IlvValue
as an IlvLineStyle
.
A | display that creates the line style. |
IlvValue
as an IlvLineStyle
. IlvPattern* IlvValue::toIlvPattern | ( | IlvDisplay * | display | ) | const |
Returns the content of the IlvValue
as an IlvPattern
.
A | display that creates the pattern. |
IlvValue
as an IlvPattern
. © 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.