FBPropertyColorAndAlpha Class Reference


Detailed Description

FBPropertyColorAndAlpha class.

Similar in use to FBPropertyColor

    # Supported list protocol methods:
    c = FBPropertyColorAndAlpha()
    len(c)
    print c[0]
    c[0] = 1.0
    print c.Data
    c.Data=FBColorAndAlpha(1.0,0.5,0.5,1.0)
Warning:
Slicing is not supported by this object.
Inheritance diagram for FBPropertyColorAndAlpha:

List of all members.

Public Member Functions

int __len__ ()
 Returns the number of elements.
double __getitem__ (int pIndex)
 Returns the ith component Corresponds to python: print c[1].
 __setitem__ (int pIndex, double pComponentValue)
 Sets the ith components Corresponds to python: c[1] = 0.5.

Public Attributes

FBColorAndAlpha Data
 Read Write Property: The property data value.

Member Function Documentation

int __len__ ( )

Returns the number of elements.

Corresponds to python: len(object)

double __getitem__ ( int  pIndex)

Returns the ith component Corresponds to python: print c[1].

Parameters:
pIndexIndex of the components to get (0 to 1)
Returns:
Color component value.
__setitem__ ( int  pIndex,
double  pComponentValue 
)

Sets the ith components Corresponds to python: c[1] = 0.5.

Parameters:
pIndexIndex of the components to set (0 to 1)
pComponentValueValue of component to set

Member Data Documentation

Read Write Property: The property data value.

Type of this depends on the subclass of FBProperty (ex: in a FBPropertyInt, Data is of type int).

Reimplemented from FBProperty.


FBPropertyColorAndAlpha FBPropertyColorAndAlpha FBPropertyColorAndAlpha FBPropertyColorAndAlpha FBPropertyColorAndAlpha FBPropertyColorAndAlpha FBPropertyColorAndAlpha FBPropertyColorAndAlpha FBPropertyColorAndAlpha FBPropertyColorAndAlpha
FBPropertyColorAndAlpha FBPropertyColorAndAlpha FBPropertyColorAndAlpha FBPropertyColorAndAlpha FBPropertyColorAndAlpha FBPropertyColorAndAlpha FBPropertyColorAndAlpha FBPropertyColorAndAlpha FBPropertyColorAndAlpha FBPropertyColorAndAlpha