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