diff options
author | Michele Calgaro <[email protected]> | 2024-07-29 12:43:23 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-07-29 12:43:23 +0900 |
commit | fef846914f8db6dc117e206ef913d519bf6bb33e (patch) | |
tree | d6567b31f7f22d0c8c66eec947dff1960efa25ac /doc/man/man3/tqpixmapcache.3qt | |
parent | 8ef4ea451dd81dd66b34ed31aaa631f6df24a192 (diff) | |
download | tqt3-fef846914f8db6dc117e206ef913d519bf6bb33e.tar.gz tqt3-fef846914f8db6dc117e206ef913d519bf6bb33e.zip |
Rename basic widget nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'doc/man/man3/tqpixmapcache.3qt')
-rw-r--r-- | doc/man/man3/tqpixmapcache.3qt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/man/man3/tqpixmapcache.3qt b/doc/man/man3/tqpixmapcache.3qt index df41068cc..7054206ec 100644 --- a/doc/man/man3/tqpixmapcache.3qt +++ b/doc/man/man3/tqpixmapcache.3qt @@ -18,7 +18,7 @@ The TQPixmapCache class provides an application-global cache for pixmaps. .PP This class is a tool for optimized drawing with TQPixmap. You can use it to store temporary pixmaps that are expensive to generate without using more storage space than cacheLimit(). Use insert() to insert pixmaps, find() to find them and clear() to empty the cache. .PP -For example, QRadioButton has a non-trivial visual representation so we don't want to regenerate a pixmap whenever a radio button is displayed or changes state. In the function QRadioButton::drawButton(), we do not draw the radio button directly. Instead, we first check the global pixmap cache for a pixmap with the key "$qt_radio_nnn_", where \fCnnn\fR is a numerical value that specifies the the radio button state. If a pixmap is found, we bitBlt() it onto the widget and return. Otherwise, we create a new pixmap, draw the radio button in the pixmap, and finally insert the pixmap in the global pixmap cache, using the key above. The bitBlt() is ten times faster than drawing the radio button. All radio buttons in the program share the cached pixmap since TQPixmapCache is application-global. +For example, TQRadioButton has a non-trivial visual representation so we don't want to regenerate a pixmap whenever a radio button is displayed or changes state. In the function TQRadioButton::drawButton(), we do not draw the radio button directly. Instead, we first check the global pixmap cache for a pixmap with the key "$qt_radio_nnn_", where \fCnnn\fR is a numerical value that specifies the the radio button state. If a pixmap is found, we bitBlt() it onto the widget and return. Otherwise, we create a new pixmap, draw the radio button in the pixmap, and finally insert the pixmap in the global pixmap cache, using the key above. The bitBlt() is ten times faster than drawing the radio button. All radio buttons in the program share the cached pixmap since TQPixmapCache is application-global. .PP TQPixmapCache contains no member data, only static functions to access the global pixmap cache. It creates an internal TQCache for caching the pixmaps. .PP |