libyui
Loading...
Searching...
No Matches
YProperty Class Reference

#include <YProperty.h>

Public Member Functions

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

Static Public Member Functions

static std::string typeAsStr (YPropertyType type)

Detailed Description

Class for widget properties.

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.

Member Function Documentation

◆ isReadOnly()

bool YProperty::isReadOnly ( ) const
inline

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

◆ name()

std::string YProperty::name ( ) const
inline

Returns the name of this property.

◆ type()

YPropertyType YProperty::type ( ) const
inline

Returns the type of this property.

◆ typeAsStr() [1/2]

std::string YProperty::typeAsStr ( ) const
inline

Returns the type of this property as string.

◆ typeAsStr() [2/2]

string YProperty::typeAsStr ( YPropertyType type)
static

Returns a string description of a property type.


The documentation for this class was generated from the following files:
  • /builddir/build/BUILD/libyui-4.6.2-build/libyui-4.6.2/libyui/src/YProperty.h
  • /builddir/build/BUILD/libyui-4.6.2-build/libyui-4.6.2/libyui/src/YProperty.cc