libyui  3.4.2
YProperty Class Reference

Class for widget properties. More...

#include <YProperty.h>

Public Member Functions

 YProperty (const std::string &name, YPropertyType type, bool isReadOnly=false)
 Constructor: Create a property with the specified name and type. More...
 
std::string name () const
 Returns the name of this property.
 
YPropertyType type () const
 Returns the type of this property.
 
bool isReadOnly () const
 Returns 'true' if this property cannot be changed, only retrieved.
 
std::string typeAsStr () const
 Returns the type of this property as string.
 

Static Public Member Functions

static std::string typeAsStr (YPropertyType type)
 Returns a string description of a property type.
 

Detailed Description

Class for widget properties.

Definition at line 51 of file YProperty.h.

Constructor & Destructor Documentation

◆ YProperty()

YProperty::YProperty ( const std::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.

Definition at line 58 of file YProperty.h.


The documentation for this class was generated from the following files: