KWin
Loading...
Searching...
No Matches
Public Member Functions | List of all members
KWin::Xcb::StringProperty Class Reference

#include <xcbutils.h>

Inheritance diagram for KWin::Xcb::StringProperty:
KWin::Xcb::Property KWin::Xcb::Wrapper< PropertyData, uint8_t, xcb_window_t, xcb_atom_t, xcb_atom_t, uint32_t, uint32_t > KWin::Xcb::AbstractWrapper< Data >

Public Member Functions

 StringProperty ()=default
 
 StringProperty (xcb_window_t w, xcb_atom_t p)
 
 operator QByteArray ()
 
- Public Member Functions inherited from KWin::Xcb::Property
 Property ()
 
 Property (const Property &other)
 
 Property (uint8_t _delete, xcb_window_t window, xcb_atom_t property, xcb_atom_t type, uint32_t long_offset, uint32_t long_length)
 
Propertyoperator= (const Property &other)
 
template<typename T >
std::enable_if<!std::is_pointer< T >::value, T >::type value (T defaultValue=T(), bool *ok=nullptr)
 Overloaded method for convenience.
 
template<typename T >
std::enable_if<!std::is_pointer< T >::value, T >::type value (uint8_t format, xcb_atom_t type, T defaultValue=T(), bool *ok=nullptr)
 Reads the property as a POD type.
 
template<typename T >
std::enable_if< std::is_pointer< T >::value, T >::type value (T defaultValue=nullptr, bool *ok=nullptr)
 Overloaded method for convenience.
 
template<typename T >
std::enable_if< std::is_pointer< T >::value, T >::type value (uint8_t format, xcb_atom_t type, T defaultValue=nullptr, bool *ok=nullptr)
 Reads the property as an array of T.
 
QByteArray toByteArray (uint8_t format=8, xcb_atom_t type=XCB_ATOM_STRING, bool *ok=nullptr)
 Reads the property as string and returns a QByteArray.
 
QByteArray toByteArray (bool *ok)
 Overloaded method for convenience.
 
bool toBool (uint8_t format=32, xcb_atom_t type=XCB_ATOM_CARDINAL, bool *ok=nullptr)
 Reads the property as a boolean value.
 
bool toBool (bool *ok)
 Overloaded method for convenience.
 
- Public Member Functions inherited from KWin::Xcb::Wrapper< PropertyData, uint8_t, xcb_window_t, xcb_atom_t, xcb_atom_t, uint32_t, uint32_t >
 Wrapper ()=default
 
 Wrapper (Args... args)
 
 Wrapper (xcb_window_t w, Args... args)
 
- Public Member Functions inherited from KWin::Xcb::AbstractWrapper< Data >
virtual ~AbstractWrapper ()
 
AbstractWrapperoperator= (const AbstractWrapper &other)
 
const Replyoperator-> ()
 
bool isNull ()
 
bool isNull () const
 
 operator bool ()
 
 operator bool () const
 
const Replydata ()
 
const Replydata () const
 
WindowId window () const
 
bool isRetrieved () const
 
Replytake ()
 

Additional Inherited Members

- Public Types inherited from KWin::Xcb::AbstractWrapper< Data >
typedef Data::cookie_type Cookie
 
typedef Data::reply_type Reply
 
- Protected Member Functions inherited from KWin::Xcb::AbstractWrapper< Data >
 AbstractWrapper ()
 
 AbstractWrapper (WindowId window, Cookie cookie)
 
 AbstractWrapper (const AbstractWrapper &other)
 
void getReply ()
 

Detailed Description

Definition at line 902 of file xcbutils.h.

Constructor & Destructor Documentation

◆ StringProperty() [1/2]

KWin::Xcb::StringProperty::StringProperty ( )
default

◆ StringProperty() [2/2]

KWin::Xcb::StringProperty::StringProperty ( xcb_window_t w,
xcb_atom_t p )
inlineexplicit

Definition at line 906 of file xcbutils.h.

Member Function Documentation

◆ operator QByteArray()

KWin::Xcb::StringProperty::operator QByteArray ( )
inline

Definition at line 910 of file xcbutils.h.


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