9#if !defined(OWL_CELARRAY_H)
13#if defined(BI_HAS_PRAGMA_ONCE)
54 operator const TBitmap&()
const;
60 int NumAllocCels()
const;
63 TSize CelSize()
const;
72 void SetCelSize(
TSize size);
74 void SetNGrowBy(
int growBy);
75 void SetCurRow(
int raw);
82 bool Remove(
int index = -1);
93 bool BitBlt(
int index,
TDC&,
int x,
int y,
int dx,
int dy,
111 bool MaybeResize(
int need);
235inline TCelArray::operator
const TBitmap&()
const {
TBitmap is the GDI bitmap class derived from TGdiObject.
TCelArray is a horizontal array of cels (a unit of animation) created by slicing a portion of or an e...
int NumRows() const
Return NRows, the number of rows in this CelArray.
TSize CelSize() const
Return the size of the celarray.
int CurRow() const
Return NCurRow, the current row in the bitmap.
void SetNGrowBy(int growBy)
Set the increment by which the bitmap is resized.
void SetCurRow(int raw)
Sets NCurRow to row.
TPoint Offset() const
Return the offset within the bitmap for the celarray.
void SetNumCels(int numCels)
Set the number of cels within the celarary.
TColor SetBkColor(const TColor &)
Set the current background color for this CelArray, returning the previous color.
void SetCelSize(TSize size)
Sets the size of each cel in the array.
TRect operator[](int cel) const
Retrieve the 'cel'th image from the celarray.
bool Remove(int index=-1)
Removes a cel from this CelArray.
int NumCels() const
Return number of cels currently in this CelArray.
int NumAllocCels() const
Return number of cels allocated in this CelArray.
TColor GetBkColor() const
Get the current background color for this CelArray.
void SetOffset(TPoint offs)
Set the offset within a bitmap for the start of the celarray.
TPoint CelOffset(int cel) const
Returns the position of the upper left corner of a given cel from the current row,...
bool RemoveAll()
Removes all the cels from the array by calling Remove(-1).
TRect CelRect(int cel) const
Returns the upper left and lower right corner of a given cell from the current row,...
Class wrapper for management of color values.
TDC is the root class for GDI DC wrappers.
Pseudo-GDI object Device Independent Bitmap (DIB) class.
TPoint is a support class, derived from tagPOINT.
TRect is a mathematical class derived from tagRect.
The tagSIZE struct is defined as.
Definition of abstract GDI object class and derived classes.
TAutoDelete
Flag for Handle ctors to control Handle deletion in dtor.
Object Windows Library (OWLNext Core)