Discover Packages
github.com/gentlemanautomaton/giocache
package
module
Version:
v0.0.0-...-291821f
Opens a new window with list of versions in this module.
Published: Oct 5, 2022
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
giocache
Package giocache
provides an experimental layout cache implementation for
Gio .
The implementation is rudimentary and probably not suitable for production
use.
Expand ▾
Collapse ▴
Documentation
¶
Package giocache provides an experimental layout cache implementation
for Gio.
Cache holds cached rendering operations for gio.
New prepares a new operation cache.
Add adds the given call to the cache and returns an ID for future use.
Clear removes all entries from the cache.
Context returns a graphical context for the cache with the given
constraints and metric.
TODO: Consider making constraints cache-wide, provide an update function,
and invalidate the cache when the constraints (and/or metric?) change.
Delete marks the call in the cache with the given ID as dead.
Get retrieves a call from the cache for id. The call is only valid until
the cache is cleared or purged. It returns false if the id is no longer
valid.
Purge clears the cache if the number of dead items exceed threshold.
It returns true if the cache was cleared.
ID identifies an operation within the cache.
OK returns true if the ID is valid.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.