SkAutoLockColors Class Reference

#include <SkBitmap.h>

Collaboration diagram for SkAutoLockColors:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SkAutoLockColors ()
 SkAutoLockColors (const SkBitmap &bm)
 SkAutoLockColors (SkColorTable *ctable)
 ~SkAutoLockColors ()
const SkPMColorcolors () const
const SkPMColorlockColors (SkColorTable *ctable)
const SkPMColorlockColors (const SkBitmap &bm)

Detailed Description

Helper class that performs the lock/unlockColors calls on a colortable. The destructor will call unlockColors(false) if it has a bitmap's colortable

Definition at line 588 of file SkBitmap.h.


Constructor & Destructor Documentation

SkAutoLockColors::SkAutoLockColors (  )  [inline]

Initialize with no bitmap. Call lockColors(bitmap) to lock bitmap's colortable

Definition at line 593 of file SkBitmap.h.

SkAutoLockColors::SkAutoLockColors ( const SkBitmap bm  )  [inline, explicit]

Initialize with bitmap, locking its colortable if present

Definition at line 596 of file SkBitmap.h.

SkAutoLockColors::SkAutoLockColors ( SkColorTable ctable  )  [inline, explicit]

Initialize with a colortable (may be null)

Definition at line 602 of file SkBitmap.h.

SkAutoLockColors::~SkAutoLockColors (  )  [inline]

Definition at line 606 of file SkBitmap.h.


Member Function Documentation

const SkPMColor* SkAutoLockColors::colors (  )  const [inline]

Return the currently locked colors, or NULL if no bitmap's colortable is currently locked.

Definition at line 615 of file SkBitmap.h.

const SkPMColor* SkAutoLockColors::lockColors ( const SkBitmap bm  )  [inline]

Definition at line 629 of file SkBitmap.h.

const SkPMColor* SkAutoLockColors::lockColors ( SkColorTable ctable  )  [inline]

Locks the table and returns is colors (assuming ctable is not null) and unlocks the previous table if one was present

Definition at line 620 of file SkBitmap.h.


The documentation for this class was generated from the following file:

Generated on Tue Oct 20 11:03:41 2009 for Skia by  doxygen 1.6.1