Zen
A cross-platform functional programming language

property Class Reference

Intrinsic gui property type. More...

#include <zbl.hpp>

List of all members.

Public Member Functions

 property (QDeclarativeItem *val, const z::string &idx)
 Default constructor.
QVariant getValue () const
 Get the value as a QVariant.
propertyoperator= (const z::string &rhs)
 Set the property of a widget.
propertyoperator= (const char *rhs)
 Set the property of a widget.
propertyoperator= (const z::property &rhs)
 Set the property of a widget.
propertyoperator+= (const z::string &rhs)
 Append string to property value.
propertyoperator+= (const char *rhs)
 Append string to property value.
propertyoperator+= (const z::property &rhs)
 Append string to property value.
 operator string () const
 Get the value of a property.

Private Member Functions

propertysetString (const QString &rhs)
 Set the property of a widget.
propertyappendString (const QString &rhs)
 Append string to property value.

Private Attributes

QDeclarativeItem * _val
 The value.
const z::string _idx
 The index.

Detailed Description

Intrinsic gui property type.


Constructor & Destructor Documentation

property ( QDeclarativeItem *  val,
const z::string idx 
) [inline]

Default constructor.

Parameters:
valThe value
idxName of the property

Member Function Documentation

property& appendString ( const QString &  rhs) [inline, private]

Append string to property value.

Parameters:
rhsThe value to append
Returns:
Self reference
QVariant getValue ( ) const [inline]

Get the value as a QVariant.

Returns:
The value
operator string ( ) const [inline]

Get the value of a property.

Returns:
The value
property& operator+= ( const z::property rhs) [inline]

Append string to property value.

Parameters:
rhsThe value to append
Returns:
Self reference
property& operator+= ( const char *  rhs) [inline]

Append string to property value.

Parameters:
rhsThe value to append
Returns:
Self reference
property& operator+= ( const z::string rhs) [inline]

Append string to property value.

Parameters:
rhsThe value to append
Returns:
Self reference
property& operator= ( const z::property rhs) [inline]

Set the property of a widget.

Parameters:
rhsThe value to set
Returns:
Self reference
property& operator= ( const char *  rhs) [inline]

Set the property of a widget.

Parameters:
rhsThe value to set
Returns:
Self reference
property& operator= ( const z::string rhs) [inline]

Set the property of a widget.

Parameters:
rhsThe value to set
Returns:
Self reference
property& setString ( const QString &  rhs) [inline, private]

Set the property of a widget.

Parameters:
rhsThe value to set
Returns:
Self reference

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines