Changeset View
Changeset View
Standalone View
Standalone View
src/server/output_interface.h
Show All 30 Lines | |||||
31 | struct wl_client; | 31 | struct wl_client; | ||
32 | struct wl_resource; | 32 | struct wl_resource; | ||
33 | 33 | | |||
34 | namespace KWayland | 34 | namespace KWayland | ||
35 | { | 35 | { | ||
36 | namespace Server | 36 | namespace Server | ||
37 | { | 37 | { | ||
38 | 38 | | |||
39 | class ClientConnection; | ||||
39 | class Display; | 40 | class Display; | ||
40 | 41 | | |||
41 | /** | 42 | /** | ||
42 | * @brief Global for the wl_output interface. | 43 | * @brief Global for the wl_output interface. | ||
43 | * | 44 | * | ||
44 | **/ | 45 | **/ | ||
45 | class KWAYLANDSERVER_EXPORT OutputInterface : public Global | 46 | class KWAYLANDSERVER_EXPORT OutputInterface : public Global | ||
46 | { | 47 | { | ||
▲ Show 20 Lines • Show All 73 Lines • ▼ Show 20 Line(s) | 56 | public: | |||
120 | void setDpmsSupported(bool supported); | 121 | void setDpmsSupported(bool supported); | ||
121 | /** | 122 | /** | ||
122 | * Sets the currently used dpms mode. | 123 | * Sets the currently used dpms mode. | ||
123 | * Default is @c DpmsMode::On. | 124 | * Default is @c DpmsMode::On. | ||
124 | * @since 5.5 | 125 | * @since 5.5 | ||
125 | **/ | 126 | **/ | ||
126 | void setDpmsMode(DpmsMode mode); | 127 | void setDpmsMode(DpmsMode mode); | ||
127 | 128 | | |||
129 | /** | ||||
130 | * @returns all wl_resources bound for the @p client | ||||
131 | * @since 5.27 | ||||
132 | **/ | ||||
133 | QVector<wl_resource *> clientResources(ClientConnection *client) const; | ||||
134 | | ||||
128 | static OutputInterface *get(wl_resource *native); | 135 | static OutputInterface *get(wl_resource *native); | ||
129 | 136 | | |||
130 | Q_SIGNALS: | 137 | Q_SIGNALS: | ||
131 | void physicalSizeChanged(const QSize&); | 138 | void physicalSizeChanged(const QSize&); | ||
132 | void globalPositionChanged(const QPoint&); | 139 | void globalPositionChanged(const QPoint&); | ||
133 | void manufacturerChanged(const QString&); | 140 | void manufacturerChanged(const QString&); | ||
134 | void modelChanged(const QString&); | 141 | void modelChanged(const QString&); | ||
135 | void pixelSizeChanged(const QSize&); | 142 | void pixelSizeChanged(const QSize&); | ||
Show All 32 Lines |