KWin
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Member Functions | List of all members
KWin::Xcb::AbstractWrapper< Data > Class Template Reference

Abstract base class for the wrapper. More...

#include <xcbutils.h>

Inheritance diagram for KWin::Xcb::AbstractWrapper< Data >:
KWin::Xcb::Wrapper< CurrentInputData > KWin::Xcb::Wrapper< ModifierMappingData > KWin::Xcb::Wrapper< PropertyData, uint8_t, xcb_window_t, xcb_atom_t, xcb_atom_t, uint32_t, uint32_t > KWin::Xcb::Wrapper< QueryKeymapData > KWin::Xcb::Wrapper< CrtcGammaData, xcb_randr_crtc_t > KWin::Xcb::Wrapper< CrtcInfoData, xcb_randr_crtc_t, xcb_timestamp_t > KWin::Xcb::Wrapper< CurrentResourcesData, xcb_window_t > KWin::Xcb::Wrapper< OutputInfoData, xcb_randr_output_t, xcb_timestamp_t > KWin::Xcb::Wrapper< OutputPropertyData, xcb_randr_output_t, xcb_atom_t, xcb_atom_t, uint32_t, uint32_t, uint8_t, uint8_t > KWin::Xcb::Wrapper< ScreenResourcesData, xcb_window_t > KWin::Xcb::Wrapper< TreeData, xcb_window_t > KWin::Xcb::Wrapper< GeometryData, xcb_window_t > KWin::Xcb::Wrapper< Data, Args > KWin::Xcb::Wrapper< Data > KWin::Xcb::Wrapper< Data, xcb_window_t, Args... >

Public Types

typedef Data::cookie_type Cookie
 
typedef Data::reply_type Reply
 

Public Member Functions

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 ()
 

Protected Member Functions

 AbstractWrapper ()
 
 AbstractWrapper (WindowId window, Cookie cookie)
 
 AbstractWrapper (const AbstractWrapper &other)
 
void getReply ()
 

Detailed Description

template<typename Data>
class KWin::Xcb::AbstractWrapper< Data >

Abstract base class for the wrapper.

This class contains the complete functionality of the Wrapper. It's only an abstract base class to provide partial template specialization for more specific constructors.

Definition at line 239 of file xcbutils.h.

Member Typedef Documentation

◆ Cookie

template<typename Data >
typedef Data::cookie_type KWin::Xcb::AbstractWrapper< Data >::Cookie

Definition at line 242 of file xcbutils.h.

◆ Reply

template<typename Data >
typedef Data::reply_type KWin::Xcb::AbstractWrapper< Data >::Reply

Definition at line 243 of file xcbutils.h.

Constructor & Destructor Documentation

◆ ~AbstractWrapper()

template<typename Data >
virtual KWin::Xcb::AbstractWrapper< Data >::~AbstractWrapper ( )
inlinevirtual

Definition at line 244 of file xcbutils.h.

◆ AbstractWrapper() [1/3]

template<typename Data >
KWin::Xcb::AbstractWrapper< Data >::AbstractWrapper ( )
inlineprotected

Definition at line 322 of file xcbutils.h.

◆ AbstractWrapper() [2/3]

template<typename Data >
KWin::Xcb::AbstractWrapper< Data >::AbstractWrapper ( WindowId window,
Cookie cookie )
inlineexplicitprotected

Definition at line 329 of file xcbutils.h.

◆ AbstractWrapper() [3/3]

template<typename Data >
KWin::Xcb::AbstractWrapper< Data >::AbstractWrapper ( const AbstractWrapper< Data > & other)
inlineexplicitprotected

Definition at line 336 of file xcbutils.h.

Member Function Documentation

◆ data() [1/2]

template<typename Data >
const Reply * KWin::Xcb::AbstractWrapper< Data >::data ( )
inline

Definition at line 287 of file xcbutils.h.

◆ data() [2/2]

template<typename Data >
const Reply * KWin::Xcb::AbstractWrapper< Data >::data ( ) const
inline

Definition at line 292 of file xcbutils.h.

◆ getReply()

template<typename Data >
void KWin::Xcb::AbstractWrapper< Data >::getReply ( )
inlineprotected

Definition at line 344 of file xcbutils.h.

◆ isNull() [1/2]

template<typename Data >
bool KWin::Xcb::AbstractWrapper< Data >::isNull ( )
inline

Definition at line 269 of file xcbutils.h.

◆ isNull() [2/2]

template<typename Data >
bool KWin::Xcb::AbstractWrapper< Data >::isNull ( ) const
inline

Definition at line 274 of file xcbutils.h.

◆ isRetrieved()

template<typename Data >
bool KWin::Xcb::AbstractWrapper< Data >::isRetrieved ( ) const
inline

Definition at line 301 of file xcbutils.h.

◆ operator bool() [1/2]

template<typename Data >
KWin::Xcb::AbstractWrapper< Data >::operator bool ( )
inline

Definition at line 279 of file xcbutils.h.

◆ operator bool() [2/2]

template<typename Data >
KWin::Xcb::AbstractWrapper< Data >::operator bool ( ) const
inline

Definition at line 283 of file xcbutils.h.

◆ operator->()

template<typename Data >
const Reply * KWin::Xcb::AbstractWrapper< Data >::operator-> ( )
inline

Definition at line 264 of file xcbutils.h.

◆ operator=()

template<typename Data >
AbstractWrapper & KWin::Xcb::AbstractWrapper< Data >::operator= ( const AbstractWrapper< Data > & other)
inline

Definition at line 248 of file xcbutils.h.

◆ take()

template<typename Data >
Reply * KWin::Xcb::AbstractWrapper< Data >::take ( )
inline

Returns the value of the reply pointer referenced by this object. The reply pointer of this object will be reset to null. Calling any method which requires the reply to be valid will crash.

Callers of this function take ownership of the pointer.

Definition at line 312 of file xcbutils.h.

◆ window()

template<typename Data >
WindowId KWin::Xcb::AbstractWrapper< Data >::window ( ) const
inline

Definition at line 297 of file xcbutils.h.


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