| KWin
    | 
#include "effect/globals.h"#include "effect/xcb.h"#include "main.h"#include "utils/c_ptr.h"#include "utils/version.h"#include <QList>#include <QRect>#include <QRegion>#include <xcb/composite.h>#include <xcb/randr.h>#include <xcb/xcb.h>#include <xcb/shm.h>Go to the source code of this file.
| Namespaces | |
| namespace | KWin | 
| namespace | KWin::Xcb | 
| namespace | KWin::Xcb::RandR | 
| Macros | |
| #define | XCB_WRAPPER_DATA(__NAME__, __REQUEST__, ...) | 
| Macro to create the WrapperData subclass. | |
| #define | XCB_WRAPPER(__NAME__, __REQUEST__, ...) | 
| Macro to create Wrapper typedef and WrapperData. | |
| Typedefs | |
| typedef xcb_window_t | KWin::Xcb::WindowId | 
| Functions | |
| uint32_t | KWin::Xcb::toXNative (qreal value) | 
| QRect | KWin::Xcb::toXNative (const QRectF &r) | 
| qreal | KWin::Xcb::fromXNative (int value) | 
| QRectF | KWin::Xcb::fromXNative (const QRect &r) | 
| QSizeF | KWin::Xcb::fromXNative (const QSize &s) | 
| QRectF | KWin::Xcb::nativeFloor (const QRectF &rect) | 
| #define XCB_WRAPPER | ( | __NAME__, | |
| __REQUEST__, | |||
| ... ) | 
Macro to create Wrapper typedef and WrapperData.
This macro expands the XCB_WRAPPER_DATA macro and creates an additional typedef for Wrapper with name __NAME__. The created WrapperData is also derived from __NAME__ with "Data" as suffix.
| __NAME__ | The name for the Wrapper typedef | 
| __REQUEST__ | The name of the xcb request, passed to XCB_WRAPPER_DATA | 
| __VA_ARGS__ | The variadic template arguments for Wrapper and WrapperData | 
Definition at line 572 of file xcbutils.h.
| #define XCB_WRAPPER_DATA | ( | __NAME__, | |
| __REQUEST__, | |||
| ... ) | 
Macro to create the WrapperData subclass.
Creates a struct with name __NAME__ for the xcb request identified by __REQUEST__. The variadic arguments are used to pass as template arguments to the WrapperData.
The __REQUEST__ is the common prefix of the cookie type, reply type, request function and reply function. E.g. "xcb_get_geometry" is used to create: 
| __NAME__ | The name of the WrapperData subclass | 
| __REQUEST__ | The name of the xcb request, e.g. xcb_get_geometry | 
| __VA_ARGS__ | The variadic template arguments, e.g. xcb_drawable_t | 
Definition at line 553 of file xcbutils.h.