Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qxcbobject.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QXCBOBJECT_H
5#define QXCBOBJECT_H
6
7#include "qxcbconnection.h"
8
10
12{
13public:
14 QXcbObject(QXcbConnection *connection = nullptr) : m_connection(connection) {}
15
17 QXcbConnection *connection() const { return m_connection; }
18
19 xcb_atom_t atom(QXcbAtom::Atom atom) const { return m_connection->atom(atom); }
20 xcb_connection_t *xcb_connection() const { return m_connection->xcb_connection(); }
21
22private:
23 QXcbConnection *m_connection;
24};
25
27
28#endif
xcb_connection_t * xcb_connection() const
xcb_atom_t atom(QXcbAtom::Atom qatom) const
QXcbConnection * connection() const
Definition qxcbobject.h:17
xcb_connection_t * xcb_connection() const
Definition qxcbobject.h:20
xcb_atom_t atom(QXcbAtom::Atom atom) const
Definition qxcbobject.h:19
void setConnection(QXcbConnection *connection)
Definition qxcbobject.h:16
QXcbObject(QXcbConnection *connection=nullptr)
Definition qxcbobject.h:14
Combined button and popup list for selecting options.