| 1 |
// Copyright (C) 2023 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 |
syntax = "proto3"; |
| 5 |
|
| 6 |
package QtGui; |
| 7 |
|
| 8 |
message QRgba64 { |
| 9 |
uint64 rgba64 = 1; |
| 10 |
} |
| 11 |
|
| 12 |
message QColor { |
| 13 |
oneof color { |
| 14 |
QRgba64 rgba64 = 1; |
| 15 |
uint32 rgba = 2; |
| 16 |
} |
| 17 |
} |
| 18 |
|
| 19 |
message QMatrix4x4 { |
| 20 |
// 16 floats in row-major order |
| 21 |
repeated float m = 1; |
| 22 |
} |
| 23 |
|
| 24 |
message QVector2D { |
| 25 |
float x_pos = 1; |
| 26 |
float y_pos = 2; |
| 27 |
} |
| 28 |
|
| 29 |
message QVector3D { |
| 30 |
float x_pos = 1; |
| 31 |
float y_pos = 2; |
| 32 |
float z_pos = 3; |
| 33 |
} |
| 34 |
|
| 35 |
message QVector4D { |
| 36 |
float x_pos = 1; |
| 37 |
float y_pos = 2; |
| 38 |
float z_pos = 3; |
| 39 |
float w_pos = 4; |
| 40 |
} |
| 41 |
|
| 42 |
message QTransform { |
| 43 |
repeated double m = 1; |
| 44 |
} |
| 45 |
|
| 46 |
message QQuaternion { |
| 47 |
float scalar = 1; |
| 48 |
float x = 2; |
| 49 |
float y = 3; |
| 50 |
float z = 4; |
| 51 |
} |
| 52 |
|
| 53 |
message QImage { |
| 54 |
bytes data = 1; |
| 55 |
string format = 2; // see QImageWriter::supportedImageFormats() |
| 56 |
} |