glibmm 2.80.0
Public Types | Public Member Functions | List of all members
Glib::Property_ReadOnly< T > Class Template Reference

See Property. More...

#include <glibmm/property.h>

Inheritance diagram for Glib::Property_ReadOnly< T >:
Inheritance graph
[legend]

Public Types

typedefPropertyType
 
typedef Glib::Value< T > ValueType
 

Public Member Functions

 Property_ReadOnly (Glib::Object &object, const Glib::ustring & name)
 Constructs a property of the object with the specified name.
 
 Property_ReadOnly (Glib::Object &object, const Glib::ustring & name, const PropertyType &default_value)
 Constructs a property of the object with the specified name and default_value.
 
 Property_ReadOnly (Glib::Object &object, const Glib::ustring & name, const Glib::ustring &nick, const Glib::ustring &blurb, Glib::ParamFlags flags)
 Constructs a property of the object with the specified name, nick, blurb and flags.
 
 Property_ReadOnly (Glib::Object &object, const Glib::ustring & name, const PropertyType &default_value, const Glib::ustring &nick, const Glib::ustring &blurb, Glib::ParamFlags flags)
 Constructs a property of the object with the specified name, default_value, nick, blurb and flags.
 
PropertyType get_value () const
 Returns the value of the property.
 
 operator PropertyType () const
 Returns the value of the property.
 
Glib::PropertyProxy_ReadOnly< T > get_proxy () const
 Returns a proxy object that can be used to read this property.
 
- Public Member Functions inherited from Glib::PropertyBase
 PropertyBase (const PropertyBase &)=delete
 
PropertyBaseoperator= (const PropertyBase &)=delete
 
Glib::ustring get_name () const
 Returns the name of the property.
 
Glib::ustring get_nick () const
 Returns the nickname of the property.
 
Glib::ustring get_blurb () const
 Returns the short description of the property.
 
void notify ()
 Notifies the object containing the property that the property has changed.
 

Additional Inherited Members

- Protected Member Functions inherited from Glib::PropertyBase
 PropertyBase (Glib::Object &object, GType value_type)
 This constructs a property of type value_type for the object.
 
 ~PropertyBase () noexcept
 
bool lookup_property (const Glib::ustring & name)
 Checks if the property has already been installed.
 
void install_property (GParamSpec *param_spec)
 Installs the property specified by the given param_spec.
 
const charget_name_internal () const
 Returns the name of the property.
 
- Protected Attributes inherited from Glib::PropertyBase
Glib::Objectobject_
 
Glib::ValueBase value_
 
GParamSpecparam_spec_
 

Detailed Description

template<class T>
class Glib::Property_ReadOnly< T >

See Property.

This property can be read, but not written, so there is no set_value() method.

Member Typedef Documentation

◆ PropertyType

template <class T >
typedef T Glib::Property_ReadOnly< T >::PropertyType

◆ ValueType

template <class T >
typedef Glib::Value<T> Glib::Property_ReadOnly< T >::ValueType

Constructor & Destructor Documentation

◆ Property_ReadOnly() [1/4]

template <class T >
Glib::Property_ReadOnly< T >::Property_ReadOnly ( Glib::Object object,
const Glib::ustring name 
)

Constructs a property of the object with the specified name.

For each instance of the object, the same property must be constructed with the same name.

◆ Property_ReadOnly() [2/4]

template <class T >
Glib::Property_ReadOnly< T >::Property_ReadOnly ( Glib::Object object,
const Glib::ustring name,
const PropertyType default_value 
)

Constructs a property of the object with the specified name and default_value.

For each instance of the object, the same property must be constructed with the same name.

◆ Property_ReadOnly() [3/4]

template <class T >
Glib::Property_ReadOnly< T >::Property_ReadOnly ( Glib::Object object,
const Glib::ustring name,
const Glib::ustring nick,
const Glib::ustring blurb,
Glib::ParamFlags  flags 
)

Constructs a property of the object with the specified name, nick, blurb and flags.

For each instance of the object, the same property must be constructed with the same name.

◆ Property_ReadOnly() [4/4]

template <class T >
Glib::Property_ReadOnly< T >::Property_ReadOnly ( Glib::Object object,
const Glib::ustring name,
const PropertyType default_value,
const Glib::ustring nick,
const Glib::ustring blurb,
Glib::ParamFlags  flags 
)

Constructs a property of the object with the specified name, default_value, nick, blurb and flags.

For each instance of the object, the same property must be constructed with the same name.

Member Function Documentation

◆ get_proxy()

template <class T >
Glib::PropertyProxy_ReadOnly< T > Glib::Property_ReadOnly< T >::get_proxy ( ) const
inline

Returns a proxy object that can be used to read this property.

◆ get_value()

template <class T >
PropertyType Glib::Property_ReadOnly< T >::get_value ( ) const
inline

Returns the value of the property.

◆ operator PropertyType()

template <class T >
Glib::Property_ReadOnly< T >::operator PropertyType ( ) const
inline

Returns the value of the property.