Definition at line 939 of file qpaintengine_opengl.cpp.
◆ QGLStrokeTableHash
◆ addCacheElement()
Definition at line 979 of file qpaintengine_opengl.cpp.
985 CacheInfo cache_entry(path, stroke, pen);
The QPainterPath class provides a container for painting operations, enabling graphical shapes to be ...
Q_CORE_EXPORT int qrand()
const T value(const Key &key) const
Returns the value associated with the key.
QHash< Key, T >::iterator insert(const Key &key, const T &value)
Inserts a new item with the key and a value of value.
QPainterPath stroked_path
int remove(const Key &key, const T &value)
Removes all the items that have the key and the value value from the hash.
int size() const
Returns the number of items in the hash.
QList< Key > keys() const
Returns a list containing all the keys in the hash, in an arbitrary order.
static QPainterPath strokeForPath(const QPainterPath &path, const QPen &cpen)
◆ getStrokedPath()
Definition at line 953 of file qpaintengine_opengl.cpp.
956 for (
int i = 0; i < path.
elementCount() && i <= 2; i++) {
967 const CacheInfo &cache_info = it.value();
968 if (cache_info.path == path && cache_info.pen == pen)
969 return cache_info.stroked_path;
QHash< Key, T >::const_iterator constFind(const Key &key, const T &value) const
Returns an iterator pointing to the item with the key and the value in the hash.
#define it(className, varName)
qreal y
the y coordinate of the element's position.
const QPainterPath::Element & elementAt(int i) const
Returns the element at the given index in the painter path.
const_iterator constEnd() const
Returns a const STL-style iterator pointing to the imaginary item after the last item in the hash...
QPainterPath addCacheElement(quint64 hash_val, QPainterPath path, const QPen &pen)
qreal x
the x coordinate of the element's position.
int elementCount() const
Returns the number of path elements in the painter path.
friend class const_iterator
◆ maxCacheSize()
int QGLStrokeCache::maxCacheSize |
( |
| ) |
const |
|
inlineprotected |
◆ cache
The documentation for this class was generated from the following file: