KBlankEffect Class Reference

Blanks a widget using various effects. More...

#include <kscreensaver.h>

Inheritance diagram for KBlankEffect:

QObject

List of all members.


Public Types

enum  Effect {
  Random = -1, Blank = 0, SweepRight, SweepDown,
  Blocks, MaximumEffects
}
typedef void(KBlankEffect::* BlankEffect )()

Signals

void doneBlank ()

Public Member Functions

 KBlankEffect (QObject *parent=0)
void blank (QWidget *w, Effect effect=Random)

Protected Slots

void timeout ()

Protected Member Functions

void finished ()
void blankNormal ()
void blankSweepRight ()
void blankSweepDown ()
void blankBlocks ()

Protected Attributes

KBlankEffectPrivate * d

Static Protected Attributes

static BlankEffect effects []

Detailed Description

Blanks a widget using various effects.

Blanks a widget using various effects.

Author:
Martin R. Jones <mjones@kde.org>

Definition at line 94 of file kscreensaver.h.


Member Function Documentation

void KBlankEffect::blank ( QWidget w,
Effect  effect = Random 
)

Blank a widget using the specified effect.

Some blanking effects take some time, so you should connect to doneBlank() to know when the blanking is complete.

Parameters:
w The widget to blank.
effect The type of effect to use.

Definition at line 140 of file kscreensaver.cpp.

void KBlankEffect::doneBlank (  )  [signal]

emitted when a blanking effect has completed.


Member Data Documentation

KBlankEffect::BlankEffect KBlankEffect::effects [static, protected]

Initial value:

 {
    &KBlankEffect::blankNormal,
    &KBlankEffect::blankSweepRight,
    &KBlankEffect::blankSweepDown,
    &KBlankEffect::blankBlocks
}

Definition at line 134 of file kscreensaver.h.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys