<p>Thereisanothersomewhatsimilarmethodsforrequestingnewpreviews: GetPreviewBitmap()schedulesare-rendering(whennecessary)and returnsthepreviewwhatiscurrentlyavailable,eitherasapreviewof thepreviewor,whennothinghaschangedsincethelastcall,asthe finalthing. </p>
*/ class PageCache
{ public: /** The page cache is created with a reference to the slide sorter so thatithasaccesstoboththeviewandthemodelandsocanfill itselfwithrequestsforallorjustthevisiblepages.
/** When the requested preview bitmap does not yet exist or is not up-to-datethentherenderingofoneisscheduled.Otherwisethis methoddoesnothing.
*/ void RequestPreviewBitmap(const CacheKey aKey);
/** Tell the cache that the bitmap associated with the given request dataisnotup-to-dateanymore.Thiswillinvalidateallpreviews inothercachesthatrepresentthesamepageaswell. Anewpreviewisrequestedandwilllead eventuallytoarepaintoftheassociatedpageobject.
*/ void InvalidatePreviewBitmap(const CacheKey aKey);
/** Call this method when all preview bitmaps have to be generated anew. Thisisthecasewhenthesizeofthepageobjectsonthescreenhas changedorwhenthemodelhaschanged.
*/ void InvalidateCache();
/** With the precious flag you can control whether a bitmap can be removedorreducedinsizetomakeroomforotherbitmapsorisso preciousthatitwillnottouched.Atypicaluseistosetthe preciousflagforexactlythevisiblepages.
*/ void SetPreciousFlag(const CacheKey aKey, constbool bIsPrecious);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.