9#if !defined(OWL_CELARRAY_H)
13#if defined(BI_HAS_PRAGMA_ONCE)
54 operator const TBitmap&()
const;
66 TRect operator [](
int cel)
const;
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);
112 bool Resize(
int newCount);
192 NCels = numCels < 1 ? 1 : numCels;
235inline TCelArray::operator
const TBitmap&()
const {
258 TColor obkColor = BkColor;
TBitmap is the GDI bitmap class derived from TGdiObject.
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.
bool StretchBlt(int index, TDC &dc, const TRect &dstRect, uint32 rop=SRCCOPY)
Draws the image of the cel onto the DC.
TPoint Offset() const
Return the offset within the bitmap for the celarray.
void SetNumCels(int numCels)
Set the number of cels within the celarary.
TCelArray(TBitmap *bmp, int numCels, TSize celSize=TSize(), TPoint offset=TPoint(), int numRows=1, TAutoDelete=AutoDelete)
Constructs a TCelArray from a bitmap by slicing the bitmap into a horizontal array of cels of a speci...
bool BitBlt(int index, TDC &dc, int x, int y, uint32 rop=SRCCOPY)
Draws the cel at index onto the DC at position x and y.
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.
bool Replace(int index, const TBitmap &image)
Replace a cel in this CelArray.
int Add(const TBitmap &image)
Add new cel(s) to the CelArray - return index of new addition.
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).