wxBrushList: wxList

A brush list is a list containing all brushes which have been created. There is only one instance of this class: wxTheBrushList. Use this object to search for a previously created brush of the desired type and create it if not already found. In some windowing systems, the brush may be a scarce resource, so it is best to reuse old resources if possible. When an application finishes, all brushes will be deleted and their resources freed, eliminating the possibility of `memory leaks'.

wxBrushList::wxBrushList

voidwxBrushList

Constructor. The application should not construct its own brush list: use the object pointer wxTheBrushList.

wxBrushList::AddBrush

voidAddBrushwxBrush *brush

Used by wxWindows to add a brush to the list, called in the brush constructor.

wxBrushList::FindOrCreateBrush

wxBrush *FindOrCreateBrushwxColour *colour, int style

wxBrush *FindOrCreateBrushchar *colour_name, int style

Finds a brush of the given specification, or creates one and adds it to the list.

wxBrushList::RemoveBrush

voidRemoveBrushwxBrush *brush

Used by wxWindows to remove a brush from the list.