libyui
Public Member Functions | Static Public Member Functions

YProperty Class Reference

#include <YProperty.h>

List of all members.

Public Member Functions

 YProperty (const string &name, YPropertyType type, bool isReadOnly=false)
string name () const
YPropertyType type () const
bool isReadOnly () const
string typeAsStr () const

Static Public Member Functions

static string typeAsStr (YPropertyType type)

Detailed Description

Class for widget properties.


Constructor & Destructor Documentation

YProperty::YProperty ( const string &  name,
YPropertyType  type,
bool  isReadOnly = false 
) [inline]

Constructor: Create a property with the specified name and type. 'isReadOnly' is for properties that cannot be set, only retrieved.


Member Function Documentation

bool YProperty::isReadOnly ( ) const [inline]

Returns 'true' if this property cannot be changed, only retrieved.

string YProperty::name ( ) const [inline]

Returns the name of this property.

YPropertyType YProperty::type ( ) const [inline]

Returns the type of this property.

string YProperty::typeAsStr ( YPropertyType  type) [static]

Returns a string description of a property type.

string YProperty::typeAsStr ( ) const [inline]

Returns the type of this property as string.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations Friends