#include <VirtualJoystick.h>
Inherits QWidget.
Definition at line 7 of file VirtualJoystick.h.
| VirtualJoystick::VirtualJoystick |
( |
QWidget * |
parent, |
|
|
const std::string & |
name |
|
) |
| |
Definition at line 5 of file VirtualJoystick.cc.
9 title =
new QLabel(tr(name.c_str()),
this);
10 axis1 =
new QLabel(
"Axis 1: ",
this);
11 axis1->setGeometry(150, 0, axis1->width(), axis1->height());
12 axis2 =
new QLabel(
"Axis 2: ",
this);
13 axis2->setGeometry(150, 13, axis1->width(), axis1->height());
14 setFixedSize(250, 250);
15 setMouseTracking(
true);
18 setCursor(Qt::CrossCursor);
19 widgetCenter = rect().center() + QPointF(0,25);
20 painterCenter = widgetCenter - QPointF(0,10);
22 mousePosition = painterCenter;
23 baseGrad = QLinearGradient(widgetCenter-QPoint(38,0), widgetCenter+QPoint(38,0));
24 baseGrad.setColorAt(0, QColor(160, 160, 160));
25 baseGrad.setColorAt(1, QColor(20, 20, 20));
26 baseGrad.setSpread(QGradient::ReflectSpread);
27 baseColor = QColor(80, 80, 80);
| VirtualJoystick::~VirtualJoystick |
( |
| ) |
|
| void VirtualJoystick::axisChanged |
( |
double |
, |
|
|
double |
|
|
) |
| |
|
signal |
The documentation for this class was generated from the following files:
- /build/rock-master-18.09-gui-rock-widget-collection-0.20180124/src/virtual_joystick/VirtualJoystick.h
- /build/rock-master-18.09-gui-rock-widget-collection-0.20180124/src/virtual_joystick/VirtualJoystick.cc