OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
owl::TDrawItemProxy Class Reference

Proxy parent for TDrawItem. More...

#include <owl/drawitem.h>

Inheritance diagram for owl::TDrawItemProxy:
owl::TDrawMenuItemProxy

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 TFontGetFont ()
 
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 TCelArrayGetCelArray ()
 
void RegisterItem (TDrawItem *item)
 For automatic deletion of items.
 
TDrawItemArrayGetItems ()
 Returns ItemArray.
 

Detailed Description

Proxy parent for TDrawItem.

Definition at line 40 of file drawitem.h.

Member Typedef Documentation

◆ TDrawItemArray

Constructor & Destructor Documentation

◆ TDrawItemProxy()

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.

◆ ~TDrawItemProxy()

owl::TDrawItemProxy::~TDrawItemProxy ( )
virtual

Deletes Font. If DeleteCel is true, delets CelArray.

Definition at line 44 of file drawitem.cpp.

Member Function Documentation

◆ GetCelArray()

virtual TCelArray * owl::TDrawItemProxy::GetCelArray ( )
inlinevirtual

Definition at line 51 of file drawitem.h.

◆ GetFont()

virtual TFont * owl::TDrawItemProxy::GetFont ( )
inlinevirtual

Definition at line 48 of file drawitem.h.

◆ GetItems()

TDrawItemProxy::TDrawItemArray & owl::TDrawItemProxy::GetItems ( )
inline

Returns ItemArray.

Definition at line 269 of file drawitem.h.

◆ RegisterItem()

void owl::TDrawItemProxy::RegisterItem ( TDrawItem * item)

For automatic deletion of items.

Adds item to ItemArray.

Definition at line 84 of file drawitem.cpp.

◆ SetCelArray() [1/2]

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.

◆ SetCelArray() [2/2]

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().

◆ SetFont()

void owl::TDrawItemProxy::SetFont ( TFont * font)

Deletes Font and sets it to font.

Ownership of font transfers to the TDrawItemProxy.

Definition at line 55 of file drawitem.cpp.


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