Documentation ¶
Index ¶
- type CachedPage
- type KeepReason
- type PageCache
- func (cache *PageCache) DontKeep(i int, reason KeepReason)
- func (cache *PageCache) DontKeepSlice(indices []int, reason KeepReason)
- func (cache *PageCache) Get(i int) (*CachedPage, bool)
- func (cache *PageCache) Insert(i int, pixbuf *gdk.Pixbuf, keepReason KeepReason)
- func (cache *PageCache) Keep(i int, reason KeepReason)
- func (cache *PageCache) Trim()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachedPage ¶
func NewCachedPage ¶
func NewCachedPage(pixbuf *gdk.Pixbuf) CachedPage
type KeepReason ¶
type KeepReason uint8
const ( KeepReasonPreload KeepReason = 1 << iota KeepReasonJumpmark )
type PageCache ¶
type PageCache struct { Pages map[int]CachedPage // contains filtered or unexported fields }
func NewPageCache ¶
func NewPageCache() PageCache
func (*PageCache) DontKeep ¶
func (cache *PageCache) DontKeep(i int, reason KeepReason)
func (*PageCache) DontKeepSlice ¶
func (cache *PageCache) DontKeepSlice(indices []int, reason KeepReason)
func (*PageCache) Insert ¶
func (cache *PageCache) Insert(i int, pixbuf *gdk.Pixbuf, keepReason KeepReason)
func (*PageCache) Keep ¶
func (cache *PageCache) Keep(i int, reason KeepReason)
Click to show internal directories.
Click to hide internal directories.