Changeset View
Changeset View
Standalone View
Standalone View
platform.h
Show First 20 Lines • Show All 315 Lines • ▼ Show 20 Line(s) | 82 | public: | |||
---|---|---|---|---|---|
316 | * Whether the cursor is currently hidden. | 316 | * Whether the cursor is currently hidden. | ||
317 | * @see showCursor | 317 | * @see showCursor | ||
318 | * @see hideCursor | 318 | * @see hideCursor | ||
319 | * @since 5.9 | 319 | * @since 5.9 | ||
320 | */ | 320 | */ | ||
321 | bool isCursorHidden() const { | 321 | bool isCursorHidden() const { | ||
322 | return m_hideCursorCounter > 0; | 322 | return m_hideCursorCounter > 0; | ||
323 | } | 323 | } | ||
324 | | ||||
325 | bool handlesOutputs() const { | | |||
326 | return m_handlesOutputs; | | |||
327 | } | | |||
328 | bool isReady() const { | 324 | bool isReady() const { | ||
329 | return m_ready; | 325 | return m_ready; | ||
330 | } | 326 | } | ||
331 | void setInitialWindowSize(const QSize &size) { | 327 | void setInitialWindowSize(const QSize &size) { | ||
332 | m_initialWindowSize = size; | 328 | m_initialWindowSize = size; | ||
333 | } | 329 | } | ||
334 | void setDeviceIdentifier(const QByteArray &identifier) { | 330 | void setDeviceIdentifier(const QByteArray &identifier) { | ||
335 | m_deviceIdentifier = identifier; | 331 | m_deviceIdentifier = identifier; | ||
▲ Show 20 Lines • Show All 149 Lines • ▼ Show 20 Line(s) | 476 | Q_SIGNALS: | |||
485 | /** | 481 | /** | ||
486 | * Emitted by backends using a one screen (nested window) approach and when the size of that changes. | 482 | * Emitted by backends using a one screen (nested window) approach and when the size of that changes. | ||
487 | */ | 483 | */ | ||
488 | void screenSizeChanged(); | 484 | void screenSizeChanged(); | ||
489 | 485 | | |||
490 | protected: | 486 | protected: | ||
491 | explicit Platform(QObject *parent = nullptr); | 487 | explicit Platform(QObject *parent = nullptr); | ||
492 | void setSoftWareCursor(bool set); | 488 | void setSoftWareCursor(bool set); | ||
493 | void handleOutputs() { | | |||
494 | m_handlesOutputs = true; | | |||
495 | } | | |||
496 | void repaint(const QRect &rect); | 489 | void repaint(const QRect &rect); | ||
497 | void setReady(bool ready); | 490 | void setReady(bool ready); | ||
498 | QSize initialWindowSize() const { | 491 | QSize initialWindowSize() const { | ||
499 | return m_initialWindowSize; | 492 | return m_initialWindowSize; | ||
500 | } | 493 | } | ||
501 | QByteArray deviceIdentifier() const { | 494 | QByteArray deviceIdentifier() const { | ||
502 | return m_deviceIdentifier; | 495 | return m_deviceIdentifier; | ||
503 | } | 496 | } | ||
Show All 29 Lines | |||||
533 | virtual void doShowCursor(); | 526 | virtual void doShowCursor(); | ||
534 | 527 | | |||
535 | private: | 528 | private: | ||
536 | void triggerCursorRepaint(); | 529 | void triggerCursorRepaint(); | ||
537 | bool m_softWareCursor = false; | 530 | bool m_softWareCursor = false; | ||
538 | struct { | 531 | struct { | ||
539 | QRect lastRenderedGeometry; | 532 | QRect lastRenderedGeometry; | ||
540 | } m_cursor; | 533 | } m_cursor; | ||
541 | bool m_handlesOutputs = false; | | |||
542 | bool m_ready = false; | 534 | bool m_ready = false; | ||
543 | QSize m_initialWindowSize; | 535 | QSize m_initialWindowSize; | ||
544 | QByteArray m_deviceIdentifier; | 536 | QByteArray m_deviceIdentifier; | ||
545 | bool m_pointerWarping = false; | 537 | bool m_pointerWarping = false; | ||
546 | bool m_outputsEnabled = true; | 538 | bool m_outputsEnabled = true; | ||
547 | int m_initialOutputCount = 1; | 539 | int m_initialOutputCount = 1; | ||
548 | qreal m_initialOutputScale = 1; | 540 | qreal m_initialOutputScale = 1; | ||
549 | EGLDisplay m_eglDisplay; | 541 | EGLDisplay m_eglDisplay; | ||
Show All 14 Lines |