Changeset View
Changeset View
Standalone View
Standalone View
src/client/buffer.h
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | |||||
47 | public: | 47 | public: | ||
48 | /** | 48 | /** | ||
49 | * All image formats supported by the implementation. | 49 | * All image formats supported by the implementation. | ||
50 | **/ | 50 | **/ | ||
51 | enum class Format { | 51 | enum class Format { | ||
52 | ARGB32, ///< 32-bit ARGB format, can be used for QImage::Format_ARGB32 and QImage::Format_ARGB32_Premultiplied | 52 | ARGB32, ///< 32-bit ARGB format, can be used for QImage::Format_ARGB32 and QImage::Format_ARGB32_Premultiplied | ||
53 | RGB32 ///< 32-bit RGB format, can be used for QImage::Format_RGB32 | 53 | RGB32 ///< 32-bit RGB format, can be used for QImage::Format_RGB32 | ||
54 | }; | 54 | }; | ||
55 | | ||||
55 | ~Buffer(); | 56 | ~Buffer(); | ||
56 | /** | 57 | /** | ||
57 | * Copies the data from @p src into the Buffer. | 58 | * Copies the data from @p src into the Buffer. | ||
58 | **/ | 59 | **/ | ||
59 | void copy(const void *src); | 60 | void copy(const void *src); | ||
60 | /** | 61 | /** | ||
61 | * Sets the Buffer as @p released. | 62 | * Sets the Buffer as @p released. | ||
62 | * This is automatically invoked when the Wayland server sends the release event. | 63 | * This is automatically invoked when the Wayland server sends the release event. | ||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |