You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
core/settings-daemon/touchpad/x11/propertyinfo.h

38 lines
671 B
C

/*
SPDX-FileCopyrightText: 2013 Alexander Mezin <mezin.alexander@gmail.com>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef PROPERTYINFO_H
#define PROPERTYINFO_H
#include <QSharedPointer>
#include <QX11Info>
#include <X11/Xdefs.h>
void XDeleter(void *p);
struct PropertyInfo {
Atom type;
int format;
QSharedPointer<unsigned char> data;
unsigned long nitems;
float *f;
int *i;
char *b;
Display *display;
int device;
Atom prop;
PropertyInfo();
PropertyInfo(Display *display, int device, Atom prop, Atom floatType);
QVariant value(unsigned offset) const;
void set();
};
#endif // PROPERTYINFO_H