libyui
|
#include <YProperty.h>
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) |
Class for widget properties.
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.
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.