Changeset View
Changeset View
Standalone View
Standalone View
libkwineffects/kwineffects.cpp
Show First 20 Lines • Show All 417 Lines • ▼ Show 20 Line(s) | 417 | { | |||
---|---|---|---|---|---|
418 | return d->screenProjectionMatrix; | 418 | return d->screenProjectionMatrix; | ||
419 | } | 419 | } | ||
420 | 420 | | |||
421 | class ScreenPaintData::Private | 421 | class ScreenPaintData::Private | ||
422 | { | 422 | { | ||
423 | public: | 423 | public: | ||
424 | QMatrix4x4 projectionMatrix; | 424 | QMatrix4x4 projectionMatrix; | ||
425 | QRect outputGeometry; | 425 | QRect outputGeometry; | ||
426 | int screenRotation = 0; | ||||
426 | }; | 427 | }; | ||
427 | 428 | | |||
428 | ScreenPaintData::ScreenPaintData() | 429 | ScreenPaintData::ScreenPaintData() | ||
429 | : PaintData() | 430 | : PaintData() | ||
430 | , d(new Private()) | 431 | , d(new Private()) | ||
431 | { | 432 | { | ||
432 | } | 433 | } | ||
433 | 434 | | |||
434 | ScreenPaintData::ScreenPaintData(const QMatrix4x4 &projectionMatrix, const QRect &outputGeometry) | 435 | ScreenPaintData::ScreenPaintData(const QMatrix4x4 &projectionMatrix, int rotation, const QRect &outputGeometry) | ||
435 | : PaintData() | 436 | : PaintData() | ||
436 | , d(new Private()) | 437 | , d(new Private()) | ||
437 | { | 438 | { | ||
438 | d->projectionMatrix = projectionMatrix; | 439 | d->projectionMatrix = projectionMatrix; | ||
439 | d->outputGeometry = outputGeometry; | 440 | d->outputGeometry = outputGeometry; | ||
441 | d->screenRotation = rotation; | ||||
440 | } | 442 | } | ||
441 | 443 | | |||
442 | ScreenPaintData::~ScreenPaintData() = default; | 444 | ScreenPaintData::~ScreenPaintData() = default; | ||
443 | 445 | | |||
444 | ScreenPaintData::ScreenPaintData(const ScreenPaintData &other) | 446 | ScreenPaintData::ScreenPaintData(const ScreenPaintData &other) | ||
445 | : PaintData() | 447 | : PaintData() | ||
446 | , d(new Private()) | 448 | , d(new Private()) | ||
447 | { | 449 | { | ||
▲ Show 20 Lines • Show All 73 Lines • ▼ Show 20 Line(s) | 522 | { | |||
521 | return d->projectionMatrix; | 523 | return d->projectionMatrix; | ||
522 | } | 524 | } | ||
523 | 525 | | |||
524 | QRect ScreenPaintData::outputGeometry() const | 526 | QRect ScreenPaintData::outputGeometry() const | ||
525 | { | 527 | { | ||
526 | return d->outputGeometry; | 528 | return d->outputGeometry; | ||
527 | } | 529 | } | ||
528 | 530 | | |||
531 | int ScreenPaintData::screenRotation() const | ||||
532 | { | ||||
533 | return d->screenRotation; | ||||
534 | } | ||||
535 | | ||||
529 | //**************************************** | 536 | //**************************************** | ||
530 | // Effect | 537 | // Effect | ||
531 | //**************************************** | 538 | //**************************************** | ||
532 | 539 | | |||
533 | Effect::Effect() | 540 | Effect::Effect() | ||
534 | { | 541 | { | ||
535 | } | 542 | } | ||
536 | 543 | | |||
▲ Show 20 Lines • Show All 1407 Lines • Show Last 20 Lines |