Changeset View
Changeset View
Standalone View
Standalone View
libkwineffects/kwineffects.cpp
Show First 20 Lines • Show All 431 Lines • ▼ Show 20 Line(s) | 431 | { | |||
---|---|---|---|---|---|
432 | return d->screenProjectionMatrix; | 432 | return d->screenProjectionMatrix; | ||
433 | } | 433 | } | ||
434 | 434 | | |||
435 | class ScreenPaintData::Private | 435 | class ScreenPaintData::Private | ||
436 | { | 436 | { | ||
437 | public: | 437 | public: | ||
438 | QMatrix4x4 projectionMatrix; | 438 | QMatrix4x4 projectionMatrix; | ||
439 | QRect outputGeometry; | 439 | QRect outputGeometry; | ||
440 | int screenRotation = 0; | ||||
440 | }; | 441 | }; | ||
441 | 442 | | |||
442 | ScreenPaintData::ScreenPaintData() | 443 | ScreenPaintData::ScreenPaintData() | ||
443 | : PaintData() | 444 | : PaintData() | ||
444 | , d(new Private()) | 445 | , d(new Private()) | ||
445 | { | 446 | { | ||
446 | } | 447 | } | ||
447 | 448 | | |||
448 | ScreenPaintData::ScreenPaintData(const QMatrix4x4 &projectionMatrix, const QRect &outputGeometry) | 449 | ScreenPaintData::ScreenPaintData(const QMatrix4x4 &projectionMatrix, int rotation, const QRect &outputGeometry) | ||
449 | : PaintData() | 450 | : PaintData() | ||
450 | , d(new Private()) | 451 | , d(new Private()) | ||
451 | { | 452 | { | ||
452 | d->projectionMatrix = projectionMatrix; | 453 | d->projectionMatrix = projectionMatrix; | ||
453 | d->outputGeometry = outputGeometry; | 454 | d->outputGeometry = outputGeometry; | ||
455 | d->screenRotation = rotation; | ||||
454 | } | 456 | } | ||
455 | 457 | | |||
456 | ScreenPaintData::~ScreenPaintData() = default; | 458 | ScreenPaintData::~ScreenPaintData() = default; | ||
457 | 459 | | |||
458 | ScreenPaintData::ScreenPaintData(const ScreenPaintData &other) | 460 | ScreenPaintData::ScreenPaintData(const ScreenPaintData &other) | ||
459 | : PaintData() | 461 | : PaintData() | ||
460 | , d(new Private()) | 462 | , d(new Private()) | ||
461 | { | 463 | { | ||
▲ Show 20 Lines • Show All 73 Lines • ▼ Show 20 Line(s) | 536 | { | |||
535 | return d->projectionMatrix; | 537 | return d->projectionMatrix; | ||
536 | } | 538 | } | ||
537 | 539 | | |||
538 | QRect ScreenPaintData::outputGeometry() const | 540 | QRect ScreenPaintData::outputGeometry() const | ||
539 | { | 541 | { | ||
540 | return d->outputGeometry; | 542 | return d->outputGeometry; | ||
541 | } | 543 | } | ||
542 | 544 | | |||
545 | int ScreenPaintData::screenRotation() const | ||||
546 | { | ||||
547 | return d->screenRotation; | ||||
548 | } | ||||
549 | | ||||
543 | //**************************************** | 550 | //**************************************** | ||
544 | // Effect | 551 | // Effect | ||
545 | //**************************************** | 552 | //**************************************** | ||
546 | 553 | | |||
547 | Effect::Effect() | 554 | Effect::Effect() | ||
548 | { | 555 | { | ||
549 | } | 556 | } | ||
550 | 557 | | |||
▲ Show 20 Lines • Show All 1407 Lines • Show Last 20 Lines |