OWLNext 7.0
Borland's Object Windows Library for the modern age
|
Proxy parent for TDrawItem. More...
#include <owl/drawitem.h>
Public Types | |
typedef TIPtrArray< TDrawItem * > | TDrawItemArray |
Public Member Functions | |
TDrawItemProxy (TFont *font=0) | |
Constructs a TDrawItemProxy object using the specified font. | |
virtual | ~TDrawItemProxy () |
Deletes Font. If DeleteCel is true, delets CelArray. | |
void | SetFont (TFont *font) |
Deletes Font and sets it to font. | |
virtual TFont * | GetFont () |
void | SetCelArray (TCelArray *celarray, TAutoDelete del=AutoDelete) |
If DeleteCel is true, deletes CelArray. | |
void | SetCelArray (TResId resId, uint count, TModule *module=&GetGlobalModule()) |
Loads a TDib with resource id resId from module. | |
virtual TCelArray * | GetCelArray () |
void | RegisterItem (TDrawItem *item) |
For automatic deletion of items. | |
TDrawItemArray & | GetItems () |
Returns ItemArray. | |
Proxy parent for TDrawItem.
Definition at line 40 of file drawitem.h.
Definition at line 42 of file drawitem.h.
owl::TDrawItemProxy::TDrawItemProxy | ( | TFont * | font = 0 | ) |
Constructs a TDrawItemProxy object using the specified font.
Ownership of the font transfers to the new object.
Definition at line 35 of file drawitem.cpp.
|
virtual |
Deletes Font. If DeleteCel is true, delets CelArray.
Definition at line 44 of file drawitem.cpp.
Definition at line 51 of file drawitem.h.
Definition at line 48 of file drawitem.h.
|
inline |
Returns ItemArray.
Definition at line 269 of file drawitem.h.
For automatic deletion of items.
Adds item to ItemArray.
Definition at line 84 of file drawitem.cpp.
void owl::TDrawItemProxy::SetCelArray | ( | TCelArray * | celarray, |
TAutoDelete | del = AutoDelete ) |
If DeleteCel is true, deletes CelArray.
CelArray is then set to celarray and DeleteCel is set to del.
Definition at line 64 of file drawitem.cpp.
References owl::AutoDelete.
void owl::TDrawItemProxy::SetCelArray | ( | TResId | resId, |
uint | count, | ||
TModule * | module = &GetGlobalModule() ) |
Loads a TDib with resource id resId from module.
It then uses this TDib and count to create a new TCelArray. SetCelArray is then called with this TCelArray and AutoDelete.
Definition at line 76 of file drawitem.cpp.
References owl::AutoDelete, owl::TColor::LtGray, and SetCelArray().
Deletes Font and sets it to font.
Ownership of font transfers to the TDrawItemProxy.
Definition at line 55 of file drawitem.cpp.