KWin
Loading...
Searching...
No Matches
Public Member Functions | List of all members
KWin::DrmEnumProperty< Enum > Class Template Reference

#include <drm_property.h>

Inheritance diagram for KWin::DrmEnumProperty< Enum >:
KWin::DrmProperty

Public Member Functions

 DrmEnumProperty (DrmObject *obj, const QByteArray &name, const QList< QByteArray > &enumNames)
 
Enum enumValue () const
 
bool hasEnum (Enum value) const
 
Enum enumForValue (uint64_t value) const
 
uint64_t valueForEnum (Enum enumValue) const
 
bool setEnumLegacy (Enum value)
 
- Public Member Functions inherited from KWin::DrmProperty
 DrmProperty (DrmObject *obj, const QByteArray &name, const QList< QByteArray > &enumNames={})
 
const QByteArray & name () const
 
DrmObjectdrmObject () const
 
uint32_t propId () const
 
bool isImmutable () const
 
bool isBitmask () const
 
bool hasAllEnums () const
 
uint64_t value () const
 
drmModePropertyBlobRes * immutableBlob () const
 
uint64_t minValue () const
 
uint64_t maxValue () const
 
bool isValid () const
 
void update (DrmPropertyList &propertyList)
 
bool setPropertyLegacy (uint64_t value)
 

Additional Inherited Members

- Protected Attributes inherited from KWin::DrmProperty
DrmObject *const m_obj
 
const QByteArray m_propName
 
const QList< QByteArray > m_enumNames
 
uint32_t m_propId = 0
 
uint64_t m_current = 0
 
DrmUniquePtr< drmModePropertyBlobRes > m_immutableBlob
 
uint64_t m_minValue = -1
 
uint64_t m_maxValue = -1
 
QMap< uint64_t, uint64_t > m_enumToPropertyMap
 
QMap< uint64_t, uint64_t > m_propertyToEnumMap
 
bool m_immutable = false
 
bool m_isBlob = false
 
bool m_isBitmask = false
 

Detailed Description

template<typename Enum>
class KWin::DrmEnumProperty< Enum >

Definition at line 69 of file drm_property.h.

Constructor & Destructor Documentation

◆ DrmEnumProperty()

template<typename Enum >
KWin::DrmEnumProperty< Enum >::DrmEnumProperty ( DrmObject * obj,
const QByteArray & name,
const QList< QByteArray > & enumNames )
inline

Definition at line 72 of file drm_property.h.

Member Function Documentation

◆ enumForValue()

template<typename Enum >
Enum KWin::DrmEnumProperty< Enum >::enumForValue ( uint64_t value) const
inline

Definition at line 97 of file drm_property.h.

◆ enumValue()

template<typename Enum >
Enum KWin::DrmEnumProperty< Enum >::enumValue ( ) const
inline

Definition at line 77 of file drm_property.h.

◆ hasEnum()

template<typename Enum >
bool KWin::DrmEnumProperty< Enum >::hasEnum ( Enum value) const
inline

Definition at line 82 of file drm_property.h.

◆ setEnumLegacy()

template<typename Enum >
bool KWin::DrmEnumProperty< Enum >::setEnumLegacy ( Enum value)
inline

Definition at line 128 of file drm_property.h.

◆ valueForEnum()

template<typename Enum >
uint64_t KWin::DrmEnumProperty< Enum >::valueForEnum ( Enum enumValue) const
inline

Definition at line 112 of file drm_property.h.


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