#include <tdescreensaver.h>
Inherits TQWidget.
Public Member Functions | |
KScreenSaver (WId id=0) | |
Protected Member Functions | |
void | embed (TQWidget *widget) |
bool | eventFilter (TQObject *o, TQEvent *) |
Detailed Description
Provides a TQWidget for a screensaver to draw into.
You should derive from this widget and implement your screensaver's functionality. To use libkss, provide the following constants and functions:
extern "C" { const char *kss_applicationName = "yourappname"; const char *kss_description = I18N_NOOP( "Your screensaver" ); const char *kss_version = "1.0";
KScreenSaver *kss_create( WId d ) { // return your KScreenSaver derived screensaver }
TQDialog *kss_setup() { // return your modal setup dialog } }
Provides a TQWidget for a screensaver to draw into.
Definition at line 59 of file tdescreensaver.h.
Constructor & Destructor Documentation
◆ KScreenSaver()
KScreenSaver::KScreenSaver | ( | WId | id = 0 | ) |
- Parameters
-
id The winId() of the widget to draw the screensaver into.
Definition at line 42 of file tdescreensaver.cpp.
Member Function Documentation
◆ embed()
|
protected |
You cannot create a new widget with this widget as parent, since this widget may not be owned by your application.
In order to create widgets with a KScreenSaver as parent, create the widget with no parent, call embed(), and then show() the widget.
- Parameters
-
widget The widget to embed in the screensaver widget.
Definition at line 80 of file tdescreensaver.cpp.
The documentation for this class was generated from the following files: