Changeset View
Changeset View
Standalone View
Standalone View
abstract_output.h
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Line(s) | 61 | public: | |||
---|---|---|---|---|---|
66 | bool isEnabled() const { | 66 | bool isEnabled() const { | ||
67 | return !m_waylandOutput.isNull(); | 67 | return !m_waylandOutput.isNull(); | ||
68 | } | 68 | } | ||
69 | 69 | | |||
70 | virtual QSize pixelSize() const = 0; | 70 | virtual QSize pixelSize() const = 0; | ||
71 | qreal scale() const { | 71 | qreal scale() const { | ||
72 | return m_scale; | 72 | return m_scale; | ||
73 | } | 73 | } | ||
74 | /* | 74 | /** | ||
75 | * The geometry of this output in global compositor co-ordinates (i.e scaled) | 75 | * The geometry of this output in global compositor co-ordinates (i.e scaled) | ||
76 | */ | 76 | **/ | ||
77 | QRect geometry() const; | 77 | QRect geometry() const; | ||
78 | QSize physicalSize() const; | 78 | QSize physicalSize() const; | ||
79 | Qt::ScreenOrientation orientation() const { | 79 | Qt::ScreenOrientation orientation() const { | ||
80 | return m_orientation; | 80 | return m_orientation; | ||
81 | } | 81 | } | ||
82 | 82 | | |||
83 | /* | 83 | /** | ||
84 | * Current refresh rate in 1/ms | 84 | * Current refresh rate in 1/ms. | ||
85 | */ | 85 | **/ | ||
86 | int refreshRate() const; | 86 | int refreshRate() const; | ||
87 | 87 | | |||
88 | bool isInternal() const { | 88 | bool isInternal() const { | ||
89 | return m_internal; | 89 | return m_internal; | ||
90 | } | 90 | } | ||
91 | 91 | | |||
92 | void setGlobalPos(const QPoint &pos); | 92 | void setGlobalPos(const QPoint &pos); | ||
93 | void setScale(qreal scale); | 93 | void setScale(qreal scale); | ||
94 | 94 | | |||
95 | /** | 95 | /** | ||
96 | * This sets the changes and tests them against the specific output | 96 | * This sets the changes and tests them against the specific output. | ||
97 | */ | 97 | **/ | ||
98 | void setChanges(KWayland::Server::OutputChangeSet *changeset); | 98 | void setChanges(KWayland::Server::OutputChangeSet *changeset); | ||
99 | 99 | | |||
100 | QPointer<KWayland::Server::OutputInterface> waylandOutput() const { | 100 | QPointer<KWayland::Server::OutputInterface> waylandOutput() const { | ||
101 | return m_waylandOutput; | 101 | return m_waylandOutput; | ||
102 | } | 102 | } | ||
103 | 103 | | |||
104 | /** | 104 | /** | ||
105 | * Enable or disable the output. | 105 | * Enable or disable the output. | ||
106 | * This differs from updateDpms as it also | 106 | * | ||
107 | * removes the wl_output. | 107 | * This differs from updateDpms as it also removes the wl_output. | ||
108 | * The default is on. | 108 | * The default is on. | ||
109 | */ | 109 | **/ | ||
110 | void setEnabled(bool enable); | 110 | void setEnabled(bool enable); | ||
111 | 111 | | |||
112 | virtual int getGammaRampSize() const { | 112 | virtual int getGammaRampSize() const { | ||
113 | return 0; | 113 | return 0; | ||
114 | } | 114 | } | ||
115 | virtual bool setGammaRamp(const ColorCorrect::GammaRamp &gamma) { | 115 | virtual bool setGammaRamp(const ColorCorrect::GammaRamp &gamma) { | ||
116 | Q_UNUSED(gamma); | 116 | Q_UNUSED(gamma); | ||
117 | return false; | 117 | return false; | ||
▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines |