Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/drm_output.h
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | 47 | public: | |||
---|---|---|---|---|---|
60 | bool showCursor(); | 60 | bool showCursor(); | ||
61 | bool hideCursor(); | 61 | bool hideCursor(); | ||
62 | void updateCursor(); | 62 | void updateCursor(); | ||
63 | void moveCursor(const QPoint &globalPos); | 63 | void moveCursor(const QPoint &globalPos); | ||
64 | bool init(drmModeConnector *connector); | 64 | bool init(drmModeConnector *connector); | ||
65 | bool present(DrmBuffer *buffer); | 65 | bool present(DrmBuffer *buffer); | ||
66 | void pageFlipped(); | 66 | void pageFlipped(); | ||
67 | 67 | | |||
68 | /** | | |||
69 | * Enable or disable the output. | | |||
70 | * This differs from updateDpms as it also | | |||
71 | * removes the wl_output | | |||
72 | * The default is on | | |||
73 | */ | | |||
74 | void setEnabled(bool enabled); | | |||
75 | | ||||
76 | QSize pixelSize() const override; | 68 | QSize pixelSize() const override; | ||
77 | 69 | | |||
78 | int currentRefreshRate() const; | 70 | int currentRefreshRate() const; | ||
79 | // These values are defined by the kernel | 71 | // These values are defined by the kernel | ||
80 | enum class DpmsMode { | 72 | enum class DpmsMode { | ||
81 | On = DRM_MODE_DPMS_ON, | 73 | On = DRM_MODE_DPMS_ON, | ||
82 | Standby = DRM_MODE_DPMS_STANDBY, | 74 | Standby = DRM_MODE_DPMS_STANDBY, | ||
83 | Suspend = DRM_MODE_DPMS_SUSPEND, | 75 | Suspend = DRM_MODE_DPMS_SUSPEND, | ||
▲ Show 20 Lines • Show All 96 Lines • Show Last 20 Lines |